SMS: Fix violation of memory dependence
[gcc.git] / gcc / ChangeLog
1 2011-06-16 Revital Eres <revital.eres@linaro.org>
2
3 * ddg.c (add_intra_loop_mem_dep): New function.
4 (build_intra_loop_deps): Call it.
5
6 2011-05-06 Jeff Law <law@redhat.com>
7
8 * df-problems.c (df_lr_local_compute): Manually CSE
9 PIC_OFFSET_TABLE_REGNUM.
10 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
11 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
12
13 2011-06-13 Jan Hubicka <jh@suse.cz>
14
15 * cgraphunit.c (handle_alias_pairs): New function.
16 (cgraph_finalize_compilation_unit): Use it.
17 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
18 as externally visible.
19
20 2011-06-15 Richard Guenther <rguenther@suse.de>
21
22 * expr.c (expand_expr_real_2): Reduce all integral types to
23 bitfield precision.
24 (expand_expr_real_1): Likewise.
25
26 2011-06-15 Martin Jambor <mjambor@suse.cz>
27
28 PR tree-optimization/48613
29 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
30 ipa_node_params_vector is NULL.
31
32 2011-06-15 Jakub Jelinek <jakub@redhat.com>
33
34 PR debug/49382
35 * dwarf2out.c (dw_loc_list_node): Add force field.
36 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
37 the incoming location in the list, even if it is modified
38 before first real insn.
39 (output_loc_list): Emit empty ranges with force flag set.
40 (dw_loc_list): If first range of a PARM_DECL is empty,
41 set force flag.
42
43 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
44
45 PR target/49349
46 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
47 (fence_to_rewind). Use it to notice when bookkeeping will be placed
48 above a fence. Update comments.
49 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
50 placed just above it. Do not allow NULL place_to_insert.
51
52 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
53
54 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
55 (slpeel_tree_peel_loop_to_edge): Don't call
56 remove_dead_stmts_from_loop.
57 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
58 remove irrelevant pattern statements. For irrelevant statements
59 check if it is the last statement of a detected pattern, use
60 corresponding pattern statement instead.
61 (destroy_loop_vec_info): No need to remove pattern statements,
62 only free stmt_vec_info.
63 (vect_transform_loop): For irrelevant statements check if it is
64 the last statement of a detected pattern, use corresponding
65 pattern statement instead.
66 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
67 pattern statements. Set basic block for the new statement.
68 (vect_pattern_recog): Update documentation.
69 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
70 operands of pattern statements.
71 (vectorizable_call): Fix printing. In case of a pattern statement
72 use the lhs of the original statement when creating a dummy
73 statement to replace the original call.
74 (vect_analyze_stmt): For irrelevant statements check if it is
75 the last statement of a detected pattern, use corresponding
76 pattern statement instead.
77 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
78 statements use gsi of the original statement.
79
80 2011-06-14 Joseph Myers <joseph@codesourcery.com>
81
82 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
83 common/common-target-def.h.
84 * target.def (default_target_flags, handle_option,
85 supports_split_stack, optimization_table, init_struct,
86 except_unwind_info, unwind_tables_default, have_named_sections):
87 Move to common/common-target.def.
88 * target.h (enum opt_levels, struct default_options): Move to
89 common/common-target.h.
90 * targhooks.c (default_except_unwind_info,
91 dwarf2_except_unwind_info, sjlj_except_unwind_info,
92 default_target_handle_option, empty_optimization_table): Move to
93 common/common-targhooks.c.
94 * targhooks.h (default_except_unwind_info,
95 dwarf2_except_unwind_info, sjlj_except_unwind_info,
96 default_target_handle_option, empty_optimization_table): Move to
97 common/common-targhooks.h.
98 * common/common-target-def.h: Include common/common-targhooks.h.
99 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
100 defined.
101 * common/common-target.def (handle_option, option_init_struct,
102 option_optimization_table, default_target_flags,
103 except_unwind_info, supports_split_stack, unwind_tables_default,
104 have_named_sections): Move from target.def.
105 (HOOK_PREFIX): Undefine at end of file.
106 * common/common-target.h: Include input.h.
107 (enum opt_levels, struct default_options): Move from target.h.
108 * common/common-targhooks.c, common/common-targhooks.h: New.
109 * config.gcc (target_has_targetm_common): Default to yes.
110 (moxie*): Set target_has_targetm_common=no.
111 (hppa*-*-*): Don't set target_has_targetm_common=yes.
112 * doc/tm.texi: Regenerate.
113 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
114 (C_TARGET_DEF_H): Add common/common-targhooks.h.
115 (GCC_OBJS): Remove vec.o.
116 (OBJS): Remove hooks.o and vec.o.
117 (OBJS-libcommon-target): Add vec.o, hooks.o and
118 common/common-targhooks.o.
119 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
120 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
121 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
122 cfglayout.o, $(out_object_file), $(common_out_object_file)):
123 Update dependencies.
124 (common/common-targhooks.o): New.
125 * common/config/default-common.c: Include tm.h. Add FIXME
126 comment.
127 * common/config/pa/pa-common.c: Include more headers. Take
128 copyright dates from pa.c.
129 (pa_option_optimization_table, pa_handle_option,
130 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
131 TARGET_HANDLE_OPTION): Move from pa.c.
132 * common/config/alpha/alpha-common.c,
133 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
134 common/config/bfin/bfin-common.c,
135 common/config/cris/cris-common.c,
136 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
137 common/config/h8300/h8300-common.c,
138 common/config/i386/i386-common.c,
139 common/config/ia64/ia64-common.c,
140 common/config/iq2000/iq2000-common.c,
141 common/config/lm32/lm32-common.c,
142 common/config/m32c/m32c-common.c,
143 common/config/m32r/m32r-common.c,
144 common/config/m68k/m68k-common.c,
145 common/config/mcore/mcore-common.c,
146 common/config/mep/mep-common.c,
147 common/config/microblaze/microblaze-common.c,
148 common/config/mips/mips-common.c,
149 common/config/mmix/mmix-common.c,
150 common/config/mn10300/mn10300-common.c,
151 common/config/pdp11/pdp11-common.c,
152 common/config/picochip/picochip-common.c,
153 common/config/rs6000/rs6000-common.c,
154 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
155 common/config/score/score-common.c, common/config/sh/sh-common.c,
156 common/config/sparc/sparc-common.c,
157 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
158 common/config/vax/vax-common.c,
159 common/config/xstormy16/xstormy16-common.c,
160 common/config/xtensa/xtensa-common.c: New.
161 * config/alpha/alpha.c: Include common/common-target.h.
162 (alpha_option_optimization_table, alpha_handle_option,
163 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
164 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
165 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
166 * config/arm/arm.c (arm_option_optimization_table,
167 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
168 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
169 arm-common.c.
170 * config/avr/avr.c (avr_option_optimization_table,
171 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
172 to avr-common.c.
173 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
174 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
175 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
176 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
177 * config/cris/cris.c (cris_option_optimization_table,
178 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
179 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
180 cris-common.c.
181 * config/fr30/fr30.c (fr30_option_optimization_table,
182 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
183 to fr30-common.c.
184 * config/frv/frv.c (frv_option_optimization_table,
185 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
186 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
187 * config/h8300/h8300.c (h8300_option_optimization_table,
188 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
189 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
190 * config/i386/i386-protos.h (ix86_handle_option): Declare.
191 * config/i386/i386.c: Include common/common-target.h.
192 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
193 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
194 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
195 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
196 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
197 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
198 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
199 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
200 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
201 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
202 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
203 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
204 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
205 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
206 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
207 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
208 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
209 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
210 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
211 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
212 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
213 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
214 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
215 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
216 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
217 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
218 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
219 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
220 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
221 ix86_option_optimization_table, ix86_option_init_struct,
222 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
223 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
224 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
225 i386-common.c.
226 * config/i386/t-i386 (i386.o): Update dependencies.
227 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
228 * config/ia64/ia64.c (ia64_option_optimization_table,
229 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
230 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
231 ia64_handle_option): Move to ia64-common.c.
232 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
233 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
234 * config/lm32/lm32.c (lm32_option_optimization_table,
235 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
236 to lm32-common.c.
237 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
238 m32c-common.c.
239 * config/m32r/m32r.c (m32r_option_optimization_table,
240 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
241 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
242 m32r_handle_option): Move to m32r-common.c.
243 (m32r_memory_move_cost): Remove comment referring to
244 TARGET_HANDLE_OPTION.
245 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
246 Move to m68k-common.c.
247 * config/mcore/mcore.c (mcore_option_optimization_table,
248 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
249 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
250 * config/mep/mep.c (mep_option_optimization_table,
251 mep_handle_option, TARGET_HANDLE_OPTION,
252 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
253 Move to mep-common.c.
254 * config/microblaze/microblaze.c
255 (microblaze_option_optimization_table,
256 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
257 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
258 * config/mips/mips.c (mips_handle_option,
259 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
260 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
261 mips-common.c.
262 * config/mmix/mmix.c (mmix_option_optimization_table,
263 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
264 Move to mmix-common.c.
265 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
266 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
267 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
268 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
269 * config/pa/pa.c: Include common/common-target.h.
270 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
271 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
272 pa_handle_option): Move to pa-common.c.
273 (pa_option_override): Use targetm_common.except_unwind_info.
274 (pa_asm_output_mi_thunk, pa_function_section): Use
275 targetm_common.have_named_sections.
276 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
277 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
278 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
279 pdp11_handle_option, pdp11_option_init_struct): Move to
280 pdp11-common.c.
281 * config/picochip/picochip.c (picochip_option_optimization_table,
282 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
283 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
284 * config/rs6000/rs6000.c: Include common/common-target.h.
285 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
286 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
287 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
288 rs6000_handle_option): Move to rs6000-common.c.
289 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
290 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
291 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
292 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
293 * config/s390/s390.c (processor_flags_table,
294 s390_option_optimization_table, s390_option_init_struct,
295 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
296 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
297 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
298 * config/s390/s390.h (processor_flags_table): Declare.
299 * config/score/score.c (score_option_optimization_table,
300 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
301 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
302 score_handle_option): Move to score-common.c.
303 * config/sh/sh.c (sh_option_optimization_table,
304 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
305 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
306 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
307 * config/sparc/sparc.c: Include common/common-target.h.
308 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
309 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
310 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
311 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
312 spu_option_init_struct): Move to spu-common.c.
313 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
314 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
315 * config/v850/v850.c (small_memory_physical_max,
316 v850_handle_memory_optionn v850_handle_option,
317 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
318 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
319 v850-common.c.
320 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
321 vax-common.c.
322 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
323 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
324 Move to xtensa-common.c.
325 * cfglayout.c: Include common/common-target.h.
326 (fixup_reorder_chain): Use targetm_common.have_named_sections.
327 * cfgrtl.c: Include common/common-target.h.
328 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
329 targetm_common.have_named_sections.
330 * dbxout.c: Include common/common-target.h.
331 (dbxout_function_end): Use targetm_common.have_named_sections.
332 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
333 targetm_common.except_unwind_info.
334 * dwarf2out.c: Include common/common-target.h.
335 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
336 dwarf2out_begin_prologue, dwarf2out_frame_init,
337 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
338 targetm_common.except_unwind_info.
339 * except.c: Include common/common-target.h.
340 (init_eh, finish_eh_generation,
341 output_one_function_exception_table): Use
342 targetm_common.except_unwind_info.
343 (switch_to_exception_section): Use
344 targetm_common.have_named_sections.
345 * explow.c: Include common/common-target.h.
346 * expr.c: Include common/common-target.h.
347 (build_personality_function): Use
348 targetm_common.except_unwind_info.
349 * function.c: Include common/common-target.h.
350 (expand_function_end): Use targetm_common.except_unwind_info.
351 * haifa-sched.c: Include common/common-target.h.
352 (sched_create_recovery_edges): Use
353 targetm_common.have_named_sections.
354 * lto-opts.c: Include common/common-target.h instead of target.h.
355 (lto_reissue_options): Use targetm_common.handle_option.
356 * opts.c: Include common/common-target.h.
357 (target_handle_option): Use targetm_common.handle_option.
358 (init_options_struct): Update comment referring to
359 targetm.target_option.optimization. Use
360 targetm_common.default_target_flags,
361 targetm_common.unwind_tables_default and
362 targetm_common.option_init_struct.
363 (default_options_optimization): Use
364 targetm_common.option_optimization_table.
365 (finish_options): Use targetm_common.except_unwind_info,
366 targetm_common.unwind_tables_default,
367 targetm_common.have_named_sections and
368 targetm_common.supports_split_stack.
369 * toplev.c: Include common/common-target.h.
370 (process_options): Use targetm_common.have_named_sections.
371 * tree-tailcall.c: Include common/common-target.h.
372 (suitable_for_tail_call_opt_p): Use
373 targetm_common.except_unwind_info.
374 * tree.c: Include common/common-target.h.
375 (build_common_builtin_nodes): Use
376 targetm_common.except_unwind_info.
377 * varasm.c: Include common/common-target.h.
378 (resolve_unique_section, hot_function_section,
379 default_function_section): Use targetm_common.have_named_sections.
380
381 2011-06-14 Easwaran Raman <eraman@google.com>
382
383 PR rtl-optimization/44194
384 * dse.c: Include tree-flow.h
385 (insn_info): Add new field non_frame_wild_read.
386 (group_info): Add new fields escaped_n and escaped_p.
387 (kill_on_calls): New variable.
388 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
389 (dse_step0): Initialize kill_on_calls.
390 (can_escape): New function.
391 (set_usage_bits): Add additional parameter; record information
392 about escaped locations.
393 (record_store): Pass EXPR corresponding to MEM to
394 set_usage_bits.
395 (dse_step2_nospill): Set kill_on_calls based on
396 group->escaped_n and group->escaped_n.
397 (add_wild_read): Refactor into...
398 (reset_active_stores): ... New function, and
399 (free_read_records): ... New function.
400 (add_non_frame_wild_read): New function.
401 (scan_insn): Call add_non_frame_wild_read on non-const calls.
402 (scan_reads_nospill): Handle instructions with
403 non_frame_wild_read.
404 (dse_step5_nospill): Call scan_reads_nospill for instructions
405 marked as non_frame_wild_read.
406 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
407 bitmaps.
408
409 2011-06-14 Joseph Myers <joseph@codesourcery.com>
410
411 * common/common-target-def.h, common/common-target.def,
412 common/common-target.h, common/config/default-common.c,
413 common/config/pa/pa-common.c: New files.
414 * Makefile.in (common_out_file, common_out_object_file,
415 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
416 (OBJS-libcommon-target): Include $(common_out_object_file).
417 (prefix.o): Update dependencies.
418 ($(common_out_object_file), common/common-target-hooks-def.h,
419 s-common-target-hooks-def-h): New.
420 (s-tm-texi): Also check timestamp on common-target.def.
421 (build/genhooks.o): Update dependencies.
422 * config.gcc (common_out_file, target_has_targetm_common): Define.
423 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
424 TARGET_ALWAYS_STRIP_DOTDOT.
425 * configure.ac (common_out_object_file): Define.
426 (common_out_file, common_out_object_file): Substitute.
427 (common): Create directory.
428 * configure: Regenerate.
429 * doc/tm.texi.in (targetm_common): Document.
430 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
431 * doc/tm.texi: Regenerate.
432 * genhooks.c (hook_array): Also include common/common-target.def.
433 * prefix.c (tm.h): Don't include.
434 (common/common-target.h): Include.
435 (ALWAYS_STRIP_DOTDOT): Don't define.
436 (update_path): Use targetm_common.always_strip_dotdot instead of
437 ALWAYS_STRIP_DOTDOT.
438 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
439
440 2011-06-14 David Li <davidxl@google.com>
441
442 * passes.c (execute_function_todo): Remove TODO_dump_func.
443 (execute_one_pass): Remove TODO_dump_func.
444 (execute_function_dump): New function.
445 * tree-vrp.c: Remove TODO_dump_func.
446 * regrename.c: Remove TODO_dump_func.
447 * fwprop.c: Remove TODO_dump_func.
448 * tree-into-ssa.c: Remove TODO_dump_func.
449 * tree-complex.c: Remove TODO_dump_func.
450 * tracer.c: Remove TODO_dump_func.
451 * tree-loop-distribution.c: Remove TODO_dump_func.
452 * postreload-gcse.c: Remove TODO_dump_func.
453 * postreload.c: Remove TODO_dump_func.
454 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
455 * tree-tailcall.c: Remove TODO_dump_func.
456 * ipa-cp.c: Remove TODO_dump_func.
457 * final.c: Remove TODO_dump_func.
458 * tree-emutls.c: Remove TODO_dump_func.
459 * omp-low.c: Remove TODO_dump_func.
460 * tree-ssa-dse.c: Remove TODO_dump_func.
461 * tree-ssa-uncprop.c: Remove TODO_dump_func.
462 * auto-inc-dec.c: Remove TODO_dump_func.
463 * reorg.c: Remove TODO_dump_func.
464 * tree-ssa-copyrename.c: Remove TODO_dump_func.
465 * tree-ssa-ccp.c: Remove TODO_dump_func.
466 * compare-elim.c: Remove TODO_dump_func.
467 * mode-switching.c: Remove TODO_dump_func.
468 * modulo-sched.c: Remove TODO_dump_func.
469 * tree-call-cdce.c: Remove TODO_dump_func.
470 * cse.c: Remove TODO_dump_func.
471 * web.c: Remove TODO_dump_func.
472 * tree-stdarg.c: Remove TODO_dump_func.
473 * lto-streamer-out.c: Remove TODO_dump_func.
474 * tree-ssa-math-opts.c: Remove TODO_dump_func.
475 * tree-ssa-dom.c: Remove TODO_dump_func.
476 * tree-nrv.c: Remove TODO_dump_func.
477 * loop-init.c: Remove TODO_dump_func.
478 * gimple-low.c: Remove TODO_dump_func.
479 * ipa-inline.c: Remove TODO_dump_func.
480 * tree-ssa-sink.c: Remove TODO_dump_func.
481 * jump.c: Remove TODO_dump_func.
482 * ifcvt.c: Remove TODO_dump_func.
483 * tree-ssa-loop.c: Remove TODO_dump_func.
484 * recog.c: Remove TODO_dump_func.
485 * dse.c: Remove TODO_dump_func.
486 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
487 * matrix-reorg.c: Remove TODO_dump_func.
488 * tree-eh.c: Remove TODO_dump_func.
489 * regmove.c: Remove TODO_dump_func.
490 * function.c: Remove TODO_dump_func.
491 * tree-vectorizer.c: Remove TODO_dump_func.
492 * ipa-split.c: Remove TODO_dump_func.
493 * gcse.c: Remove TODO_dump_func.
494 * tree-if-conv.c: Remove TODO_dump_func.
495 * init-regs.c: Remove TODO_dump_func.
496 * tree-ssa-phiopt.c: Remove TODO_dump_func.
497 * implicit-zee.c: Remove TODO_dump_func.
498 * lower-subreg.c: Remove TODO_dump_func.
499 * bt-load.c: Remove TODO_dump_func.
500 * tree-dfa.c: Remove TODO_dump_func.
501 * except.c: Remove TODO_dump_func.
502 * emit-rtl.c: Remove TODO_dump_func.
503 * store-motion.c: Remove TODO_dump_func.
504 * cfgexpand.c: Remove TODO_dump_func.
505 * tree-cfgcleanup.c: Remove TODO_dump_func.
506 * cfgcleanup.c: Remove TODO_dump_func.
507 * tree-ssa-pre.c: Remove TODO_dump_func.
508 * tree-sra.c: Remove TODO_dump_func.
509 * tree-mudflap.c: Remove TODO_dump_func.
510 * tree-ssa-copy.c: Remove TODO_dump_func.
511 * cfglayout.c: Remove TODO_dump_func.
512 * tree-ssa-forwprop.c: Remove TODO_dump_func.
513 * tree-ssa-dce.c: Remove TODO_dump_func.
514 * ira.c: Remove TODO_dump_func.
515 * tree-ssa.c: Remove TODO_dump_func.
516 * integrate.c: Remove TODO_dump_func.
517 * tree-optimize.c: Remove TODO_dump_func.
518 * tree-ssa-phiprop.c: Remove TODO_dump_func.
519 * tree-object-size.c: Remove TODO_dump_func.
520 * combine.c: Remove TODO_dump_func.
521 * bb-reorder.c: Remove TODO_dump_func.
522 * cprop.c: Remove TODO_dump_func.
523 * var-tracking.c: Remove TODO_dump_func.
524 * tree-profile.c: Remove TODO_dump_func.
525 * tree-vect-generic.c: Remove TODO_dump_func.
526 * reg-stack.c: Remove TODO_dump_func.
527 * sched-rgn.c: Remove TODO_dump_func.
528 * tree-ssa-structalias.c: Remove TODO_dump_func.
529 * tree-switch-conversion.c: Remove TODO_dump_func.
530 * tree-cfg.c: Remove TODO_dump_func.
531 * tree-ssa-reassoc.c: Remove TODO_dump_func.
532 * combine-stack-adj.c: Remove TODO_dump_func.
533 * dce.c: Remove TODO_dump_func.
534 * tree-ssanames.c: Remove TODO_dump_func.
535 * regcprop.c: Remove TODO_dump_func.
536
537 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
538
539 PR middle-end/47364
540 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
541 and properly handle result not in Pmode.
542
543 2011-06-14 Robert Millan <rmh@gnu.org>
544
545 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
546 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
547 `config/linux.h'.
548
549 * config/i386/kfreebsd-gnu64.h: New file.
550 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
551 with `i386/kfreebsd-gnu64.h'.
552
553 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
554 (GNU_USER_LINK_EMULATION64): New macros.
555 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
556 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
557 of hardcoding `elf_i386' and `elf_x86_64'.
558
559 2011-06-14 Nick Clifton <nickc@redhat.com>
560
561 PR target/49403
562 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
563
564 PR target/49402
565 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
566
567 2011-06-14 Jakub Jelinek <jakub@redhat.com>
568
569 PR fortran/49103
570 * tree.h (DECL_NONSHAREABLE): Define.
571 (struct tree_decl_common): Change decl_common_unused to
572 decl_nonshareable_flag.
573 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
574 Ignore vars with DECL_NONSHAREABLE bit set.
575 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
576 on stores to automatic aggregate vars.
577
578 PR rtl-optimization/49390
579 Revert:
580 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
581
582 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
583 MEM_ALIAS_SET.
584
585 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
586 Tom de Vries <tom@codesourcery.com>
587
588 PR target/45098
589 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
590 Document changed semantics.
591 (max_stmt_executions, max_stmt_executions_int): Declare.
592 * tree-data-ref.c (estimated_loop_iterations)
593 (estimated_loop_iterations_int): Move functions...
594 * tree-ssa-loop-niter.c (estimated_loop_iterations)
595 (estimated_loop_iterations_int): here.
596 (record_estimate): Change nb_iterations_upper_bound and
597 nb_iterations_estimate semantics.
598 (max_stmt_executions, max_stmt_executions_int): New function.
599 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
600 (max_stmt_executions_tree): this.
601 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
602 estimated_loop_iterations_tree.
603 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
604 max_stmt_executions_int instead of estimated_loop_iterations_int.
605 * predict.c (predict_loops): Idem.
606 * tree-parloops.c (parallelize_loops): Idem.
607 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
608 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
609 (init_omega_for_ddr_1): Idem.
610 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
611 (loop_prefetch_arrays): Idem
612 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
613 max_stmt_executions instead of estimated_loop_iterations.
614 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
615 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
616 instead of nb_iterations_upper_bound.
617
618 2011-06-13 Jan Hubicka <jh@suse.cz>
619
620 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
621
622 2011-06-14 Richard Henderson <rth@redhat.com>
623
624 PR debug/48459
625 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
626 (based_loc_descr): Assert it's true.
627 (compute_frame_pointer_to_fb_displacement): Set it, rather than
628 aborting immediately.
629
630 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
631 Mingfeng Wu <mingfeng@faraday-tech.com>
632
633 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
634
635 2011-06-13 Jan Hubicka <jh@suse.cz>
636
637 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
638
639 2011-06-13 Jan Hubicka <jh@suse.cz>
640
641 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
642 similarly to DECL_COMDAT.
643 * cgraphunit.c (cgraph_analyze_function): Likewise.
644 * ipa.c (function_and_variable_visibility): Likewise.
645
646 2011-06-13 Jan Hubicka <jh@suse.cz>
647
648 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
649 BINFO_VIRTUALS when streaming for ltrans unit.
650
651 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
652
653 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
654 (movdi_internal64): Same.
655
656 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
657
658 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
659 a set of similar patterns, where the MATCH_OPERAND for the function
660 argument is replaced with individual references to hardware registers.
661 (save_fpregs_<mode>): Ditto
662 (restore_gpregs_<mode>): Ditto
663 (return_and_restore_gpregs_<mode>): Ditto
664 (return_and_restore_fpregs_<mode>): Ditto
665 (return_and_restore_fpregs_aix_<mode>): Ditto
666
667 2011-06-13 Jan Hubicka <jh@suse.cz>
668
669 * ipa-utils.c (postorder_stack): New structure.
670 (ipa_reverse_postorder): Handle aliases.
671
672 2011-06-13 Jan Hubicka <jh@suse.cz>
673
674 * ipa-inline.c (reset_edge_caches): Walk aliases.
675 (update_caller_keys): Do not test inlinability of aliases.
676 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
677 (do_estimate_growth): Fix typo.
678
679 2011-06-13 Jan Hubicka <jh@suse.cz>
680
681 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
682 (can_remove_node_now_p): ... here; handle same comdat groups.
683 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
684 (inline_call): Update use of can_remove_node_now_p.
685
686 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
687
688 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
689 condition to disallow non-identical memory locations.
690 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
691 preference to bit manipulation instructions.
692
693 2011-06-13 Jan Hubicka <jh@suse.cz>
694
695 * cgraph.c (cgraph_for_node_thunks_and_aliases,
696 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
697 (nonremovable_p): New function.
698 (cgraph_can_remove_if_no_direct_calls_p): New function.
699 (used_from_object_file_p): New functoin.
700 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
701 references from aliases.
702 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
703 * ipa-inline.c (check_caller_edge): New function.
704 (want_inline_function_called_once_p): Use it; accept aliases called
705 once, too.
706 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
707
708 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
709
710 PR target/48454
711 * config/arm/neon.md (vec_pack_trunc): Set the lengths
712 correctly for the case with Quad vectors.
713
714 2011-06-13 Jakub Jelinek <jakub@redhat.com>
715 Ira Rosen <ira.rosen@linaro.org>
716
717 PR tree-optimization/49352
718 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
719 all, make sure loop_use_stmt after the loop is a def stmt of a used
720 SSA_NAME that is the only one defined inside of the loop. Don't
721 check for COND_EXPR and GIMPLE_BINARY_RHS.
722 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
723 check_reduction is true.
724
725 2011-06-11 Jan Hubicka <jh@suse.cz>
726
727 PR middle-end/49373
728 * ipa.c (cgraph_externally_visible_p): Check resolution info.
729
730 2011-06-11 Jan Hubicka <jh@suse.cz>
731
732 PR middle-end/48836
733 * ipa-inline-transform.c: Include tree-pass.h
734 (inline_transform): Set TODO_update_ssa_only_virtuals.
735 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
736
737 2011-06-11 Jan Hubicka <jh@suse.cz>
738
739 PR middle-end/49378
740 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
741 aliases and thunks.
742
743 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
744
745 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
746 Take number of iterations to peel into account for equally frequent
747 misalignment values.
748
749 2011-06-11 Jan Hubicka <jh@suse.cz>
750
751 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
752 aliases.
753
754 2011-06-11 Jan Hubicka <jh@suse.cz>
755
756 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
757 args.
758 (ipa_update_after_lto_read): Likewise.
759 (ipa_write_node_info): Do not sream call_with_var_arguments.
760 (ipa_read_node_info): Likewise.
761
762 2011-06-11 Jan Hubicka <jh@suse.cz>
763
764 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
765
766 2011-06-11 Jan Hubicka <jh@suse.cz>
767
768 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
769 (lto_symtab_resolve_can_prevail_p): Likewise.
770 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
771 * cgraph.c (same_body_aliases_done): New global var.
772 (cgraph_same_body_alias_1): Rename to ...
773 (cgraph_create_function_alias): ... this one; reorg to new
774 representation.
775 (cgraph_same_body_alias): Use cgraph_create_function_alias;
776 record references when asked to.
777 (cgraph_add_thunk): Fix formating.
778 (cgraph_get_node): Kill same body alias code.
779 (cgraph_node_for_asm): Likewise.
780 (cgraph_remove_same_body_alias): Remove.
781 (cgraph_remove_node): Kill same body alias code.
782 (cgraph_mark_address_taken_node): Mark also the aliased function
783 as having address taken.
784 (dump_cgraph_node): Dump same body aliases.
785 (cgraph_for_node_thunks_and_aliases): Update for new alias
786 representation.
787 (cgraph_for_node_and_aliases): Likewise.
788 * cgraph.h (same_body): Kll pointer.
789 (same_body_alias): Update comment.
790 (same_body_aliases_done): Declare.
791 (cgraph_remove_same_body_alias): Remove declaration.
792 (cgraph_create_function_alias): Declare.
793 (cgraph_process_same_body_aliases): Declare.
794 (cgraph_function_with_gimple_body_p): Check for alias.
795 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
796 (cgraph_alias_aliased_node): New function.
797 (cgraph_function_node): Update for new aliases.
798 (cgraph_function_or_thunk_node): Likewise.
799 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
800 (inline_call): Remove dead aliases.
801 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
802 name hack for same body aliases.
803 (clone_of_p): Look through aliases.
804 (verify_cgraph_node): Verify aliases.
805 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
806 (cgraph_process_same_body_aliases): New function.
807 (process_function_and_variable_attributes): Disable weakref warning on
808 alias.
809 (cgraph_analyze_functions): Handle aliases.
810 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
811 (assemble_thunks): Rename to ...
812 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
813 (cgraph_expand_function): Remove alias output code.
814 (cgraph_output_in_order): Skip aliases.
815 (cgraph_preserve_function_body_p): Aliases don't need preserving.
816 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
817 (ipa_record_reference): Do not assert on alias references.
818 (ipa_ref_has_aliases_p): New function.
819 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
820 (ipa_ref_has_aliases_p): Declare.
821 * lto-cgraph.c (lto_output_node): Handle aliases.
822 (input_node): Likewise.
823 * lto-streamer-out.c (lto_output): Skip aliases.
824 (produce_symtab): Kill same_body_alias code.
825 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
826 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
827 * ipa-inline.c (update_caller_keys): Walk aliases.
828 (inline_small_functions): Fix thinko in previous patch.
829 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
830 (function_and_variable_visibility): Do not walk same body aliases.
831 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
832 (ipa_pta_execute): Use it.
833
834 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
835
836 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
837 (*vec_dupv2df): Rename from vec_dupv2df.
838 (vec_dupv2df): New expander.
839
840 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
841
842 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
843
844 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
845
846 * config/i386/i386.md: Use default value in "isa" attribute.
847 * config/i386/sse.md: Ditto.
848 * config/i386/mmx.md: Ditto.
849
850 2011-06-10 Wei Guozhi <carrot@google.com>
851
852 PR target/45335
853 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
854 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
855 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
856 related peephole2.
857 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
858 related peephole2.
859 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
860 (arm_legitimate_ldrd_p): New prototype.
861 (arm_output_ldrd): New prototype.
862 * config/arm/arm.c (arm_check_ldrd_operands): New function.
863 (arm_legitimate_ldrd_p): New function.
864 (arm_output_ldrd): New function.
865
866 2011-06-10 David Li <davidxl@google.com>
867
868 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
869 * passes.c (passr_eq): New function.
870 (create_pass_tab): New function.
871 (pass_traverse): New function.
872 (dump_one_pass): New function.
873 (dump_pass_list): New function.
874 (dump_passes): New function.
875
876 2011-06-10 Jan Hubicka <jh@suse.cz>
877
878 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
879 setting the nothrow flag.
880 * ipa-reference.c (propagate): Skip aliases.
881 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
882 (propagate_nothrow): Skip aliases; do not update cgraph.
883 (local_pure_const): Do not update cgraph.
884 * tree-profile.c (tree_profiling): Do fixup_cfg.
885
886 2011-06-10 Jan Hubicka <jh@suse.cz>
887
888 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
889 (cgraph_local_node_p): ... here; handle aliases.
890 (has_addr_references_p): Break out from ...;
891 (cgraph_remove_unreachable_nodes) ... here.
892
893 2011-06-10 Jan Hubicka <jh@suse.cz>
894
895 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
896 * common.opt (flag_inline_functions_called_once): Do not
897 initialize to 1.
898
899 2011-06-10 Jan Hubicka <jh@suse.cz>
900
901 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
902 (ipcp_initialize_node_lattices): Do not deal with aliases;
903 Do not try to propagate through thunks.
904 (ipcp_change_tops_to_bottom): Do not deal with aliases.
905
906 2011-06-10 Jan Hubicka <jh@suse.cz>
907
908 * ipa-prop.c (ipa_write_node_info): Stream jump functions
909 for indirect calls.
910 (ipa_read_node_info): Likewise.
911
912 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
913
914 PR lto/49302
915 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
916 (build_and_insert_call): Likewise.
917 (build_and_insert_ref): New.
918 (gimple_expand_builtin_pow): Minor cleanup.
919 (gimple_expand_builtin_cabs): New.
920 (execute_cse_sincos): Add case for BUILT_IN_CABS.
921
922 2011-06-10 Jan Hubicka <jh@suse.cz>
923
924 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
925 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
926 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
927 (ipcp_propagate_stage): Skip aliases when propagating.
928 (ipcp_need_redirect_p): Skip aliases.
929 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
930 collect_callers_of_node.
931 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
932 for aliases.
933 (ipa_compute_jump_functions): Look through aliases.
934
935 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
936
937 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
938
939 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
940
941 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
942 Adjust comments.
943 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
944
945 2011-06-10 Jan Hubicka <jh@suse.cz>
946
947 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
948 Update call of gimple_get_virt_method_for_binfo.
949 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
950 refuse_thunks parameter.
951 (gimple_fold_call): Update.
952 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
953
954 2011-06-10 Jan Hubicka <jh@suse.cz>
955
956 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
957 (not_all_callers_have_enough_arguments_p): ... this one; turn into
958 worker for cgraph_for_node_and_aliases.
959 (convert_callers_for_node): Break out from ...
960 (convert_callers): ... here.
961 (modify_function): Use collect_callers_of_node.
962 (ipa_early_sra): Use cgraph_for_node_and_aliases.
963
964 2011-06-10 Richard Guenther <rguenther@suse.de>
965
966 PR tree-optimization/49361
967 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
968 when not already in gimple form.
969
970 2011-06-10 Richard Guenther <rguenther@suse.de>
971
972 PR bootstrap/49344
973 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
974 FOR_EACH_PHI_OR_STMT_USE.
975
976 2011-06-10 Jan Hubicka <jh@suse.cz>
977
978 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
979 (clone_inlined_nodes): ... here.
980 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
981 to real destination prior inlining.
982 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
983 can_early_inline_edge_p, want_early_inline_function_p,
984 want_early_inline_function_p, want_inline_small_function_p,
985 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
986 edge_badness, update_all_callee_keys, lookup_recursive_calls,
987 add_new_edges_to_heap, inline_small_functions, flatten_function,
988 inline_always_inline_functions, early_inline_small_functions): Use
989 cgraph_function_or_thunk_node.
990 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
991 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
992 (do_estimate_edge_growth_1): Break out from ...
993 (do_estimate_growth) ... here; walk aliases.
994 (inline_generate_summary): Skip aliases.
995
996 2011-06-10 Richard Guenther <rguenther@suse.de>
997
998 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
999 forward when combining, visit inserted stmts when a stmt was changed.
1000
1001 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1002
1003 * tree.h (error_operand_p): Add.
1004 * dbxout.c (dbxout_type_fields): Use the latter.
1005 * c-decl.c (add_stmt): Likewise.
1006 * gimplify.c (omp_add_variable, omp_notice_variable,
1007 gimplify_scan_omp_clauses): Likewise.
1008
1009 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
1010
1011 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1012 when a value is actually passed in regs.
1013
1014 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1015 Laurent Rougé <laurent.rouge@menta.fr>
1016
1017 * doc/invoke.texi (SPARC options): Add -mflat.
1018 * config/sparc/sparc.opt: Likewise.
1019 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1020 (sparc_flat_expand_prologue): Declare.
1021 (sparc_flat_expand_epilogue): Likewise.
1022 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1023 (CPP_ENDIAN_SPEC): Replace with...
1024 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1025 (CPP_SPEC): Adjust to above change.
1026 (EXTRA_SPECS): Likewise.
1027 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1028 (INCOMING_REGNO): Likewise.
1029 (OUTGOING_REGNO): Likewise.
1030 (LOCAL_REGNO): Likewise.
1031 (SETUP_FRAME_ADDRESSES): Likewise.
1032 (FIXED_REGISTERS): Set 0 for %fp.
1033 (CALL_USED_REGISTERS): Likewise.
1034 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1035 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1036 (RETURN_ADDR_REGNUM): Define.
1037 (RETURN_ADDR_RTX): Use it.
1038 (INCOMING_RETURN_ADDR_REGNUM): Define.
1039 (INCOMING_RETURN_ADDR_RTX): Use it.
1040 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1041 (EH_RETURN_REGNUM): Define.
1042 (EH_RETURN_STACKADJ_RTX): Use it.
1043 (EH_RETURN_HANDLER_RTX): Delete.
1044 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1045 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1046 Delete.
1047 (struct machine_function): Add frame_size, apparent_frame_size,
1048 frame_base_reg, frame_base_offset, n_global_fp_regs and
1049 save_local_in_regs_p fields.
1050 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1051 sparc_frame_base_offset, sparc_n_global_fp_regs,
1052 sparc_save_local_in_regs_p): New macros.
1053 (sparc_option_override): Error out if -fcall-saved-REG is specified
1054 for Out registers.
1055 (eligible_for_restore_insn): Fix formatting.
1056 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1057 (eligible_for_sibcall_delay): Likewise.
1058 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1059 (sparc_legitimate_address_p): Adjust to above change.
1060 (save_global_or_fp_reg_p): New predicate.
1061 (return_addr_reg_needed_p): Likewise.
1062 (save_local_or_in_reg_p): Likewise.
1063 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1064 (SORR_SAVE, SORR_RESTORE): Delete.
1065 (sorr_pred_t): New typedef.
1066 (sorr_act_t): New enum.
1067 (save_or_restore_regs): Rename to...
1068 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1069 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1070 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1071 mechanism. Add CFI information for double-word saves in 32-bit mode.
1072 (emit_adjust_base_to_offset): New function extracted from...
1073 (emit_save_or_restore_regs): ...this. Rename the rest to...
1074 (emit_save_or_restore_regs_global_fp_regs): ...this.
1075 (emit_save_or_restore_regs_local_in_regs): New function.
1076 (gen_create_flat_frame_[123]): New functions.
1077 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1078 (sparc_flat_expand_prologue): New function.
1079 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1080 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1081 (sparc_flat_expand_epilogue): New function.
1082 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1083 (output_return): Likewise.
1084 (output_sibcall): Likewise.
1085 (sparc_output_mi_thunk): Likewise.
1086 (sparc_frame_pointer_required): Likewise.
1087 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1088 function optimization.
1089 * config/sparc/sparc.md (flat): New attribute.
1090 (prologue): Add TARGET_FLAT handling.
1091 (save_register_window): Disable if TARGET_FLAT.
1092 (create_flat_frame_[123]): New patterns.
1093 (epilogue): Add TARGET_FLAT handling.
1094 (sibcall_epilogue): Likewise.
1095 (eh_return): New expander.
1096 (eh_return_internal): New insn and splitter.
1097 (return_internal): Add TARGET_FLAT handling.
1098 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1099 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1100 (nonlocal_goto): Add TARGET_FLAT handling.
1101 * config/sparc/t-elf: Add -mflat multilib.
1102 * config/sparc/t-leon: Likewise.
1103
1104 2011-06-10 Jan Hubicka <jh@suse.cz>
1105
1106 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1107 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1108 (self_recursive_p): Use cgraph_function_node.
1109 (propagate_pure_const): Likewise.
1110 (propagate_nothrow): Likewise.
1111 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1112 cgraph_function_node.
1113 (propagate_bits): Likewise.
1114 (propagate): Likewise.
1115
1116 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1117 Richard Earnshaw <rearnsha@arm.com>
1118
1119 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1120 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1121 (*thumb2_movdi_vfp): Delete.
1122 (*arm_movdi_vfp_cortexa8): Delete.
1123 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1124 (*movdi_vfp_cortexa8): Likewise.
1125
1126 2011-06-10 Richard Guenther <rguenther@suse.de>
1127
1128 * stor-layout.c (initialize_sizetypes): Give names to all
1129 sizetype kinds.
1130
1131 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1132
1133 PR tree-optimization/49318
1134 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1135 irrelevant pattern statements.
1136
1137 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1138
1139 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1140
1141 PR bootstrap/49354
1142 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1143 to last assignment.
1144
1145 2011-06-09 Jan Hubicka <jh@suse.cz>
1146
1147 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1148 do not recompute reachable flag.
1149 (cgraph_finalize_function, cgraph_analyze_functions): Set
1150 redefined_extern_inline here.
1151
1152 2011-06-09 Jan Hubicka <jh@suse.cz>
1153
1154 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1155 (cgraph_only_called_directly_p): ... this one; bring offline.
1156 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1157 varpool_used_from_object_file_p): Drop names from the declaratoin.
1158 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1159 collect_callers_of_node): New.
1160 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1161 (cgraph_edge_recursive_p): Use cgraph_function_node.
1162 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1163 (cgraph_node_cannot_be_local_p_1): Break out from ...
1164 (cgraph_node_can_be_local_p): ... here; walk aliases.
1165 (cgraph_for_node_thunks_and_aliases): New function.
1166 (cgraph_for_node_and_aliases): New function.
1167 (cgraph_make_node_local_1): Break out from ...
1168 (cgraph_make_node_local) ... here; use
1169 cgraph_for_node_thunks_and_aliases.
1170 (cgraph_set_nothrow_flag_1): Break out from ...
1171 (cgraph_set_nothrow_flag) ... here;
1172 use cgraph_for_node_thunks_and_aliases.
1173 (cgraph_set_const_flag_1): Break out from ...
1174 (cgraph_set_const_flag) ... here;
1175 use cgraph_for_node_thunks_and_aliases.
1176 (cgraph_set_pure_flag_1): Break out from ...
1177 (cgraph_set_pure_flag) ... here;
1178 use cgraph_for_node_thunks_and_aliases.
1179 (cgraph_propagate_frequency_1): Break out from ...
1180 (cgraph_propagate_frequency) ... here; use
1181 cgraph_for_node_thunks_and_aliases.
1182 (cgraph_used_from_object_file_p): Do not care about aliases.
1183 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1184 New functions.
1185 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1186
1187 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1188
1189 PR rtl-optimization/49154
1190 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1191 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1192 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1193 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1194 * config/cris/cris.h (cris_register_move_cost): Remove
1195 !TARGET_V32 code. Tweak comments.
1196
1197 2011-06-09 Jan Hubicka <jh@suse.cz>
1198
1199 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1200 address taken.
1201
1202 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1203
1204 PR rtl-optimization/49154
1205 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1206 is a matching slot in the hashtable, assign it to classes_ptr.
1207
1208 PR rtl-optimization/49154
1209 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1210 register classes.
1211 * doc/tm.texi: Regenerate.
1212
1213 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1214
1215 PR target/49307
1216 * config/sh/sh.md (UNSPEC_CHKADD): New.
1217 (chk_guard_add): New define_insn_and_split.
1218 (symGOT_load): Use chk_guard_add instead of blockage.
1219
1220 2011-06-09 Kai Tietz <ktietz@redhat.com>
1221
1222 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1223
1224 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1225
1226 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1227
1228 2011-06-09 Wei Guozhi <carrot@google.com>
1229
1230 PR target/46975
1231 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1232 (peephole2 for conditional move): Generate 16 bit instructions.
1233
1234 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1235
1236 * config/i386/i386.md (*movdi_internal_rex64): Merge
1237 alternatives 6 and 8.
1238
1239 2011-06-09 David Li <davidxl@google.com>
1240
1241 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1242 * passes.c (passr_eq): New function.
1243 (create_pass_tab): New function.
1244 (pass_traverse): New function.
1245 (dump_one_pass): New function.
1246 (dump_pass_list): New function.
1247 (dump_passes): New function.
1248
1249 2011-06-09 David Li <davidxl@google.com>
1250
1251 * tree-complex.c (tree_lower_complex): Gate cleanup.
1252 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1253 (execute_optimize_stdarg): Ditto.
1254 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1255 (execute_cleanup_eh_1): Ditto.
1256 (execute_cleanup_eh): Ditto.
1257 * gcse.c (gate_rtl_pre): Ditto.
1258 (execute_rtl_pre): Ditto.
1259 * except.c (finish_eh_generation): Ditto.
1260 (convert_to_eh_region_ranges): Ditto.
1261 * cprop.c (one_cprop_pass): Ditto.
1262
1263 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1264
1265 PR target/48673
1266 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1267 in all basic blocks.
1268
1269 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1270
1271 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1272 (HAVE_ENABLE_EXECUTE_STACK): Define.
1273 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1274 (HAVE_ENABLE_EXECUTE_STACK): Define.
1275 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1276 (HAVE_ENABLE_EXECUTE_STACK): Define.
1277 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1278 (ENABLE_EXECUTE_STACK): Remove.
1279 (HAVE_ENABLE_EXECUTE_STACK): Define.
1280 [IN_LIBGCC2]: Don't include <windows.h>.
1281 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1282 (HAVE_ENABLE_EXECUTE_STACK): Define.
1283 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1284 (HAVE_ENABLE_EXECUTE_STACK): Define.
1285 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1286 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1287 (HAVE_ENABLE_EXECUTE_STACK): Define.
1288 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1289 (HAVE_ENABLE_EXECUTE_STACK): Define.
1290 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1291 (HAVE_ENABLE_EXECUTE_STACK): Define.
1292 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1293 (HAVE_ENABLE_EXECUTE_STACK): Define.
1294 * config/alpha/alpha.c (alpha_trampoline_init): Test
1295 HAVE_ENABLE_EXECUTE_STACK.
1296 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1297 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1298 (sparc64_initialize_trampoline): Likewise.
1299 * libgcc2.c [L_enable_execute_stack]: Remove.
1300 * system.h (ENABLE_EXECUTE_STACK): Poison.
1301 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1302 * doc/tm.texi: Regenerate.
1303 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1304
1305 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1306
1307 PR middle-end/49308
1308 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1309 variable. After resetting and rescanning insn continue with previous
1310 statement.
1311
1312 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1313
1314 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1315 (gcc_cv_ld_hidden): Likewise.
1316 * configure: Regenerate.
1317 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1318 (ix86_stack_protect_fail): Mark unused.
1319 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1320 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1321 [TARGET_MACHO]: Don't define.
1322 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1323 (TARGET_STACK_PROTECT_FAIL): Likewise.
1324 (rs6000_stack_protect_fail): Mark unused.
1325 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1326 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
1327
1328 2011-06-08 Andi Kleen <ak@linux.intel.com>
1329
1330 * varasm.c (get_section): Print location of other conflict
1331 for section conflicts.
1332
1333 2011-06-08 Andi Kleen <ak@linux.intel.com>
1334
1335 * config/i386/driver-i386.c (host_detect_local_cpu):
1336 Add model 0x2d Intel CPU.
1337
1338 2011-06-08 Andi Kleen <ak@linux.intel.com>
1339
1340 * reginfo.c (global_regs_decl): Add.
1341 (globalize_reg): Add decl parameter. Compute location. Pass location
1342 to warnings and add inform. Store decl in global_regs_decl.
1343 * rtl.h (globalize_reg): Update prototype.
1344 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1345
1346 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
1347
1348 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1349
1350 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1351
1352 PR target/49305
1353 * config/sh/predicates.md (general_movsrc_operand): Check
1354 mode for memory with indexed address for QI and HImode.
1355 (general_movdst_operand): Likewise.
1356
1357 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
1358
1359 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1360
1361 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
1362
1363 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1364 (num_ssa_operands): Likewise.
1365 (op_iter_init_phiuse): Forward-declare.
1366 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1367
1368 2011-06-08 Nick Clifton <nickc@redhat.com>
1369
1370 * doc/invoke.texi (ARM Options): Update description of
1371 -mthumb-interwork.
1372
1373 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1374
1375 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1376 unknown Intel family 0x6 CPUs.
1377
1378 2011-06-08 Martin Jambor <mjambor@suse.cz>
1379
1380 * tree-sra.c (mark_rw_status): Removed.
1381 (analyze_access_subtree): New parameter parent instead of
1382 mark_read and mark_write, propagate from that.
1383
1384 2011-06-08 Julian Brown <julian@codesourcery.com>
1385
1386 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1387 for double-precision helper functions in hard-float mode if only
1388 single-precision arithmetic is supported in hardware.
1389
1390 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
1391
1392 PR rtl-optimization/49303
1393 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
1394 code_motion_path_driver returned 0 or 1.
1395 (sel_region_finish): Clear h_d_i_d.
1396
1397 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1398
1399 * config/sh/sh.c (prepare_move_operands): Set pic register
1400 appropriately for global and local dynamic tls models even
1401 if flag_pic is unset.
1402
1403 2011-06-07 Jason Merrill <jason@redhat.com>
1404
1405 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
1406
1407 2011-06-07 Xinliang David Li <davidxl@google.com>
1408 * passes.c (enable_disable_pass): Handle assembler name.
1409 (is_pass_explicitly_enabled_or_disabled): Ditto.
1410
1411 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1412
1413 PR tree-optimization/48497
1414 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
1415
1416 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1417
1418 PR tree-optimization/46728
1419 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
1420 to use gimple_val_nonnegative_real_p.
1421 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
1422 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
1423
1424 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
1425
1426 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
1427
1428 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
1429
1430 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
1431 constant vectors.
1432
1433 2011-06-07 Richard Guenther <rguenther@suse.de>
1434
1435 * stor-layout.c (initialize_sizetypes): Initialize all
1436 sizetypes based on target definitions.
1437 (set_sizetype): Remove.
1438 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
1439 * tree.h (set_sizetype): Remove.
1440
1441 2011-06-07 Nick Clifton <nickc@redhat.com>
1442
1443 * config.gcc: Unify V850 architecture options and add support for
1444 newer V850 architectures.
1445 * config/v850/t-v850e: Delete.
1446
1447 2011-06-07 Richard Guenther <rguenther@suse.de>
1448
1449 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
1450 Call set_sizetype from here.
1451
1452 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
1453
1454 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
1455 (*maddhisi4tb, *maddhisi4tt): New define_insns.
1456
1457 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
1458 Andrew Stubbs <ams@codesourcery.com>
1459
1460 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
1461 multiplies.
1462 * doc/md.texi (Canonicalization of Instructions): Document widening
1463 multiply canonicalization.
1464
1465 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1466
1467 PR gcov-profile/49299
1468 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1469
1470 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
1471
1472 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
1473 a pointer.
1474 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
1475 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
1476 vect_recog_pow_pattern): Likewise.
1477 (vect_pattern_recog_1): Remove declaration.
1478 (widened_name_p): Remove declaration. Add new argument to specify
1479 whether to check that both types are either signed or unsigned.
1480 (vect_recog_widen_mult_pattern): Update documentation. Handle
1481 unsigned patterns and multiplication by constants.
1482 (vect_pattern_recog_1): Update vect_recog_func references. Use
1483 statement information from the statement returned from pattern
1484 detection functions.
1485 (vect_pattern_recog): Update vect_recog_func reference.
1486 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
1487 multiplication by a constant use the type of the other operand.
1488
1489 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
1490
1491 PR rtl-optimization/49145
1492 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
1493
1494 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1495
1496 PR debug/49262
1497 * dwarf2out.c (native_encode_initializer): Decrement count in each
1498 iteration.
1499
1500 PR debug/49294
1501 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
1502 non-MODE_INT modes.
1503
1504 PR c++/49264
1505 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1506 if stmt folded into nothing.
1507 * tree-inline.c (fold_marked_statements): If a builtin at the end of
1508 a bb folded into nothing, just update cgraph edges and move to next bb.
1509 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1510 to be NULL. Don't compute count and frequency if new_call is NULL.
1511
1512 2011-06-04 Diego Novillo <dnovillo@google.com>
1513
1514 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
1515 (cgraph.o): Likewise.
1516 (cgraphunit.o): Likewise.
1517 * cgraphunit.c: Include lto-streamer.h
1518 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
1519 if LTO is enabled.
1520 * lto-streamer-in.c (unpack_value_fields): Call
1521 streamer_hooks.unpack_value_fields if set.
1522 (lto_materialize_tree): For unhandled nodes, first try to
1523 call lto_streamer_hooks.alloc_tree, if it exists.
1524 (lto_input_ts_decl_common_tree_pointers): Move reading of
1525 DECL_INITIAL to lto_streamer_read_tree.
1526 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
1527 (lto_streamer_read_tree): New.
1528 (lto_reader_init): Rename from lto_init_reader.
1529 Move initialization code to lto/lto.c.
1530 * lto-streamer-out.c (pack_value_fields): Call
1531 streamer_hooks.pack_value_fields if set.
1532 (lto_output_tree_ref): For tree nodes that are not normally indexable,
1533 call streamer_hooks.indexable_with_decls_p before giving up.
1534 (lto_output_ts_decl_common_tree_pointers): Move handling
1535 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
1536 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
1537 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
1538 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
1539 (lto_streamer_write_tree): New.
1540 (lto_output): Call lto_streamer_init directly.
1541 (lto_writer_init): Remove.
1542 * lto-streamer.c (streamer_hooks): New.
1543 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
1544 instead of lto_preload_common_nodes.
1545 (lto_is_streamable): Move from lto-streamer.h
1546 (lto_streamer_hooks_init): New.
1547 (streamer_hooks): New.
1548 (streamer_hooks_init): New.
1549 * lto-streamer.h (struct output_block): Forward declare.
1550 (struct lto_input_block): Likewise.
1551 (struct data_in): Likewise.
1552 (struct bitpack_d): Likewise.
1553 (struct streamer_hooks): Declare.
1554 (streamer_hooks): Declare.
1555 (lto_streamer_hooks_init): Declare.
1556 (lto_streamer_write_tree): Declare.
1557 (lto_streamer_read_tree): Declare.
1558 (streamer_hooks_init): Declare.
1559 (lto_is_streamable): Move to lto-streamer.c
1560
1561 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1562
1563 * longlong.h (smul_ppmm): The resulting register pair contains the
1564 higher order word first.
1565
1566 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1567
1568 PR tree-optimization/46728
1569 * builtins.c (powi_table): Remove.
1570 (powi_lookup_cost): Remove.
1571 (powi_cost): Remove.
1572 (expand_powi_1): Remove.
1573 (expand_powi): Remove.
1574 (expand_builtin_pow_root): Remove.
1575 (expand_builtin_pow): Remove.
1576 (expand_builtin_powi): Eliminate handling of constant exponent.
1577 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
1578
1579 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1580
1581 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
1582
1583 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1584
1585 * dce.c (reset_unmarked_insns_debug_uses): New.
1586 (delete_unmarked_insns): Skip debug insns.
1587 (prescan_insns_for_dce): Likewise.
1588 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
1589 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
1590 active reg can be found.
1591 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
1592 (convert_regs_1): Use it.
1593
1594 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1595
1596 * tree-pretty-print.c (dump_function_header): Add flags.
1597 Don't dump decl_uid with nouid.
1598 * tree-pretty-print.h (dump_function_header): Adjust.
1599 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
1600 * passes.c (pass_init_dump_file): Pass dump_flags on.
1601 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
1602
1603 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1604
1605 PR bootstrap/49270
1606 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
1607
1608 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
1609
1610 PR tree-optimization/49243
1611 * calls.c (setjmp_call_p): Also check if fndecl has the
1612 returns_twice attribute.
1613
1614 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1615
1616 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
1617 -ffast-math etc.
1618
1619 2011-06-06 Richard Henderson <rth@redhat.com>
1620 Georg-Johann Lay <avr@gjlay.de>
1621
1622 PR target/42210
1623 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
1624 New predicates.
1625 * config/avr/avr.md ("insv"): New insn expander.
1626 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
1627 "*insv.not.io", "*insv.reg"): New insns.
1628
1629 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
1630
1631 PR target/49285
1632 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
1633 to nonimmediate_operand from memory_operand for the operand that is to
1634 be forced to memory by the expander. Lose the constraints.
1635
1636 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1637
1638 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1639 EH return when delayed branches are disabled.
1640
1641 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
1642
1643 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
1644 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
1645 calculation.
1646 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
1647 Simplify MODE_V1DF and MODE_V2SF handling.
1648 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
1649 Simplify MODE_SF handling.
1650
1651 2011-06-04 Jan Hubicka <jh@suse.cz>
1652
1653 PR tree-optimization/48893
1654 PR tree-optimization/49091
1655 PR tree-optimization/49179
1656 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
1657 Bounds check.
1658
1659 2011-06-04 Jan Hubicka <jh@suse.cz>
1660
1661 PR lto/48954
1662 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
1663 bitmaps.
1664
1665 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
1666
1667 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1668
1669 2011-06-04 Jakub Jelinek <jakub@redhat.com>
1670
1671 PR target/49281
1672 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1673 to be strictly smaller than 1 << shiftcount.
1674
1675 2011-06-04 Jan Hubicka <jh@suse.cz>
1676
1677 PR tree-optimize/48929
1678 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1679 of empty predicate.
1680
1681 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1682
1683 PR debug/48333
1684 * calls.c (emit_call_1): Prefer the __builtin declaration of
1685 builtin functions.
1686
1687 2011-06-03 Diego Novillo <dnovillo@google.com>
1688
1689 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1690 (lto_input_tree_pointers): Likewise.
1691 * lto-streamer-out.c (pack_value_fields): Likewise.
1692 (lto_output_tree_pointers): Likewise.
1693 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1694 and OPTIMIZATION_NODE.
1695
1696 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1697
1698 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1699 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1700 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1701 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1702 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1703 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1704 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1705 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1706 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1707 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1708 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1709 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1710 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1711 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1712 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1713 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1714 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1715 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1716 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1717 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1718 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1719 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1720 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1721 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1722 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1723 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1724 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1725 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1726 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1727 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1728 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1729 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1730 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1731 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1732 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1733 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1734 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1735 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1736 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1737 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1738 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1739 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1740 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1741 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1742 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1743 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1744 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1745 * system.h (MD_UNWIND_SUPPORT): Poison.
1746 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1747 * doc/tm.texi: Regenerate.
1748 * unwind-dw2.c: Include md-unwind-support.h instead of
1749 MD_UNWIND_SUPPORT.
1750 * config/ia64/unwind-ia64.c: Likewise.
1751 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1752
1753 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1754
1755 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1756
1757 2011-06-03 Richard Henderson <rth@redhat.com>
1758 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1759
1760 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1761 (sigill_hdlr): Correct insn, insn size.
1762 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1763
1764 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1765
1766 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1767 t-slibgcc-dummy.
1768 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1769 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1770 * config/mips/t-iris: Remove.
1771 * config/mips/t-irix6: New file.
1772 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1773
1774 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1775
1776 * Makefile.in (LIB2ADDEHDEP): Remove.
1777 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1778 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1779 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1780 * config/t-darwin (LIB2ADDEHDEP): Remove.
1781 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1782 * config/t-linux (LIB2ADDEHDEP): Remove.
1783
1784 2011-06-03 Diego Novillo <dnovillo@google.com>
1785
1786 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1787 (lto_register_var_decl_in_symtab): Likewise.
1788 (lto_register_function_decl_in_symtab): Likewise.
1789 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1790 logic to uniquify_nodes.
1791
1792 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1793
1794 * config/alpha/t-osf5: Remove.
1795 * config/alpha/t-osf-pthread: Remove.
1796 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1797 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1798
1799 2011-06-03 Julian Brown <julian@codesourcery.com>
1800
1801 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1802 (strongarm1110): Use strongarm tuning.
1803 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1804 * config/arm/arm.c (arm_strongarm_tune): New.
1805 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1806 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1807 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1808 setting, using previous defaults or 1 for Cortex-A5.
1809 (arm_option_override): Set max_insns_skipped from current tuning.
1810
1811 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1812
1813 * doc/install.texi (Options specification): Document --with-specs.
1814
1815 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1816
1817 * config/arm/neon.md (orndi3_neon): Actually split it.
1818
1819 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1820
1821 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1822 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1823
1824 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1825
1826 PR debug/47590
1827 * target.def (delay_sched2, delay_vartrack): New.
1828 * doc/tm.texi.in: Update.
1829 * doc/tm.texi: Rebuild.
1830 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1831 * var-tracking.c (gate_handle_var_tracking): Likewise.
1832 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1833 (bfin_flag_var_tracking): Drop.
1834 (output_file_start): Don't save and override flag_var_tracking.
1835 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1836 (bfin_reorg): Test original variables.
1837 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1838 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1839 (ia64_flag_var_tracking): Drop.
1840 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1841 (ia64_file_start): Don't save and override flag_var_tracking.
1842 (ia64_override_options_after_change): Ditto
1843 flag_schedule_insns_after_reload.
1844 (ia64_reorg): Test original variables.
1845 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1846 (picochip_flag_var_tracking): Drop.
1847 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1848 (picochip_option_override): Don't save and override
1849 flag_schedule_insns_after_reload.
1850 (picochip_asm_file_start): Ditto flag_var_tracking.
1851 (picochip_reorg): Test original variables.
1852 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1853 (TARGET_DELAY_VARTRACK): Define.
1854 (spu_var_tracking): New.
1855 (spu_machine_dependent_reorg): Call it.
1856 (asm_file_start): Don't save and override flag_var_tracking.
1857
1858 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1859
1860 PR target/49163
1861 * config/sh/predicates.md (general_movsrc_operand): Return 0
1862 for memory and memory subreg of which address is an invalid
1863 indexed address for QI and HImode.
1864 (general_movdst_operand): Likewise.
1865
1866 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1867
1868 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1869 edges only, when there is a non-local label in the function.
1870 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1871
1872 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1873
1874 * config/i386/constraints.md (Y3): New register constraint.
1875 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1876 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1877 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1878 *sse2_interleave_lowv2df.
1879
1880 2011-06-02 Julian Brown <julian@codesourcery.com>
1881
1882 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1883 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1884 (arm_cortex_a5_tune): New.
1885
1886 2011-06-02 Julian Brown <julian@codesourcery.com>
1887
1888 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1889 * config/arm/arm.c (arm_default_branch_cost): New.
1890 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1891 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1892 (arm_fa726_tune): Set branch_cost field using
1893 arm_default_branch_cost.
1894 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1895 current_tune structure.
1896 * dojump.c (tm_p.h): Include file.
1897
1898 2011-06-02 Julian Brown <julian@codesourcery.com>
1899
1900 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1901 tuning.
1902 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1903 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1904 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1905 field.
1906 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1907 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1908 (arm_fa726te_tune): Add prefer_constant_pool setting.
1909 (arm_v6t2_tune, arm_cortex_tune): New.
1910 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1911 prefer_constant_pool setting.
1912
1913 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1914
1915 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1916 switch statement.
1917 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1918 (*movdf_internal) <case 6,7,8>: Ditto.
1919
1920 * config/i386/constraints.md (Y4): New register constraint.
1921 * config/i386/sse.md (vec_set<mode>_0): Merge with
1922 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1923 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1924 *vec_extractv2di_1_sse.
1925 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1926 and *vec_concatv2di_rex64_sse.
1927
1928 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1929
1930 PR target/48807
1931 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1932 of cgraph_local_info for null before attempting to use it.
1933
1934 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1935
1936 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1937 (current_function_dynamic_alloc_count): Delete.
1938 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1939 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1940 (expand_builtin_update_setjmp_buf): Remove dead code.
1941 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1942 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1943 support.
1944 * function.c (instantiate_virtual_regs): Likewise.
1945 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1946 for a block with a single abnormal incoming edge.
1947 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1948 (SETJMP_VIA_SAVE_AREA): Delete.
1949 * config/sparc/sparc-protos.h (load_got_register): Declare.
1950 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1951 (load_got_register): Make global.
1952 (sparc_frame_pointer_required): Add 'static'.
1953 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1954 (sparc_builtin_setjmp_frame_value): New function.
1955 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1956 (save_stack_nonlocal): New expander.
1957 (restore_stack_nonlocal): Likewise.
1958 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1959 (nonlocal_goto_internal): New insn.
1960 (goto_handler_and_restore): Delete.
1961 (builtin_setjmp_setup): Likewise.
1962 (do_builtin_setjmp_setup): Likewise.
1963 (setjmp): Likewise.
1964 (builtin_setjmp_receiver): New expander.
1965
1966 2011-06-01 David Li <davidxl@google.com>
1967
1968 PR middle-end/49261
1969 * tree-pretty-print.c (dump_function_header): Format cleanup.
1970
1971 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1972
1973 PR target/49238
1974 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1975 needed when original operands are used for msw_skip comparison.
1976
1977 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1978
1979 PR debug/49250
1980 * var-tracking.c (add_uses, add_stores): Don't call
1981 cselib_subst_to_values on ENTRY_VALUE.
1982
1983 2011-06-01 Diego Novillo <dnovillo@google.com>
1984
1985 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1986 output_record_start with LTO_null instead of output_zero.
1987 (lto_output_ts_binfo_tree_pointers): Likewise.
1988 (lto_output_tree): Likewise.
1989 (output_eh_try_list): Likewise.
1990 (output_eh_region): Likewise.
1991 (output_eh_lp): Likewise.
1992 (output_eh_regions): Likewise.
1993 (output_bb): Likewise.
1994 (output_function): Likewise.
1995 (output_unreferenced_globals): Likewise.
1996 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1997 instead of NUM_TREE_CODES.
1998 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1999 (lto_output_int_in_range): Change << to >> when shifting VAL.
2000
2001 2011-06-01 Diego Novillo <dnovillo@google.com>
2002
2003 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2004 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2005
2006 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2007
2008 PR target/45074
2009 * optabs.h (valid_multiword_target_p): Declare.
2010 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2011 doing multi-word operations.
2012 * optabs.c (expand_binop): Likewise.
2013 (expand_doubleword_bswap): Likewise.
2014 (expand_absneg_bit): Likewise.
2015 (expand_unop): Likewise.
2016 (expand_copysign_bit): Likewise.
2017 (multiword_target_p): New function.
2018
2019 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2020
2021 PR rtl-optimization/48830
2022 PR rtl-optimization/48808
2023 PR rtl-optimization/48792
2024 * reload.c (push_reload): Check contains_reg_of_mode.
2025 * reload1.c (strip_paradoxical_subreg): New function.
2026 (gen_reload_chain_without_interm_reg_p): Use it to handle
2027 paradoxical subregs.
2028 (emit_output_reload_insns, gen_reload): Likewise.
2029
2030 2011-06-01 David Li <davidxl@google.com>
2031
2032 * predict.c : Change pass name
2033 * ipa.c: Ditto.
2034 * dce.c: Ditto.
2035 * tree-profile.c: Ditto.
2036 * except.c: Ditto.
2037
2038 2011-06-01 David Li <davidxl@google.com>
2039
2040 * tree-pretty-print.c (dump_function_header): New function.
2041 * final.c (rest_of_clean_state): Use header dumper.
2042 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2043 * passes.c (pass_init_dump_file): Use header dumper.
2044
2045 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2046
2047 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2048 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2049 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2050 New functions.
2051 (mem_loc_descriptor): Use them.
2052
2053 * var-tracking.c (create_entry_value): New function.
2054 (vt_add_function_parameter): Use it.
2055
2056 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2057
2058 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2059 Include <signal.h>, <ucontext.h>.
2060 (sigill_caught): Define.
2061 (sigill_hdlr): New function.
2062 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2063 insns can be executed.
2064 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2065 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2066
2067 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2068
2069 * config/t-slibgcc-darwin: Move to ...
2070 * config/t-slibgcc-dummy: ... this. Clarify comments.
2071 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2072 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2073 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2074 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2075 Remove i386/t-crtstuff from tmake_file.
2076 (i[34567]86-*-solaris2*): Remove t-svr4,
2077 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2078 t-slibgcc-dummy.
2079 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2080 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2081 sparc/t-crtfm from tmake_file.
2082 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2083 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2084 Remove extra_parts.
2085 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2086 * config/i386/t-nwld (SHLIB_LINK): Remove.
2087 * config/i386/t-rtems-i386: Rename to ...
2088 * config/i386/t-rtems: ... this.
2089 ($(T)crti.o, $(T)crtn.o): Remove.
2090 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2091 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2092 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2093 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2094 EXTRA_MULTILIB_PARTS): Remove.
2095 * config/sparc/t-sol2-64: Likewise.
2096 * config/sparc/t-sol2: Remove.
2097 * config/sparc/t-crtin: Remove.
2098 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2099 * config/i386/gmon-sol2.c: Remove.
2100 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2101 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2102 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2103 * config/i386/sol2-gc1.asm: Remove.
2104 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2105 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2106 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2107 * config/t-slibgcc-sld: Remove.
2108
2109 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2110
2111 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2112 base_type_for_mode with op_mode instead of mode.
2113
2114 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2115
2116 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2117 Cortex-A15.
2118 * config/arm/arm-tune.md: Regenerate.
2119 * config/arm/arm-tables.opt: Regenerate.
2120 * config/arm/arm.c (FL_DIV): Rename...
2121 (FL_THUMB_DIV): ... to this.
2122 (FL_ARM_DIV): Define.
2123 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2124 (arm_arch_hwdiv): Remove.
2125 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2126 (arm_issue_rate): Add cortexr5.
2127 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2128 __ARM_ARCH_EXT_IDIV__.
2129 (TARGET_IDIV): Define.
2130 (arm_arch_hwdiv): Remove.
2131 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2132 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2133 (divsi3, udivsi3): New patterns.
2134 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2135 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2136
2137 2011-06-01 Martin Jambor <mjambor@suse.cz>
2138
2139 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2140 * ipa-utils.c (searchc): Set scc_no.
2141
2142 2011-06-01 Martin Jambor <mjambor@suse.cz>
2143
2144 * ipa-utils.c (searchc_env): New field allow_overwritable.
2145 (searchc): do not ignore edges to overwritable nodes if indicated
2146 by env->allow_overwritable.
2147 (ipa_reduced_postorder): Set env.allow_overwritable.
2148
2149 2011-06-01 Richard Guenther <rguenther@suse.de>
2150
2151 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2152 char_type_node.
2153 * lto-streamer.c (lto_record_common_node): Take node pointer,
2154 do not register types.
2155 (lto_preload_common_nodes): Explicitly skip preloading nodes
2156 that differ between frontends.
2157
2158 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2159
2160 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2161 NON_FLOAT_REGS.
2162
2163 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2164
2165 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2166 parameter value for dump. Dump cost on outermost call only.
2167 (rs6000_memory_move_cost): Dump cost on outermost call only.
2168
2169 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2170
2171 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2172 DW_OP_GNU_convert ops.
2173
2174 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2175 cselib_preserve_constants.
2176 (cselib_lookup_1): If cselib_preserve_constants,
2177 a new VALUE is being created for REG and there is a VALUE for the
2178 same register in wider mode, add another loc with lowpart SUBREG of
2179 the wider VALUE.
2180 (cselib_subst_to_values): Handle ENTRY_VALUE.
2181 * var-tracking.c (replace_expr_with_values): Return NULL for
2182 ENTRY_VALUE too.
2183 * dwarf2out.c (convert_descriptor_to_signed): New function.
2184 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2185 instead of two shifts.
2186 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2187 the right mode if needed.
2188 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2189 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2190 convert_descriptor_to_signed.
2191 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2192 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2193
2194 PR target/48688
2195 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2196
2197 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2198
2199 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2200 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2201 (SWI248x): New mode iterator, rename from X87MODEI.
2202 (X87MODEI): Remove mode iterator.
2203 (X87MODEI12): Ditto.
2204 (SSEMODEI24): Ditto.
2205
2206 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2207
2208 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2209 * doc/invoke.texi: Document max-vartrack-expr-depth.
2210 * var-tracking.c (EXPR_DEPTH): New.
2211 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2212
2213 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2214
2215 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2216 * config/i386/sse.md: Add n to negated FMA pattern names.
2217
2218 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2219
2220 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2221
2222 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2223
2224 * gengtype-state.c (read_state_params_structs): Initialize previous.
2225
2226 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2227
2228 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2229 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2230
2231 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2232
2233 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2234 registers. Penalize F*r->o alternative to prevent partial memory
2235 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2236 CONST_DOUBLE immediates when optimizing function for size. Do not move
2237 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2238 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2239 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2240 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2241 alternatives.
2242 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2243
2244 (fp_register_operand splitters): Use fp_register_operand
2245 constraint. Do not use FP_REG_P in insn condition.
2246 (any_fp_register_operand splitters): Use any_fp_register_operand
2247 constraint. Do not use ANY_FP_REG_P in insn condition.
2248
2249 2011-05-31 Jan Hubicka <jh@suse.cz>
2250
2251 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2252 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2253 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2254 (lto_output_edge): Use output_enum and var_len_unsigned.
2255 (lto_output_varpool_node): Likewise.
2256 (input_overwrite_node): Do not take resolution parameter;
2257 extract it from a bitpack.
2258 (input_node): Do not read resolution; use input_enum and
2259 var_len_unsigned.
2260 (input_varpool_node): Likewise.
2261 (input_edge): Likewise.
2262 (input_cgraph_1): Likewise.
2263
2264 2011-05-31 Richard Guenther <rguenther@suse.de>
2265
2266 * gimple.c (gimple_register_canonical_type): Do not register
2267 any types via gimple_register_type.
2268
2269 2011-05-31 Jan Hubicka <jh@suse.cz>
2270
2271 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2272 of thunks.
2273
2274 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2275
2276 PR rtl-optimization/49235
2277 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2278 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2279
2280 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2281
2282 PR tree-optimization/49093
2283 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2284 data references.
2285
2286 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2287
2288 PR debug/49047
2289 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2290 for concrete functions containing the code of cloned functions.
2291
2292 2011-05-31 Richard Guenther <rguenther@suse.de>
2293
2294 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2295 to ...
2296 (forward_propagate_into_comparison_1): ... this.
2297 (forward_propagate_comparison): Rename to ...
2298 (forward_propagate_into_comparison): ... this. Split out
2299 real forward propagation code to ...
2300 (forward_propagate_comparison): ... this.
2301 (forward_propagate_into_gimple_cond): Remove looping.
2302 (forward_propagate_into_cond): Likewise.
2303 (simplify_not_neg_expr): Return whether we have done something.
2304 (simplify_gimple_switch): Likewise.
2305 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2306 (ssa_forward_propagate_and_combine): ... this. Re-structure
2307 to do a forward forward-propagation walk on BBs and a backward
2308 stmt combining walk on BBs. Consistently re-scan changed statements.
2309 (pass_forwprop): Adjust.
2310
2311 2011-05-30 Ian Lance Taylor <iant@google.com>
2312
2313 * godump.c (go_format_type): Correct length of name added to
2314 obstack for anonymous field.
2315
2316 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2317
2318 PR target/49186
2319 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2320 part of the second operand is 0.
2321
2322 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
2323
2324 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2325 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
2326 to memory for !TARGET_MEMORY_MISMATCH_STALL.
2327 (*movdf_internal_rex64): Do not penalize F->r alternative.
2328 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2329 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
2330 when optimizing function for size. Do not move CONST_DOUBLEs
2331 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2332 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
2333 SUBREGs. Do not check for MEM_P operands in the insn condition,
2334 check for ANY_FP_REGNO_P instead.
2335 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2336 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2337 function for speed.
2338 * config/i386/i386.c (ix86_option_override_internal): Do not
2339 set TARGET_INTEGER_DFMODE_MOVES here.
2340
2341 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
2342
2343 PR target/49168
2344 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2345
2346 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2347
2348 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2349 DW_TAG_rvalue_reference_type even for
2350 -gdwarf-4 -fno-debug-types-section.
2351
2352 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2353
2354 PR tree-optimization/46728
2355 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2356 (build_and_insert_binop): New.
2357 (gimple_expand_builtin_pow): Reorder args for
2358 build_and_insert_call; use build_and_insert_binop; add more
2359 optimizations for fractional exponents.
2360
2361 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2362
2363 PR bootstrap/49190
2364
2365 Revert:
2366 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2367
2368 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2369 tree_common.
2370 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2371 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2372 TS_BASE instead of TS_COMMON.
2373 * varasm.c (assemble_name): Remove assert.
2374
2375 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2376
2377 * config.gcc: Keep obselete list sorted.
2378
2379 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2380 Eric Botcazou <ebotcazou@adacore.com>
2381
2382 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2383 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2384 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2385 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2386 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2387
2388 2011-05-30 Richard Guenther <rguenther@suse.de>
2389
2390 * gimple.c (gimple_types_compatible_p_1): Compare record
2391 and union type members properly.
2392
2393 2011-05-30 Richard Guenther <rguenther@suse.de>
2394
2395 PR tree-optimization/49210
2396 * ipa-split.c (split_function): Care for the case where the call
2397 result is not trivially convertible to the result holding variable.
2398
2399 2011-05-30 Richard Guenther <rguenther@suse.de>
2400
2401 PR tree-optimization/49218
2402 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2403 overflow occured.
2404
2405 2011-05-30 Richard Guenther <rguenther@suse.de>
2406
2407 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
2408 New function split out from ...
2409 (forward_propagate_into_gimple_cond): ... here. Adjust.
2410 (forward_propagate_into_cond): Likewise.
2411 (forward_propagate_comparison): Also propagate into
2412 comparisons on assignment RHS. Change return value to
2413 behave similar to forward_propagate_into_cond.
2414 (tree_ssa_forward_propagate_single_use_vars): Handle
2415 strict-overflow warnings properly for forward_propagate_comparison.
2416
2417 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2418
2419 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
2420 from plugin linker.
2421 * configure: Regenerate.
2422
2423 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
2424
2425 PR tree-optimization/49199
2426 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
2427 non-reduction operands are either defined in the loop or by induction.
2428
2429 2011-05-29 Xinliang David Li <davidxl@google.com>
2430
2431 * opts-global.c (handle_common_deferred_options): Handle new options.
2432 * passes.c (register_one_dump_file): Call register_pass_name.
2433 (execute_one_pass): Check explicit enable/disable flag.
2434 (passr_hash): New function.
2435 (passr_eq): Ditto.
2436 (register_pass_name): Ditto.
2437 (get_pass_by_name): Ditto.
2438 (pass_hash): Ditto.
2439 (pass_eq): Ditto.
2440 (enable_pass): Ditto.
2441 (disable_pass): Ditto.
2442 (is_pass_explicitly_enabled_or_disabled): Ditto.
2443
2444 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
2445
2446 * config/i386/i386.md (*movoi_internal_avx): Use
2447 standard_sse_constant_opcode for alternative 0.
2448 (*movti_internal_sse): Ditto.
2449 (*movti_internal_rex64): Use standard_sse_constant_opcode for
2450 alternative 2.
2451 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
2452 sselog1 type moves.
2453 (*movsi_internal): Ditto.
2454 (*movdi_internal): Ditto. Add ssecvt type moves.
2455
2456 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
2457
2458 PR target/48830
2459 * rtlanal.c (simplify_subreg_regno): Adjust comment.
2460
2461 2011-05-29 Jakub Jelinek <jakub@redhat.com>
2462
2463 PR rtl-optimization/49095
2464 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
2465 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
2466
2467 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2468
2469 PR target/43995
2470 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2471 recurse_p argument. Only follow register copies if it is set,
2472 and prevent mips_find_pic_call_symbol from recursing.
2473 (mips_find_pic_call_symbol): Add a recurse_p argument.
2474 Pass it to mips_pic_call_symbol_from_set.
2475 (mips_annotate_pic_calls): Update accordingly.
2476
2477 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2478
2479 * emit-rtl.c (try_split): Use a loop to search for
2480 NOTE_INSN_CALL_ARG_LOCATIONs.
2481
2482 2011-05-29 Richard Guenther <rguenther@suse.de>
2483
2484 PR tree-optimization/49217
2485 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2486
2487 2011-05-28 Jan Hubicka <jh@suse.cz>
2488
2489 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
2490 length.
2491 (string_slot_free): Remove
2492 (create_output_block): Initialize obstack.
2493 (destroy_output_block): Free obstack.
2494 (lto_string_index): Add PERSISTENT parameter; do not duplicate
2495 the string unless it needs to be added into the hash.
2496 (lto_output_string_with_length): Add persistent attribute;
2497 handle NULL strings.
2498 (lto_output_string): Add PERSISTENT parameter.
2499 (output_string_cst, output_identifier): Simplify.
2500 (lto_output_location_bitpack): Update.
2501 (lto_output_builtin_tree): Update.
2502 * lto-streamer.h (struct output_block): Add obstack.
2503 (lto_output_string, lto_output_string_with_length): Remove
2504 declarations; functions are static now.
2505
2506 2011-05-28 Jan Hubicka <jh@suse.cz>
2507
2508 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
2509 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
2510 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
2511 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
2512 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
2513 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
2514 unpack_ts_decl_with_vis_value_fields,
2515 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
2516 lto_get_builtin_tree): Use enum and variable length i/o.
2517 * basic-block.h (profile_status_d): Add PROFILE_LAST.
2518 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
2519 New functions.
2520 (bp_pack_enum, bp_unpack_enum): New macros.
2521
2522 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2523
2524 * genrecog.c: Remove redundant forward declarations.
2525
2526 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2527
2528 * config.gcc: Deprecate mips*-*-openbsd*.
2529
2530 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2531
2532 PR bootstrap/49195
2533 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
2534 for match_op_dup.
2535
2536 2011-05-27 Andrew Pinski <pinskia@gmail.com>
2537
2538 PR middle-end/48981
2539 * gengtype.c (vec_prefix_type): New function.
2540 (note_def_vec): Use vec_prefix_type and change the length
2541 attribute to be based on the prefix.
2542 * vec.c: Include coretypes.h before vec.h.
2543 (struct vec_prefix): Remove.
2544 (vec_gc_p_reserve): Change the offsetof to sizeof.
2545 (vec_gc_p_reserve_exact): Likewise.
2546 (vec_heap_p_reserve): Likewise.
2547 (vec_heap_p_reserve_exact): Likewise.
2548 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
2549 (vec_stack_p_reserve): Change the offsetof to sizeof.
2550 (vec_stack_p_reserve_exact): Likewise.
2551 * vec.h (struct vec_prefix): New struct definition.
2552 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
2553 (VEC_T_GTY(T,B)): Likewise.
2554 (DEF_VEC_FUNC_P(T)): Use prefix field.
2555 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
2556 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
2557
2558 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2559
2560 PR tree-optimization/46728
2561 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
2562 (powi_as_mults): Add gimple_set_location.
2563 (build_and_insert_call): New.
2564 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
2565 0.5, 0.25, 0.75, 1./3., or 1./6.
2566
2567 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
2568
2569 * doc/contrib.texi: Update copyright years.
2570 (Contributors): Add Zdenek Sojka.
2571
2572 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2573
2574 * c-decl.c (c_push_function_context): Copy the current statement
2575 list stack.
2576 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
2577 (finish_struct): Call building_stmt_list_p instead of checking
2578 cur_stmt_list.
2579 * c-parser.c (c_parser_postfix_expression): Likewise.
2580 * c-typeck.c (c_end_compound_stmt): Likewise.
2581 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
2582 * tree-iterator.c (stmt_list_cache): Change to a VEC.
2583 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
2584 (free_stmt_list): Likewise.
2585 * tree.h (struct tree_statement_list): Include typed_tree instead
2586 of tree_common.
2587 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
2588 as TS_TYPED instead of TS_COMMON.
2589
2590 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2591 Uros Bizjak <ubizjak@gmail.com>
2592
2593 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
2594 (HAVE_AS_IX86_TLSGDPTL): Define.
2595 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
2596 (HAVE_AS_IX86_TLSLDMPLT): Define.
2597 * configure: Regenerate.
2598 * config.in: Regenerate.
2599 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
2600 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
2601 TARGET_SUN_TLS, use @tlsgdplt or @plt.
2602 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
2603 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
2604 @tlsldmplt or @plt.
2605 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
2606
2607 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2608
2609 * sched-int.h (struct _haifa_deps_insn_data): New members cond
2610 and reverse_cond.
2611 (INSN_COND, INSN_REVERSE_COND): New macros.
2612 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
2613 once.
2614 (sched_get_condition_with_rev): Cache the results, and look them up
2615 if possible.
2616 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
2617 are clobbered by the current insn.
2618 * target.def (exposed_pipline): New sched data hook.
2619 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
2620 * doc/tm.texi: Regenerate.
2621
2622 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2623
2624 PR tree-optimization/49170
2625 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
2626 sincos or cexp.
2627
2628 2011-05-27 Richard Guenther <rguenther@suse.de>
2629
2630 PR middle-end/49189
2631 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
2632 of comparisons.
2633
2634 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2635
2636 * haifa-sched.c (sched_scan_info): Remove.
2637 (schedule_block): Call sched_extend_luids rather than sched_init_luids
2638 with NULL args.
2639 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
2640 Remove functions.
2641 (sched_scan): Remove.
2642 (sched_extend_luids): Renamed from luids_extend_insn and no longer
2643 static. All callers changed.
2644 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
2645 static. All callers changed.
2646 (sched_init_luids): Remove all arguments except the first. All
2647 callers changed. Don't use sched_scan.
2648 (haifa_init_h_i_d): Likewise.
2649 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
2650 manually rather than using sched_init_luids. Likewise with
2651 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
2652 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
2653 rather than sched_init_luids with NULL args.
2654 * sel-sched-ir.c (new_insns): Remove variable.
2655 (sched_scan): New static function, previously in haifa-sched.c. Remove
2656 all arguments but the first two; all callers changed.
2657 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
2658 rather than sched_init_luids.
2659 (sel_init_bbs): Remove second argument. All callers changed.
2660 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
2661 with NULL arguments.
2662 (create_insn_rtx_from_pattern): Likewise.
2663 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
2664 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
2665 (sched_init_insn_luid, sched_extend_luids): Declare.
2666 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
2667 declarations.
2668
2669 2011-05-27 Richard Guenther <rguenther@suse.de>
2670
2671 PR middle-end/49177
2672 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2673 A CMP B ? (T) true : (T) false for non-integral types T again.
2674
2675 2011-05-27 Jan Hubicka <jh@suse.cz>
2676
2677 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2678 so 0 means NULL string.
2679 (lto_output_string_with_length): ... here.
2680 (lto_output_string, output_string_cst, output_identifier): Update
2681 handling of NULL strings.
2682 (lto_output_location_bitpack): New function.
2683 (lto_output_location): Use it.
2684 (lto_output_tree_ref): Use output_record_start.
2685 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2686 len values.
2687 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2688 values by 1.
2689 (input_string_internal): ... here;
2690 (input_string_cst, input_identifier, lto_input_string): Update handling
2691 of NULL strings.
2692 (lto_input_location_bitpack): New function
2693 (lto_input_location): Use it.
2694 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2695 values.
2696 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2697 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2698 (bp_pack_value): Sanity check the value range.
2699 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2700 New functions.
2701 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2702 New functions.
2703
2704 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2705
2706 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2707 call_arg_location instructions down the floor.
2708
2709 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2710
2711 PR rtl-optimization/49154
2712 * ira.c (setup_pressure_classes): Process class without sublcasses
2713 as a candidate for pressure classes.
2714
2715 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2716
2717 PR rtl-optimization/48575
2718 * genrecog.c (position_type): New enum.
2719 (position): New structure.
2720 (decision): Use position structure instead of a string.
2721 (root_pos, peep2_insn_pos_list): New variables.
2722 (next_position, compare_positions): New functions.
2723 (new_decision): Use position structures instead of strings.
2724 (maybe_both_true): Likewise.
2725 (change_state): Likewise.
2726 (write_tree): Likewise.
2727 (make_insn_sequence): Likewise.
2728
2729 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2730
2731 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2732 TS_BASE instead of TS_COMMON.
2733 (find_decls_types_r): Check for TS_TYPED structure before looking at
2734 TREE_TYPE.
2735 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2736 Add chain field.
2737 (BLOCK_CHAIN): Use new chain field.
2738
2739 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2740
2741 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2742 moves expensive on Power7 also.
2743
2744 2011-05-26 Richard Guenther <rguenther@suse.de>
2745
2746 * fold-const.c (fold_unary_loc): Remove bogus code.
2747
2748 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2749
2750 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2751 tree_common.
2752 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2753 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2754 TS_BASE instead of TS_COMMON.
2755 * varasm.c (assemble_name): Remove assert.
2756
2757 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2758
2759 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2760 substituted first.
2761 * libgcc-std.ver: Delete file.
2762
2763 2011-05-26 Richard Guenther <rguenther@suse.de>
2764
2765 PR tree-optimization/48702
2766 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2767 only when we know the base address is within bounds.
2768 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2769 assume the base address of TARGET_MEM_REFs is in bounds.
2770
2771 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2772
2773 PR target/49099
2774 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2775 declaration in TARGET_SOLARIS.
2776
2777 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2778
2779 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2780 The instruction is then expanded explicitly.
2781 (supported_compare): Callable instruction.
2782 (compare): Likewise.
2783
2784 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2785
2786 PR c++/49165
2787 * gimplify.c (shortcut_cond_r): Don't special case
2788 COND_EXPRs if they have void type on one of their arms.
2789
2790 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2791
2792 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2793 to reduce duplication, and to achieve a slightly more logical order
2794 of operations.
2795
2796 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2797
2798 PR tree-optimization/49161
2799 * tree-vrp.c (struct case_info): New type.
2800 (compare_case_labels): Sort case_info structs instead of
2801 trees, and not primarily by CASE_LABEL uids but by
2802 label_for_block indexes.
2803 (find_switch_asserts): Put case labels into struct case_info
2804 array instead of TREE_VEC, adjust sorting, compare label_for_block
2805 values instead of CASE_LABELs.
2806
2807 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2808
2809 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2810 ("orndi3_neon"): Likewise.
2811 ("bic<mode>3_neon"): Likewise.
2812
2813 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2814
2815 PR tree-optimization/49038
2816 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2817 Ensure at least one epilogue iteration if required by data
2818 accesses with gaps.
2819 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2820 to mark loops that require peeling for gaps.
2821 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2822 (vect_get_known_peeling_cost): Take peeling for gaps into
2823 account.
2824 (vect_transform_loop): Generate epilogue if required by data
2825 access with gaps.
2826 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2827 loop as requiring an epilogue if there are gaps in the end of
2828 the strided group.
2829
2830 2011-05-25 Ian Lance Taylor <iant@google.com>
2831
2832 * godump.c (go_format_type): Output the first field with a usable
2833 Go type, if any.
2834
2835 2011-05-25 Ian Lance Taylor <iant@google.com>
2836
2837 * godump.c (go_format_type): Check for invalid type names, pointer
2838 target types, and struct field types.
2839
2840 2011-05-25 Jason Merrill <jason@redhat.com>
2841
2842 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2843
2844 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2845
2846 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2847
2848 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2849
2850 * config/i386/i386.md (*movqi_extv_1)): Put back
2851 "register_operand" check in "type" calculation.
2852 (*movqi_extzv_2): Likewise.
2853
2854 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2855
2856 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2857
2858 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2859
2860 PR bootstrap/49160
2861 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2862 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2863 __divxc3, __divtc3): Wrap definitions in #ifndef.
2864
2865 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2866
2867 PR target/49142
2868 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2869 "register_operand" check and replace q_regs_operand with
2870 QIreg_operand in "type" calculation.
2871 (*movqi_extv_1): Likewise.
2872 (*movqi_extzv_2_rex64): Likewise.
2873 (*movqi_extzv_2): Likewise.
2874
2875 * config/i386/predicates.md (QIreg_operand): New.
2876
2877 2011-05-25 Richard Guenther <rguenther@suse.de>
2878
2879 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2880 type-based offset disambiguation, streamline MEM_REF and
2881 TARGET_MEM_REF handling.
2882
2883 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2884
2885 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2886 (bdesc_special_args): Add pause intrinsic.
2887
2888 * config/i386/i386.md (UNSPEC_PAUSE): New.
2889 (pause): Likewise.
2890 (*pause): Likewise.
2891 * config/i386/ia32intrin.h (__pause): Likewise.
2892
2893 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2894 pause intrinsic.
2895
2896 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2897
2898 PR tree-optimization/46728
2899 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2900 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2901
2902 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2903
2904 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2905 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2906 instead of TS_COMMON.
2907
2908 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2909
2910 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2911 LIBGCC2_GNU_PREFIX is defined.
2912 (__N): New macro.
2913 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2914 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2915 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2916 __clz_tab): Define using __N.
2917 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2918 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2919 * target.def (libfunc_gnu_prefix): New hook.
2920 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2921 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2922 * doc/tm.texi: Regenerate.
2923 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2924 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2925 account.
2926 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2927 (init_optabs): Likewise for the bswap libfuncs.
2928 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2929 and divide.
2930 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2931 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2932 * libgcc-std.ver: Remove.
2933 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2934 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2935 libgcc-std.ver.
2936 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2937 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2938 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2939 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2940 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2941 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2942 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2943 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2944 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2945 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2946
2947 2011-05-25 Jan Hubicka <jh@suse.cz>
2948
2949 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2950 (lto_output_tree): Use output_record_start.
2951 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2952 (lto_get_pickled_tree): Use input_record_start.
2953 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2954 (lto_value_range_error): New function.
2955 * lto-streamer.h (lto_value_range_error): Declare.
2956 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2957 (lto_output_enum, lto_input_enum): New macros.
2958
2959 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2960
2961 * common.opt (flag_stack_usage_info): New variable.
2962 (-Wstack-usage): New option.
2963 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2964 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2965 <OPT_fstack_usage>: Likewise.
2966 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2967 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2968 of flag_stack_usage.
2969 (emit_library_call_value_1): Likewise.
2970 * explow.c (allocate_dynamic_stack_space): Likewise.
2971 * function.c (instantiate_virtual_regs ): Likewise.
2972 (prepare_function_start): Likewise.
2973 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2974 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2975 * config/arm/arm.c (arm_expand_prologue): Likewise.
2976 (thumb1_expand_prologue): Likewise.
2977 * config/avr/avr.c (expand_prologue): Likewise.
2978 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2979 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2980 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2981 * config/mips/mips.c (mips_expand_prologue): Likewise.
2982 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2983 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2984 * config/s390/s390.c (s390_emit_prologue): Likewise.
2985 * config/sh/sh.c (sh_expand_prologue): Likewise.
2986 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2987 * config/spu/spu.c (spu_expand_prologue): Likewise.
2988
2989 2011-05-25 Richard Guenther <rguenther@suse.de>
2990
2991 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2992 (gimple_canonical_types_compatible_p): Likewise.
2993
2994 2011-05-25 Jan Hubicka <jh@suse.cz>
2995
2996 PR middle-end/49062
2997 * ipa.c (function_and_variable_visibility): Only add to same
2998 comdat group list if DECL_ONE_ONLY.
2999
3000 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3001
3002 PR rtl-optimization/49014
3003 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3004
3005 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3006
3007 PR target/49128
3008 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3009
3010 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3011
3012 PR rtl-optimization/48757
3013 * ira-build.c (loop_with_eh_edge_p): Rename to
3014 loop_with_complex_edge_p, check edges on complexity, make function
3015 conditional.
3016 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3017 conditional.
3018
3019 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3020
3021 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3022 force flag_ira_share_save_slots to 0.
3023
3024 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3025
3026 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3027 (vt_initialize): Set PROLOGUE_BB unconditionally.
3028 Add block comment about CFA_BASE_RTX machinery.
3029 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3030 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3031
3032 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3033
3034 PR objc/48187
3035 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3036 parsing of syntax error in ObjC instance variable lists. In
3037 particular, avoid an infinite loop if there is a stray ']'.
3038 Updated error message.
3039
3040 2011-05-24 Ian Lance Taylor <iant@google.com>
3041
3042 * godump.c (go_define): Don't accept a string immediately after
3043 another operand.
3044
3045 2011-05-24 Ian Lance Taylor <iant@google.com>
3046
3047 * godump.c (struct godump_container): Add invalid_hash field.
3048 (go_format_type): Return false if type is found in invalid_hash.
3049 (go_output_typedef): Add invalid type to invalid_hash.
3050 (go_finish): Create and delete invalid_hash.
3051
3052 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3053
3054 PR tree-optimization/46728
3055 * tree-ssa-math-opts.c (powi_table): New.
3056 (powi_lookup_cost): New.
3057 (powi_cost): New.
3058 (powi_as_mults_1): New.
3059 (powi_as_mults): New.
3060 (gimple_expand_builtin_powi): New.
3061 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3062 (gate_cse_sincos): Remove sincos/cexp restriction.
3063
3064 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3065
3066 PR target/3746
3067 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3068 mips-tdump native.
3069 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3070 * mips-tdump.c: Likewise.
3071
3072 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3073
3074 PR target/49128
3075 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3076 add -mno-XXX. Handle FMA.
3077
3078 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3079
3080 PR rtl-optimization/48633
3081 * ira-build.c (loop_with_eh_edge_p): New function.
3082 (mark_loops_for_removal): Use it.
3083
3084 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3085
3086 PR rtl-optimization/48971
3087 * ira.c (setup_pressure_classes): Don't check register move cost
3088 for classes with one registers. Don't add pressure class if there
3089 is a pressure class with the same available hard registers.
3090 Check contains_reg_of_mode. Fix a typo in collecting
3091 temp_hard_regset. Ignore hard registers not belonging to a class.
3092
3093 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3094
3095 PR target/49133
3096 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3097
3098 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3099 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3100
3101 PR gcov-profile/48845
3102 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3103
3104 2011-05-24 Richard Guenther <rguenther@suse.de>
3105
3106 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3107 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3108 (gimple_types_compatible_p_1): Adjust.
3109 (iterative_hash_canonical_type): Do not bother about complete vs.
3110 incomplete types.
3111 (gimple_canonical_types_compatible_p): Likewise.
3112
3113 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3114
3115 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3116
3117 2011-05-24 Richard Guenther <rguenther@suse.de>
3118
3119 PR bootstrap/49078
3120 * gimple.c (gimple_register_canonical_type): Revert
3121 previous change.
3122 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3123 does not for a tree for the case where it matters. Cache
3124 pointer-type alias-sets.
3125
3126 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3127
3128 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3129 (OBJS): Remove options.o, opts-common.o and prefix.o.
3130 (OBJS-libcommon-target): New.
3131 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3132 (BACKEND): Include libcommon-target.a.
3133 (MOSTLYCLEANFILES): Include libcommon-target.a.
3134 (libcommon-target.a): New.
3135 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3136 prefix.o.
3137
3138 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3139
3140 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3141 parts of output shared with the driver.
3142 * optc-gen.awk: Don't generate parts of output not shared with the
3143 driver.
3144 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3145 * doc/options.texi (SourcerInclude): Mention options-save.c.
3146 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3147 (OBJS): Add options-save.o.
3148 (options-save.c, options-save.o): New.
3149 (options.o): Update dependencies.
3150 (gcc-options.o): Remove.
3151 (mostlyclean): Remove options-save.c.
3152
3153 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3154
3155 PR debug/49032
3156 * dbxout.c: Include cgraph.h.
3157 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3158 and without value expr, return NULL if no varpool node exists for
3159 it or if it is not needed.
3160 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3161
3162 PR c/49120
3163 * c-decl.c (start_decl): Convert expr to void_type_node.
3164
3165 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3166
3167 PR rtl-optimization/48826
3168 * emit-rtl.c (try_split): When splitting a call that is followed
3169 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3170
3171 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3172
3173 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3174 parameters passed in memory prefer using DECL_INCOMING_RTL over
3175 the pseudos it will be copied into.
3176
3177 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3178
3179 PR target/47315
3180 * config/i386/i386.c (ix86_option_override_internal): Save the
3181 initial options after checking vzeroupper.
3182
3183 2011-05-23 David Li <davidxl@google.com>
3184
3185 PR tree-optimization/48988
3186 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3187 Initialize has_valid_pred for each pred chain.
3188
3189 2011-05-23 Richard Guenther <rguenther@suse.de>
3190
3191 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3192 (iterative_hash_gimple_type): Always hash type names.
3193
3194 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3195
3196 * c-typeck.c (build_function_call_vec): Tweak call to
3197 check_function_arguments.
3198
3199 2011-05-23 Richard Guenther <rguenther@suse.de>
3200
3201 PR tree-optimization/49115
3202 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3203 is not necessarily carried out, do not claim it kills the ref.
3204 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3205
3206 2011-05-23 Richard Guenther <rguenther@suse.de>
3207
3208 PR middle-end/15419
3209 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3210 what pointer types we accept for folding.
3211
3212 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3213
3214 * gthr-gnat.c: Remove.
3215 * gthr-gnat.h: Remove.
3216 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3217 * config/t-freebsd (LIB2ADDEH): Likewise.
3218 * config/t-linux (LIB2ADDEH): Likewise.
3219 * config/t-sol2 (LIB2ADDEH): Likewise.
3220 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3221 * configure.ac (target_thread_file): Remove gnat handling.
3222 * configure: Regenerate.
3223 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3224
3225 2011-05-23 Tristan Gingold <gingold@adacore.com>
3226 Eric Botcazou <ebotcazou@adacore.com>
3227
3228 * gcov.c (create_file_names): If no object directory is specified,
3229 keep the directory of the file.
3230
3231 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3232
3233 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3234 * configure: Regenerate.
3235
3236 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3237
3238 PR middle-end/48973
3239 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3240 failed and the comparison has a single bit signed type, use
3241 constm1_rtx instead of const1_rtx for true value.
3242 (do_store_flag): If ops->type is single bit signed type, disable
3243 signel bit test optimization and pass -1 instead of 1 as last
3244 parameter to emit_store_flag_force.
3245
3246 2011-05-23 Tom de Vries <tom@codesourcery.com>
3247
3248 PR target/45098
3249 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3250 function.
3251 (infer_loop_bounds_from_undefined): Use new function.
3252
3253 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3254
3255 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3256 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3257 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3258 and -O0 otherwise.
3259 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3260
3261 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3262
3263 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3264 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3265 returns true.
3266
3267 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3268
3269 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3270
3271 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3272
3273 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3274 UNSPEC_MOVE_PIC pattern.
3275
3276 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3277
3278 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3279 (sparc-*-rtems*): Likewise.
3280 (sparc64-*-elf*): Likewise.
3281 (sparc64-*-rtems*): Likewise.
3282 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3283 * config/sparc/t-crtin: New file.
3284 * config/sparc/t-sol2 (crti.o): Delete rule.
3285 (crtn.o): Likewise.
3286 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3287 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3288 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3289 (ENDFILE_SPEC): Add crtn.o.
3290
3291 2011-05-22 Tom de Vries <tom@codesourcery.com>
3292
3293 PR middle-end/48689
3294 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3295 CODE_CONTAINS_STRUCT (TS_COMMON).
3296
3297 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3298
3299 PR middle-end/49029
3300 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3301 only after deciding which mode to use.
3302
3303 2011-05-22 Tom de Vries <tom@codesourcery.com>
3304
3305 PR target/45098
3306 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3307 for call to get_shiftadd_cost.
3308
3309 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3310
3311 PR target/49104
3312 * config/i386/cpuid.h (bit_MMXEXT): New define.
3313
3314 2011-05-22 Nick Clifton <nickc@redhat.com>
3315
3316 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3317 initialisation of non-existant args[2] element. Use args[] array
3318 not arg[] array to pass arguments to build_function_type_list.
3319
3320 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
3321
3322 PR tree-optimization/49087
3323 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3324
3325 2011-05-21 Jason Merrill <jason@redhat.com>
3326
3327 PR c++/49092
3328 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3329 static storage duration.
3330
3331 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3332
3333 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3334 frame pointer.
3335
3336 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3337
3338 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3339 false if there are call-saved registers here...
3340 (sparc_can_use_return_insn_p): ...but here instead.
3341 (save_or_restore_regs): Fix thinko.
3342 (sparc_expand_prologue): Use current_function_is_leaf.
3343 (sparc_frame_pointer_required): Likewise.
3344
3345 2011-05-21 Nick Clifton <nickc@redhat.com>
3346
3347 PR target/49098
3348 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3349
3350 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3351
3352 * gengtype.c (walk_type): Implemented "atomic" GTY option.
3353 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3354
3355 2011-05-21 Joseph Myers <joseph@codesourcery.com>
3356
3357 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
3358 * optc-gen.awk: Move common code to opt-read.awk.
3359 * opth-gen.awk: Likewise.
3360 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3361
3362 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
3363
3364 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3365
3366 2011-05-20 Tom de Vries <tom@codesourcery.com>
3367
3368 PR target/45098
3369 * tree-ssa-loop-ivopts.c: Include expmed.h.
3370 (get_shiftadd_cost): New function.
3371 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
3372
3373 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3374
3375 PR bootstrap/49086
3376 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3377 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3378
3379 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3380
3381 * Makefile.in: Update comment referring to $(OBJS-common).
3382
3383 2011-05-20 Ian Lance Taylor <iant@google.com>
3384
3385 * godump.c (go_output_typedef): Put enum constants in the macro
3386 hash table to avoid duplicate Go const definitions.
3387
3388 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3389
3390 * Makefile.in (LIBDEPS): Add libcommon.a.
3391 (LIBS): Likewise.
3392 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
3393 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
3394 pretty-print.o and version.o.
3395 (OBJS-libcommon): New.
3396 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
3397 (BACKEND): Add libcommon.a.
3398 (MOSTLYCLEANFILES): Likewise.
3399 (libcommon.a): New.
3400 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
3401 (cpp$(exeext)): Likewise.
3402 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
3403 pretty-print.o and input.o.
3404 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
3405 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
3406 (errors.o): Remove.
3407 (mips-tfile): Don't explicitly use version.o.
3408 (mips-tdump): Likewise.
3409 (gcov.o): Depend on $(DIAGNOSTIC_H).
3410 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
3411 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
3412 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
3413 * gcov-dump.c: Include intl.h and diagnostic.h.
3414 (main): Initialize diagnostics.
3415 * gcov.c: Include diagnostic.h.
3416 (fnotice): Remove.
3417 (main): Initialize diagnostics.
3418 * lto-wrapper.c: Include diagnostic.h.
3419 (main): Initialize diagnostics.
3420
3421 2011-05-20 Michael Matz <matz@suse.de>
3422
3423 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
3424
3425 2011-05-20 Michael Matz <matz@suse.de>
3426 Richard Guenther <rguenther@suse.de>
3427
3428 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
3429 use lto_streamer_cache_append directly instead of returning a VEC.
3430 (preload_common_node): Remove.
3431 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
3432 track seen nodes.
3433 (lto_streamer_cache_create): Call lto_preload_common_nodes.
3434
3435 2011-05-20 Richard Guenther <rguenther@suse.de>
3436
3437 PR tree-optimization/49079
3438 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
3439 MEM_REFs correctly for the trailing array access detection.
3440 Special case constants the same way as decls for overall size
3441 constraining.
3442
3443 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
3444
3445 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
3446 argument expansion.
3447
3448 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3449
3450 PR tree-optimization/49073
3451 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
3452 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
3453 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
3454
3455 2011-05-20 Richard Guenther <rguenther@suse.de>
3456
3457 PR middle-end/48849
3458 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
3459 of pointer types the same way the middle-end does.
3460
3461 2011-05-20 Richard Guenther <rguenther@suse.de>
3462
3463 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
3464 or pointer-to chains. Delay all fixup to uniquify_nodes.
3465
3466 2011-05-19 Quentin Neill <quentin.neill@amd.com>
3467
3468 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
3469 (fma4_fmaddsub): Likewise
3470
3471 2011-05-19 Jan Hubicka <jh@suse.cz>
3472
3473 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
3474 (GIMPLE_TYPE_PAIR_SIZE): New macro.
3475 (type_pair_cache): New static var.
3476 (lookup_type_pair): Use fixed sized custom hash; make inline.
3477 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
3478 calls of lookup_type_pair.
3479 (print_gimple_types_stats): Remove cache stats.
3480 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
3481 and gtc_ob.
3482
3483 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
3484
3485 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
3486 when TARGET_RDRND is active.
3487 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
3488 Generate dummy SImode target register when target is NULL.
3489
3490 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3491
3492 * config/arm/arm-fpus.def: New.
3493 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
3494 arm-fpus.def.
3495 * config/arm/arm-tables.opt: Regenerate.
3496 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
3497 (arm_option_override): Don't decode FPU name to string here.
3498 * config/arm/arm.opt (mfpu=): Use Enum.
3499 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
3500 Update dependencies.
3501
3502 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3503
3504 * collect2.c: Include diagnostic.h.
3505 (fatal_perror, fatal, error, fancy_abort): Remove.
3506 (main): Set progname. Call xmalloc_set_program_name and
3507 diagnostic_initialize.
3508 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
3509 scan_libraries, resolve_lib_name): Call fatal_error instead of
3510 fatal and fatal_perror.
3511 * collect2.h (error, fatal, fatal_perror): Don't declare.
3512 * tlink.c: Include diagnostic-core.h.
3513 (recompile_files): Call fatal_error instead of fatal_perror.
3514 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
3515 pretty-print.o and input.o.
3516 (collect2.o, tlink.o): Update dependencies.
3517
3518 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3519
3520 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
3521
3522 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3523
3524 PR target/40483
3525 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
3526 COMDAT group syntax, both SPARC and x86 variants.
3527 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
3528 * configure: Regenerate.
3529 * config/sol2.h (TARGET_SOLARIS): Define.
3530 (PUSHSECTION_FORMAT): Remove.
3531 (SECTION_NAME_FORMAT): Define.
3532 * config/sol2.c: Include hashtab.h.
3533 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
3534 expansion, using SECTION_NAME_FORMAT.
3535 (solaris_comdat_htab): New variable.
3536 (struct comdat_entry): Define.
3537 (comdat_hash): New function.
3538 (comdat_eq): New function.
3539 (solaris_elf_asm_comdat_section): New function.
3540 (solaris_define_comdat_signature): New function.
3541 (solaris_code_end): New function.
3542 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
3543 (solaris_code_end): Declare.
3544 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
3545 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
3546 solaris_code_end.
3547 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
3548 Remove ATTRIBUTE_UNUSED.
3549 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
3550 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
3551 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
3552 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
3553 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
3554 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
3555 (PUSHSECTION_FORMAT): Remove.
3556 (SECTION_NAME_FORMAT): Redefine.
3557
3558 2011-05-19 Kai Tietz <ktietz@redhat.com>
3559
3560 * tree-cfg.c (verify_gimple_assign_binary): Barf on
3561 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
3562 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
3563
3564 2011-05-19 Anatoly Sokolov <aesok@post.ru>
3565 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3566
3567 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
3568
3569 2011-05-19 Richard Guenther <rguenther@suse.de>
3570
3571 PR middle-end/48985
3572 * tree-object-size.c (addr_object_size): If the pointed-to
3573 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
3574
3575 2011-05-19 Richard Guenther <rguenther@suse.de>
3576
3577 * gimple.c (gimple_types_compatible_p_1): Compare names of
3578 the types themselves.
3579 (iterative_hash_gimple_type): And hash them that way.
3580 (gimple_register_type_1): If we register a main variant properly
3581 initialize the leader to ourselves.
3582
3583 2011-05-19 Tom de Vries <tom@codesourcery.com>
3584
3585 PR target/45098
3586 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
3587 get_loop_invariant_expr_id.
3588 (get_loop_invariant_expr_id): Use get_expr_id.
3589 (parm_decl_cost): New function.
3590 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
3591 Improve bound cost estimation. Use different inv_expr_id for elim and
3592 express cases.
3593
3594 2011-05-19 Tom de Vries <tom@codesourcery.com>
3595
3596 PR target/45098
3597 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
3598 cost_base.cost == 0.
3599
3600 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
3601
3602 PR target/49002
3603 * config/i386/sse.md
3604 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
3605 load cast.
3606
3607 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3608
3609 PR tree-optimization/49039
3610 * tree-vrp.c (extract_range_from_binary_expr): For
3611 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
3612 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
3613
3614 2011-05-18 Tom de Vries <tom@codesourcery.com>
3615
3616 PR target/45098
3617 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
3618
3619 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
3620
3621 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
3622 (*tls_global_dynamic_64): Ditto.
3623 (*tls_local_dynamic_base_32_gnu): Ditto.
3624 (*tls_local_dynamic_base_64): Ditto.
3625 (tls_initial_exec_64_sun): Ditto.
3626
3627 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
3628
3629 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
3630 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3631 bf592-none.
3632 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3633 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3634 * config/bfin/bfin.c (bfin_cpus): Add bf592.
3635 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3636 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
3637 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
3638 * config/bfin/elf.h (LIB_SPEC): Add bf592.
3639
3640 2011-05-18 Joseph Myers <joseph@codesourcery.com>
3641
3642 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
3643 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
3644 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
3645 target_thread_pointer, arm_structure_size_boundary, struct
3646 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
3647 struct abi_name, arm_all_abis): Remove.
3648 (arm_option_override) Don't process most enumerated option values here.
3649 Don't process target_fpe_name here. Work with integer not string for
3650 structure size boundary; use separate diagnostics for each case.
3651 * config/arm/arm.h (enum float_abi_type, enum
3652 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
3653 to arm-opts.h.
3654 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
3655 arm_structure_size_boundary): Remove.
3656 * config/arm/arm.opt (mabi=): Use Enum and Init.
3657 (arm_abi_type): New Enum and EnumValue entries.
3658 (mfloat-abi=): Use Enum and Init.
3659 (float_abi_type): New Enum and EnumValue entries.
3660 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
3661 (mfp16-format=): Use Enum and Init.
3662 (arm_fp16_format_type): New Enum and EnumValue entries.
3663 (mstructure-size-boundary=): Use UInteger and Init.
3664 (mtp=): Use Enum and Init.
3665 (arm_tp_type): New Enum and EnumValue entries.
3666
3667 2011-05-18 Richard Guenther <rguenther@suse.de>
3668
3669 PR tree-optimization/49018
3670 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3671 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3672 gimple_has_side_effects.
3673
3674 2011-05-18 Richard Guenther <rguenther@suse.de>
3675
3676 * gimple.c (gimple_register_type_1): New function, split out from ...
3677 (gimple_register_type): ... here. Avoid infinite recursion.
3678
3679 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3680
3681 PR tree-optimization/41881
3682 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3683 reduction_chains along with a macro for its access.
3684 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3685 (destroy_loop_vec_info): Free reduction chains.
3686 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3687 (vect_is_slp_reduction): New function.
3688 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3689 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3690 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3691 definition types for reduction chains.
3692 (vect_supported_load_permutation_p): Don't allow permutations for
3693 reduction chains.
3694 (vect_analyze_slp_instance): Support reduction chains.
3695 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3696 (vect_get_constant_vectors): Handle reduction chains.
3697 (vect_schedule_slp_instance): Mark the first statement of the
3698 reduction chain as reduction.
3699
3700 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3701
3702 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3703 names for group elements access.
3704 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3705 reduction chains as well. Remove data reference and interleaving
3706 related words from the fields names.
3707 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3708 elements access.
3709 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3710 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3711 vect_update_interleaving_chain, vect_same_range_drs,
3712 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3713 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3714 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3715 vect_analyze_group_access, vect_analyze_data_ref_access,
3716 vect_create_data_ref_ptr, vect_transform_strided_load,
3717 vect_record_strided_load_vectors): Likewise.
3718 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3719 vect_model_load_cost, vectorizable_store, vectorizable_load,
3720 vect_remove_stores, new_stmt_vec_info): Likewise.
3721 * tree-vect-slp.c (vect_build_slp_tree,
3722 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3723
3724 2011-05-18 Richard Guenther <rguenther@suse.de>
3725
3726 PR middle-end/48989
3727 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3728 operand verification.
3729 (verify_gimple_assign_binary): Likewise.
3730 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3731 to non-1-precision BOOLEAN_TYPEs.
3732
3733 2011-05-18 Tom de Vries <tom@codesourcery.com>
3734
3735 PR target/45098
3736 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3737
3738 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3739
3740 PR tree-optimization/49000
3741 * tree-ssa.c (execute_update_addresses_taken): Call
3742 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
3743 be rewritten and decl has been marked for renaming, reset
3744 the debug stmt.
3745
3746 2011-05-17 Joseph Myers <joseph@codesourcery.com>
3747
3748 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3749 enum_opts_set when testing if attributes have set -mfpmath=.
3750
3751 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3752
3753 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3754
3755 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3756
3757 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3758 info->entry with 0
3759 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3760 id.transform_lang_insert_block with NULL.
3761
3762 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3763
3764 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3765 (output_fp_compare): Change args 3 and 4 to bool.
3766 (ix86_expand_call): Change arg 6 to bool.
3767 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3768 (ix86_attr_length_vex_default): Change arg 3 to bool.
3769 * config/i386/i386.md: Update all uses.
3770 * config/i386/i386.c: Ditto.
3771 (ix86_flags_dependent): Change return type to bool.
3772
3773 2011-05-17 Richard Guenther <rguenther@suse.de>
3774
3775 * gimple.c (type_hash_pair_compare): Fix comparison.
3776
3777 2011-05-17 Richard Guenther <rguenther@suse.de>
3778
3779 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3780 case some more, fix final hash value of the non-singleton case.
3781
3782 2011-05-17 Richard Guenther <rguenther@suse.de>
3783
3784 PR bootstrap/49013
3785 Revert
3786 2011-05-16 Richard Guenther <rguenther@suse.de>
3787
3788 * gimple.c (gimple_types_compatible_p_1): Use names of the
3789 type itself, not its main variant.
3790 (iterative_hash_gimple_type): Likewise.
3791
3792 2011-05-17 Richard Guenther <rguenther@suse.de>
3793
3794 * gimple.c (gimple_register_canonical_type): Use the main-variant
3795 leader for computing the canonical type.
3796
3797 2011-05-17 Nick Clifton <nickc@redhat.com>
3798
3799 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3800 moves.
3801
3802 * config/rx/rx.md: Add peephole to remove redundant extensions
3803 after loads.
3804 (bitset_in_memory): Use rx_restricted_mem_operand.
3805 (bitinvert_in_memory): Likewise.
3806 (bitclr_in_memory): Likewise.
3807
3808 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3809 Nick Clifton <nickc@redhat.com>
3810
3811 * config/rx/rx.md: Add peepholes to match a register move followed
3812 by a comparison of the moved register. Replace these with an
3813 addition of zero that does both actions in one instruction.
3814
3815 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3816
3817 PR target/48986
3818 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3819 predicate to allow CONST_INT.
3820 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3821
3822 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3823
3824 * opts-common.c (opt_enum_arg_to_value): New.
3825 * opts.h (opt_enum_arg_to_value): Declare.
3826 * config/i386/i386.opt (fpmath): Remove.
3827 (mfpmath=): Use Enum, Init and Save.
3828 (fpmath_unit): New Enum and EnumValue entries.
3829 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3830 name for function fpmath state.
3831 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3832 * config/i386/i386.c: Include diagnostic.h.
3833 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3834 (ix86_target_string): Take enum fpmath_unit value instead of string.
3835 (ix86_debug_options): Update call to ix86_target_string.
3836 (ix86_option_override_internal): Don't process fpmath strings here.
3837 (x86_function_specific_save, ix86_function_specific_restore):
3838 Don't handle fpmath state specially.
3839 (ix86_function_specific_print): Pass fpmath state to
3840 ix86_target_string instead of printing in this function.
3841 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3842 Handle enum attributes.
3843 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3844 (ix86_valid_target_attribute_tree): Update option_strings
3845 handling. Handle fpmath as enum option.
3846 (ix86_can_inline_p): Update field names for function fpmath state.
3847 (ix86_expand_builtin): Update call to ix86_target_string.
3848 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3849 (ix86_fpmath): Remove.
3850 * config/i386/t-i386 (i386.o): Update dependencies.
3851
3852 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3853
3854 PR preprocessor/48677
3855 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3856 from decoded_options[0], not from itself.
3857
3858 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3859
3860 * config/i386/constraints.md (z): New constraint.
3861 * config/i386/i386.c (c): New mode attribute.
3862 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3863 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3864 constraint for operand 0.
3865 (*call_vzeroupper): Ditto.
3866 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3867 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3868 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3869 Use "lzm" constraint for operand 0.
3870 (*call_pop_vzeroupper): Ditto.
3871 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3872 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3873 constraint for operand 0.
3874 (*sibcall_vzeroupper): Ditto.
3875 (*sibcall_rex64_ms_sysv): Ditto.
3876 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3877 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3878 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3879 (*sibcall_pop_vzeroupper): Ditto.
3880 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3881 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3882 mode iterator. Use "<c>zm" constraint for operand 1.
3883 (*call_value_vzeroupper): Ditto.
3884 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3885 for operand 1.
3886 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3887 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3888 *call_value_pop_1. Use "lzm" constraint for operand 1.
3889 (*call_value_pop_vzeroupper): Ditto.
3890 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3891 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3892 mode iterator. Use "Uz" constraint for operand 1.
3893 (*sibcall_value_vzeroupper): Ditto.
3894 (*sibcall_value_rex64_ms_sysv): Ditto.
3895 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3896 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3897 constraint for operand 1.
3898 (*sibcall_value_pop_vzeroupper): Ditto.
3899 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3900 and "z" constraint for operand 2.
3901 (*tls_global_dynamic_32_gnu): Ditto.
3902 (*tls_local_dynamic_base_32_gnu): Ditto.
3903 (*tls_local_dynamic_base_64): Ditto.
3904 (*tls_local_dynamic_32_once): Ditto.
3905 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3906 Update all callers.
3907 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3908
3909 2011-05-16 Richard Guenther <rguenther@suse.de>
3910
3911 * gimple.c (gimple_types_compatible_p_1): Use names of the
3912 type itself, not its main variant.
3913 (iterative_hash_gimple_type): Likewise.
3914
3915 2011-05-16 Richard Guenther <rguenther@suse.de>
3916
3917 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3918 always visit pointer target and function result and argument types.
3919
3920 2011-05-16 Jason Merrill <jason@redhat.com>
3921
3922 PR c++/48999
3923 * tree-inline.c (copy_statement_list): Put back recursion.
3924
3925 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3926
3927 PR target/27663
3928 PR target/41076
3929 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3930 * config/avr/avr.md ("*ior<mode>qi.byte0",
3931 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3932
3933 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3934
3935 PR target/45099
3936 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3937 register is needed for a function argument.
3938
3939 2011-05-16 Richard Guenther <rguenther@suse.de>
3940
3941 * gimple.c (struct type_hash_pair): New type.
3942 (type_hash_pair_compare): New function.
3943 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3944
3945 2011-05-16 Revital Eres <revital.eres@linaro.org>
3946
3947 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3948
3949 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3950
3951 * config/i386/i386.md (floating point move splitters): Fix
3952 usage of standard_80387_constant_p.
3953 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3954
3955 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3956
3957 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3958
3959 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3960
3961 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3962 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3963 (tree_ssa_lim_finalize): Likewise.
3964
3965 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3966
3967 * config/i386/constraint.md (Yd, Yx): New register constraints.
3968 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3969 Yd conditional register constraint.
3970 (*movtf_internal): Use standard_sse_constant_opcode.
3971 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3972 Yx conditional register constraint.
3973 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3974 Yd conditional register constraint. Use standard_sse_constant_p to
3975 check for valid SSE constants and call standard_sse_constant_opcode to
3976 output SSE insn.
3977 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3978 constants and call standard_sse_constant_opcode to output SSE insn.
3979 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3980 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3981 optimize_size is set.
3982 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3983
3984 2011-05-14 Tobias Burnus <burnus@net-b.de>
3985
3986 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3987
3988 2011-05-13 Martin Jambor <mjambor@suse.cz>
3989
3990 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3991 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3992 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3993 (evaluate_conditions_for_ipcp_clone): Removed.
3994 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3995 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3996 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3997
3998 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3999
4000 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4001 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4002 lieu of MAY_HAVE_DEBUG_STMTS.
4003 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4004 debug statements if !MAY_HAVE_DEBUG_STMTS.
4005
4006 2011-05-13 Martin Thuresson <martint@google.com>
4007
4008 PR gcov-profile/47793
4009 * libgcov.c (gcov_exit): Support relative profile paths.
4010 * doc/invoke.texi (-fprofile-dir): Update for above change.
4011
4012 2011-05-13 Richard Guenther <rguenther@suse.de>
4013
4014 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4015 type-pair caching, do not compare hashes.
4016
4017 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4018
4019 PR middle-end/48965
4020 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4021 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4022
4023 2011-05-13 Kai Tietz <ktietz@redhat.com>
4024
4025 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4026 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4027 compatible type for TRUTH_NOT_EXPR.
4028
4029 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4030
4031 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4032 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4033 can_create_pseudo_p ().
4034
4035 2011-05-13 Richard Guenther <rguenther@suse.de>
4036
4037 PR lto/48978
4038 * gimple.c (iterative_hash_gimple_type): Revert change in
4039 pointer target and function result and argument hashing.
4040
4041 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4042
4043 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4044 (*movxf_internal_nointeger): Ditto.
4045 (*movdf_internal_rex64): Ditto.
4046 (*movdf_internal): Ditto.
4047 (*movdf_internal_nointeger): Ditto.
4048 (*movsf_internal): Ditto.
4049 (sincos splitters): Use can_create_pseudo ().
4050
4051 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4052
4053 * config/i386/i386-opts.h: New.
4054 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4055 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4056 ix86_section_threshold): Remove.
4057 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4058 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4059 OPT_mbranch_cost_.
4060 (ix86_option_override_internal): Don't decode strings for options
4061 other than -march=, -mtune= and -mfpmath=. Don't allow for
4062 __attribute__ uses in remaining diagnostics for options with
4063 string arguments. Don't check for integer arguments being negative.
4064 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4065 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4066 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4067 ix86_branch_cost, ix86_section_threshold): Remove.
4068 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4069 HeaderInclude.
4070 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4071 but not Var.
4072 (masm=): Use Enum and Init.
4073 (asm_dialect): New Enum and EnumValue entries.
4074 (mbranch-cost=): Use UInteger.
4075 (mlarge-data-threshold=): Use UInteger and Init.
4076 (mcmodel=): Use Enum and Init.
4077 (cmodel): New Enum and EnumValue entries.
4078 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4079 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4080 mregparm=): Use UInteger.
4081 (mstringop-strategy=): Use Enum and Init.
4082 (stringop_alg): New Enum and EnumValue entries.
4083 (mtls-dialect=): Use Enum and Init.
4084 (tls_dialect): New Enum and EnumValue entries.
4085 (mabi=): Use Enum and Init.
4086 (calling_abi): New Enum and EnumValue entries.
4087 (mveclibabi=): Use Enum and Init.
4088 (ix86_veclibabi): New Enum and EnumValue entries.
4089
4090 2011-05-13 Nick Clifton <nickc@redhat.com>
4091
4092 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4093 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4094
4095 2011-05-13 Kai Tietz <ktietz@redhat.com>
4096
4097 PR middle-end/48984
4098 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4099 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4100 (gimple_boolify): Check for cast for boolean_type_node instead for
4101 BOOLEAN_TYPE.
4102
4103 2011-05-13 Richard Guenther <rguenther@suse.de>
4104
4105 PR tree-optimization/48172
4106 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4107 multiplying by number of iterations for equal step.
4108 (vect_create_cond_for_alias_checks): Likewise.
4109
4110 2011-05-13 Andreas Schwab <schwab@redhat.com>
4111
4112 * configure.ac: Use AS_HELP_STRING throughout.
4113 * configure: Regenerate.
4114
4115 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4116
4117 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4118 (ix86_emit_restore_regs_using_mov): Likewise.
4119 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4120
4121 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4122
4123 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4124 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4125 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4126 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4127 RTX_OK_FOR_OLO10_P): ...here.
4128 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4129 SYMBOLIC_CONST.
4130
4131 2011-05-12 Kai Tietz <ktietz@redhat.com>
4132
4133 * gimplify.c (gimple_boolify): Re-boolify expression
4134 arguments even if expression type is of kind BOOLEAN_TYPE.
4135 (gimplify_boolean_expr): Removed.
4136 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4137 and XOR. Additional take care that we keep expression's type.
4138 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4139 of TRUTH_AND|OR|XOR_EXPR.
4140
4141 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4142
4143 PR tree-optimization/48975
4144 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4145 on all bbs here and free and clear ifc_bbs at the end.
4146
4147 2011-05-12 Richard Guenther <rguenther@suse.de>
4148
4149 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4150 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4151 until after simple checks.
4152 (gimple_types_compatible_p): Likewise.
4153 (iterative_hash_gimple_type): Always hash pointer targets
4154 and function return and argument types.
4155 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4156 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4157 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4158 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4159 completely in the simple compare section.
4160 (gimple_register_canonical_type): Query the cache again after
4161 registering.
4162
4163 2011-05-12 Richard Guenther <rguenther@suse.de>
4164
4165 PR tree-optimization/48172
4166 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4167 the number of iterations from the segment size calculation.
4168 (vect_create_cond_for_alias_checks): Adjust.
4169
4170 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4171
4172 PR debug/48967
4173 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4174 if validate_subreg fails.
4175
4176 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4177
4178 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4179 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4180 early.
4181
4182 2011-05-12 DJ Delorie <dj@redhat.com>
4183
4184 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4185 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4186 created builtin into rx_builtins array.
4187 (rx_builtin_decl): New function.
4188 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4189
4190 2011-05-12 DJ Delorie <dj@redhat.com>
4191 Nick Clifton <nickc@redhat.com>
4192
4193 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4194 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4195 (rx_is_legitimate_address): Add pre-decrement and post-increment
4196 addressing in HImode and QImode. Fix test for out of range
4197 REG+INT addressing.
4198 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4199 (rx_align_for_label): Test label before extracting its usage count.
4200 (rx_adjust_insn_lengths): Fix selection of insn codes.
4201 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4202
4203 2011-05-11 Jason Merrill <jason@redhat.com>
4204
4205 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4206
4207 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4208
4209 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4210 reindent the subsequent block.
4211
4212 2011-05-11 Satoru Takabayashi <satorux@google.com>
4213 Paul Pluzhnikov <ppluzhnikov@google.com>
4214
4215 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4216 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4217 * config.in: Add LINKER_HASH_STYLE.
4218 * configure.ac: Add --with-linker-hash-style.
4219 * configure: Regenerate.
4220
4221 2011-05-11 Richard Guenther <rguenther@suse.de>
4222
4223 PR middle-end/48964
4224 * gimple.c (iterative_hash_canonical_type): Fix typo.
4225
4226 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4227
4228 * config/i386/i386.c (legitimize_tls_address)
4229 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4230 expanders directly for TARGET_GNU2_TLS. Determine pic and
4231 __tls_get_addr symbol reference here. Update call to
4232 gen_tls_global_dynamic_{32,64} for added arguments.
4233 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4234 expanders directly for TARGET_GNU2_TLS. Determine
4235 __tls_get_addr symbol reference here. Update call to
4236 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4237 unique UNSPEC REG_EQUIV to libcall block.
4238 (ix86_tls_get_addr): Declare static.
4239 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4240 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4241 Do not determine pic and __tls_get_addr symbol reference here. Do not
4242 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4243 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4244 (tls_global_dynamic_64): Add operand 2. Do not determine
4245 __tls_get_addr symbol reference here. Do not call
4246 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4247 (tls_local_dynamic_base64): Ditto for operand 1.
4248
4249 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4250
4251 * function.c (expand_function_start): Initialize stack_check_probe_note
4252 only if the generic stack checking mechanism is used.
4253
4254 2011-05-11 Richard Guenther <rguenther@suse.de>
4255
4256 PR tree-optimization/15256
4257 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4258 (A & B) | C, combine (A op CST1) op CST2.
4259 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4260 visit assigns that have uses.
4261
4262 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4263
4264 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4265 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4266 (unpack_ts_type_common_value_fields): ...this. Update comment.
4267 (unpack_value_fields): Adjust for renaming.
4268 (lto_input_ts_type_tree_pointers): Split into...
4269 (lto_input_ts_type_common_tree_pointer): ...this and...
4270 (lto_input_ts_type_non_common_tree_pointers): ...this.
4271 (lto_input_tree_pointers): Adjust for above split.
4272 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4273 (pack_ts_type_common_value_fields): ...this. Update comment.
4274 (lto_output_ts_type_tree_pointers): Split into...
4275 (lto_output_ts_type_common_tree_pointers): ...this and...
4276 (lto_output_ts_type_non_common_tree_pointers): ...this.
4277 (lto_output_tree_pointers): Adjust for above split.
4278 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4279 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4280 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4281 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4282 Define.
4283 (struct tree_type): Split into...
4284 (struct tree_type_common: ...this and...
4285 (struct tree_type_with_lang_specific): ...this and...
4286 (struct tree_type_non_common): ...this. Adjust accessor macros
4287 accordingly.
4288 (TYPE_VALUES_RAW): Define.
4289 (union tree_node): Update for above changes.
4290 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4291 TS_TYPE_NON_COMMON.
4292 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4293 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4294 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4295 * treestructu.def (TS_TYPE): Remove.
4296 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4297 Define.
4298
4299 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4300
4301 PR debug/48159
4302 * tree-ssa.c (reset_debug_uses): New function.
4303 * tree-flow.h (reset_debug_uses): New prototype.
4304 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4305 * tree-loop-distribution.c (generate_loops_for_partition): Call
4306 reset_debug_uses on the stmts that will be removed. Keep around
4307 all debug stmts, don't count them as bits in partition bitmap.
4308 (generate_builtin): Don't count debug stmts or labels as bits in
4309 partition bitmap.
4310
4311 2011-05-11 Richard Guenther <rguenther@suse.de>
4312
4313 * gimple.c (gimple_type_hash_1): Merge with ...
4314 (gimple_type_hash): ... this.
4315 (gtc_visit): Remove mode parameter and simplify accordingly.
4316 (gimple_types_compatible_p_1): Likewise.
4317 (gimple_types_compatible_p): Likewise.
4318 (iterative_hash_gimple_type): Likewise.
4319 (visit): Likewise.
4320 (gimple_type_eq): Adjust.
4321
4322 2011-05-11 Revital Eres <revital.eres@linaro.org>
4323
4324 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4325 enters the branch create an anti edge in the opposite direction
4326 to prevent the creation of reg-moves.
4327 * modulo-sched.c: Adjust comment to reflect the fact we are
4328 scheduling closing branch.
4329 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4330 (stage_count): New field in struct partial_schedule.
4331 (calculate_stage_count): New function.
4332 (normalize_sched_times): Rename to reset_sched_times and handle
4333 incrementing the sched time of the nodes by a constant value
4334 passed as parameter.
4335 (duplicate_insns_of_cycles): Skip closing branch.
4336 (sms_schedule_by_order): Schedule closing branch.
4337 (ps_insn_find_column): Handle closing branch.
4338 (sms_schedule): Call reset_sched_times and adjust the code to
4339 support scheduling of the closing branch.
4340 (ps_insert_empty_row): Update calls to normalize_sched_times
4341 and rotate_partial_schedule functions.
4342
4343 2011-05-11 Richard Guenther <rguenther@suse.de>
4344
4345 PR middle-end/48953
4346 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4347
4348 2011-05-11 Joseph Myers <joseph@codesourcery.com>
4349
4350 * opts.c (finish_options): Move warning settings from process_options.
4351 * toplev.c (process_options): Move warning settings to finish_options.
4352
4353 2011-05-11 Richard Guenther <rguenther@suse.de>
4354
4355 PR tree-optimization/18041
4356 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4357 (simplify_bitwise_binary): ... this. Handle operand conversions
4358 by applying them to the result instead.
4359 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
4360
4361 2011-05-11 Richard Guenther <rguenther@suse.de>
4362
4363 * gimple.c (gimple_canonical_types_compatible_p): Split out
4364 from gimple_types_compatible_p and friends. Do not recurse
4365 to pointed-to types.
4366 (gimple_canonical_type_eq): Use it.
4367 (iterative_hash_canonical_type): Split out from
4368 iterative_hash_gimple_type and friends. Do not recurse
4369 to pointed-to types.
4370 (gimple_canonical_type_hash): Use it, allocate the hash here.
4371
4372 2011-05-11 Revital Eres <revital.eres@linaro.org>
4373
4374 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4375 recognizing doloop.
4376
4377 2011-05-11 Revital Eres <revital.eres@linaro.org>
4378
4379 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4380 instead of PREV_INSN.
4381
4382 2011-05-11 Revital Eres <revital.eres@linaro.org>
4383
4384 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4385 * loop-doloop.c (doloop_condition_get): Likewise.
4386 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4387 (doloop_end): New.
4388 * config/arm/arm.md (*addsi3_compare0): Remove "*".
4389
4390 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4391
4392 * tree.def (CASE_LABEL_EXPR): Add an operand.
4393 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
4394
4395 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4396
4397 * c-decl.c (c_override_global_bindings_to_false): Remove.
4398 (global_bindings_p): Don't check
4399 c_override_global_bindings_to_false.
4400 * c-tree.h (c_override_global_bindings_to_false): Remove.
4401 * c-typeck.c (composite_type): Don't set
4402 c_override_global_bindings_to_false.
4403
4404 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4405
4406 PR target/48857, 48495
4407 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
4408 (VSX_MODE): Ditto.
4409 (VSX_MOVE_MODE): Ditto.
4410 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
4411 VSX vector types. Add V2DImode.
4412 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
4413 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
4414 (MODES_TIEABLE_P): Ditto.
4415
4416 * config/rs6000/rs6000.c (rs6000_emit_move): Use
4417 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
4418 VSX_VECTOR_MODE.
4419 (init_cumulative_args): Ditto.
4420 (rs6000_function_arg_boundary): Ditto.
4421 (rs6000_function_arg_advance_1): Ditto.
4422 (rs6000_function_arg): Ditto.
4423 (rs6000_function_ok_for_sibcall): Ditto.
4424 (emit_frame_save): Ditto.
4425 (rs6000_function_value): Ditto.
4426 (rs6000_libcall_value): Ditto.
4427
4428 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4429
4430 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4431 i386/darwin-lib.h to $libgcc_tm_file.
4432 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
4433
4434 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4435
4436 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4437
4438 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4439
4440 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
4441 * config/rs6000/rs6000-tables.opt: New file (generated).
4442 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
4443 rs6000/rs6000-tables.opt to extra_options.
4444 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
4445 * config/rs6000/rs6000.c (rs6000_select): Remove.
4446 (processor_target_table): Move contents to rs6000-cpus.def.
4447 (darwin_rs6000_override_options): Check
4448 global_options_set.x_rs6000_cpu_index instead of
4449 rs6000_select[1].string.
4450 (rs6000_option_override_internal): Likewise.
4451 (rs6000_handle_option): Don't assert that global structures are in
4452 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
4453 (rs6000_default_cpu): New variable.
4454 (rs6000_file_start): Set it instead of local default_cpu. Check
4455 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
4456 global_options_set.x_rs6000_tune_index instead of rs6000_select.
4457 (rs6000_darwin_file_start): Check rs6000_default_cpu and
4458 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
4459 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
4460 rs6000_select): Remove.
4461 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
4462 Remove.
4463 (mcpu=, mtune=): Use Var, Init, Enum and Save.
4464 * config/rs6000/t-rs6000
4465 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
4466 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4467 global_options_set.x_rs6000_cpu_index instead of
4468 rs6000_select[1].string.
4469 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4470 global_options_set.x_rs6000_cpu_index instead of
4471 rs6000_select[1].string.
4472
4473 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4474
4475 * config.gcc (libgcc_tm_file): Define instead of including files
4476 from ../../libgcc/config/ in tm_file.
4477 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
4478 * configure: Regenerate.
4479 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
4480 libgcc_tm.h, cs-libgcc_tm.h): New.
4481 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
4482 (clean): Remove libgcc_tm.h.
4483 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
4484 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
4485 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
4486
4487 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
4488
4489 PR target/48896
4490 * config/avr/avr.c (avr_ret_register): Return unsigned int
4491 instead of int.
4492 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
4493 it to avr_libcall_value.
4494 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
4495 expand_expr.
4496 (avr_expand_binop_builtin): Ditto.
4497 (avr_expand_unop_builtin): Ditto.
4498
4499 2011-05-10 DJ Delorie <dj@redhat.com>
4500
4501 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
4502 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
4503 * config/rx/rx.c (rx_align_for_label): Add label and
4504 uses_threshold parameters. Do not align when the label is not
4505 used enough.
4506 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
4507
4508 2011-05-10 Richard Guenther <rguenther@suse.de>
4509
4510 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
4511 a series of conversions and apply foldings similar to what
4512 fold-const does.
4513 (tree_ssa_forward_propagate_single_use_vars): Call it.
4514
4515 2011-05-10 Jakub Jelinek <jakub@redhat.com>
4516
4517 PR tree-optimization/48611
4518 PR tree-optimization/48794
4519 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
4520 referenced from RESX or EH_DISPATCH arguments.
4521
4522 PR debug/48928
4523 * dfp.c (decimal_to_decnumber): Handle conversion from
4524 dconst{1,2,m1,half}.
4525
4526 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4527
4528 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
4529 for !flag_prefer_avx128.
4530 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
4531
4532 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4533
4534 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
4535 (fold_ternary_loc): Use expr_location_or.
4536
4537 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
4538
4539 PR debug/48853
4540 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
4541 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
4542 Pmode and mem_mode is not VOIDmode.
4543
4544 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
4545
4546 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
4547 TYPE_QUAL_RESTRICT): Convert to enum.
4548
4549 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4550
4551 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
4552 (const_pow2_1_to_8_operand): Ditto.
4553 (const_pow2_1_to_128_operand): Ditto.
4554 (const_pow2_1_to_32768_operand): Ditto.
4555 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
4556 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
4557 in insn constraint to check integer value of operand 3.
4558 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
4559
4560 (PINSR_MODE): New mode iterator.
4561 (sse2p4_1): New mode attribute.
4562 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
4563 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
4564 iterator. Use const_int_operand instead of
4565 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
4566 exact_log2 in insn constraint to check integer value of operand 3.
4567
4568 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4569
4570 * config/i386/sse.md (blendbits): Remove mode attribute.
4571 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4572 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4573 Check integer value of operand 3 in insn constraint.
4574
4575 2011-05-09 Richard Guenther <rguenther@suse.de>
4576
4577 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
4578 for diagnostics.
4579 (lto_symtab_merge): Likewise. Do not register types here.
4580 (lto_symtab_merge_decls_2): Likewise.
4581 (lto_symtab_merge_decls_1): Likewise.
4582 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
4583 * gimple.c (enum gtc_mode): Declare.
4584 (gimple_types_compatible_p): Make static.
4585
4586 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4587
4588 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
4589 temporary register to match Pmode.
4590
4591 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4592
4593 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
4594 and *vec_concatv4si_1_avx.
4595
4596 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4597
4598 PR rtl-optimization/48927
4599 * ira-conflicts.c (commutative_constraint_p): Use
4600 recog_data.alternative_enabled_p to disable alternatives where
4601 "enabled" attribute is false.
4602 (get_dup_num): Ditto.
4603 * ira-lives.c (single_reg_class): Ditto.
4604 (ira_implicitly_set_insn_hard_regs): Ditto.
4605
4606 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4607
4608 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
4609 (dataflow_set_preserve_mem_locs): Likewise.
4610
4611 2011-05-09 Philipp Thomas <pth@suse.de>
4612
4613 * config/mep/mep.c (mep_validate_vliw): Syntax description
4614 should not be translated.
4615
4616 2011-05-09 Joseph Myers <joseph@codesourcery.com>
4617
4618 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
4619 * config/mips/mips-tables.opt: New file (generated).
4620 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
4621 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
4622 MIPS_ARCH_OPTION_NATIVE): Define.
4623 * config/mips/mips.c (mips_cpu_info_table): Move contents to
4624 mips-cpus.def.
4625 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
4626 mips_parse_cpu): Remove.
4627 (mips_cpu_info_from_opt, mips_default_arch): New.
4628 (mips_handle_option): Don't assert that global structures are in
4629 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
4630 (mips_option_override): Use new variables and functions to set
4631 state of these options. Use strcmp to check for individual CPU names.
4632 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
4633 definition.
4634 * config/mips/mips.opt (march=): Use ToLower and Enum.
4635 (mips): Use ToLower, Enum and Var.
4636 (mtune=): Use ToLower and Enum.
4637 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
4638
4639 2011-05-08 Jan Hubicka <jh@suse.cz>
4640
4641 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
4642 Arrange type pairs to be UID ordered.
4643 (gimple_lookup_type_leader): Make inline.
4644
4645 2011-05-09 Nick Clifton <nickc@redhat.com>
4646
4647 PR target/48899
4648 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
4649 PROCESSOR_DEFAULT.
4650
4651 PR target/48897
4652 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
4653 variable 's'.
4654
4655 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
4656
4657 * combine.c (simplify_comparison): Abstract out parts into...
4658 (simplify_compare_const): ... new function.
4659 (try_combine): Generalize parallel arithmetic/compare combining
4660 to call simplify_compare_const() and CANONICALIZE_COMPARE().
4661
4662 2011-05-08 Jan Hubicka <jh@suse.cz>
4663
4664 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4665 (cgraph_create_virtual_clone): Call hooks once virtual clone
4666 is finished.
4667 * cgraph.h (cgraph_clone_node): Update prototype.
4668 * ipa-cp.c (ipcp_estimate_growth): Use
4669 estimate_ipcp_clone_size_and_time.
4670 * ipa-inline-transform.c (clone_inlined_nodes): Update.
4671 * lto-cgraph.c (input_node): Update.
4672 * ipa-inline.c (recursive_inlining): Update.
4673 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4674 (evaluate_conditions_for_known_args): Break out from ...
4675 (evaluate_conditions_for_edge): ... here.
4676 (evaluate_conditions_for_ipcp_clone): New function.
4677 (inline_node_duplication_hook): Update clone summary based
4678 on parameter map.
4679 (estimate_callee_size_and_time): Rename to ...
4680 (estimate_node_size_and_time): take NODE instead of EDGE;
4681 take POSSIBLE_TRUTHS as argument.
4682 (estimate_callee_size_and_time): Update.
4683 (estimate_ipcp_clone_size_and_time): New function.
4684 (do_estimate_edge_time): Update.
4685
4686 2011-05-08 Richard Guenther <rguenther@suse.de>
4687
4688 PR middle-end/48908
4689 PR middle-end/48905
4690 * expmed.c (expand_shift_1): Compute adjusted constant shift
4691 amount manually.
4692
4693 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4694
4695 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4696
4697 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4698
4699 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4700
4701 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4702
4703 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4704
4705 2011-05-07 Jan Hubicka <jh@suse.cz>
4706
4707 * ipa-inline-transform.c (inline_call): Account when program size
4708 decreases.
4709 * ipa-inline.c (relative_time_benefit): New function.
4710 (edge_badness): Reorganize to be power 2 based; fix thinko when
4711 computing badness for negative growth; update comments to match
4712 reality; better dumps.
4713
4714 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4715
4716 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4717 type to bool and adjust comment.
4718 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4719 (fold_mathfn_compare): Remove calls to global_bindings_p.
4720 (fold_inf_compare): Likewise.
4721 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4722 * c-tree.h (global_bindings_p): Adjust prototype.
4723 * c-decl.c (global_bindings_p): Return bool and simplify.
4724
4725 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
4726
4727 PR tree-optimization/48837
4728 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4729 when accumulator transformation is performed.
4730
4731 2011-05-06 Jan Hubicka <jh@suse.cz>
4732
4733 * i386.h (ix86_tune_indices): Add
4734 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4735 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4736 * i386.c (initial_ix86_tune_features): Add
4737 X86_SOFTARE_PREFETCHING_BENEFICIAL.
4738 (software_prefetching_beneficial_p): Remove predicate.
4739 (ix86_option_override_internal): Use new macro.
4740
4741 2011-05-06 Jan Hubicka <jh@suse.cz>
4742
4743 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4744
4745 2011-05-06 Jan Hubicka <jh@suse.cz>
4746
4747 * cgraph.c (cgraph_add_thunk): Create real function node instead
4748 of alias node; finalize it and mark needed/reachale; arrange visibility
4749 to be right and add it into the corresponding same comdat group list.
4750 (dump_cgraph_node): Dump thunks.
4751 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4752 cgraph_function_with_gimple_body_p,
4753 cgraph_first_function_with_gimple_body,
4754 cgraph_next_function_with_gimple_body): New functions.
4755 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4756 New macros.
4757 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4758 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4759 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4760 devirtualization when optimizing.
4761 (verify_cgraph_node): Verify thunks.
4762 (cgraph_analyze_function): Analyze thunks.
4763 (cgraph_mark_functions_to_output): Output thunks only in combination
4764 with function they are assigned to.
4765 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4766 alias into normal node.
4767 (assemble_thunks): New functoin.
4768 (cgraph_expand_function): Use it.
4769 * lto-cgraph.c (lto_output_node): Stream thunks.
4770 (input_overwrite_node): Stream in thunks.
4771 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4772 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4773 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4774 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4775 (inline_analyze_function): Do not care about thunk jump functions.
4776 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4777 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4778 cgraph_function_with_gimple_body_p.
4779 * passes.c (do_per_function_toporder): Use
4780 cgraph_function_with_gimple_body_p.
4781 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4782 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4783 (function_called_by_processed_nodes_p): Likewise.
4784
4785 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4786
4787 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4788 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4789 entries.
4790 (mabi=): Replace with separate entries for mabi=altivec,
4791 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4792 mabi=ieeelongdouble and mabi=ibmlongdouble.
4793 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4794 check for -mabi=spe without SPE ABI support here.
4795 (rs6000_handle_option): Replace OPT_mabi_ handling with
4796 OPT_mabi_altivec and OPT_mabi_spe handling.
4797
4798 2011-05-06 Cary Coutant <ccoutant@google.com>
4799
4800 * dwarf2out.c (contains_subprogram_definition): New function.
4801 (should_move_die_to_comdat): Call it.
4802
4803 2011-05-06 Jeff Law <law@redhat.com>
4804
4805 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4806 remove_ctrl_stmt_and_useless_edges.
4807 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4808 (fixup_template_block, thread_single_edge): Likewise.
4809 (mark_threaded_blocks): Use THREAD_TARGET.
4810
4811 2011-05-06 Alan Modra <amodra@gmail.com>
4812
4813 PR target/48900
4814 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4815 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4816
4817 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4818
4819 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4820 constraint modifier to "r".
4821
4822 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4823
4824 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4825 fall through for OPT_mcmodel_.
4826
4827 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4828
4829 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4830 instruction sizes.
4831 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4832
4833 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4834
4835 PR target/47930
4836 * config/arm/arm.opt (marm): Document it.
4837 (mthumb): Reject negative variant.
4838
4839 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4840
4841 PR target/48898
4842 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4843 Fix typo in "ccvt" variable name.
4844
4845 2011-05-06 Tristan Gingold <gingold@adacore.com>
4846
4847 PR target/48895
4848 * config/vms/vms-ar.c (main): Remove cwd variable.
4849
4850 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4851
4852 PR debug/48902
4853 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4854
4855 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4856
4857 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4858 * gimplify.c (gimplify_switch_expr): Likewise.
4859 * omp-low.c (expand_omp_sections): Likewise.
4860 * tree-eh.c (lower_try_finally_switch): Likewise.
4861 (lower_eh_dispatch): Likewise.
4862 * tree.h (build_case_label): Declare.
4863 * tree.c (build_case_label): Define.
4864
4865 2011-05-05 Jason Merrill <jason@redhat.com>
4866
4867 PR c++/40975
4868 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4869 (copy_statement_list): Don't recurse.
4870 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4871 STATEMENT_LIST.
4872
4873 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4874
4875 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4876 through from -mfpu= handling.
4877 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4878
4879 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4880
4881 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4882 POST_MODIFY.
4883
4884 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4885
4886 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4887 for 11.31.
4888 (hppa[12]*-*-hpux11*): Ditto.
4889 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4890 * config/ia64/hpux-unix2003.h: New.
4891 * config/pa/pa-hpux1131.opt: New.
4892 * config/pa/pa-hpux1131.h: New.
4893 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4894 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4895 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4896
4897 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4898
4899 PR debug/48853
4900 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4901 instead of mode as 3rd argument to recursive call.
4902 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4903 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4904 VOIDmode.
4905 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4906 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4907 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4908 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4909
4910 2011-05-05 Julian Brown <julian@codesourcery.com>
4911
4912 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4913 parenthesis in D-register case.
4914
4915 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4916
4917 * opt-functions.awk (var_type_struct): Handle Enum options.
4918 * optc-gen.awk: Don't check range of variables of character type.
4919 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4920 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4921 rs6000_sdata_name, rs6000_explicit_options): Remove.
4922 (rs6000_option_override_internal): Check for -malign-power here.
4923 Use global_options_set instead of rs6000_explicit_options.
4924 (rs6000_parse_fpu_option): Remove.
4925 (rs6000_handle_option): Access variables via opts and opts_set
4926 pointers. Use error_at and warning_at. Add fall-through
4927 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4928 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4929 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4930 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4931 here. Don't use rs6000_parse_fpu_option.
4932 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4933 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4934 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4935 (mrecip=): Use Var.
4936 (mspe): Use Var and Save.
4937 (mtraceback=): Use Enum and Var.
4938 (rs6000_traceback_type): New Enum and EnumValue entries.
4939 (mfloat-gprs=): Use Enum, Var and Save.
4940 (rs6000_float_gprs): New Enum and EnumValue entries.
4941 (mlong-double-): use Var and Save.
4942 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4943 (malign-): Use Enum and Var.
4944 (rs6000_alignment_flags): New Enum and EnumValue entries.
4945 (mfpu=): Use Enum.
4946 (fpu_type_t): New Enum and EnumValue entries.
4947 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4948 global_options_set instead of rs6000_explicit_options.
4949 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4950 global_options_set instead of rs6000_explicit_options.
4951 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4952 global_options_set instead of rs6000_explicit_options.
4953 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4954 global_options_set instead of rs6000_explicit_options.
4955 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4956 global_options_set instead of rs6000_explicit_options.
4957 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4958 global_options_set instead of rs6000_explicit_options.
4959 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4960 definition.
4961 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4962 global_options_set instead of rs6000_explicit_options.
4963 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4964 (rs6000_cmodel): New Enum and EnumValue entries.
4965 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4966 global_options_set instead of rs6000_explicit_options.
4967 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4968 (mtls-size=): Use Enum and Var.
4969 (rs6000_tls_size): New Enum and EnumValue entries.
4970
4971 2011-05-05 Michael Matz <matz@suse.de>
4972
4973 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4974 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4975 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4976 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4977 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4978 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4979 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4980 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4981 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4982 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4983 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4984 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4985 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4986 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4987 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4988 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4989
4990 2011-05-05 Richard Guenther <rguenther@suse.de>
4991
4992 * expmed.c (expand_variable_shift): Rename to ...
4993 (expand_shift_1): ... this. Take an expanded shift amount.
4994 For rotates recurse directly not building trees for the shift amount.
4995 (expand_variable_shift): Wrap around expand_shift_1.
4996 (expand_shift): Adjust.
4997
4998 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4999
5000 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5001
5002 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5003
5004 * tree.h (get_pending_sizes): Remove prototype.
5005 (put_pending_size): Likewise.
5006 (put_pending_sizes): Likewise.
5007 * stor-layout.c (pending_sizes): Delete.
5008 (get_pending_sizes): Likewise.
5009 (put_pending_size): Likewise.
5010 (put_pending_sizes): Likewise.
5011 (variable_size): Do not call put_pending_size and tidy up.
5012 * function.h (struct function): Remove dont_save_pending_sizes_p.
5013 * lto-streamer-in.c (input_function): Do not stream it.
5014 * lto-streamer-out.c (output_function): Likewise.
5015 * tree-inline.c (initialize_cfun): Do not copy it.
5016 * c-decl.c (store_parm_decls): Do not set it.
5017 * omp-low.c (create_task_copyfn): Likewise.
5018 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5019
5020 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5021
5022 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5023 conditions.
5024 (*movdf_internal): Ditto.
5025 (*movdf_internal_nointeger): Ditto.
5026 (*movsf_internal): Ditto.
5027
5028 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5029
5030 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5031 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5032 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5033 (c_variable_size): Remove.
5034 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5035 call put_pending_sizes.
5036 (get_parm_info): Add parameter expr. Use it to set
5037 arg_info->pending_sizes.
5038 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5039 get_pending_sizes.
5040 * c-parser.c (c_parser_parms_declarator): Update call to
5041 c_parser_parms_list_declarator.
5042 (c_parser_parms_list_declarator): Take parameter expr. Update
5043 call to push_parm_decl. Update recursive call. Don't call
5044 get_pending_sizes. Update calls to get_parm_info.
5045 (c_parser_objc_method_definition): Update calls to
5046 c_parser_objc_method_decl and objc_start_method_definition.
5047 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5048 (c_parser_objc_method_decl): Add parameter expr. Update call to
5049 grokparm.
5050 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5051 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5052 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5053
5054 2011-05-05 Michael Hope <michael.hope@linaro.org>
5055
5056 PR pch/45979
5057 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5058 __ARM_EABI__ hosts.
5059
5060 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5061
5062 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5063 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5064 (spu_output_mi_thunk): New function.
5065
5066 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5067
5068 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5069 targetm.asm_out.print_operand.
5070 * config/sol2.c: Include target.h.
5071
5072 2011-05-04 Jan Hubicka <jh@suse.cz>
5073
5074 * ipa-inline.c (reset_edge_caches): New function.
5075 (update_caller_keys): Add check_inlinablity_for; do not
5076 reset edge caches; remove now unnecesary loop.
5077 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5078 (update_all_callee_keys): Likewise.
5079 (inline_small_functions): Sanity check cache; update code
5080 recomputing it.
5081
5082 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5083
5084 PR rtl-optimization/47612
5085 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5086 as the last insn of the sequence to be moved.
5087
5088 2011-05-04 Tobias Burnus <burnus@net-b.de>
5089
5090 PR fortran/48864
5091 * doc/invoke.texi (Ofast): Document that it
5092 enables Fortran's -fno-protect-parens.
5093
5094 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5095
5096 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5097
5098 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5099
5100 * stor-layout.c (variable_size): Do not issue errors.
5101
5102 2011-05-04 Richard Guenther <rguenther@suse.de>
5103
5104 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5105 for array-ref indices.
5106 (tree_coverage_counter_addr): Likewise.
5107 (build_fn_info_type): Use size_int for index types.
5108 (build_gcov_info): Likewise.
5109
5110 2011-05-04 Richard Guenther <rguenther@suse.de>
5111
5112 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5113 to build_int_cst.
5114 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5115 for constructor indices.
5116 (push_init_level): Likewise.
5117
5118 2011-05-04 Richard Guenther <rguenther@suse.de>
5119
5120 * explow.c (promote_mode): Move variable declarations before code.
5121
5122 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5123
5124 * tree.h (build_function_type_array): Declare.
5125 (build_varargs_function_type_array): Declare.
5126 (build_function_type_vec, build_varargs_function_type_vec): Define.
5127 * tree.c (build_function_type_array_1): New function.
5128 (build_function_type_array): New function.
5129 (build_varargs_function_type_array): New function.
5130
5131 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5132
5133 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5134 before setting STMT_VINFO_TYPE.
5135
5136 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5137
5138 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5139 instead of spu_pass_by_reference.
5140
5141 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5142
5143 * calls.c (emit_library_call_value_1): Invoke
5144 promote_function_mode hook on libcall arguments.
5145 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5146 argument being NULL.
5147 * targhooks.c (default_promote_function_mode): Lisewise.
5148 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5149 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5150
5151 * doc/tm.texi: Document that TYPE argument might be NULL.
5152
5153 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5154
5155 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5156
5157 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5158
5159 From Bernd Schmidt
5160 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5161
5162 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5163
5164 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5165 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5166 Move ...
5167 * mips-tfile.c: ... here.
5168 Don't include coretypes.h, tm.h, filenames.h.
5169 (saber_stop): Remove definition and all calls.
5170 [__SABER__]: Remove.
5171 (__LINE__): Remove default.
5172 (Size_t, Ptrdiff_t): Remove definitions.
5173 Replace by size_t, ptrdiff_t.
5174 [!MIPS_DEBUGGING_INFO]: Remove.
5175 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5176 (progname): Add const.
5177 (STATIC): Remove.
5178 Replace all uses by static.
5179 (ALIGN_SYMTABLE_OFFSET): Remove default.
5180 * mips-tdump.c: Don't include coretypes.h, tm.h.
5181 Remove !MIPS_IS_STAB guard.
5182 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5183 $(TM_H), filenames.h dependencies.
5184 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5185
5186 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5187
5188 From Jie Zhang
5189 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5190 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5191
5192 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5193
5194 From Bernd Schmidt
5195 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5196 account and save/restore RETS.
5197 (PROFILE_BEFORE_PROLOGUE): Define.
5198 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5199 the push insn to use predecrement.
5200
5201 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5202
5203 From Jie Zhang
5204 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5205
5206 2011-05-04 Nick Clifton <nickc@redhat.com>
5207
5208 * config/mn10300/mn10300.c: Include cfgloop.h.
5209 (DUMP): New macro.
5210 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5211 Lcc or a FLcc insn into the instruction stream.
5212 (mn10300_block_contains_call): New function. Returns true if the
5213 given basic block contains a CALL insn.
5214 (mn10300_loop_contains_call_insn): New function. Returns true if
5215 the given loop contains a CALL insn.
5216 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5217 to use the SETLB and Lcc or FLcc insns.
5218 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5219 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5220 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5221 disable the SETLB optimization.
5222 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5223 __SETLB__ or __NO_SETLB__.
5224 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5225 (movsf_internal): Handle MDR register.
5226 (cmpsi): Make visible.
5227 (setlb): New pattern.
5228 (Lcc): New pattern.
5229 (FLcc): New pattern.
5230
5231 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5232
5233 PR target/48860
5234 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5235 for reg<->xmm moves.
5236 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5237 (vec_concatv2di_rex64_sse): Ditto.
5238 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5239 (*vec_extractv2di_1_rex64): Ditto.
5240
5241 Revert:
5242 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5243
5244 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5245 reg<->xmm moves.
5246 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5247
5248 2011-05-04 Richard Guenther <rguenther@suse.de>
5249
5250 * tree.h (int_const_binop): Remove notrunc argument.
5251 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5252 create integer constants that are properly truncated.
5253 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5254 (const_binop): Remove zero notrunc argument to int_const_binop.
5255 (size_binop_loc): Likewise.
5256 (fold_div_compare): Likewise.
5257 (maybe_canonicalize_comparison_1): Likewise.
5258 (fold_comparison): Likewise.
5259 (fold_binary_loc): Likewise.
5260 (multiple_of_p): Likewise.
5261 * expr.c (store_constructor): Likewise.
5262 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5263 (maybe_fold_stmt_addition): Likewise.
5264 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5265 * stor-layout.c (layout_type): Likewise.
5266 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5267 * tree-sra.c (build_ref_for_offset): Likewise.
5268 (build_user_friendly_ref_for_offset): Likewise.
5269 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5270 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5271 * tree-ssa-loop-niter.c (inverse): Likewise.
5272 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5273 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5274 * tree-switch-conversion.c (check_range): Likewise.
5275 (build_constructors): Likewise.
5276 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5277 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5278 (extract_range_from_assert): Likewise.
5279 (vrp_int_const_binop): Likewise.
5280 (extract_range_from_binary_expr): Likewise.
5281 (extract_range_from_unary_expr): Likewise.
5282 (check_array_ref): Likewise.
5283 (find_case_label_range): Likewise.
5284 (simplify_div_or_mod_using_ranges): Likewise.
5285 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5286 comparing case labels for merging.
5287
5288 2011-05-03 Mark Wielaard <mjw@redhat.com>
5289
5290 * dwarf2out.c (debug_str_hash_forced): Removed.
5291 (gen_label_for_indirect_string): Removed.
5292 (get_debug_string_label): Removed.
5293 (AT_string_form): Generate label directly.
5294 (output_indirect_string): Test indirect_string_node for
5295 DW_FORM_strp instead of checking label and refcount.
5296 (prune_indirect_string): Removed.
5297 (prune_unused_types): Don't check debug_str_hash_forced or
5298 call prune_indirect_string.
5299
5300 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5301
5302 PR other/48093
5303 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5304
5305 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5306
5307 PR debug/47994
5308 PR debug/47919
5309 * combine.c (try_combine): Skip debug insns at m_split tests.
5310
5311 2011-04-26 Mark Wielaard <mjw@redhat.com>
5312
5313 PR42288
5314 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5315 when info_section_emitted.
5316
5317 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5318
5319 * config/mips/mips-opts.h: New.
5320 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5321 to mips-opts.h.
5322 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5323 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5324 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
5325 via opts pointer.
5326 * config/mips/mips.h (enum mips_code_readable_setting): Move to
5327 mips-opts.h.
5328 (mips_abi, mips_code_readable): Don't declare.
5329 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5330 (mabi=): Use Enum and Var.
5331 (mips_abi): New Enum and EnumValue entries.
5332 (mcode-readable=): Use Enum and Var.
5333 (mips_code_readable_setting): New Enum and EnumValue entries.
5334 (mr10k-cache-barrier=): Use Enum and Var.
5335 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5336
5337 2011-05-03 Jan Hubicka <jh@suse.cz>
5338
5339 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5340 replace hash by pointer map.
5341 (cgraph_node_set_element_def, cgraph_node_set_element,
5342 const_cgraph_node_set_element, varpool_node_set_element_def,
5343 varpool_node_set_element, const_varpool_node_set_element): Remove.
5344 (free_cgraph_node_set, free_varpool_node_set): New function.
5345 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5346 * tree-emutls.c: Free varpool node set.
5347 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5348 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5349 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5350 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5351 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5352 Move here from ipa.c; implement using pointer_map
5353 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5354 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5355 debug_cgraph_node_set, varpool_node_set_new,
5356 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5357 dump_varpool_node_set, debug_varpool_node_set):
5358 Move to ipa-uitls.c.
5359 * passes.c (ipa_write_summaries): Update.
5360
5361 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5362
5363 From Mike Frysinger:
5364 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5365 bf542/bf544/bf547/bf548/bf549.
5366
5367 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5368
5369 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5370
5371 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5372
5373 From Bernd Schmidt:
5374 * config/bfin/bfin.md (MOVCC): New mode_macro.
5375 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5376 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
5377 comments from generated assembly.
5378
5379 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5380
5381 From Bernd Schmidt
5382 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5383 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5384 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5385 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5386 * config/bfin/lib1funcs.asm (___muldi3): New function.
5387
5388 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5389
5390 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
5391 build_function_type_list instead of build_function_type.
5392 Rearrange initialization of `args' to do so.
5393
5394 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5395
5396 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
5397 instead of build_function_type.
5398
5399 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5400
5401 * config/rs6000/rs6000.c (spe_init_builtins): Call
5402 build_function_type_list instead of build_function_type.
5403 (paired_init_builtins, altivec_init_builtins): Likewise.
5404 (builtin_function_type): Likewise.
5405
5406 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5407
5408 * config/sh/sh.c (sh_media_init_builtins): Call
5409 build_function_type_list instead of build_function_type.
5410
5411 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5412
5413 * config/sparc/sparc.c (sparc_file_end): Call
5414 build_function_type_list instead of build_function_type.
5415
5416 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5417
5418 * config/alpha/alpha.c (alpha_init_builtins): Call
5419 build_function_type_list instead of build_function_type.
5420
5421 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5422
5423 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
5424 build_function_type_list instead of build_function_type.
5425
5426 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5427
5428 * config/iq2000/i2000.c (iq2000_init_builtins): Call
5429 build_function_type_list instead of build_function_type.
5430 Delete `endlink' variable.
5431
5432 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5433
5434 * config/avr/avr.c (avr_init_builtins): Call
5435 build_function_type_list instead of build_function_type.
5436
5437 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5438
5439 * config/picochip/picochip.c (picochip_init_builtins): Call
5440 build_function_type_list instead of build_function_type.
5441 Delete `endlink' variable.
5442
5443 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5444
5445 * config/bfin/bfin.c (bfin_init_builtins): Call
5446 build_function_type_list instead of build_function_type.
5447
5448 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5449
5450 From Bernd Schmidt
5451 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
5452 that's not CONST_INT. Seemingly redundant check is due to PR39768.
5453
5454 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5455
5456 From Jie Zhang:
5457 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
5458 libbffastfp overrides libgcc when -mfast-fp.
5459
5460 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5461
5462 Originally from Bernd Schmidt
5463 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
5464 * config/bfin/bfin.c (override_options): Test it and error if
5465 TARGET_FDPIC.
5466
5467 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5468
5469 Originally From Bernd Schmidt
5470 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
5471 FD-PIC.
5472
5473 2011-05-03 Jeff Law <law@redhat.com>
5474
5475 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
5476 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
5477 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
5478 than accessing AUX field directly. Free the AUX field before
5479 clearing it.
5480 (thread_block, thread_through_loop_header): Likewise.
5481 (thread_single_edge, mark_threaded_blocks): Likewise.
5482 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
5483 (register_jump_thread): Do not attempt to thread to a NULL edge.
5484
5485 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5486
5487 * function.c (init_function_start): Call decide_function_section.
5488 * varasm.c (decide_function_section): New function.
5489 (assemble_start_function): When not using
5490 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
5491 or first_function_block_is_cold.
5492 * rtl.h (decide_function_section): Declare.
5493
5494 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5495 Jakub Jelinek <jakub@redhat.com>
5496
5497 PR target/48774
5498 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
5499 only succeed if req_mode is the same as set_mode.
5500
5501 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5502
5503 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
5504 * genemit.c (gen_exp): Handle RETURN.
5505 * emit-rtl.c (verify_rtx_sharing): Likewise.
5506 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
5507 * rtl.c (copy_rtx): RETURN is shared.
5508 * rtl.h (enum global_rtl_index): Add GR_RETURN.
5509 (ret_rtx): New.
5510 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
5511 * config/s390/s390.c (s390_emit_epilogue): Likewise.
5512 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
5513 * config/cris/cris.c (cris_expand_return): Likewise.
5514 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
5515 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
5516 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
5517 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
5518 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
5519 Likewise.
5520 * config/v850/v850.c (expand_epilogue): Likewise.
5521 * config/bfin/bfin.c (bfin_expand_call): Likewise.
5522 * config/arm/arm.md (epilogue): Likewise.
5523 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
5524 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
5525 variable to ret_reg.
5526
5527 2011-05-03 Richard Guenther <rguenther@suse.de>
5528
5529 PR lto/48846
5530 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5531 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
5532 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5533
5534 2011-05-03 Richard Guenther <rguenther@suse.de>
5535
5536 * c-decl.c (grokdeclarator): Instead of looking at
5537 TREE_OVERFLOW check if the constant fits in the index type.
5538
5539 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5540
5541 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
5542 (vec_store_lanes<mode><mode>): Likewise.
5543
5544 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5545
5546 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
5547 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
5548 convert_optab_index values.
5549 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
5550 * genopinit.c (optabs): Initialize the new optabs.
5551 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
5552 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
5553 (expand_STORE_LANES): New functions.
5554 * tree.h (build_array_type_nelts): Declare.
5555 * tree.c (build_array_type_nelts): New function.
5556 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
5557 (vect_model_load_cost): Likewise.
5558 (vect_store_lanes_supported, vect_load_lanes_supported)
5559 (vect_record_strided_load_vectors): Declare.
5560 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
5561 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
5562 (vect_transform_strided_load): Split out statement recording into...
5563 (vect_record_strided_load_vectors): ...this new function.
5564 * tree-vect-stmts.c (create_vector_array, read_vector_array)
5565 (write_vector_array, create_array_ref): New functions.
5566 (vect_model_store_cost): Add store_lanes_p argument.
5567 (vect_model_load_cost): Add load_lanes_p argument.
5568 (vectorizable_store): Try to use store-lanes functions for
5569 interleaved stores.
5570 (vectorizable_load): Likewise load-lanes and loads.
5571 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
5572 to vect_model_store_cost.
5573 (vect_build_slp_tree): Likewise vect_model_load_cost.
5574
5575 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5576
5577 * hooks.h (hook_bool_mode_uhwi_false): Declare.
5578 * hooks.c (hook_bool_mode_uhwi_false): New function.
5579 * target.def (array_mode_supported_p): New hook.
5580 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
5581 * doc/tm.texi: Regenerate.
5582 * stor-layout.c (mode_for_array): New function.
5583 (layout_type): Use it.
5584 * config/arm/arm.c (arm_array_mode_supported_p): New function.
5585 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
5586
5587 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
5588
5589 PR target/48723
5590 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
5591 for -fstack-check if the size to allocate is negative.
5592
5593 2011-05-02 Lawrence Crowl <crowl@google.com>
5594
5595 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
5596 (timevar_cond_start): New for starting a timer only when it is not
5597 already running.
5598 (timevar_cond_stop): New for stopping a timer when it was not already
5599 running.
5600
5601 * timevar.c (timevar_stop): Enable start/stop timers to start again.
5602 (timevar_cond_start): New as above.
5603 (timevar_cond_stop): New as above.
5604
5605 * timevar.def: Add start/stop timers for compiler phases,
5606 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
5607 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
5608 and TV_PHASE_FINALIZE.
5609 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
5610 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
5611 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
5612 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
5613 Make unused TV_OVERLOAD into a start/stop timer.
5614
5615 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
5616 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
5617 to indicate that they are start/stop timers.
5618
5619 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
5620 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
5621 Move initialization to do_compile.
5622 (do_compile): Add initialization from above.
5623 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
5624
5625 * c-decl.c (c_write_global_declarations): Add start/stop of
5626 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
5627
5628 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
5629 or TV_PARSE_INLINE, as appropriate.
5630 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
5631 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
5632
5633 2011-05-02 Jason Merrill <jason@redhat.com>
5634
5635 PR c++/40975
5636 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
5637
5638 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
5639
5640 PR c/35445
5641 * c-decl.c (finish_decl): Only create a composite if the types are
5642 compatible.
5643
5644 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5645
5646 * config/fr30/fr30-protos.h (Mmode): Don't define.
5647 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
5648 definition where used.
5649 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
5650 define. Expand definitions where used.
5651 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
5652 Expand definitions where used.
5653 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
5654 rx_function_arg, rx_function_arg_advance,
5655 rx_function_arg_boundary): Expand definitions of those macros.
5656 * config/v850/v850-protos.h (Mmode): Don't define. Expand
5657 definition where used.
5658
5659 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5660
5661 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5662 reg<->xmm moves.
5663 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
5664 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
5665 with *movv2sf_internal_rex64_avx.
5666 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
5667 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5668 Use %v prefix in insn mnemonic to handle TARGET_AVX.
5669 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
5670 "vex" in "prefix" attribute calculation.
5671 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
5672
5673 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
5674
5675 PR target/47951
5676 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5677 inputs match the output.
5678
5679 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5680
5681 PR target/47955
5682 * config/m68k/m68k.c (m68k_expand_prologue): Set
5683 current_function_static_stack_size.
5684
5685 2011-05-02 Jan Hubicka <jh@suse.cz>
5686
5687 * lto-streamer.c (lto_streamer_cache_insert_1,
5688 lto_streamer_cache_lookup, lto_streamer_cache_create,
5689 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5690 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5691
5692 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5693
5694 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5695 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5696 config/m68k/t-opts: New files.
5697 * config/m68k/m68k-tables.opt: New file (generated).
5698 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5699 extra_options and m68k/t-opts to tmake_file.
5700 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5701 (all_isas): Initialize using m68k-isas.def.
5702 (all_microarchs): Initialize using m68k-microarchs.def.
5703 (m68k_find_selection): Remove.
5704 (m68k_handle_option): Don't assert that global structures are in
5705 use. Use error_at. Access variables via opts pointer. Don't
5706 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5707 directly for -m68020-40 and -m68020-60.
5708 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5709 m68k_tune_entry here.
5710 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5711 to m68k-opts.h.
5712 (m68k_library_id_string): Remove declaration.
5713 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5714 (m68k_library_id_string): New Variable.
5715 (march=, mcpu=, mtune=): Use Enum and Var.
5716
5717 2011-05-02 Richard Guenther <rguenther@suse.de>
5718
5719 * varasm.c (output_constructor_regular_field): Compute zero-based
5720 index with double-ints. Make sure to ICE instead of producing
5721 wrong code.
5722 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5723 in asserts. Properly use a signed type.
5724
5725 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5726
5727 * config/i386/sse.md (V): New mode iterator.
5728 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
5729 TARGET_SSE2.
5730 (V_256): Rename from AVX256MODE.
5731 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
5732 condition to all users.
5733 (VF1): Ditto.
5734 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
5735 condition to all users.
5736 (VF_128): Make V4SF mode unconditional.
5737 (VF_256): Rename from AVX256MODEF2P.
5738 (VI4F_128): Rename from SSEMODE4S.
5739 (VI8F_128): Rename from SSEMODE2D.
5740 (VI4F_256): Rename from AVX256MODE8P.
5741 (VI8F_256): Rename from AVX256MODE4P.
5742 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5743 (ssescalarmodesuffix): Remove SF and DF modes.
5744 (SSEMODE124): Remove.
5745 (SSEMODE1248): Ditto.
5746 (SSEMODEF2P): Ditto.
5747 (AVXMODEF2P): Ditto.
5748 (AVXMODEFDP): Ditto.
5749 (AVXMODEFSP): Ditto.
5750 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5751 unconditional.
5752 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5753 unconditional.
5754 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5755 xop_pcmov_<mode>256. Use V mode iterator.
5756
5757 Adjust RTX patterns globally for renamed mode attributes.
5758
5759 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5760
5761 * haifa-sched.c (sched_emit_insn): Emit insn before first
5762 non-scheduled insn. Inform back-end about new insn. Add
5763 new insn to scheduled_insns list.
5764
5765 2011-05-02 Richard Guenther <rguenther@suse.de>
5766
5767 PR tree-optimization/48822
5768 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5769 (process_scc): Indicate which iteration we start.
5770
5771 2011-05-02 Jan Hubicka <jh@suse.cz>
5772
5773 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5774 (lto_section_overrun): New.
5775 * lto-section-out.c (append_block): Rename to ...
5776 (lto_append_block): ... this one; export.
5777 (lto_output_1_stream): Move lto lto-streamer.h
5778 (lto_output_data_stream): Update.
5779 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5780 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5781 functions.
5782
5783 2011-05-02 Richard Guenther <rguenther@suse.de>
5784
5785 * tree.c (tree_code_counts): New global array.
5786 (record_node_allocation_statistics): Count individual tree codes.
5787 (dump_tree_statistics): Dump individual code stats.
5788
5789 2011-05-01 Jan Hubicka <jh@suse.cz>
5790
5791 * ipa-inline.c (caller_growth_limits): Fix thinko when
5792 looking for largest stack frame.
5793 * ipa-inline.h (dump_inline_summary): Declare.
5794 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5795 on stack usage.
5796 (dump_inline_summary): Export.
5797 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5798
5799 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5800
5801 * reginfo.c (memory_move_cost): Change rclass argument type form
5802 'enum reg_class' to reg_class_t.
5803 * reload.h (memory_move_cost): Update prototype.
5804 * postreload.c reload_cse_simplify_set): Change type dclass var to
5805 reg_class_t.
5806 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5807 Update prototype.
5808 (ira_allocate_and_set_costs): Change aclass argument type form
5809 'enum reg_class' to reg_class_t.
5810 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5811 Change aclass argument type to reg_class_t.
5812 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5813 to reg_class_t.
5814 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5815 memory_move_cost call.
5816
5817 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5818 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5819 Change type tmp var to reg_class_t.
5820
5821 2011-04-30 Jan Hubicka <jh@suse.cz>
5822
5823 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5824 inlining into function with flatten attribute.
5825 (want_inline_small_function_p): Be more realistic about inlining
5826 cold calls where callee size grows.
5827
5828 2011-04-30 Jan Hubicka <jh@suse.cz>
5829
5830 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5831 flags.
5832
5833 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5834
5835 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5836 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5837 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5838 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5839 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5840 (print_operand): Rename to...
5841 (sparc_print_operand): ...this. Make static. Adjust
5842 sparc_print_operand function call.
5843 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5844 functions.
5845
5846 2011-04-30 Jan Hubicka <jh@suse.cz>
5847
5848 PR middle-end/48752
5849 * ipa-inline.c (early_inliner): Disable when doing late
5850 addition of function.
5851
5852 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5853
5854 * dwarf2out.c (get_address_mode): New inline.
5855 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5856 if not dwarf_strict emit
5857 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5858 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5859 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5860 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5861 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5862 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5863 mem_loc_descriptor callers.
5864 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5865 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5866 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5867 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5868 (base_types): New variable.
5869 (get_base_type_offset, calc_base_type_die_sizes,
5870 base_type_for_mode, mark_base_types, base_type_cmp,
5871 move_marked_base_types): New functions.
5872 (calc_die_sizes): Assert that die_offset is 0 or equal to
5873 next_die_offset.
5874 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5875 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5876 callers. If not dwarf_strict, call mem_loc_descriptor even for
5877 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5878 (gen_subprogram_die): Don't give up on call site parameters
5879 with non-integral or large integral modes. Adjust
5880 mem_loc_descriptor callers.
5881 (prune_unused_types): Call prune_unused_types_mark on base_types
5882 vector entries.
5883 (resolve_addr): Call mark_base_types.
5884 (dwarf2out_finish): Call move_marked_base_types.
5885
5886 PR tree-optimization/48809
5887 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5888 type.
5889 (gen_inbound_check): Don't compute index_expr - range_min in utype
5890 again, instead reuse SSA_NAME initialized in build_arrays.
5891 Remove two useless gsi_for_stmt calls.
5892
5893 2011-04-29 Jeff Law <law@redhat.com>
5894
5895 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5896
5897 2011-04-29 Martin Jambor <mjambor@suse.cz>
5898
5899 * cgraph.h (cgraph_postorder): Remove declaration.
5900 * ipa-utils.h (ipa_free_postorder_info): Declare.
5901 (ipa_reverse_postorder): Likewise.
5902 * cgraphunit.c: Include ipa-utils.h.
5903 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5904 * ipa-inline.c: Include ipa-utils.h.
5905 (ipa_inline): Update call to ipa_reverse_postorder.
5906 * ipa-pure-const.c (propagate_pure_const): Update call to
5907 ipa_reduced_postorder and ipa_print_order. Call
5908 ipa_free_postorder_info to clean up.
5909 (propagate_nothrow): Likewise.
5910 * ipa-reference.c (propagate): Removed a useless call to
5911 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5912 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5913 * ipa.c: Include ipa-utils.h.
5914 (ipa_profile): Update call to ipa_reverse_postorder.
5915 (cgraph_postorder): Moved to...
5916 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5917 (ipa_utils_print_order): Renamed to ipa_print_order.
5918 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5919 comments.
5920 (ipa_free_postorder_info): New function.
5921 * passes.c: Include ipa-utils.h.
5922 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5923 (ipa_write_summaries): Likewise.
5924 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5925 (cgraphunit.o): Likewise.
5926 (ipa.o): Likewise.
5927 (ipa-inline.o): Likewise.
5928
5929 2011-04-29 Jan Hubicka <jh@suse.cz>
5930
5931 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5932 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5933 * ipa-inline.h (clause_t): Turn into unsigned int.
5934 * ipa-inline-analysis.c (add_clause): Do more simplification.
5935 (and_predicates): Shortcut more cases.
5936 (predicates_equal_p): Move forward; check that clauses are properly
5937 ordered.
5938 (or_predicates): Shortcut more cases.
5939 (edge_execution_predicate): Rewrite as...
5940 (set_cond_stmt_execution_predicate): ... this function; handle
5941 __builtin_constant_p.
5942 (set_switch_stmt_execution_predicate): New .
5943 (compute_bb_predicates): New.
5944 (will_be_nonconstant_predicate): Update TODO.
5945 (estimate_function_body_sizes): Use compute_bb_predicates
5946 and free them later, always try to estimate if stmt is constant.
5947 (estimate_time_after_inlining, estimate_size_after_inlining):
5948 Gracefully handle optimized out edges.
5949 (read_predicate): Fix off by one error.
5950
5951 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5952
5953 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5954
5955 2011-04-27 Xinliang David Li <davidxl@google.com>
5956
5957 * tree-profile.c (init_ic_make_global_vars): Set
5958 tls attribute on ic vars.
5959 * coverage.c (coverage_end_function): Initialize
5960 function_list with zero.
5961
5962 2011-04-29 Richard Guenther <rguenther@suse.de>
5963
5964 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5965 for the type of the result.
5966 (fold_builtin_isascii): Likewise.
5967 (fold_builtin_toascii): Use integer_type_node where appropriate.
5968 (fold_builtin_logb): Likewise.
5969 (fold_builtin_frexp): Likewise.
5970 (fold_builtin_strstr): Likewise.
5971 (fold_builtin_strpbrk): Likewise.
5972 (fold_builtin_fputs): Likewise.
5973 (fold_builtin_sprintf): Likewise.
5974 (fold_builtin_snprintf): Likewise.
5975 (fold_builtin_printf): Likewise.
5976 (do_mpfr_remquo): Use a proper type for the assigned constant.
5977 (do_mpfr_lgamma_r): Likewise.
5978 * dwarf2out.c (resolve_one_addr): Use size_int.
5979 * except.c (init_eh): Likewise.
5980 (assign_filter_values): Use integer_type_node for filter values.
5981 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5982 indices.
5983 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5984 for EH region numbers.
5985 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5986 for the shift amount.
5987
5988 2011-04-29 Richard Guenther <rguenther@suse.de>
5989
5990 * expr.h (expand_shift): Rename to ...
5991 (expand_variable_shift): ... this.
5992 (expand_shift): Take a constant shift amount.
5993 * expmed.c (expand_shift): Rename to ...
5994 (expand_variable_shift): ... this.
5995 (expand_shift): New wrapper around expand_variable_shift.
5996 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5997 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5998 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5999 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6000 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6001 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6002 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6003 emit_store_flag_1, emit_store_flag): Likewise.
6004 * builtins.c (expand_builtin_signbit): Likewise.
6005 * calls.c (load_register_parameters): Likewise.
6006 * function.c (assign_parm_setup_block): Likewise.
6007 * lower-subreg.c (resolve_shift_zext): Likewise.
6008 * optabs.c (widen_bswap, expand_abs_nojump,
6009 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6010 * spu/spu.c (spu_expand_extv): Likewise.
6011 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6012
6013 2011-04-29 Richard Guenther <rguenther@suse.de>
6014
6015 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6016 for the remapped region number.
6017 * predict.c (build_predict_expr): Use integer_type_node for the
6018 predict kind.
6019 * fold-const.c (fold_binary_loc): Use integer_type_node for
6020 the shift amount. Use a proper type for the PLUS_EXPR operand.
6021
6022 2011-04-29 Michael Matz <matz@suse.de>
6023
6024 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6025 other trees that just builtins.
6026 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6027
6028 2011-04-29 Richard Guenther <rguenther@suse.de>
6029
6030 * tree-nested.c (get_trampoline_type): Use size_int.
6031 (get_nl_goto_field): Likewise.
6032 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6033 for all indexes.
6034 (lower_eh_constructs_2): Likewise.
6035 (lower_resx): Likewise.
6036 (lower_eh_dispatch): Likewise.
6037 * tree-mudflap.c (mf_build_string): Use size_int.
6038 (mudflap_register_call): Use integer_type_node for the flag.
6039 (mudflap_enqueue_constant): Use size_int.
6040 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6041 instead of rebuilding it.
6042
6043 2011-04-29 Richard Guenther <rguenther@suse.de>
6044
6045 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6046 Handle OBJ_TYPE_REF.
6047 (find_func_aliases_for_call): Use it more consistently.
6048
6049 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6050
6051 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6052 (rank_for_schedule): Use it.
6053 (schedule_block): Set it.
6054
6055 2011-04-28 David Li <davidxl@google.com>
6056
6057 * tree.c (crc32_string): Use crc32_byte.
6058 (crc32_byte): New function.
6059 * tree.h (crc32_byte): New function.
6060 * gcov.c (read_graph_file): Handle new cfg_cksum.
6061 (read_count_file): Ditto.
6062 * profile.c (instrument_values): Ditto.
6063 (get_exec_counts): Ditto.
6064 (read_profile_edge_counts): Ditto.
6065 (compute_branch_probabilities): Ditto.
6066 (compute_value_histograms): Ditto.
6067 (branch_prob): Ditto.
6068 (end_branch_prob): Ditto.
6069 * coverage.c (read_counts_file): Ditto.
6070 (get_coverage_counts): Ditto.
6071 (tree_coverage_counter_addr): Ditto.
6072 (coverage_checksum_string): Ditto.
6073 (coverage_begin_output): Ditto.
6074 (coverage_end_function): Ditto.
6075 (build_fn_info_type): Ditto.
6076 (build_fn_info_value): Ditto.
6077 * libgcov.c (gcov_exit): Ditto.
6078 * gcov-dump.c (tag_function): Ditto.
6079 (compute_checksum): Remove.
6080
6081 2011-04-29 Alan Modra <amodra@gmail.com>
6082
6083 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6084 unspec plus offset. Tidy macho code.
6085
6086 2011-04-29 Martin Jambor <mjambor@suse.cz>
6087
6088 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6089 node instead of a decl. Update all callers.
6090 * cgraph.h: Update declaration.
6091
6092 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6093
6094 PR tree-optimization/48765
6095 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6096 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6097 to indicate if loop aware SLP is being used. Scan the statements
6098 and update the vectorization factor according to the type of
6099 vectorization before statement analysis.
6100 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6101 pass it to vect_analyze_loop_operations.
6102 (vectorizable_reduction): Set number of copies to 1 in case of pure
6103 SLP statement.
6104 * tree-vect-stmts.c (vectorizable_conversion,
6105 vectorizable_assignment, vectorizable_shift,
6106 vectorizable_operation, vectorizable_type_demotion,
6107 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6108 Likewise.
6109 (vectorizable_condition): Move the check that it is not SLP
6110 vectorization before the number of copies check.
6111 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6112 to vectorize the loop using SLP.
6113
6114 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6115
6116 PR middle-end/48597
6117 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6118 inline asm.
6119
6120 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6121
6122 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6123 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6124 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6125 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6126 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6127 linux*.h headers.
6128 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6129 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6130 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6131 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6132 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6133 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6134 REG_NAME.
6135 * config/i386/linux.h (REG_NAME): Don't define.
6136 * config/i386/linux64.h (REG_NAME): Don't define.
6137 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6138 Undefine before defining.
6139
6140 2011-04-28 Jan Hubicka <jh@suse.cz>
6141
6142 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6143 nonconstant_names array.
6144 (estimate_function_body_sizes): Build nonconstant_names array; handle
6145 BUILT_IN_CONSTANT_P.
6146
6147 2011-04-28 Richard Guenther <rguenther@suse.de>
6148
6149 PR bootstrap/48804
6150 Revert
6151 2011-04-28 Richard Guenther <rguenther@suse.de>
6152
6153 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6154 as late as possible.
6155
6156 2011-04-28 Richard Guenther <rguenther@suse.de>
6157
6158 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6159 (debug_constraint): Do it here.
6160 (dump_constraints): And here.
6161 (rewrite_constraints): And here.
6162 (dump_constraint_edge): Remove.
6163 (dump_constraint_graph): Rewrite to produce DOT output.
6164 (solve_constraints): Build succ graph as late as possible.
6165 Dump constraint graphs before and after solving.
6166
6167 2011-04-28 Richard Guenther <rguenther@suse.de>
6168
6169 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6170 New function split out from ...
6171 (find_func_aliases): ... here. Call it.
6172 (find_func_aliases_for_call): Likewise.
6173
6174 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6175
6176 * internal-fn.h (internal_fn_name_array): Declare.
6177 (internal_fn_flags_array): Likewise.
6178
6179 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6180
6181 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6182 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6183 Move from sse.md.
6184 (ssemodefsuffix): Remove.
6185 (ssevecmodesuffix): New mode attribute.
6186 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6187 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6188 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6189 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6190 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6191 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6192 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6193 ssemodesuffix mode attribute.
6194 (float splitters): Use ssevecmodesuffix mode attribute.
6195 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6196 (sseinsmode): Rename from avxvecmode.
6197 (avxsizesuffix): Rename from avxmodesuffix.
6198 (sseintvecmode): Rename from avxpermvecmode.
6199 (ssedoublevecmode): Rename from ssedoublesizemode.
6200 (ssehalfvecmode): Rename from avxhalfvecmode.
6201 (ssescalarmode): Rename from avxscalarmode.
6202 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6203 templates for ssemodesuffix mode attribute.
6204 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6205 mode attribute.
6206
6207 Adjust RTX patterns globally for renamed mode attributes.
6208
6209 2011-04-27 Jan Hubcika <jh@suse.cz>
6210
6211 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6212 * ipa-inline-analysis.c: Include alloc-pool.h.
6213 (edge_predicate_pool): New.
6214 (trye_predicate_p): New function
6215 (false_predicate_p): New function.
6216 (add_clause): Sanity check that false clauses are "optimized";
6217 never add clauses to predicate that is already known to be false.
6218 (and_predicate): Use flase_predicate_p.
6219 (evaulate_predicate): Rename to ...
6220 (evaluate_predicate): ... this one; update all callers; assert
6221 that false is not listed among possible truths.
6222 (dump_predicate): Use true_predicate_p.
6223 (account_size_time): Use false_predicate_p.
6224 (evaulate_conditions_for_edge): Rename to ...
6225 (evaluate_conditions_for_edge) ... this one.
6226 (edge_set_predicate): New function.
6227 (inline_edge_duplication_hook): Duplicate edge predicates.
6228 (inline_edge_removal_hook): Free edge predicates.
6229 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6230 (dump_inline_summary): Update.
6231 (estimate_function_body_sizes): Set edge predicates.
6232 (estimate_calls_size_and_time): Handle predicates.
6233 (estimate_callee_size_and_time): Update.
6234 (remap_predicate): Add toplev_predicate; update comment.
6235 (remap_edge_predicates): New function.
6236 (inline_merge_summary): Compute toplev predicate; update.
6237 (read_predicate): New function.
6238 (read_inline_edge_summary): Use it.
6239 (inline_read_section): Likewise.
6240 (write_predicate): New function.
6241 (write_inline_edge_summary): Use it.
6242 (inline_write_summary): Likewise.
6243 (inline_free_summary): Free alloc pool and edge summary vec.
6244
6245 2011-04-27 Richard Guenther <rguenther@suse.de>
6246
6247 * tree-ssa-structalias.c (changed_count): Remove.
6248 (changed): Use a bitmap.
6249 (unify_nodes): Adjust.
6250 (do_sd_constraint): Likewise.
6251 (do_ds_constraint): Likewise.
6252 (do_complex_constraint): Likewise.
6253 (solve_graph): Likewise.
6254
6255 2011-04-27 Jan Hubicka <jh@suse.cz>
6256
6257 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6258
6259 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6260
6261 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6262 (avx_vperm2f128_*_operand): Ditto.
6263 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6264 Use avx_vpermilp_parallel in insn condition.
6265 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6266 Use avx_vperm2f128_parallel in insn condition.
6267
6268 2011-04-27 Richard Guenther <rguenther@suse.de>
6269
6270 * Makefile.in (tree-ssa-structalias.o): Remove
6271 gt-tree-ssa-structalias.h dependency.
6272 (GTFILES): Remove tree-ssa-structalias.c.
6273 * tree.c (allocate_decl_uid): New function.
6274 (make_node_stat): Use it.
6275 (copy_node_stat): Likewise.
6276 * tree.h (allocate_decl_uid): Declare.
6277 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6278 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6279 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6280 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6281 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6282 (struct heapvar_map): Likewise.
6283 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6284 heapvar_insert): Likewise.
6285 (make_heapvar_for): Rename to ...
6286 (make_heapvar): ... this. Simplify.
6287 (fake_var_decl_obstack): New global var.
6288 (build_fake_var_decl): New function.
6289 (make_constraint_from_heapvar): Adjust.
6290 (handle_lhs_call): Likewise.
6291 (create_function_info_for): Likewise.
6292 (intra_create_variable_infos): Likewise.
6293 (init_alias_vars): Allocate fake_var_decl_obstack.
6294 (init_alias_heapvars, delete_alias_heapvars): Remove.
6295 (compute_points_to_sets): Do not call init_alias_heapvars.
6296 (ipa_pta_execute): Likewise.
6297 (delete_points_to_sets): Free fake_var_decl_obstack.
6298
6299 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6300
6301 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6302 (si_from_UTItype, si_to_UTItype): New functions.
6303 (__udivmodti4): Use them to implement type-punning.
6304 * config/spu/multi3.c (union qword_TItype): New data type.
6305 (si_from_TItype, si_to_TItype): New functions.
6306 (__multi3): Use them to implement type-punning.
6307
6308 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6309
6310 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6311
6312 2011-04-27 Jan Hubicka <jh@suse.cz>
6313
6314 * ipa-prop.c (function_insertion_hook_holder): New holder.
6315 (ipa_add_new_function): New function.
6316 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6317 Register/deregister holder.
6318
6319 2011-04-27 Richard Guenther <rguenther@suse.de>
6320
6321 PR tree-optimization/48772
6322 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6323
6324 2011-04-27 Richard Guenther <rguenther@suse.de>
6325
6326 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6327 TARGET_MEM_REF handling.
6328
6329 2011-04-27 Nick Clifton <nickc@redhat.com>
6330
6331 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6332 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6333 (REG_CLASS_NAMES): Likewise.
6334 (REG_CLASS_CONTENTS): Likewise.
6335 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6336 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6337 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
6338 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
6339 (EVEN_REGS): New macro. Alias for QUAD_REGS.
6340 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6341 duplicate register classes.
6342 (frv_class_likely_spilled_p): Likewise.
6343 (frv_register_move_cost): Likewise.
6344
6345 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6346 end of the regno_reg_class array.
6347
6348 2011-04-27 Jakub Jelinek <jakub@redhat.com>
6349
6350 PR c/48742
6351 * c-typeck.c (build_binary_op): Don't wrap arguments if
6352 int_operands is true.
6353
6354 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
6355
6356 PR target/48767
6357 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6358 targetm.calls.must_pass_in_stack for void type.
6359
6360 2011-04-26 Jan Hubicka <jh@suse.cz>
6361
6362 * cgraphbuild.c (build_cgraph_edges): Update call
6363 of cgraph_create_edge and cgraph_create_indirect_edge.
6364 * cgraph.c (cgraph_create_edge_including_clones,
6365 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6366 cgraph_update_edges_for_call_stmt_node): Do not take nest
6367 argument; do not initialize call_stmt_size/time.
6368 (dump_cgraph_node): Do not dump nest.
6369 (cgraph_clone_edge): Do not take loop_nest argument;
6370 do not propagate it; do not clone call_stmt_size/time.
6371 (cgraph_clone_node): Likewise.
6372 (cgraph_create_virtual_clone): Update.
6373 * cgraph.h (struct cgraph_edge): Remove
6374 call_stmt_size/call_stmt_time/loop_nest.
6375 (cgraph_create_edge, cgraph_create_indirect_edge,
6376 cgraph_create_edge_including_clones, cgraph_clone_node): Update
6377 prototype.
6378 * tree-emutls.c (gen_emutls_addr): Update.
6379 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6380 loop_nest; handle indirect calls, too.
6381 (clone_inlined_nodes): Do not care about updating inline summaries.
6382 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6383 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6384 stream call_stmt_size/call_stmt_time/loop_nest.
6385 * ipa-inline.c (edge_badness): Update.
6386 (ipa_inline): dump summaries after inlining.
6387 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6388 New.
6389 (inline_edge_summary): New function.
6390 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
6391 (inline_edge_removal_hook): Handle edge summaries.
6392 (inline_edge_duplication_hook): New hook.
6393 (inline_summary_alloc): Alloc hooks.
6394 (initialize_growth_caches): Do not register removal hooks.
6395 (free_growth_caches); Do not free removal hook.
6396 (dump_inline_edge_summary): New function.
6397 (dump_inline_summary): Use it.
6398 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
6399 (inline_update_callee_summaries): New function.
6400 (inline_merge_summary): Use it.
6401 (do_estimate_edge_time, do_estimate_edge_growth): Update.
6402 (read_inline_edge_summary): New function.
6403 (inline_read_section): Use it.
6404 (write_inline_edge_summary): New function.
6405 (inline_write_summary): Use it.
6406 (inline_free_summary): Free edge new holders.
6407 * tree-inline.c (copy_bb): Update.
6408
6409 2011-04-26 Jason Merrill <jason@redhat.com>
6410
6411 * tree-eh.c (lower_try_finally_switch): Create the label along with
6412 the CASE_LABEL_EXPR.
6413
6414 2011-04-26 David S. Miller <davem@davemloft.net>
6415 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6416
6417 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
6418 * configure: Regenerate.
6419
6420 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6421
6422 PR target/48258
6423 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
6424 reduction.
6425 (VEC_reduc): New code iterator and splitters for vector reduction.
6426 (VEC_reduc_name): Ditto.
6427 (VEC_reduc_rtx): Ditto.
6428 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
6429 (reduc_<VEC_reduc_name>_v4sf): Ditto.
6430
6431 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6432 support for extracting SF on VSX.
6433
6434 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
6435 generating xscvspdp.
6436 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
6437 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
6438 double add, minimum, maximum vector reduction.
6439 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
6440 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
6441 optimize double vector reduction.
6442 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
6443
6444 2011-04-26 Joseph Myers <joseph@codesourcery.com>
6445
6446 * config/fr30/fr30.h (inhibit_libc): Don't define.
6447 * config/m32r/m32r-protos.h: Correct comment.
6448 * config/v850/v850.h (GHS_default_section_names,
6449 GHS_current_section_names): Use tree, not union tree_node *.
6450
6451 2011-04-26 Xinliang David Li <davidxl@google.com>
6452
6453 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
6454 * c-family/c-opts.c (c_common_handle_option): Set
6455 warn_maybe_uninitialized.
6456 * opts.c (common_handle_option): Ditto.
6457 * common.opt: New option.
6458 * tree-ssa.c (warn_uninit): Add one more parameter.
6459 (warn_uninitialized_var): Pass warning code.
6460 * tree-flow.h: Interface change.
6461
6462 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6463
6464 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
6465 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
6466 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
6467
6468 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6469
6470 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
6471 * config/mips/mips.opt (mmips-tfile): Remove.
6472
6473 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
6474 mips-tdump reference to ...
6475 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
6476 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
6477 reference by Tru64 UNIX.
6478
6479 2011-04-26 Jakub Jelinek <jakub@redhat.com>
6480
6481 PR debug/48768
6482 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
6483 is error_mark_node, set value to NULL.
6484
6485 PR tree-optimization/48734
6486 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
6487 if return value from maybe_fold_*_comparsions isn't something
6488 the code is prepared to handle.
6489
6490 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
6491
6492 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
6493 mode check.
6494 (ext_QIreg_nomode_operands): Remove.
6495 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
6496 (*andsi_1): Ditto.
6497 (*andhi_1): Ditto.
6498
6499 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
6500
6501 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
6502
6503 2011-04-26 Richard Guenther <rguenther@suse.de>
6504
6505 * c-typeck.c (build_unary_op): Do not expand array-refs via
6506 pointer arithmetic. Only adjust qualifiers for function types.
6507
6508 2011-04-26 Richard Guenther <rguenther@suse.de>
6509
6510 PR middle-end/48694
6511 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
6512 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
6513 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
6514 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
6515
6516 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6517
6518 * doc/extend.texi: Document __underlying_type.
6519
6520 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
6521
6522 * config/rs6000/titan.md (automata_option "progress"): Remove.
6523
6524 2011-04-25 Jeff Law <law@redhat.com>
6525
6526 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
6527
6528 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6529
6530 * system.h (ENUM_BITFIELD): Remove.
6531
6532 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
6533 Eric Botcazou <ebotcazou@adacore.com>
6534
6535 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
6536 for STORE_FLAG_VALUE==-1 case.
6537
6538 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
6539
6540 PR target/43804
6541 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
6542 LEGITIMATE_PIC_OPERAND_P.
6543
6544 2011-04-24 Jan Hubicka <jh@suse.cz>
6545
6546 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
6547 WPA hack.
6548 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
6549 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
6550 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
6551 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
6552 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
6553 Sanity check predicate length.
6554 (remap_predicate): Likewise; sanity check jump functions.
6555 (inline_read_section, inline_write_summary): Sanity check
6556 predicate length.
6557
6558 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6559
6560 PR other/48748
6561 * doc/extend.texi (Type Traits): Document __is_standard_layout,
6562 __is_literal_type, and __is_trivial; update throughout about
6563 possibly cv-qualified void types.
6564
6565 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
6566
6567 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
6568 testsuite and make it version agnostic.
6569
6570 2011-04-22 Jan Hubicka <jh@suse.cz>
6571
6572 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
6573
6574 2011-04-23 Jakub Jelinek <jakub@redhat.com>
6575
6576 PR c/48685
6577 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
6578 to VOID_TYPE even around MODIFY_EXPR.
6579
6580 2011-04-22 Mike Stump <mikestump@comcast.net>
6581
6582 * gensupport.c (read_md_rtx): Fix typo in comment.
6583 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
6584 comment.
6585
6586 2011-04-22 Jan Hubicka <jh@suse.cz>
6587
6588 * gengtype.c (open_base_files): Add ipa-inline.h include.
6589 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
6590 ipa-prop.c; update all uses.
6591 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
6592 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
6593 merge summary of inlined function into former caller.
6594 * ipa-inline.c (max_benefit): Remove.
6595 (edge_badness): Compensate for removal of benefits.
6596 (update_caller_keys): Use
6597 reset_node_growth_cache/reset_edge_growth_cache.
6598 (update_callee_keys): Likewise.
6599 (update_all_callee_keys): Likewise.
6600 (inline_small_functions): Do not collect max_benefit; do not reset
6601 estimated_growth; call free_growth_caches and initialize_growth_caches.
6602 * ipa-inline.h (struct condition, type clause_t, struct predicate,
6603 struct size_time_entry): New structures.
6604 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
6605 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
6606 and estimated_growth.
6607 (edge_growth_cache_entry): New structure.
6608 (node_growth_cache, edge_growth_cache): New global vars.
6609 (estimate_growth): Turn into inline.
6610 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
6611 initialize_growth_caches, free_growth_caches): Declare.
6612 (estimate_edge_growth): Rewrite.
6613 (estimate_edge_time): Implement as inline cache lookup.
6614 (reset_node_growth_cache, reset_edge_growth_cache): New inline
6615 functions.
6616 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
6617 (NUM_CONDITIONS): New constant.
6618 (predicate_conditions): New enum.
6619 (IS_NOT_CONSTANT): New constant.
6620 (edge_removal_hook_holder): New var.
6621 (node_growth_cache, edge_growth_cache): New global vars.
6622 (true_predicate, single_cond_predicate, false_predicate,
6623 not_inlined_predicate, add_condition, add_clause, and_predicates,
6624 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
6625 dump_clause, dump_predicate, account_size_time,
6626 evaulate_conditions_for_edge): New functions.
6627 (inline_summary_alloc): Move to heap.
6628 (inline_node_removal_hook): Clear condition and entry vectors.
6629 (inline_edge_removal_hook): New function.
6630 (initialize_growth_caches, free_growth_caches): New function.
6631 (dump_inline_summary): Update.
6632 (edge_execution_predicate): New function.
6633 (will_be_nonconstant_predicate): New function.
6634 (estimate_function_body_sizes): Compute BB and constantness predicates.
6635 (compute_inline_parameters): Do not clear estimated_growth.
6636 (estimate_edge_size_and_time): New function.
6637 (estimate_calls_size_and_time): New function.
6638 (estimate_callee_size_and_time): New function.
6639 (remap_predicate): New function.
6640 (inline_merge_summary): New function.
6641 (do_estimate_edge_time): New function based on...
6642 (estimate_edge_time): ... this one.
6643 (do_estimate_edge_growth): New function.
6644 (do_estimate_growth): New function based on....
6645 (estimate_growth): ... this one.
6646 (inline_analyze_function): Analyze after deciding on jump functions.
6647 (inline_read_section): New function.
6648 (inline_read_summary): Use it.
6649 (inline_write_summary): Write all the new data.
6650 * ipa-prop.c (ipa_get_param_decl_index): Export.
6651 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
6652 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
6653 Declare.
6654 (ipa_get_lattice): Move here from ipa-cp.c
6655 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
6656 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
6657 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
6658 cgraph_edge_inlinable_p): Remove.
6659 * cgraphunit.c: Include ipainline.h
6660 (cgraph_process_new_functions): Update call of
6661 compute_inline_parameters.
6662
6663 2011-04-22 Richard Guenther <rguenther@suse.de>
6664
6665 * tree.c (build_int_cst): Properly create canonicalized integer
6666 constants.
6667 (build_int_cst_type): Remove scary comments.
6668
6669 2011-04-22 Xinliang David Li <davidxl@google.com>
6670
6671 * toplev.c (process_options): Enable -Werror=coverage-mismatch
6672 by default when -Wno-error is not specified.
6673 * opts-global.c (decode_options): Remove call to
6674 control_warning_options.
6675
6676 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6677
6678 PR tree-optimization/48717
6679 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6680 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6681
6682 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6683
6684 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6685 definition where used.
6686
6687 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6688
6689 PR c/48716
6690 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6691 TREE_STATIC variables declared inside of some OpenMP construct.
6692
6693 2011-04-22 Martin Jambor <mjambor@suse.cz>
6694
6695 PR middle-end/48585
6696 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6697
6698 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6699
6700 PR c/36750
6701 * c-typeck.c (pop_init_level): Do not warn about initializing
6702 with ` = {0}'.
6703
6704 2011-04-22 Alan Modra <amodra@gmail.com>
6705
6706 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6707 when returning call_cookie.
6708 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6709 pointers, to functions with no more vector args than the current
6710 function, and some non-local calls for ABI_V4.
6711 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6712 sibcall_nonlocal_aix64): Combine to ..
6713 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6714 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6715 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6716 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6717 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
6718 operand.
6719 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6720 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6721 sibcall_value_symbolic_64): Delete.
6722
6723 2011-04-21 Xinliang David Li <davidxl@google.com>
6724
6725 * cgraph.h: Remove pid.
6726 * cgraph.c: Remove pid.
6727 * value-prof.c (init_node_map): New function.
6728 (del_node_map): New function.
6729 (find_func_by_funcdef_no): New function.
6730 (gimple_ic_transform): Call new function.
6731 * cgraphunit.c (cgraph_finalize_function): Remove pid.
6732 * function.c (get_last_funcdef_no): New function.
6733 * function.h (get_last_funcdef_no): New function.
6734 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6735 to libgcov function.
6736 (tree-profiling): Call node map init and delete function.
6737
6738 2011-04-21 Ian Lance Taylor <iant@google.com>
6739
6740 * godump.c (go_format_type): Use exported Go name for anonymous
6741 field name.
6742
6743 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6744
6745 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6746 Call builtin_function_type_list instead of builtin_function_type.
6747 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6748
6749 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6750
6751 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6752 build_function_type_list instead of build_function_type.
6753 Delete variable `endlink'.
6754
6755 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6756
6757 * config/s390/s390.c (s390_init_builtins): Call
6758 build_function_type_list instead of build_function_type.
6759
6760 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6761
6762 * config/ia64/ia64.c (ia64_init_builtins): Call
6763 build_function_type_list instead of builtin_function_type.
6764
6765 2011-04-21 Easwaran Raman <eraman@google.com>
6766
6767 * cfgexpand.c (stack_var): Remove OFFSET...
6768 (add_stack_var): ...and its reference here...
6769 (expand_stack_vars): ...and here.
6770 (stack_var_cmp): Sort by descending order of size.
6771 (partition_stack_vars): Change heuristic.
6772 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6773 (dump_stack_var_partition): Add newline after each partition.
6774
6775 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6776 Jeff Law <law@redhat.com>
6777
6778 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6779 * gengtype.c (matching_file_name_substitute): Likewise.
6780
6781 2011-04-21 Richard Guenther <rguenther@suse.de>
6782
6783 PR lto/48703
6784 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6785
6786 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6787
6788 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6789
6790 2011-04-21 Richard Guenther <rguenther@suse.de>
6791
6792 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6793 file name.
6794
6795 2011-04-21 Richard Guenther <rguenther@suse.de>
6796
6797 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6798 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6799 Use DECL_P, not SSA_VAR_P.
6800 (ptr_derefs_may_alias_p): Likewise.
6801 (ptr_deref_may_alias_ref_p_1): Likewise.
6802 (decl_refs_may_alias_p): Likewise.
6803 (refs_may_alias_p_1): Likewise.
6804 (ref_maybe_used_by_call_p_1): Likewise.
6805 (call_may_clobber_ref_p_1): Likewise.
6806 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6807 are either MEM_REF or TARGET_MEM_REF.
6808 (indirect_refs_may_alias_p): Likewise.
6809 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6810 for MEM_EXPR of indirect calls.
6811
6812 2011-04-21 Tristan Gingold <gingold@adacore.com>
6813
6814 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6815 (dst_file_info_struct): Remove flen field.
6816 (lookup_filename): Remove code that set flen field.
6817
6818 2011-04-21 Tristan Gingold <gingold@adacore.com>
6819
6820 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6821
6822 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6823
6824 PR target/48708
6825 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6826 vec_extract and vec_concat for non-SSE4_1 targets.
6827
6828 2011-04-21 Richard Guenther <rguenther@suse.de>
6829
6830 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6831 return statements.
6832
6833 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6834
6835 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6836 undefine.
6837 (FILE): Don't undefine.
6838
6839 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6840
6841 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6842 struct rtx_def *.
6843 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6844 struct rtx_def *.
6845 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6846 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6847 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6848 rtx_def *.
6849 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6850 definitions where used.
6851 * config/microblaze/microblaze.h (struct microblaze_args): Use
6852 rtx, not struct rtx_def *.
6853 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6854 rtx_def *.
6855 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6856 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6857 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6858 not struct rtx_def *.
6859 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6860 struct rtx_def *.
6861 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6862 rtx_def *.
6863 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6864
6865 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6866
6867 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6868 operand_equal_p to compare DR_BASE_ADDRESSes.
6869 (vect_check_interleaving): Likewise.
6870
6871 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6872
6873 PR target/46329
6874 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6875 for all Neon struct constants.
6876
6877 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6878
6879 * target.def (legitimate_constant_p): New hook.
6880 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6881 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6882 * doc/tm.texi: Regenerate.
6883 * hooks.h (hook_bool_mode_rtx_true): Declare.
6884 * hooks.c (hook_bool_mode_rtx_true): Define.
6885 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6886 * calls.c (precompute_register_parameters): Replace uses of
6887 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6888 (emit_library_call_value_1): Likewise.
6889 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6890 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6891 * ira-costs.c (scan_one_insn): Likewise.
6892 * recog.c (general_operand, immediate_operand): Likewise.
6893 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6894 * reload1.c (init_eliminable_invariants): Likewise.
6895
6896 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6897 mode argument.
6898 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6899 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6900 argument.
6901 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6902 * config/alpha/predicates.md (input_operand): Update call to
6903 alpha_legitimate_constant_p.
6904
6905 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6906 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6907 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6908 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6909 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6910 (arm_legitimate_constant_p): New functions.
6911 (arm_cannot_force_const_mem): Make static.
6912
6913 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6914
6915 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6916 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6917 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6918 instead of bfin_legitimate_constant_p.
6919 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6920 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6921
6922 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6923
6924 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6925
6926 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6927 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6928 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6929 (frv_legitimate_constant_p): Make static. Add a mode argument.
6930
6931 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6932 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6933 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6934
6935 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6936 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6937 * config/i386/i386.c (legitimate_constant_p): Rename to...
6938 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6939 argument.
6940 (ix86_cannot_force_const_mem): Update accordingly.
6941 (ix86_legitimate_address_p): Likewise.
6942 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6943 * config/i386/i386.md: Update commentary.
6944
6945 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6946 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6947 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6948 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6949
6950 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6951
6952 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6953 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6954 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6955 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6956
6957 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6958 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6959 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6960
6961 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6962 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6963 (m32r_legitimate_constant_p): New function.
6964
6965 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6966 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6967 LEGITIMATE_CONSTANT_P.
6968 (LEGITIMATE_CONSTANT_P): Delete.
6969 * config/m68k/m68k.c (m68k_expand_prologue): Call
6970 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6971 (m68k_legitimate_constant_p): New function.
6972 * config/m68k/m68k.md: Update comments.
6973
6974 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6975 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6976 (mcore_legitimate_constant_p): New function.
6977
6978 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6979 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6980 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6981 Add a mode argument.
6982 (mep_legitimate_address): Update accordingly.
6983 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6984
6985 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6986 Delete.
6987 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6988 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6989 static. Check OP's mode for VOIDmode.
6990 (microblaze_legitimate_constant_p): New function.
6991 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6992
6993 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6994 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6995 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6996 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6997 * config/mips/predicates.md: Update comments.
6998
6999 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7000 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7001 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7002 (mmix_legitimate_constant_p): Make static, return a bool, and take
7003 a mode argument.
7004 (mmix_print_operand_address): Update accordingly.
7005
7006 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7007 Delete.
7008 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7009 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7010 static. Add a mode argument.
7011 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7012
7013 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7014
7015 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7016 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7017 (pa_legitimate_constant_p): New function.
7018
7019 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7020
7021 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7022 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7023 (pdp11_legitimate_constant_p): New function.
7024
7025 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7026 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7027 (rs6000_legitimate_constant_p): New function.
7028
7029 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7030 (rx_legitimate_constant_p): ...this.
7031 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7032 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7033 (rx_legitimate_constant_p): ...this.
7034 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7035 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7036
7037 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7038 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7039 * config/s390/s390.c (legitimate_constant_p): Rename to...
7040 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7041 and add a mode argument.
7042 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7043
7044 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7045
7046 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7047 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7048 (sh_legitimate_constant_p): New function.
7049
7050 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7051 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7052 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7053 (legitimate_constant_p): Rename to...
7054 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7055 argument.
7056 (constant_address_p): Update accordingly.
7057
7058 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7059 argument and return a bool.
7060 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7061 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7062 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7063 (spu_rtx_costs): Update accordingly.
7064 * config/spu/predicates.md (vec_imm_operand): Likewise.
7065
7066 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7067
7068 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7069 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7070 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7071
7072 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7073 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7074 * config/vax/vax.c (legitimate_constant_p): Likewise.
7075
7076 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7077 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7078 (xtensa_legitimate_constant_p): New function.
7079
7080 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7081
7082 * target.def (cannot_force_const_mem): Add a mode argument.
7083 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7084 * doc/tm.texi: Regenerate.
7085 * hooks.h (hook_bool_mode_rtx_false): Declare.
7086 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7087 (hook_bool_mode_const_rtx_true): Likewise.
7088 (hook_bool_mode_rtx_false): New function.
7089 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7090 to be non-VOID. Update call to cannot_force_const_mem.
7091 (find_reloads): Update accordingly.
7092 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7093 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7094 argument.
7095 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7096 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7097 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7098 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7099 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7100 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7101 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7102 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7103 (m68k_cannot_force_const_mem): ...this new function.
7104 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7105 argument.
7106 (mips_const_insns, mips_legitimize_const_move): Update calls.
7107 (mips_secondary_reload_class): Likewise.
7108 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7109 (pa_cannot_force_const_mem): ...this new function.
7110 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7111 (rs6000_cannot_force_const_mem): ...this new function.
7112 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7113 argument.
7114 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7115 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7116 to...
7117 (xtensa_cannot_force_const_mem): ...this new function.
7118
7119 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7120
7121 * config/mips/mips.c (mips16_build_function_stub): Call
7122 build_function_type_list instead of build_function_type.
7123 (mips16_build_call_stub): Likewise.
7124
7125 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7126
7127 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7128 instead of build_function_type.
7129
7130 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7131
7132 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7133 instead of build_function_type.
7134
7135 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7136
7137 PR target/48678
7138 * config/i386/i386.md (insv): Change operand 0 constraint to
7139 "register_operand". Change operand 1 and 2 constraint to
7140 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7141 * config/i386/sse.md (sse4_1_pinsrb): Export.
7142 (sse2_pinsrw): Ditto.
7143 (sse4_1_pinsrd): Ditto.
7144 (sse4_1_pinsrq): Ditto.
7145 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7146 * config/i386/i386.c (ix86_expand_pinsr): New.
7147
7148 2011-04-20 Easwaran Raman <eraman@google.com>
7149
7150 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7151 containing union type only with -fstrict-aliasing.
7152
7153 2011-04-20 Jim Meyering <meyering@redhat.com>
7154
7155 Remove useless if-before-free tests.
7156 * calls.c (expand_call, save_area): Likewise.
7157 * cfgcleanup.c (try_forward_edges): Likewise.
7158 * collect2.c (collect_execute): Likewise.
7159 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7160 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7161 * coverage.c (coverage_checksum_string): Likewise.
7162 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7163 * cselib.c (cselib_init): Likewise.
7164 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7165 (df_set_clean_cfg): Likewise.
7166 * function.c (free_after_compilation): Likewise.
7167 * gcc.c (do_spec_1, main): Likewise.
7168 * gcov.c (create_file_names): Likewise.
7169 * gensupport.c (identify_predicable_attribute): Likewise.
7170 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7171 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7172 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7173 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7174 * ipa-pure-const.c (local_pure_const): Likewise.
7175 * ipa-reference.c (propagate): Likewise.
7176 * ira-costs.c (free_ira_costs): Likewise.
7177 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7178 * matrix-reorg.c (mat_free): Likewise.
7179 * prefix.c (get_key_value): Likewise.
7180 * profile.c (compute_value_histograms): Likewise.
7181 * reload1.c (free_reg_equiv): Likewise.
7182 * sched-deps.c (free_deps): Likewise.
7183 * sel-sched-ir.c (fence_clear): Likewise.
7184 * sese.c (set_rename, if_region_set_false_region): Likewise.
7185 * tree-data-ref.c (free_rdg): Likewise.
7186 * tree-eh.c (lower_try_finally): Likewise.
7187 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7188 * tree-ssa-live.c (delete_var_map): Likewise.
7189 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7190 * tree-ssa-pre.c (phi_trans_add): Likewise.
7191
7192 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7193
7194 PR tree-optimization/48611
7195 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7196 beyond ERT_MUST_NOT_THROW region.
7197
7198 2011-04-20 Catherine Moore <clm@codesourcery.com>
7199
7200 * config/mips/mips.opt (mfix-24k): New.
7201 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7202 * config/mips/mips.md (length): Increase by 4 for stores if
7203 fixing 24K errata.
7204 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7205 all noreorder if fixing 24K errata.
7206 * doc/invoke.texi: Document mfix-24k.
7207
7208 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7209
7210 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7211 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7212
7213 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7214
7215 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7216 (const_ok_for_op): ... to here.
7217
7218 2011-04-20 Kai Tietz <ktietz@redhat.com>
7219
7220 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7221 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7222
7223 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7224
7225 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7226
7227 2011-04-20 Richard Guenther <rguenther@suse.de>
7228
7229 PR tree-optimization/47892
7230 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7231 are if-convertible.
7232
7233 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7234
7235 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7236
7237 2011-04-20 Tristan Gingold <gingold@adacore.com>
7238
7239 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7240
7241 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7242
7243 PR target/18145
7244
7245 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7246 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7247 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7248 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7249 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7250
7251 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7252 New prototype.
7253
7254 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7255 (avr_asm_named_section, avr_asm_output_aligned_common,
7256 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7257 New functions to update...
7258 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7259 (avr_asm_init_sections): Overwrite section callbacks for
7260 data_section, bss_section.
7261 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7262 from here to...
7263 (avr_file_end): ...here.
7264
7265 2011-04-20 Richard Guenther <rguenther@suse.de>
7266
7267 PR middle-end/48695
7268 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7269 objects and types here. Adjust for their offset before comparing.
7270
7271 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7272
7273 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7274 statement per copy.
7275
7276 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7277
7278 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7279 (GIMPLE_H): Include $(INTERNAL_FN_H).
7280 (OBJS-common): Add internal-fn.o.
7281 (internal-fn.o): New rule.
7282 * internal-fn.def: New file.
7283 * internal-fn.h: Likewise.
7284 * internal-fn.c: Likewise.
7285 * gimple.h: Include internal-fn.h.
7286 (GF_CALL_INTERNAL): New gf_mask.
7287 (gimple_statement_call): Put fntype into a union with a new
7288 internal_fn field.
7289 (gimple_build_call_internal): Declare.
7290 (gimple_build_call_internal_vec): Likewise.
7291 (gimple_call_same_target_p): Likewise.
7292 (gimple_call_internal_p): New function.
7293 (gimple_call_internal_fn): Likewise.
7294 (gimple_call_fntype): Return null for internal calls.
7295 (gimple_call_set_fntype): Assert that the function is not internal.
7296 (gimple_call_set_fn): Likewise.
7297 (gimple_call_set_fndecl): Likewise.
7298 (gimple_call_set_internal_fn): New function.
7299 (gimple_call_addr_fndecl): Handle null functions.
7300 (gimple_call_return_type): Likewise null types.
7301 * gimple.c (gimple_build_call_internal_1): New function.
7302 (gimple_build_call_internal): Likewise.
7303 (gimple_build_call_internal_vec): Likewise.
7304 (gimple_call_same_target_p): Likewise.
7305 (gimple_call_flags): Handle calls to internal functions.
7306 (gimple_call_fnspec): New function.
7307 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7308 (gimple_has_side_effects): Handle null functions.
7309 (gimple_rhs_has_side_effects): Likewise.
7310 (gimple_call_copy_skip_args): Handle calls to internal functions.
7311 * cfgexpand.c (expand_call_stmt): Likewise.
7312 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7313 * gimple-fold.c (gimple_fold_call): Handle null functions.
7314 (gimple_fold_stmt_to_constant_1): Don't fold
7315 calls to internal functions.
7316 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7317 functions.
7318 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7319 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7320 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7321 (do_warn_unused_result): Likewise.
7322 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7323 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7324 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7325 the target of a call.
7326 (initialize_hash_element): Update accordingly.
7327 (hashable_expr_equal_p): Use gimple_call_same_target_p.
7328 (iterative_hash_hashable_expr): Handle calls to internal functions.
7329 (print_expr_hash_elt): Likewise.
7330 * tree-ssa-pre.c (can_value_number_call): Likewise.
7331 (eliminate): Handle null functions.
7332 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7333 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7334 (find_func_aliases): Likewise.
7335 * value-prof.c (gimple_ic_transform): Likewise.
7336 (gimple_indirect_call_to_profile): Likewise.
7337 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7338 * lto-streamer-out.c (output_gimple_stmt): Likewise.
7339
7340 2011-04-19 Jan Hubicka <jh@suse.cz>
7341
7342 * ipa-inline-transform.c (save_inline_function_body): Add comments.
7343 * ipa-inline.c (inline_small_functions): Compute summaries first,
7344 populate heap later.
7345
7346 2011-04-19 Jan Hubicka <jh@suse.cz>
7347
7348 * cgraph.h (save_inline_function_body): Remove.
7349 * ipa-inline-transform.c: New file, broke out of...
7350 * ipa-inline.c: ... this one; Update toplevel comment.
7351 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7352 make global.
7353 (update_noncloned_frequencies): Move to ipa-inline-transform.c
7354 (cgraph_mark_inline_edge): Rename to inline_call; move to
7355 ipa-inline-transform.c.
7356 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7357 move to ipa-inline-transform.c
7358 (recursive_inlining, inline_small_functions, flatten_function,
7359 ipa_inline, inline_always_inline_functions,
7360 early_inline_small_functions): Update.
7361 (inline_transform): Move to ipa-inline-transform.c.
7362 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7363 Declare.
7364 * Makefile.in (ipa-inline-transform.o): New file.
7365 * cgraphunit.c (save_inline_function_body): Move to
7366 ipa-inline-transform.c
7367
7368 2011-04-19 DJ Delorie <dj@redhat.com>
7369
7370 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7371 registers if we already know there aren't any.
7372 (m32c_emit_epilogue): Don't emit a barrier here.
7373 (m32c_emit_eh_epilogue): Likewise.
7374 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7375 operands at expand time.
7376 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7377 int" wchar type.
7378 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7379 duplicates. Provide aliases instead.
7380 * config/m32c/prologue.md (eh_return): Emit a barrier here.
7381 (eh_epilogue): Add a "(return)" here as a hint to other parts of
7382 the compiler.
7383
7384 2011-04-19 Anatoly Sokolov <aesok@post.ru>
7385
7386 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7387 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7388 (general_or_i64_p, sparc_register_move_cost): New function.
7389
7390 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7391
7392 * doc/install.texi (Configuration, --enable-threads): Remove mach.
7393 Add lynx, mipssde. Sort table.
7394
7395 2011-04-19 Xinliang David Li <davidxl@google.com>
7396
7397 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
7398 not negative.
7399
7400 2011-04-19 Jakub Jelinek <jakub@redhat.com>
7401
7402 PR target/48678
7403 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
7404 is a SUBREG with non-MODE_INT mode inside of it.
7405
7406 2011-04-19 Martin Jambor <mjambor@suse.cz>
7407
7408 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
7409 also according to actual contants.
7410 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
7411 (gimple_fold_call): Use it.
7412 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
7413
7414 2011-04-19 Martin Jambor <mjambor@suse.cz>
7415
7416 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
7417 non-pointer assignments.
7418
7419 2011-04-19 Martin Jambor <mjambor@suse.cz>
7420
7421 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
7422 account anc_offset and otr_type from the indirect edge info.
7423 * ipa-prop.c (get_ancestor_addr_info): New function.
7424 (compute_complex_ancestor_jump_func): Assignment analysis moved to
7425 get_ancestor_addr_info, call it.
7426 (ipa_note_param_call): Do not initialize information about polymorphic
7427 calls, return the indirect call graph edge. Remove the last
7428 parameter, adjust all callers.
7429 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
7430 parameters. Initialize polymorphic information in the indirect edge.
7431
7432 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7433
7434 PR lto/48148
7435 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
7436 the types if they have different enumeration identifiers.
7437
7438 2011-04-19 Jan Hubicka <jh@suse.cz>
7439
7440 * cgraph.h (cgraph_optimize_for_size_p): Declare.
7441 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
7442 * predict.c (cgraph_optimize_for_size_p): Break out from ...
7443 (optimize_function_for_size_p) ... here.
7444
7445 2011-04-19 Richard Guenther <rguenther@suse.de>
7446
7447 PR lto/48207
7448 * tree.c (free_lang_data): Do not reset the decl-assembler-name
7449 langhook.
7450
7451 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7452
7453 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
7454 if DECL_NO_INLINE_WARNING_P is set on the function.
7455
7456 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
7457
7458 PR fortran/47976
7459 * reload1.c (inc_for_reload): Return void. All callers changed.
7460 (emit_input_reload_insns): Don't try to delete previous output
7461 reloads to a register, or record spill_reg_store for autoincs.
7462
7463 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
7464
7465 * gengtype.h: Updated copyright year.
7466 (struct input_file_st): Add inpisplugin field.
7467 (type_fileloc): New function.
7468 * gengtype.c
7469 (write_typed_struct_alloc_def): Add gcc_assert.
7470 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
7471 (write_typed_alloc_defns): Don't output for plugin files.
7472 (input_file_by_name): Clear inpisplugin field.
7473 (main): Set inpisplugin field for plugin files.
7474
7475 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
7476
7477 * gengtype-state.c (string_eq): New.
7478 (read_state): Use string_eq instead of strcmp when creating the
7479 state_ident_tab.
7480
7481 2011-04-19 Wei Guozhi <carrot@google.com>
7482
7483 PR target/47855
7484 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
7485 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
7486 linkage.
7487 * config/arm/constraints.md (Uu): New constraint.
7488 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
7489
7490 2011-04-19 Tristan Gingold <gingold@adacore.com>
7491
7492 * config.gcc (-*-*-*vms): Added.
7493 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
7494 definitions moved.
7495 * config/vms/vms-ld.c: New file.
7496 * config/vms/vms-ar.c: New file.
7497 * config/vms/t-vmsnative: New file.
7498
7499 2011-04-18 Xinliang David Li <davidxl@google.com>
7500
7501 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
7502
7503 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7504
7505 PR middle-end/48661
7506 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
7507 if TREE_TYPE (v) is non-NULL.
7508
7509 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
7510 gimple_get_virt_mehtod_for_binfo.
7511 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
7512 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
7513 callers.
7514 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7515
7516 2011-04-18 Michael Matz <matz@suse.de>
7517 Steve Ellcey <sje@cup.hp.com>
7518
7519 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
7520 use its mode as source mode if it isn't VOIDmode.
7521
7522 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
7523
7524 * doc/passes.texi: Fill crossref nodes.
7525
7526 2011-04-18 Jim Meyering <meyering@redhat.com>
7527
7528 Fix doubled-word typos in comments and strings
7529 * config/alpha/vms-unwind.h: s/for for/for/
7530 * config/arm/unwind-arm.h: Likewise.
7531 * config/microblaze/microblaze.c: Likewise.
7532 * config/sh/constraints.md: s/in in/in/
7533 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
7534
7535 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
7536
7537 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
7538 (AVX_FLOAT_MODE_P): Ditto.
7539 (AVX128_VEC_FLOAT_MODE_P): Ditto.
7540 (AVX256_VEC_FLOAT_MODE_P): Ditto.
7541 (AVX_VEC_FLOAT_MODE_P): Ditto.
7542 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
7543 (UNSPEC_MASKSTORE): Ditto.
7544 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
7545 Merge from <sse>_movmsk<ssemodesuffix> and
7546 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
7547 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
7548 iterator.
7549 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
7550 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
7551 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
7552
7553 2011-04-18 Jan Hubicka <jh@suse.cz>
7554
7555 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
7556
7557 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
7558 (want_inline_function_called_once_p): Break out the logic from
7559 ipa_inline.
7560 (edge_badness): Ensure that profile is not misupdated.
7561 (lookup_recursive_calls): Prioritize by call frequencies.
7562 (inline_small_functions): Move program size estimates here;
7563 actually process whole queue even when unit growth has been
7564 met. (to properly compute inline_failed reasons and for the
7565 case unit size decrease.) Revisit comments on recursive inlining.
7566 (ipa_inline): Remove unit summary code; first inline hot calls
7567 of functions called once, cold calls next.
7568 (order, nnodes): Remove unused variables.
7569 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
7570 (GTFILES): Remove ipa-inline.c
7571 * sel-sched.c (fill_insns): Silence uninitialized var warning.
7572
7573 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7574
7575 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
7576
7577 2011-04-18 Jie Zhang <jie@codesourcery.com>
7578 Richard Earnshaw <rearnsha@arm.com>
7579
7580 * arm.c (neon_builtin_type_bits): Remove.
7581 (typedef enum neon_builtin_mode): New.
7582 (T_MAX): Don't define.
7583 (typedef enum neon_builtin_datum): Remove bits, codes[],
7584 num_vars and base_fcode. Add mode, code and fcode.
7585 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
7586 VAR10): Change accordingly.
7587 (neon_builtin_data[]): Change accordingly
7588 (arm_init_neon_builtins): Change accordingly.
7589 (neon_builtin_compare): Remove.
7590 (locate_neon_builtin_icode): Remove.
7591 (arm_expand_neon_builtin): Change accordingly.
7592
7593 * arm.h (enum arm_builtins): Move to ...
7594 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
7595
7596 * arm.c (arm_builtin_decl): Declare.
7597 (TARGET_BUILTIN_DECL): Define.
7598 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
7599 (arm_builtin_decls[]): New.
7600 (arm_init_neon_builtins): Store builtin declarations in
7601 arm_builtin_decls[].
7602 (arm_init_tls_builtins): Likewise.
7603 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
7604 (arm_builtin_decl): New.
7605
7606 2011-04-18 Richard Guenther <rguenther@suse.de>
7607
7608 * tree.c (upper_bound_in_type): Build properly canonicalized
7609 INTEGER_CSTs.
7610 (lower_bound_in_type): Likewise.
7611
7612 2011-04-18 Richard Guenther <rguenther@suse.de>
7613
7614 * gimple.h (gimple_call_addr_fndecl): New function.
7615 (gimple_call_fndecl): Use it.
7616 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
7617 for direct calls.
7618 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
7619 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
7620
7621 2011-04-18 Richard Guenther <rguenther@suse.de>
7622
7623 PR middle-end/48650
7624 * tree.c (build_string): STRING_CST is now derived from tree_typed.
7625
7626 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7627
7628 PR lto/48492
7629 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
7630 DECL_IN_CONSTANT_POOL without RTL.
7631
7632 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
7633 Ira Rosen <ira.rosen@linaro.org>
7634
7635 PR target/48252
7636 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
7637 to match neon_vzip/vuzp/vtrn_internal.
7638 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
7639 outputs explicitly dependent on both inputs.
7640 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
7641
7642 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7643
7644 PR tree-optimization/48616
7645 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
7646 whether the shift is by scalar or vector based on whether all SLP
7647 scalar stmts have the same rhs.
7648
7649 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
7650
7651 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
7652 memory operands.
7653
7654 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7655
7656 PR target/43700
7657 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
7658 registers.
7659
7660 2011-04-17 Jan Hubicka <jh@suse.cz>
7661
7662 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7663 * cgrpahunit.c (cgraph_finalize_function): Do not set
7664 finalized_by_frontend.
7665 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7666 finalized_by_frontend.
7667
7668 2011-04-17 Jan Hubicka <jh@suse.cz>
7669
7670 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7671 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7672 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7673 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7674 method.
7675 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7676 gimple-fold.c
7677 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7678
7679 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7680
7681 PR lto/48538
7682 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7683 is non-null before accessing it.
7684 (input_cgraph): Remove trailing spaces.
7685
7686 2011-04-17 Revital Eres <revital.eres@linaro.org>
7687
7688 * params.def (sms-min-sc): New param flag.
7689 * modulo-sched.c (sms_schedule): Use it.
7690 * doc/invoke.texi (sms-min-sc): Document it.
7691
7692 2011-04-17 Jan Hubicka <jh@suse.cz>
7693
7694 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7695 present, also set gimple_call_set_cannot_inline.
7696 * ipa-inline.c: Update toplevel comment.
7697 (MAX_TIME): Remove.
7698 (cgraph_clone_inlined_nodes): Fix linebreaks.
7699 (cgraph_check_inline_limits): Restructure to ...
7700 (caller_growth_limits): ... this one; be more tolerant
7701 on growth in nested inline chains; add explanatory comment;
7702 fix stack accounting thinko introduced by previous patch.
7703 (cgraph_default_inline_p): Remove.
7704 (report_inline_failed_reason): New function.
7705 (can_inline_edge_p): New function.
7706 (can_early_inline_edge_p): New function.
7707 (leaf_node_p): Move upwards in file.
7708 (want_early_inline_function_p): New function.
7709 (want_inline_small_function_p): New function.
7710 (want_inline_self_recursive_call_p): New function.
7711 (cgraph_edge_badness): Rename to ...
7712 (edge_badness) ... this one; fix linebreaks.
7713 (update_edge_key): Update call of edge_baddness; add
7714 detailed dump about queue updates.
7715 (update_caller_keys): Use can_inline_edge_p and
7716 want_inline_small_function_p.
7717 (cgraph_decide_recursive_inlining): Rename to...
7718 (recursive_inlining): Use can_inline_edge_p and
7719 want_inline_self_recursive_call_p; simplify and remove no longer
7720 valid FIXME.
7721 (cgraph_set_inline_failed): Remove.
7722 (add_new_edges_to_heap): Use can_inline_edge_p and
7723 want_inline_small_function_p.
7724 (cgraph_decide_inlining_of_small_functions): Rename to ...
7725 (inline_small_functions): ... this one; cleanup; use
7726 can/want predicates; cleanup debug ouput; work edges till fibheap
7727 is exhausted and do not stop once unit growth is reached; remove
7728 later loop processing remaining edges.
7729 (cgraph_flatten): Rename to ...
7730 (flatten_function): ... this one; use can_inline_edge_p
7731 and can_early_inline_edge_p predicates.
7732 (cgraph_decide_inlining): Rename to ...
7733 (ipa_inline): ... this one; remove unreachable nodes before
7734 inlining functions called once; simplify the pass.
7735 (cgraph_perform_always_inlining): Rename to ...
7736 (inline_always_inline_functions): ... this one; use
7737 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7738 (cgraph_decide_inlining_incrementally): Rename to ...
7739 (early_inline_small_functions): ... this one; simplify
7740 using new predicates; cleanup; make dumps prettier.
7741 (cgraph_early_inlining): Rename to ...
7742 (early_inliner): newer inline regular functions into always-inlines;
7743 fix updating of call stmt summaries.
7744 (pass_early_inline): Update for new names.
7745 (inline_transform): Fix formating.
7746 (gate_cgraph_decide_inlining): Rename to ...
7747 (pass_ipa_inline): ... this one.
7748 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7749 * ipa-inline-analysis.c (dump_inline_summary): Update.
7750 (compute_inline_parameters): Do not compute disregard_inline_limits;
7751 look for mismatching arguments.
7752 (estimate_growth): Fix handlig of non-trivial self recursion.
7753 (inline_read_summary): Do not read info->disregard_inline_limits.
7754 (inline_write_summary): Do not write info->disregard_inline_limits.
7755 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7756 and move all checks into can_inline_edge_p predicate; re-enable code
7757 comparing optimization levels.
7758 (expand_call_inline): Do not test inline_forbidden_into_p.
7759 * Makefile.in (ipa-inline.o): Update arguments.
7760
7761 2011-04-17 Revital Eres <revital.eres@linaro.org>
7762
7763 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7764
7765 2011-04-17 Revital Eres <revital.eres@linaro.org>
7766
7767 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7768
7769 2011-04-17 Michael Matz <matz@suse.de>
7770
7771 PR tree-optimization/48622
7772 PR lto/48645
7773 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7774 in same order as they're written.
7775
7776 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7777
7778 * config/pa/predicates.md: Reorganize and simplify predicates.
7779 Eliminate duplicate code checks.
7780 (arith_operand): Rename to arith14_operand
7781 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7782 * config/pa/pa.md: Use renamed operands.
7783 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7784 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7785 arith11_operand, adddi3_operand, indexed_memory_operand,
7786 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7787 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7788 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7789 move_dest_operand, move_src_operand, prefetch_cc_operand,
7790 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7791 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7792 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7793 div_operand, int5_operand, movb_comparison_operator,
7794 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7795 arith_double_operand, ireg_operand, lhs_lshift_operand,
7796 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7797 integer_store_memory_operand): Likewise.
7798 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7799 (integer_store_memory_operand, read_only_operand,
7800 function_label_operand, borx_reg_operand,
7801 non_hard_reg_operand): Likewise.
7802 (eq_neq_comparison_operator): Delete unused operator.
7803 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7804 function_label_operand.
7805 (emit_move_sequence): Likewise.
7806
7807 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7808
7809 * config/i386/sse.md (sseunpackmode): New mode attribute.
7810 (ssepackmode): Ditto.
7811 (vec_pack_trunc_<mode>): Macroize expander from
7812 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7813 (vec_unpacks_lo_<mode>): Macroize expander from
7814 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7815 (vec_unpacks_hi_<mode>): Macroize expander from
7816 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7817 (vec_unpacku_lo_<mode>): Macroize expander from
7818 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7819 (vec_unpacku_hi_<mode>): Macroize expander from
7820 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7821 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7822 ix86_expand_sse4_unpack.
7823 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7824
7825 2011-04-16 Jan Hubicka <jh@suse.cz>
7826
7827 * cgraphbuild.c: Include ipa-inline.h.
7828 (reset_inline_failed): Use initialize_inline_failed.
7829 * cgraph.c: Include ipa-inline.h.
7830 (cgraph_create_node_1): Do not initialize estimated_growth.
7831 (initialize_inline_failed): More to ipa-inline-analysis.c
7832 (dump_cgraph_node): Do not dump inline flags.
7833 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7834 and disregard_inline_limits flags.
7835 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7836 time, size, estimated_growth.
7837 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7838 Update.
7839 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7840 DECL_DISREGARD_INLINE_LIMITS.
7841 (cgraph_analyze_function): Do not initialize
7842 node->local.disregard_inline_limits.
7843 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7844 inlinable, versionable and disregard_inline_limits.
7845 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7846 cgraph_check_inline_limits, cgraph_default_inline_p,
7847 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7848 add_new_edges_to_heap): Update.
7849 (cgraph_decide_inlining_of_small_function): Update; set
7850 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7851 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7852 cgraph_decide_inlining_incrementally): Update.
7853 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7854 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7855 time, size and estimated_growth parameters.
7856 (estimate_edge_growth): Update.
7857 (initialize_inline_failed): Declare.
7858 * ipa-split.c: Include ipa-inline.h
7859 (execute_split_functions): Update.
7860 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7861 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7862 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7863 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7864 estimated_growth to INT_MIN.
7865 (inline_node_duplication_hook): Likewise.
7866 (dump_inline_summary): Dump new fields.
7867 (compute_inline_parameters): Update.
7868 (estimate_edge_time, estimate_time_after_inlining,
7869 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7870 inline_write_summary):
7871 (initialize_inline_failed): Move here from cgraph.c.
7872 * tree-sra.c: Include ipa-inline.h.
7873 (ipa_sra_preliminary_function_checks): Update.
7874 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7875 ipa-inline.h.
7876
7877 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7878
7879 * config/i386/sse.md (V16): New mode iterator.
7880 (VI1, VI8): Ditto.
7881 (AVXMODEQI, AVXMODEDI): Remove.
7882 (sse2, sse3): New mode attribute.
7883 (mov<mode>): Use V16 mode iterator.
7884 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7885 (push<mode>1): Use V16 mode iterator.
7886 (movmisalign<mode>): Ditto.
7887 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7888 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7889 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7890 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7891 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7892 avx_movdqu<avxmodesuffix>.
7893 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7894 *avx_movdqu<avxmodesuffix>.
7895 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7896 avx_lddqu<avxmodesuffix>.
7897 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7898 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7899 avx_movnt<AVXMODEDI:mode>.
7900 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7901 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7902
7903 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7904
7905 PR target/48629
7906 * haifa-sched.c (prune_ready_list, schedule_block): Use
7907 sched_pressure_p rather than flag_sched_pressure.
7908
7909 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7910
7911 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7912 cgraph_get_node instead of cgraph_get_create_node.
7913
7914 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7915
7916 * cfgexpand.c (expand_debug_expr): Use
7917 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7918
7919 2011-04-15 Michael Matz <matz@suse.de>
7920
7921 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7922 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7923 * function.c (gimplify_parameters): Ditto.
7924 * gimplify.c (gimplify_vla_decl): Ditto.
7925
7926 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7927 (gimple_call_set_alloca_for_var): New inline function.
7928 (gimple_call_alloca_for_var_p): Ditto.
7929 * gimple.c (gimple_build_call_from_tree): Remember
7930 CALL_ALLOCA_FOR_VAR_P state.
7931 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7932
7933 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7934 calls if they were for VLA objects.
7935
7936 2011-04-15 Martin Jambor <mjambor@suse.cz>
7937
7938 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7939 of ADR_EXPRs.
7940
7941 2011-04-15 Martin Jambor <mjambor@suse.cz>
7942
7943 PR middle-end/48601
7944 * tree-emutls.c (lower_emutls_function_body): Call
7945 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7946 result is non-NULL.
7947
7948 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7949
7950 * c-decl.c (detect_field_duplicates): Call
7951 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7952
7953 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7954
7955 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7956 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7957 * ipa-pure-const.c (check_stmt): Call it.
7958 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7959
7960 2011-04-15 Richard Guenther <rguenther@suse.de>
7961
7962 PR tree-optimization/48290
7963 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7964 Properly decide inhibiting propagation based on the valueized
7965 operand. Do loop-closed SSA form preserving here ...
7966 (init_copy_prop): ... not here.
7967
7968 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7969
7970 PR target/48612
7971 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7972 (*ieee_smax<mode>3): Likewise.
7973
7974 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7975
7976 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7977 Replace match_operand with match_dup for the third operand in
7978 these expanders.
7979
7980 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7981
7982 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7983 to track processing of conditionals. Update all callers.
7984 (try_combine, simplify_if_then_else): Update.
7985
7986 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7987
7988 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7989 -fsched-pressure.
7990
7991 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7992
7993 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7994 instead of match_operand for operand 3.
7995
7996 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7997
7998 * recog.h (insn_operand_data): Add an "allows_mem" field.
7999 * genoutput.c (output_operand_data): Initialize it.
8000 * optabs.c (maybe_legitimize_operand_same_code): New function.
8001 (maybe_legitimize_operand): Use it when matching the original
8002 op->value.
8003
8004 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8005
8006 * gimplify.c: Fix issues in comments throughout.
8007 (voidify_wrapper_expr): Fix long line.
8008 (build_stack_save_restore): Likewise.
8009 (gimplify_loop_expr): Likewise.
8010 (gimplify_compound_lval): Likewise.
8011 (gimplify_init_ctor_eval): Likewise.
8012 (gimplify_modify_expr_rhs): Likewise.
8013 (omp_notice_threadprivate_variable): Likewise.
8014
8015 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8016
8017 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8018 original one if this is not a builtin function.
8019
8020 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8021
8022 PR target/48605
8023 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8024 offset it as needed based on top 2 bits in operands[3], change
8025 MEM mode to SFmode and mask those 2 bits away from operands[3].
8026
8027 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8028
8029 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8030 change from objc_declare_protocols() to objc_declare_protocol().
8031
8032 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8033
8034 * config/i386/sse.md (sse4_1): New mode attribute.
8035 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8036 avx_blend<ssemodesuffix><avxmodesuffix> and
8037 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8038 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8039 avx_blendv<ssemodesuffix><avxmodesuffix> and
8040 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8041 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8042 avx_dp<ssemodesuffix><avxmodesuffix> and
8043 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8044 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8045 (sse4_1_packusdw): Merge with *avx_packusdw.
8046 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8047 (sse4_1_pblendw): Merge with *avx_pblendw.
8048 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8049 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8050 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8051 VF mode iterator.
8052 (sse4_1_round<ssescalarmodesuffix>): Merge with
8053 *avx_round<ssescalarmodesuffix>.
8054 (aesenc): Merge with *avx_aesenc.
8055 (aesenclast): Merge with *avx_aesenclast.
8056 (aesdec): Merge with *avx_aesdec.
8057 (aesdeclast): Merge with *avx_aesdeclast.
8058 (pclmulqdq): Merge with *pclmulqdq.
8059 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8060 New predicate.
8061 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8062
8063 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8064
8065 PR middle-end/48608
8066 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8067 (align_local_variable): This. Update DECL_ALIGN.
8068 (add_stack_var): Updated.
8069 (expand_one_stack_var): Likewise.
8070
8071 2011-04-14 Richard Guenther <rguenther@suse.de>
8072
8073 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8074 Remove.
8075 (dse_initialize_block_local_data, dse_leave_block,
8076 record_voperand_set, get_stmt_uid): Likewise.
8077 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8078 (dse_optimize_stmt): Remove voperand set handling code.
8079 Simplify and improve to handle any kind of killing stmt.
8080 (dse_record_phi): Remove.
8081 (dse_enter_block): Simplify.
8082 (tree_ssa_dse): Likewise.
8083 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8084
8085 2011-04-14 Jan Hubicka <jh@suse.cz>
8086
8087 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8088 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8089 (cgraph_local_info): Remove inline_summary.
8090 * ipa-cp.c: Include ipa-inline.h.
8091 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8092 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8093 accesor.
8094 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8095 (input_overwrite_node): Do not set inline summary.
8096 (input_node): Do not stream inline summary.
8097 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8098 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8099 growth; we do not have inline parameters computed for that anyway.
8100 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8101 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8102 (inline_summary_t): New type and VECtor.
8103 (debug_inline_summary, dump_inline_summaries): Declare.
8104 (inline_summary): Use VOCtor.
8105 (estimate_edge_growth): Kill hack computing call stmt size directly.
8106 * lto-section-in.c (lto_section_name): Add inline section.
8107 * ipa-inline-analysis.c: Include lto-streamer.h
8108 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8109 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8110 (inline_summary_vec): Define.
8111 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8112 dump_inline_summaries): New functions.
8113 (estimate_function_body_sizes): Properly compute size/time of outgoing
8114 calls.
8115 (compute_inline_parameters): Alloc inline_summary; do not compute
8116 size/time of incomming calls.
8117 (estimate_edge_time): Avoid missing time summary hack.
8118 (inline_read_summary): Read inline summary info.
8119 (inline_write_summary): Write inline summary info.
8120 (inline_free_summary): Free all hooks and inline summary vector.
8121 * lto-streamer.h: Add LTO_section_inline_summary section.
8122 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8123 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8124
8125 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8126
8127 * tree-vectorizer.h (vect_strided_store_supported): Add a
8128 HOST_WIDE_INT argument.
8129 (vect_strided_load_supported): Likewise.
8130 (vect_permute_store_chain): Return void.
8131 (vect_transform_strided_load): Likewise.
8132 (vect_permute_load_chain): Delete.
8133 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8134 count argument. Check that the count is a power of two.
8135 (vect_strided_load_supported): Likewise.
8136 (vect_permute_store_chain): Return void. Update after above changes.
8137 Assert that the access is supported.
8138 (vect_permute_load_chain): Likewise.
8139 (vect_transform_strided_load): Return void.
8140 * tree-vect-stmts.c (vectorizable_store): Update calls after
8141 above interface changes.
8142 (vectorizable_load): Likewise.
8143 (vect_analyze_stmt): Don't check for strided powers of two here.
8144
8145 2011-04-14 Richard Guenther <rguenther@suse.de>
8146
8147 PR tree-optimization/48590
8148 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8149 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8150 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8151 BUILT_IN_STACK_SAVE.
8152 * tree-ssa-dce.c (propagate_necessity): Handle
8153 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8154
8155 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8156
8157 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8158 objc_declare_class.
8159
8160 2011-04-14 Richard Guenther <rguenther@suse.de>
8161
8162 * tree.h (get_object_alignment_1): Declare.
8163 * builtins.c (get_object_alignment_1): Split out worker from ...
8164 (get_object_alignment): ... here.
8165 * fold-const.c (get_pointer_modulus_and_residue): Use
8166 get_object_alignment_1.
8167
8168 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8169
8170 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8171 type parameter.
8172 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8173 parameter. Generalise code to handle arrays as well as vectors.
8174 (vect_setup_realignment): Update accordingly.
8175 * tree-vect-stmts.c (vectorizable_store): Likewise.
8176 (vectorizable_load): Likewise.
8177
8178 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8179
8180 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8181 within the per-copy loop.
8182
8183 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8184
8185 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8186 in the dump file.
8187
8188 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8189
8190 * doc/options.texi (Negative): Explicitly mention that the
8191 Negative chain must be circular.
8192
8193 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8194
8195 * function.h (block_chainon): Declare.
8196 * function.c (block_chainon): Define.
8197
8198 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8199 Eric Weddington <eric.weddington@atmel.com>
8200 Georg-Johann Lay <avr@gjlay.de>
8201
8202 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8203 New Includes
8204 (avr_init_builtins, avr_expand_builtin,
8205 avr_expand_delay_cycles, avr_expand_unop_builtin,
8206 avr_expand_binop_builtin ): New functions.
8207 (avr_builtin_id): New enum
8208 (struct avr_builtin_description): New struct
8209 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8210 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8211
8212 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8213 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8214 UNSPECV_DELAY_CYCLES): new enumeration values
8215 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8216 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8217 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8218 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8219 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8220 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8221 "fmulsu"): New insns
8222
8223 * config/avr/avr-c.c: fix line endings
8224 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8225 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8226 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8227 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8228 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8229
8230 * doc/extend.texi (AVR Built-in Functions): New node
8231 (Target Builtins): Add documentation of AVR
8232 built-in functions.
8233
8234 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8235
8236 PR target/44643
8237 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8238 alone. Error if non-const data has attribute progmem.
8239
8240 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8241
8242 * tree.h (struct tree_constructor): Include tree_typed instead of
8243 tree_common.
8244 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8245 TS_TYPED instead of TS_COMMON.
8246
8247 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8248
8249 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8250 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8251 (sse2_psadbw): Merge with *avx_psadbw.
8252 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8253 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8254 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8255 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8256 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8257 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8258 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8259 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8260 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8261 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8262 (ssse3_palignrti): Merge with *avx_palignrti.
8263
8264 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8265
8266 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8267 * tree-ssanames.c (fini_ssanames): VEC_free it.
8268 (make_ssa_name_fn): Update for VECness of free_ssanames.
8269 (release_ssa_name, release_dead_ssa_names): Likewise.
8270 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8271 tree_common.
8272 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8273 TS_TYPED instead of TS_COMMON.
8274
8275 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8276
8277 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8278 statistics_counter_event.
8279 * tree-ssa-copyrename.c (stats): Define.
8280 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8281 statistics_counter_event.
8282 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8283 (bswap_stats, widen_mul_stats): Define.
8284 (insert_reciprocals): Increment rdivs_inserted.
8285 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8286 rfuncs_inserted. Add calls to statistics_counter_event.
8287 (execute_cse_sincos_1): Increment inserted.
8288 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8289 statistics_counter_event.
8290 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8291 of bswap_stats. Add calls to statistics_counter_event.
8292 (convert_mult_to_widen): Increment widen_mults_inserted.
8293 (convert_plusminus_to_widen): Increment maccs_inserted.
8294 (convert_mult_to_fma): Increment fmas_inserted.
8295 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8296 calls to statistics_counter_event.
8297
8298 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8299
8300 PR rtl-optimization/48455
8301 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8302 `temp_costs->mem_cost'.
8303
8304 2011-04-13 Jan Hubicka <jh@suse.cz>
8305
8306 * ipa-inline.h: New file.
8307 * ipa-inline-analysis.c: New file. Broken out of ...
8308 * ipa-inline.c: ... this file; update toplevel comment;
8309 include ipa-inline.h
8310 (inline_summary): Move to ipa-inline.h
8311 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8312 ipa-inline-analysis.c.
8313 (cgraph_estimate_time_after_inlining): Rename to
8314 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8315 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8316 to estimate_edge_growth.
8317 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8318 rename to estimate_size_after_inlining.
8319 (cgraph_mark_inline_edge): Update for new naming convention.
8320 (cgraph_check_inline_limits): Likewise.
8321 (cgraph_edge_badness): Likewise.
8322 (cgraph_decide_recursive_inlining): Likewise.
8323 (cgraph_decide_inlining_of_small_functions): Likewise.
8324 (cgraph_decide_inlining_incrementally): Likewise.
8325 (cgraph_estimate_growth): Rename to estimate_growth; move to
8326 ipa-inline-analysis.c.
8327 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8328 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8329 (compute_inline_parameters): Likewise.
8330 (compute_inline_parameters_for_current): Likewise.
8331 (pass_inline_parameters): Likewise.
8332 (inline_indirect_intraprocedural_analysis): Likewise.
8333 (analyze_function): Rename to inline_analyze_function; likewise.
8334 (add_new_function): Move to ipa-inline-analysis.c.
8335 (inline_generate_summary): Likewise.
8336 (inline_read_summary): Likewise.
8337 (inline_write_summary): Likewise.
8338 * Makefile.in (ipa-inline-analysis.c): New file.
8339
8340 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8341
8342 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8343 * configure: Regenerate.
8344
8345 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8346
8347 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8348 instead of tree_common.
8349 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8350 Likewise.
8351 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8352 TS_TYPED rather than TS_COMMON.
8353 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8354
8355 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
8356
8357 PR target/45263
8358 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8359 r20 around calls of __tablejump_elpm__
8360
8361 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8362
8363 PR middle-end/48591
8364 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8365 NULL.
8366 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8367
8368 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
8369
8370 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8371 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8372 (cfi_vec): New typedef.
8373 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8374 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8375 (cie_cfi_vec): New static variable.
8376 (cie_cfi_head): Delete.
8377 (add_cfi): Accept a cfi_vec * as first argument. All callers and
8378 declaration changed. Use vector rather than list operations.
8379 (new_cfi): Don't initialize the dw_cfi_next field.
8380 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8381 rather than list operations.
8382 (lookup_cfa): Use vector rather than list operations.
8383 (output_cfis): New argument upto. Accept a cfi_vec rather than
8384 a dw_cfi_ref list head as argument. All callers changed.
8385 Iterate over the vector using upto as a maximum index.
8386 (output_all_cfis): New static function.
8387 (output_fde): Use vector rather than list operations. Use the
8388 new upto argument for output_cfis rather than manipulating a
8389 list.
8390 (dwarf2out_begin_prologue): Change initializations to match
8391 new struct members.
8392 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
8393 from the vector length rather than searching for the end of a list.
8394 Use output_all_cfis.
8395 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
8396
8397 2011-04-13 Nick Clifton <nickc@redhat.com>
8398
8399 * config/rx/rx.md (movmemsi): Do not use this pattern when
8400 volatile pointers are involved.
8401
8402 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8403
8404 * config/i386/sse.md (pinsrbits): Remove.
8405 (sse2_packsswb): Merge with *avx_packsswb.
8406 (sse2_packssdw): Merge with *avx_packssdw.
8407 (sse2_packuswb): Merge with *avx_packuswb.
8408 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
8409 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
8410 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
8411 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
8412 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
8413 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
8414 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
8415 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
8416 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
8417 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
8418 (sse2_loadld): Merge with *avx_loadld.
8419 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
8420 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
8421 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
8422 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
8423 (vec_concatv2di): Merge with *vec_concatv2di_avx.
8424
8425 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8426
8427 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
8428 calling TREE_CHAIN.
8429 * print-tree.c (print_node): Likewise.
8430 * tree-inline.c (copy_tree_r): Likewise.
8431 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8432 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
8433 instead of TS_COMMON.
8434 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
8435 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
8436 (copy_node_stat): Zero TREE_CHAIN only if necessary.
8437 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
8438 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
8439 ...and these...
8440 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
8441 * tree.h: ...here.
8442 (TREE_CHAIN): Check for a TS_COMMON structure.
8443 (TREE_TYPE): Check for a TS_TYPED structure.
8444
8445 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
8446
8447 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8448 cgraph_get_create_node instead of cgraph_node.
8449
8450 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8451
8452 * c-parser.c (c_parser_initelt): Updated call to
8453 objc_build_message_expr.
8454 (c_parser_postfix_expression): Likewise.
8455
8456 2011-04-12 Kai Tietz <ktietz@redhat.com>
8457
8458 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
8459 MASK_MS_BITFIELD_LAYOUT bit.
8460
8461 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8462
8463 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
8464 assert it is always true.
8465 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
8466 moves.
8467
8468 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8469
8470 * c-parser.c (c_lex_one_token): Rewritten conditional used when
8471 compiling Objective-C to be more efficient.
8472
8473 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
8474
8475 * opts-common.c (decode_cmdline_options_to_array): Remove variable
8476 argv_copied.
8477
8478 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8479
8480 * recog.h, genoutput.c, optabs.c: Revert last patch.
8481
8482 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8483
8484 PR target/48090
8485 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
8486
8487 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8488
8489 * recog.h (insn_operand_data): Add an "allows_mem" field.
8490 * genoutput.c (output_operand_data): Initialize it.
8491 * optabs.c (maybe_legitimize_operand_same_code): New function.
8492 (maybe_legitimize_operand): Use it when matching the original
8493 op->value.
8494
8495 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8496
8497 * genpreds.c (process_define_predicate): Move most processing
8498 to gensupport.c. Continue to validate the expression.
8499 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
8500 (process_define_predicate): Move processing to gensupport.c.
8501 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
8502 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
8503 (compute_predicate_codes): Moved from genrecog.c. Add lineno
8504 argument.
8505 (valid_predicate_name_p): New function, split out from old
8506 genpreds.c:process_define_predicate.
8507 (process_define_predicate): New function, combining code from
8508 old genpreds.c and genrecog.c functions.
8509 (process_rtx): Call it for DEFINE_PREDICATE and
8510 DEFINE_SPECIAL_PREDICATE.
8511
8512 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8513
8514 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
8515 size of a '%A' memory reference.
8516 (T_DREG, T_QREG): New neon_builtin_type_bits.
8517 (arm_init_neon_builtins): Assert that the load and store operands
8518 are neon_struct_operands.
8519 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
8520 (NEON_ARG_MEMORY): New builtin_arg.
8521 (neon_dereference_pointer): New function.
8522 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
8523 Handle NEON_ARG_MEMORY.
8524 (arm_expand_neon_builtin): Update after above interface changes.
8525 Use NEON_ARG_MEMORY for loads and stores.
8526 * config/arm/predicates.md (neon_struct_operand): New predicate.
8527 * config/arm/iterators.md (V_two_elem): Tweak formatting.
8528 (V_three_elem): Use BLKmode for accesses that have no associated mode.
8529 (V_four_elem): Tweak formatting.
8530 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
8531 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
8532 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
8533 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
8534 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
8535 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
8536 (neon_vst4<mode>): Replace pointer operand with a memory operand.
8537 Use %A in the output template.
8538 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
8539 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
8540 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
8541 the width of the memory access. Remove post-increment.
8542 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
8543
8544 2011-04-12 Nick Clifton <nickc@redhat.com>
8545
8546 * config/v850/v850.c (expand_prologue): Do not use the CALLT
8547 instruction for interrupt handlers if the target is the basic V850
8548 architecture.
8549 (expand_epilogue): Likewise.
8550
8551 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8552
8553 PR rtl-optimization/48549
8554 * combine.c (propagate_for_debug): Also stop after BB_END of
8555 this_basic_block. Process LAST and just stop processing after it.
8556 (combine_instructions): If last_combined_insn has been deleted,
8557 set last_combined_insn to its PREV_INSN.
8558
8559 2011-04-12 Richard Guenther <rguenther@suse.de>
8560
8561 PR tree-optimization/46076
8562 * gimple.h (struct gimple_statement_call): Add fntype field.
8563 (gimple_call_fntype): Adjust.
8564 (gimple_call_set_fntype): New function.
8565 * gimple.c (gimple_build_call_1): Set the call function type.
8566 * gimplify.c (gimplify_call_expr): Preserve the function
8567 type the frontend used for the call.
8568 (gimplify_modify_expr): Likewise.
8569 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
8570 function type.
8571 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
8572 function type.
8573 * tree-ssa.c (useless_type_conversion_p): Function pointer
8574 conversions are useless.
8575
8576 2011-04-12 Martin Jambor <mjambor@suse.cz>
8577
8578 * cgraph.h (cgraph_node): Remove function declaration.
8579 (cgraph_create_node): Declare.
8580 (cgraph_get_create_node): Likewise.
8581 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
8582 Updated all callers.
8583 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
8584 the decl does not already exist. Call cgraph_get_create_node instead
8585 of cgraph_node.
8586 (cgraph_get_create_node): New function.
8587 (cgraph_same_body_alias): Update comment.
8588 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
8589 assert it does not return NULL.
8590 (cgraph_update_edges_for_call_stmt): Likewise.
8591 (cgraph_clone_edge): Likewise.
8592 (cgraph_create_virtual_clone): Likewise.
8593 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
8594 instead of cgraph_node.
8595 (cgraph_add_new_function): Call cgraph_create_node or
8596 cgraph_get_create_node instead of cgraph_node.
8597 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
8598 instead of cgraph_node.
8599 (record_eh_tables): Likewise.
8600 (mark_address): Likewise.
8601 (mark_load): Likewise.
8602 (build_cgraph_edges): Call cgraph_get_create_node instead
8603 of cgraph_node.
8604 (rebuild_cgraph_edges): Likewise.
8605 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
8606 instead of cgraph_node.
8607 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
8608 cgraph_node.
8609 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
8610 cgraph_create_node instead of cgraph_node.
8611 * c-decl.c (finish_function): Call cgraph_get_create_node instead
8612 of cgraph_node.
8613 * lto-cgraph.c (input_node): Likewise.
8614 * lto-streamer-in.c (input_function): Likewise.
8615 * varasm.c (mark_decl_referenced): Likewise.
8616 (assemble_alias): Likewise.
8617
8618 2011-04-12 Martin Jambor <mjambor@suse.cz>
8619
8620 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
8621 instead of cgraph_node and assert it does not return NULL.
8622 * lto-streamer-in.c (lto_read_body): Likewise.
8623 * omp-low.c (new_omp_context): Likewise.
8624 (create_task_copyfn): Likewise.
8625 * tree-emutls.c (lower_emutls_function_body): Likewise.
8626 * matrix-reorg.c (transform_allocation_sites): Likewise.
8627
8628 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8629
8630 PR c/48552
8631 * c-typeck.c (build_asm_expr): Error out on attempts to use
8632 void type outputs or inputs for constraints that allow reg or
8633 don't allow memory.
8634
8635 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
8636 Richard Earnshaw <rearnsha@arm.com>
8637
8638 PR target/48250
8639 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
8640 to use sign-magnitude offsets. Reject unsupported unaligned
8641 cases. Add detailed description in comments.
8642 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
8643 condition from TARGET_32BIT to TARGET_ARM.
8644
8645 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
8646
8647 * tree.h (struct typed_tree): New.
8648 (struct tree_common): Include it instead of tree_base.
8649 (TREE_TYPE): Update for new location of type field.
8650 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
8651 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
8652 (union tree_node): Add typed field.
8653 * treestruct.def (TS_TYPED): New.
8654 * lto-streamer.c (check_handled_ts_structures): Handle it.
8655 * tree.c (MARK_TS_TYPED): New macro.
8656 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
8657
8658 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
8659
8660 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
8661 (force_nonfallthru): Do not alter the loop nest if no basic block
8662 was created.
8663
8664 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8665
8666 * config/i386/sse.md (VI): New mode iterator.
8667 (SSEMODEI): Remove.
8668 (AVX256MODEI): Ditto.
8669 (AVXMODEF4P): Ditto.
8670 (avxvecpsmode): Ditto.
8671 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
8672 (sse2_andnot<mode>3): New expander.
8673 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8674 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
8675 (<any_logic:code><mode>3): Use VI mode iterator.
8676 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8677 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
8678 (*andnottf3): Handle AVX three-operand constraints.
8679 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8680
8681 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8682 Robert Millan <rmh@gnu.org>
8683
8684 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8685 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8686 GNU_USER_DYNAMIC_LINKER64): Define.
8687 (REG_NAME): Don't undefine.
8688 (MD_UNWIND_SUPPORT): Undefine.
8689 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8690 (REG_NAME): Don't undefine.
8691 (MD_UNWIND_SUPPORT): Undefine.
8692 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8693
8694 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8695
8696 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8697 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8698
8699 2011-04-11 Xinliang David Li <davidxl@google.com>
8700
8701 * value-profile.c (check_ic_target): New function.
8702 (gimple_ic_transform): Sanity check indirect call target.
8703 * gimple-low.c (gimple_check_call_args): Interface change.
8704 (gimple_check_call_matching_types): New function.
8705 * tree-inline.c (tree_can_inline_p): Call new function.
8706
8707 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8708
8709 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8710 tree-pretty-print.h & realmpfr.h.
8711
8712 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8713
8714 PR middle-end/48464
8715 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8716 (setup_allocno_and_important_classes): Ditto.
8717
8718 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8719
8720 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8721 GNU_USER_DYNAMIC_LINKER.
8722 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8723 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8724 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8725 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8726 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8727 GNU_USER_TARGET_OS_CPP_BUILTINS.
8728 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8729 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8730 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8731 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8732 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8733 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8734 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8735 GNU_USER_TARGET_OS_CPP_BUILTINS.
8736 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8737 GNU_USER_DYNAMIC_LINKER.
8738 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8739 GNU_USER_TARGET_OS_CPP_BUILTINS.
8740 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8741 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8742 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8743 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8744 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8745 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8746 GNU_USER_DYNAMIC_LINKER64): Remove.
8747 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8748 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8749 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8750 GNU_USER_DYNAMIC_LINKER.
8751 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8752 GNU_USER_TARGET_OS_CPP_BUILTINS.
8753 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8754 GNU_USER_TARGET_OS_CPP_BUILTINS.
8755 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8756 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8757 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8758 GNU_USER_TARGET_OS_CPP_BUILTINS.
8759 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8760 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8761 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8762 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8763 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8764 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8765 GNU_USER_DYNAMIC_LINKER.
8766 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8767 GNU_USER_TARGET_OS_CPP_BUILTINS.
8768 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8769 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8770 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8771 GNU_USER_DYNAMIC_LINKER.
8772 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8773 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8774 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8775 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8776 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8777 GNU_USER_DYNAMIC_LINKER.
8778 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8779 GNU_USER_DYNAMIC_LINKERN32.
8780 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8781 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8782 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8783 GNU_USER_DYNAMIC_LINKER32.
8784 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8785 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8786 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8787 GNU_USER_DYNAMIC_LINKER.
8788 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8789 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8790 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8791 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8792 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8793 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8794 GNU_USER_DYNAMIC_LINKER32.
8795 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8796 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8797 GNU_USER_DYNAMIC_LINKER.
8798 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8799 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8800 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8801 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8802 GNU_USER_DYNAMIC_LINKER64.
8803 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8804 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8805 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8806 GNU_USER_DYNAMIC_LINKER.
8807 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8808 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8809 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8810 GNU_USER_DYNAMIC_LINKER.
8811 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8812 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8813 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8814 GNU_USER_DYNAMIC_LINKER32.
8815 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8816 GNU_USER_DYNAMIC_LINKER64.
8817 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8818 GNU_USER_DYNAMIC_LINKER64.
8819 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8820 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8821 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8822 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8823 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8824
8825 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8826
8827 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8828 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8829 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8830 GNU_USER_DYNAMIC_LINKER.
8831 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8832 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8833 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8834 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8835 GNU_USER_DYNAMIC_LINKER64.
8836 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8837 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8838 GNU_USER_LINK_EMULATION.
8839 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8840 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8841 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8842 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8843 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8844 CPP_SPEC, CC1_SPEC): Remove.
8845 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8846 (GNU_USER_DYNAMIC_LINKER): Define.
8847 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8848 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8849 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8850 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8851 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8852 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8853 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8854 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8855 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8856 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8857 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8858 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8859 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8860 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8861 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8862 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8863 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8864 GNU_USER_DYNAMIC_LINKER.
8865 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8866 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8867 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8868 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8869 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8870 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8871 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8872 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8873 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8874 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8875
8876 2011-04-11 Kai Tietz <ktietz@redhat.com>
8877
8878 PR target/9601
8879 PR target/11772
8880 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8881 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8882 comment.
8883 (ix86_is_msabi_thiscall): Removed.
8884 (ix86_is_type_thiscall): Likewise.
8885 (ix86_get_callcvt): New function.
8886 (ix86_comp_type_attributes): Simplify check.
8887 (ix86_function_regparm): Use ix86_get_callcvt for calling
8888 convention attribute checks.
8889 (ix86_return_pops_args): Likewise.
8890 (ix86_static_chain): Likewise.
8891 (x86_this_parameter): Likewise.
8892 (x86_output_mi_thunk): Likewise.
8893 (ix86_function_type_abi): Optimize check for types without attributes.
8894 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8895 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8896 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8897 by flag-values.
8898 (IX86_BASE_CALLCVT): Helper macro.
8899 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8900 Use ix86_get_callcvt for calling convention attribute checks and avoid
8901 symbol-decoration for stdcall in TARGET_RTD case.
8902 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8903 Likewise.
8904 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8905 for declaration.
8906
8907 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8908
8909 * config/i386/sse.md (VI_128): New mode iterator.
8910 (VI12_128): Rename from SSEMODE12.
8911 (VI14_128): Rename from SSEMODE14.
8912 (VI124_128): New mode iterator.
8913 (VI24_128): Rename from SSEMODE248.
8914 (VI248_128): Rename from SSEMODE248.
8915 (SSEMODE124C8): Remove.
8916 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8917 (*sse2_<plusminus_insn><mode>3): Merge with
8918 *avx_<plusminus_insn><mode>3.
8919 (*mulv8hi3): Merge with *avx_mulv8hi3.
8920 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8921 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8922 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8923 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8924 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8925 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8926 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8927 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8928 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8929 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8930 (*<smaxmin:code>v8hi3): Ditto.
8931 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8932 (*<smaxmin:code>v16qi3): Ditto.
8933 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8934 (*sse2_eq<mode>3): Ditto.
8935 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8936 (*sse2_gt<mode>3): Ditto.
8937 (vcondv2di): Split out of vcond<mode>.
8938 (vconduv2di): Split out of vcondu<mode>.
8939
8940 2011-04-11 Richard Guenther <rguenther@suse.de>
8941
8942 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8943 before calling tree_low_cst.
8944
8945 2011-04-11 Richard Guenther <rguenther@suse.de>
8946
8947 * stor-layout.c (layout_type): Compute all array index size operations
8948 in the original type.
8949 (initialize_sizetypes): Add comment.
8950 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8951
8952 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8953
8954 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8955
8956 2011-04-11 Martin Jambor <mjambor@suse.cz>
8957
8958 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8959 of cgraph_node, handle NULL return value.
8960 (cgraph_global_info): Likewise.
8961 (cgraph_rtl_info): Likewise.
8962 * tree-inline.c (estimate_num_insns): Likewise.
8963 * gimplify.c (unshare_body): Likewise.
8964 (unvisit_body): Likewise.
8965 (gimplify_body): Likewise.
8966 * predict.c (optimize_function_for_size_p): Likewise.
8967 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8968 (call_may_clobber_ref_p_1): Likewise.
8969 * varasm.c (function_section_1): Likewise.
8970 (assemble_start_function): Likewise.
8971
8972 2011-04-11 Martin Jambor <mjambor@suse.cz>
8973
8974 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8975 of cgraph_node.
8976 * final.c (rest_of_clean_state): Likewise.
8977 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8978 * passes.c (pass_init_dump_file): Likewise.
8979 (execute_all_ipa_transforms): Likewise.
8980 (function_called_by_processed_nodes_p): Likewise.
8981 * predict.c (maybe_hot_frequency_p): Likewise.
8982 (probably_never_executed_bb_p): Likewise.
8983 (compute_function_frequency): Likewise.
8984 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8985 (unnest_nesting_tree_1): Likewise.
8986 (lower_nested_functions): Likewise.
8987 * tree-optimize.c (execute_fixup_cfg): Likewise.
8988 (tree_rest_of_compilation): Likewise.
8989 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8990 * tree-sra.c (ipa_early_sra): Likewise.
8991 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8992 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8993 * ipa.c (record_cdtor_fn): Likewise.
8994 * ipa-inline.c (cgraph_early_inlining): Likewise.
8995 (compute_inline_parameters_for_current): Likewise.
8996 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8997 * ipa-pure-const.c (local_pure_const): Likewise.
8998 * ipa-split.c (split_function): Likewise.
8999 (execute_split_functions): Likewise.
9000 * cgraphbuild.c (build_cgraph_edges): Likewise.
9001 (rebuild_cgraph_edges): Likewise.
9002 (cgraph_rebuild_references): Likewise.
9003 (remove_cgraph_callee_edges): Likewise.
9004 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9005 (verify_cgraph_node): Likewise.
9006 (cgraph_analyze_functions): Likewise.
9007 (cgraph_preserve_function_body_p): Likewise.
9008 (save_inline_function_body): Likewise.
9009 (save_inline_function_body): Likewise.
9010 * tree-inline.c (copy_bb): Likewise.
9011 (optimize_inline_calls): Likewise.
9012
9013 2011-04-11 Martin Jambor <mjambor@suse.cz>
9014
9015 PR tree-optimization/48195
9016 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9017 ipa_check_create_edge_args.
9018 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9019 ipa_check_create_edge_args.
9020 * ipa-inline.c (inline_generate_summary): Do not call
9021 ipa_check_create_node_params and ipa_check_create_edge_args.
9022 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9023 ipa_check_create_edge_args.
9024
9025 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9026
9027 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9028 instead of loop.
9029 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9030 * function.c (record_hard_reg_sets): Likewise.
9031 * ira.c (compute_regs_asm_clobbered): Likewise.
9032 * sched-deps.c (sched_analyze_1): Likewise.
9033 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9034
9035 2011-04-09 Xinliang David Li <davidxl@google.com>
9036
9037 PR tree-optimization/PR48484
9038 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9039 has_valid_pred lazily
9040
9041 2011-04-09 Duncan Sands <baldrick@free.fr>
9042
9043 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9044
9045 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9046
9047 * combine.c (combine_validate_cost): Adjust comments. Set registered
9048 cost of I0 to zero at the end, if any.
9049
9050 2011-04-08 Xinliang David Li <davidxl@google.com>
9051
9052 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9053 to insane profile data.
9054
9055 2011-04-08 Xinliang David Li <davidxl@google.com>
9056
9057 * ipa-cp.c (ipcp_update_profiling): Correct
9058 negative scale factor due to insane profile data.
9059
9060 2011-04-08 Xinliang David Li <davidxl@google.com>
9061
9062 * final.c (dump_basic_block_info): New function.
9063 (final): Dump basic block.
9064 (final_scan_insn): Remove old dump.
9065
9066 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9067
9068 PR target/47829
9069 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9070 crtbegin/crtend.
9071
9072 2011-04-08 Michael Matz <matz@suse.de>
9073
9074 PR middle-end/48389
9075 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9076 functions.
9077 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9078 * rtl.h (rebuild_jump_labels_chain): Declare.
9079 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9080 insns inserted on edges.
9081
9082 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9083
9084 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9085 * config/arm/arm-arches.def: New.
9086 * config/arm/arm-opts.h: New.
9087 * config/arm/genopt.sh: New.
9088 * config/arm/arm-tables.opt: New (generated).
9089 * config/arm/arm.c (arm_handle_option, arm_target_help,
9090 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9091 (all_architectures): Get most table contents from arm-arches.def.
9092 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9093 arm_selected_tune here.
9094 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9095 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9096 (march=, mcpu=, mtune=): Use Enum and Var.
9097 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9098 (arm.o): Update dependencies.
9099
9100 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9101
9102 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9103 of header_file.
9104 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9105 (write_typed_alloc_defns): Likewise.
9106 (main): Calls write_typed_alloc_defns with output_header.
9107
9108 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9109
9110 PR inline-asm/48435
9111 * ira-color.c (setup_profitable_hard_regs): Add comments.
9112 Don't take prohibited hard regs into account.
9113 (setup_conflict_profitable_regs): Rename to
9114 get_conflict_profitable_regs.
9115 (check_hard_reg_p): Check prohibited hard regs.
9116
9117 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9118
9119 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9120 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9121 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9122
9123 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9124
9125 PR target/48366
9126 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9127 move from floating point to shift amount register.
9128 (emit_move_sequence): Remove secondary reload support for floating
9129 point to shift amount amount register copies.
9130 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9131 amount register copies.
9132 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9133 register, return false if mode isn't a scalar integer mode.
9134 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9135
9136 2011-04-08 Richard Guenther <rguenther@suse.de>
9137
9138 * gimple.c (gimple_call_flags): Remove kludge.
9139
9140 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9141
9142 * sel-sched.c (sel_region_init): Move call to
9143 sel_setup_region_sched_flags after setup_current_loop_nest.
9144
9145 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9146
9147 PR rtl-optimization/48272
9148 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9149 init_insn_reg_pressure_info. Adjust a caller.
9150 * sched-int.h (init_insn_reg_pressure_info): Declare.
9151 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9152 when sched-pressure is enabled.
9153
9154 2011-04-08 Richard Guenther <rguenther@suse.de>
9155
9156 * gimple.c (gimple_set_modified): Do not queue calls to
9157 MODIFIED_NORETURN_CALLS here ...
9158 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9159
9160 2011-04-08 Richard Guenther <rguenther@suse.de>
9161
9162 PR lto/48467
9163 * toplev.c (lang_dependent_init): Do not open asm_out_file
9164 in WPA mode, nor perform debug machinery initialization.
9165 (finalize): Do not unlink asm_out_file in WPA mode.
9166
9167 2011-04-08 Richard Guenther <rguenther@suse.de>
9168
9169 * gimple.h (gimple_call_fntype): New function.
9170 (gimple_call_return_type): Use it.
9171 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9172 * gimple-low.c (gimple_check_call_args): Likewise.
9173 * gimple.c (gimple_call_flags): Likewise.
9174 (gimple_call_arg_flags): Likewise.
9175 (gimple_call_return_flags): Likewise.
9176 * tree-cfg.c (verify_gimple_call): Likewise.
9177 (do_warn_unused_result): Likewise.
9178 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9179 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9180
9181 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9182
9183 PR rtl-optimization/48235
9184 * sel-sched.c (code_motion_process_successors): Recompute the last
9185 insn in basic block if control flow changed.
9186 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9187 Update condition for ilist_remove.
9188
9189 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9190
9191 PR rtl-optimization/48302
9192 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9193 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9194 it to record added preheader blocks.
9195 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9196 on to sel_add_loop_preheaders.
9197 (sel_region_init): Move call to setup_current_loop_nest after
9198 sel_init_bbs.
9199
9200 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9201
9202 PR target/48273
9203 * cfgloop.h (loop_has_exit_edges): New helper.
9204 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9205 non-clonable.
9206 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9207 that have no exit edges.
9208
9209 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9210
9211 PR rtl-optimization/48442
9212 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9213 all callers. Adjust assert.
9214
9215 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9216
9217 PR tree-optimization/48377
9218 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9219 is_packed to true even for types with smaller TYPE_ALIGN than
9220 TYPE_SIZE.
9221
9222 2011-04-08 Richard Guenther <rguenther@suse.de>
9223
9224 PR bootstrap/48513
9225 * doc/tm.texi: Re-generate.
9226
9227 2011-04-08 Wei Guozhi <carrot@google.com>
9228
9229 PR target/47855
9230 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9231 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9232 * config/arm/arm.md (*push_multi): Change the length computation to
9233 call a C function.
9234
9235 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9236
9237 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9238 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9239 * doc/tm.texi: Regenerate.
9240 * system.h (ASM_OUTPUT_BSS): Poison.
9241 * varasm.c (asm_output_bss): Remove function.
9242 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9243
9244 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9245 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9246 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9247 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9248 Likewise.
9249 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9250 Likewise.
9251 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9252 Likewise.
9253 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9254
9255 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9256
9257 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9258 EnumValue lines.
9259
9260 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9261
9262 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9263 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9264 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9265 OPT_mcpu32.
9266 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9267 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9268 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9269 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9270 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9271 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9272 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9273 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9274 options. Don't map other m68k options manually. Don't handle
9275 old-style options as canonical.
9276 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9277 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9278
9279 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9280
9281 * basic-block.h (force_nonfallthru): Move to...
9282 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9283 (force_nonfallthru): ...here.
9284 * cfghooks.c (force_nonfallthru): New function.
9285 * cfgrtl.c (force_nonfallthru): Rename into...
9286 (rtl_force_nonfallthru): ...this.
9287 (commit_one_edge_insertion): Do not set AUX field.
9288 (commit_edge_insertions): Do not discover new basic blocks.
9289 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9290 (cfg_layout_rtl_cfg_hooks): Likewise.
9291 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9292 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9293 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9294
9295 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9296
9297 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9298 Remove macros.
9299
9300 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9301
9302 * config/i386/sse.md: Update copyright year.
9303 (avxcvtvecmode): Remove.
9304 (sse_movhlps): Merge with *avx_movhlps.
9305 (sse_movlhps): Merge with *avx_movlhps.
9306 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9307 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9308 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9309 (sse_loadhps): Merge with *avx_loadhps.
9310 (sse_storelps): Merge with *avx_storelps.
9311 (sse_loadlps): Merge with *avx_loadlps.
9312 (sse_movss): Merge with *avx_movss.
9313 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9314 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9315 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9316 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9317 (vec_set<mode>_0): Ditto.
9318 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9319 (sse4_1_insertps): Merge with *avx_insertps.
9320 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9321 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9322 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9323 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9324 (sse2_storehpd): Merge with *avx_storehpd.
9325 (sse2_loadhpd): Merge with *avx_loadhpd.
9326 (sse2_loadlpd): Merge with *avx_loadlpd.
9327 (sse2_movsd): Merge with *avx_movsd.
9328 (*vec_concatv2df): Merge with *vec_concatv2df.
9329
9330 2011-04-07 Jakub Jelinek <jakub@redhat.com>
9331
9332 PR debug/48343
9333 * combine.c (combine_instructions): Add last_combined_insn,
9334 update it if insn is after it, pass it to all try_combine calls.
9335 (try_combine): Add last_combined_insn parameter, pass it instead of
9336 i3 to propagate_for_debug.
9337
9338 2011-04-07 Nick Clifton <nickc@redhat.com>
9339
9340 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9341 to handle MDR <-> data register transfers.
9342 (movhi_internal): Likewise.
9343
9344 2011-04-07 Alan Modra <amodra@gmail.com>
9345
9346 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9347 previous stack info.
9348
9349 2011-04-07 Tom de Vries <tom@codesourcery.com>
9350
9351 PR target/43920
9352 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
9353 flow_find_cross_jump. Swap variables to implement backward replacement.
9354 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9355
9356 2011-04-07 Tom de Vries <tom@codesourcery.com>
9357
9358 PR target/43920
9359 * cfgcleanup.c (walk_to_nondebug_insn): New function.
9360 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
9361 and bb2.
9362 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9363 src1 or src2. Redirect edges to the last basic block. Update
9364 frequency and count on multiple basic blocks in case of fallthru.
9365
9366 2011-04-07 Tom de Vries <tom@codesourcery.com>
9367
9368 PR target/43920
9369 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9370 function.
9371 (old_insns_match_p): Change return type. Replace return false/true
9372 with return dir_none/dir_both. Use can_replace_by.
9373 (flow_find_cross_jump): Add dir_p parameter. Init replacement
9374 direction from dir_p. Register replacement direction in dir, last_dir
9375 and afterlast_dir. Handle new return type of old_insns_match_p using
9376 merge_dir. Return replacement direction in dir_p.
9377 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9378 return type of old_insns_match_p.
9379 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9380 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9381 flow_find_cross_jump.
9382 * basic-block.h (enum replace_direction): New type.
9383 (flow_find_cross_jump): Add parameter to declaration.
9384
9385 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9386
9387 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9388 (AVXMODEDCVTPS2DQ): Ditto.
9389 (VEC_FLOAT_MODE): Ditto.
9390 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
9391 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9392 (<any_logic:code><mode>3): Use VF mode iterator.
9393 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
9394 Use VF mode iterator.
9395 (copysign<mode>3): Use VF mode iterator.
9396 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
9397 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9398 (*<any_logic:code><MODEF:mode>3): Merge with
9399 *avx_<any_logic:code><MODEF:mode>3.
9400 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
9401 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
9402 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
9403 (avx_cvtdq2ps<avxmodesuffix>): Remove.
9404 (sse2_cvtdq2ps): Use %v modifier.
9405 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
9406 (avx_cvtps2dq<avxmodesuffix>): Remove.
9407 (sse2_cvtps2dq): Use %v modifier.
9408 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
9409 (avx_cvttps2dq<avxmodesuffix>): Remove.
9410 (sse2_cvttps2dq): Use %v modifier.
9411 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
9412 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
9413 (sse2_cvtsd2siq): Fix insn template.
9414 (sse2_cvtsd2siq_2): Ditto.
9415 (sse2_cvttsd2siq): Ditto.
9416 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
9417 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
9418
9419 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9420
9421 * gcov-io.c: Use GCC Runtime Library Exception.
9422
9423 2011-04-06 Jakub Jelinek <jakub@redhat.com>
9424
9425 PR debug/48466
9426 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
9427 as base_reg whatever register reg has been eliminated to, instead
9428 of hardcoding STACK_POINTER_REGNUM.
9429
9430 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9431
9432 * doc/tm.texi.in: Document C target hooks as separate from general
9433 target hooks.
9434 * doc/tm.texi: Regenerate.
9435 * genhooks.c (struct hook_desc): Add docname field.
9436 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
9437 docname field.
9438 (hook_array): Include c-target.def.
9439 (emit_documentation): Use docname field in output.
9440 (emit_init_macros): Take docname argument. Only emit definitions
9441 for hooks matching docname.
9442 (main): Expect additional arguments in all cases. Pass argument
9443 to emit_init_macros.
9444 * target.def: Move initial macro definitions and comments to
9445 target-hooks-macros.h.
9446 (gcc_targetcm): Move to c-family/c-target.def.
9447 * target.h (targetcm): Move declaration to c-family/c-target.h.
9448 * targhooks.c (default_handle_c_option): Move to
9449 c-family/c-opts.c.
9450 * targhooks.h (default_handle_c_option): Move declaration to
9451 c-family/c-common.h.
9452 * target-hooks-macros.h: New file.
9453 * config.gcc (target_has_targetcm): Define and use to add to
9454 c_target_objs and cxx_target_objs.
9455 * config/default-c.c: New file.
9456 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
9457 of target.h and target-def.h.
9458 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
9459 (darwin_objc_construct_string, darwin_cfstring_ref_p,
9460 darwin_check_cfstring_format_arg): Make static.
9461 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9462 TARGET_STRING_OBJECT_REF_TYPE_P,
9463 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
9464 * config/darwin-protos.h (darwin_objc_construct_string,
9465 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
9466 declare.
9467 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9468 TARGET_STRING_OBJECT_REF_TYPE_P,
9469 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
9470 * config/t-darwin (darwin-c.o): Update dependencies.
9471 * system.h (TARGET_HAS_TARGETCM): Poison.
9472 * Makefile.in (TARGET_H): Update.
9473 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
9474 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
9475 (default-c.o): New target.
9476 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
9477 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
9478 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
9479 c-target.def.
9480 (build/genhooks.o): Update dependencies.
9481
9482 2011-04-06 Richard Guenther <rguenther@suse.de>
9483
9484 * ipa-inline.c (enum inlining_mode): Remove.
9485 (cgraph_flatten): Use some other token.
9486 (cgraph_edge_early_inlinable_p): New function, split out from ...
9487 (cgraph_perform_always_inlining): New function, split out from ...
9488 (cgraph_decide_inlining_incrementally): ... here.
9489 (cgraph_mark_inline_edge): Adjust.
9490 (cgraph_early_inlining): Re-structure.
9491 (pass_early_inline): Require SSA form.
9492
9493 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
9494 Julian Brown <julian@codesourcery.com>
9495 Mark Shinwell <shinwell@codesourcery.com>
9496
9497 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
9498 LO_REGS only for Thumb-1.
9499 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
9500 be used in short instructions when optimising for size on Thumb-2.
9501
9502 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9503
9504 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
9505 associated with user returns to be preserved.
9506
9507 2011-04-06 Tristan Gingold <gingold@adacore.com>
9508
9509 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
9510 symbol_queue_size, DBXOUT_DECR_NESTING,
9511 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
9512 if XCOFF_DEBUGGING_INFO.
9513
9514 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9515
9516 * config/i386/i386.md (attribute isa): New.
9517 (attribute enabled): New.
9518 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
9519 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
9520 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
9521 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
9522 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
9523 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9524 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
9525 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
9526
9527 * config/i386/sse.md (VF): New mode iterator.
9528 (VF1): Ditto.
9529 (VF2): Ditto.
9530 (VF_128): Ditto.
9531 (SSEMODEF4): Remove.
9532 (attribute sse): Handle V8SF and V4DF modes.
9533 (<absneg:code><mode>2): Use VF mode iterator.
9534 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
9535 mode iterator.
9536 (<plusminus_insn><mode>3): Use VF mode iterator.
9537 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9538 Use VF mode iterator.
9539 (<sse>_vm<plusminus_insn><mode>3): Merge with
9540 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
9541 (mul<mode>3): Use VF mode iterator.
9542 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
9543 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
9544 mode iterator.
9545 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
9546 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
9547 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
9548 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
9549 mode iterator.
9550 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
9551 Use VF1 mode iterator.
9552 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
9553 (sqrt<VF2:mode>2): New expander.
9554 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
9555 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
9556 and sqrtv2df2. Use VF mode iterator.
9557 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
9558 mode iterator.
9559 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
9560 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
9561 Use VF1 mode iterator.
9562 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
9563 (<smaxmin:code><mode>3): Use VF mode iterator.
9564 (*<smaxmin:code><mode>3_finite): Merge with
9565 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
9566 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9567 (<sse>_vm<smaxmin:code><mode>2): Merge with
9568 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
9569 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
9570 mode iterator.
9571 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
9572 mode iterator.
9573 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
9574 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
9575 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
9576 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
9577 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
9578 VF mode iterator.
9579 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
9580 Use VF_128 mode iterator.
9581 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
9582 mode iterator.
9583 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
9584 VF_128 mode iterator.
9585 (vcond<mode>): Use VF mode iterator.
9586 * config/i386/predicates.md (sse_comparison_operator): Merge with
9587 avx_comparison_float_operator. Do not declare as special_predicate.
9588 * config/i386/i386.c (struct builtin_description): Update for renamed
9589 compare patterns.
9590 (ix86_expand_args_builtin): Ditto.
9591 (ix86_expand_sse_compare_mask): Ditto.
9592
9593 2011-04-06 Richard Guenther <rguenther@suse.de>
9594
9595 * tree-inline.c (estimate_num_insns): For calls simply account
9596 for all passed arguments and a used return value.
9597
9598 2011-04-06 Richard Guenther <rguenther@suse.de>
9599
9600 PR tree-optimization/47663
9601 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
9602 call_stmt_time fields.
9603 (cgraph_edge_inlinable_p): Declare.
9604 (cgraph_edge_recursive_p): New inline function.
9605 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
9606 (cgraph_clone_edge): Copy it.
9607 * ipa-inline.c (cgraph_estimate_edge_time): New function.
9608 Account for call stmt time.
9609 (cgraph_estimate_time_after_inlining): Take edge argument.
9610 (cgraph_estimate_edge_growth): Account call stmt size.
9611 (cgraph_estimate_size_after_inlining): Take edge argument.
9612 (cgraph_mark_inline_edge): Adjust.
9613 (cgraph_check_inline_limits): Likewise.
9614 (cgraph_recursive_inlining_p): Remove.
9615 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
9616 (cgraph_decide_recursive_inlining): Take edge argument and
9617 adjust.
9618 (cgraph_decide_inlining_of_small_functions): Do not avoid
9619 diags for recursive inlining here.
9620 (cgraph_flatten): Adjust.
9621 (cgraph_decide_inlining_incrementally): Likewise.
9622 (estimate_function_body_sizes): Remove call cost handling.
9623 (compute_inline_parameters): Initialize caller edge call costs.
9624 (cgraph_estimate_edge_growth): New function.
9625 (cgraph_estimate_growth): Use it.
9626 (cgraph_edge_badness): Likewise.
9627 (cgraph_check_inline_limits): Take an edge argument.
9628 (cgraph_decide_inlining_of_small_functions): Adjust.
9629 (cgraph_decide_inlining): Likewise.
9630 * tree-inline.c (estimate_num_insns): Only account for call
9631 return value if it is used.
9632 (expand_call_inline): Avoid diagnostics on recursive inline
9633 functions here.
9634 * lto-cgraph.c (lto_output_edge): Output edge call costs.
9635 (input_edge): Input edge call costs.
9636
9637 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9638
9639 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
9640
9641 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9642
9643 * doc/invoke.texi (Spec Files): Fix typo.
9644
9645 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9646
9647 * profile.c (branch_prob): Move declaration of local variable. Remove
9648 obsolete ??? comment. Expand the location explicitly instead of using
9649 the LOCATION_FILE and LOCATION_LINE macros.
9650
9651 2011-04-06 Wei Guozhi <carrot@google.com>
9652
9653 PR target/47855
9654 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
9655 (arm_cond_branch): Likewise.
9656 (arm_cond_branch_reversed): Likewise.
9657 (arm_jump): Likewise.
9658 (push_multi): Likewise.
9659 * config/arm/constraints.md (Py): New constraint.
9660
9661 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9662
9663 PR bootstrap/48471
9664 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
9665 Move these...
9666 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
9667 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9668 #ifdef DBX_DEBUGGING_INFO.
9669
9670 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
9671
9672 PR bootstrap/48403
9673 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9674 if old and new states differ.
9675
9676 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9677
9678 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9679 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9680 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9681 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9682 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9683 mcfv4e): Use Alias.
9684 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9685 ColdFire options to -mcpu= options.
9686
9687 2011-04-05 Jeff Law <law@redhat.com>
9688
9689 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9690 check if BB is a successor of LOOP->header and return
9691 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9692
9693 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9694
9695 * cprop.c (struct reg_use): Remove.
9696 (reg_use_table): Make an array of RTX.
9697 (find_used_regs, constprop_register, local_cprop_pass,
9698 bypass_block): Simplify users of reg_use_table.
9699 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9700 on one of the uses found by find_used_regs.
9701
9702 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9703
9704 PR bootstrap/48469
9705 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9706 declaration.
9707
9708 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9709
9710 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9711 as an rtx.
9712 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9713
9714 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9715
9716 PR middle-end/48441
9717 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9718
9719 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9720
9721 * combine.c: Include obstack.h.
9722 (struct insn_link): Define.
9723 (uid_log_links): Adjust type.
9724 (FOR_EACH_LOG_LINK): New macro.
9725 (insn_link_obstack): Declare.
9726 (alloc_insn_link): Define.
9727 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
9728 type of link variables.
9729 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9730 (try_combine, record_promoted_values, distribute_notes): Likewise.
9731 (distribute_links): Likewise. Tweak prototype.
9732 (clear_log_links): Delete.
9733 (adjust_for_new_dest): Call alloc_insn_link.
9734 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9735
9736 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9737
9738 * gcse.c (modify_mem_list): Convert to an array of VECs.
9739 (canon_modify_mem_list, compute_transp): Tweak formatting.
9740 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
9741 (load_killed_in_block_p): Likewise.
9742 (record_last_mem_set_info): Likewise.
9743 (clear_modify_mem_tables): Likewise.
9744
9745 2011-04-05 Tom de Vries <tom@codesourcery.com>
9746
9747 PR middle-end/48461
9748 * function.c (emit_use_return_register_into_block): Only define if
9749 HAVE_return.
9750
9751 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9752
9753 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9754
9755 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9756
9757 * config/rx/rx-opts.h: New.
9758 * config/rx/rx.c (rx_cpu_type): Remove.
9759 (rx_handle_option): Don't assert that global structures are in
9760 use. Access variables via opts pointer. Defer most handling of
9761 OPT_mint_register_. Use error_at.
9762 (rx_option_override): Handle deferred OPT_mint_register_ here.
9763 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9764 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9765 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9766 (rx_cpu_types): New Enum and EnumValue entries.
9767 (mint-register=): Use Defer and use Var accordingly.
9768
9769 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9770
9771 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9772 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9773 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9774 Move these...
9775 (debug_free_queue, debug_nesting, symbol_queue_index):
9776 ...and these...
9777 * dbxout.c: ...to here. Make static.
9778
9779 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9780
9781 * gcse.c (modify_pair): Define. Define a VEC of it.
9782 (canon_modify_mem_list): Convert to an array of VECs.
9783 (free_insn_expr_list_list): Delete.
9784 (clear_modify_mem_tables): Call VEC_free instead.
9785 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9786 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9787 (canon_list_insert, compute_transp): Likewise.
9788
9789 2011-04-05 Tom de Vries <tom@codesourcery.com>
9790
9791 PR target/43920
9792 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9793 for size.
9794
9795 2011-04-05 Tom de Vries <tom@codesourcery.com>
9796
9797 PR target/43920
9798 * function.c (emit_use_return_register_into_block): New function.
9799 (thread_prologue_and_epilogue_insns): Use
9800 emit_use_return_register_into_block.
9801
9802 2011-04-05 Tom de Vries <tom@codesourcery.com>
9803
9804 PR target/43920
9805 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9806 insn.
9807
9808 2011-04-05 Tom de Vries <tom@codesourcery.com>
9809
9810 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9811
9812 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9813
9814 * config/arm/arm.md (define_constants for unspec): Replace with
9815 define_c_enum.
9816 (define_constants for unspecv): Replace with define_c_enum.
9817 * config/arm/neon.md (define_constants for unspec): Replace with
9818 define_c_enum.
9819
9820 2011-04-04 Richard Henderson <rth@redhat.com>
9821
9822 PR bootstrap/48400
9823 * dwarf2out.c (output_line_info): Always emit line info from
9824 at least one section.
9825 (dwarf2out_init): Create text_section_line_info here ...
9826 (set_cur_line_info_table): ... not here.
9827
9828 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9829
9830 PR target/48380
9831 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9832 not called.
9833
9834 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9835
9836 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9837
9838 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9839 (expr_equiv_p): Remove.
9840 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9841 (hash_scan_set): Update call to insert_set_in_table.
9842 (dump_hash_table): Dump <dest, src> pair.
9843 (lookup_set): Simplify. Lookup <dest, src> pair.
9844 (compute_transp): Remove, fold heavily simplified code into...
9845 (compute_local_properties): ...here. Expect COMP and TRANSP
9846 unconditionally.
9847 (find_avail_set): Take set directly from struct expr.
9848 (find_bypass-set): Likewise.
9849 (bypass_block): Likewise.
9850 (cprop_insn): Likewise. Remove redundant INSN_P test.
9851
9852 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9853 checks on form of COND from find_implicit_sets to here.
9854 (find_implicit_sets): Cleanup control flow. Split critical edges
9855 if it exposes implicit sets. Allocate/resize implicit_sets as
9856 necessary.
9857 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9858 changed something. Run df_analyze after find_implicit_sets if any
9859 edges were split. Do not allocate implicit_sets here.
9860
9861 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9862 (gcse_obstack): Renamed to cprop_obstack.
9863 (GNEW, GNEWVEC, GNEWVAR): Remove.
9864 (gmalloc): Remove.
9865 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9866 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9867 (gcse_alloc): Likewise, and rename to cprop_alloc.
9868 (alloc_gcse_men, free_gcse_mem): Remove.
9869 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9870 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9871 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9872
9873 * cprop.c (oprs_not_set_p): Remove.
9874 (mark_set, mark_clobber): Remove.
9875 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9876 (reg_not_set_p): New function.
9877 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9878 (cprop_insn): Likewise.
9879 (cprop_jump): Use FOR_EACH_EDGE.
9880
9881 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9882
9883 PR bootstrap/48403
9884 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9885 (rank_for_schedule): Use scheduled_insns vector instead of
9886 last_scheduled_insn.
9887 (ok_for_early_queue_removal): Likewise.
9888 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9889 we have a dbg_cnt.
9890 (choose_ready): Likewise.
9891 (commit_schedule): Use VEC_iterate.
9892 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9893 a dbg_cnt, use it and ensure the first insn is in the ready list.
9894 (haifa_sched_init): Allocate scheduled_insns.
9895 (sched_extend_ready_list): Don't allocate it; reserve space.
9896 (haifa_sched_finish): Free it.
9897
9898 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9899
9900 * optc-gen.awk: Always remove type from Variable entry before
9901 recording in var_seen.
9902
9903 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9904
9905 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9906 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9907 call to tidy_fallthru_edges.
9908
9909 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9910
9911 * doc/options.texi (ToLower): Document.
9912 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9913 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9914 * opts.h (cl_option): Add cl_tolower field.
9915 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9916 arguments with lowercase strings.
9917 * config/rx/rx.opt (mcpu=): Add ToLower.
9918 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9919 argument.
9920
9921 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9922
9923 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9924
9925 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9926
9927 * config/vax/vax.c: Include reload.h.
9928
9929 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9930
9931 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9932 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9933 (sparc_preferred_reload_class): New function.
9934
9935 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9936
9937 PR debug/48401
9938 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9939 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9940
9941 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9942
9943 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9944 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9945
9946 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9947
9948 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9949 (ASM_OUTPUT_ALIGNED_BSS): Define.
9950
9951 2011-04-03 Michael Matz <matz@suse.de>
9952
9953 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9954 and next_slot members.
9955 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9956 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9957 (lto_streamer_cache_append): Declare.
9958 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9959 unsigned index, remove offset parameter, ensure that we append
9960 or update existing entries.
9961 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9962 parameter, update next_slot for append.
9963 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9964 parameter.
9965 (lto_streamer_cache_insert_at): Likewise.
9966 (lto_streamer_cache_append): New function.
9967 (lto_streamer_cache_lookup): Use unsigned index.
9968 (lto_streamer_cache_get): Likewise.
9969 (lto_record_common_node): Don't test tree_node_can_be_shared.
9970 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9971 (lto_streamer_cache_delete): Don't free offsets member.
9972 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9973 (lto_output_string_with_length): Use lto_output_data_stream.
9974 (lto_output_tree_header): Remove ix parameter, don't write it.
9975 (lto_output_builtin_tree): Likewise.
9976 (lto_write_tree): Adjust callers to above, don't track and write
9977 offset, write unsigned index.
9978 (output_unreferenced_globals): Don't emit all global vars.
9979 (write_global_references): Use unsigned indices.
9980 (lto_output_decl_state_refs): Likewise.
9981 (write_symbol): Likewise.
9982 * lto-streamer-in.c (lto_input_chain): Move earlier.
9983 (input_function): Use unsigned index.
9984 (input_alias_pairs): Don't read and then ignore all global vars.
9985 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9986 don't pass it back, use lto_streamer_cache_append.
9987 (lto_register_var_decl_in_symtab): Use unsigned index.
9988 (lto_register_function_decl_in_symtab): Likewise.
9989 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9990 index.
9991 (lto_get_builtin_tree): Don't read index, use
9992 lto_streamer_cache_append.
9993 (lto_read_tree): Adjust call to lto_materialize_tree.
9994
9995 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9996 don't use function calls in arguments to MIN.
9997
9998 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9999 twice.
10000
10001 * gimple.c (gimple_type_leader_entry): Mark deletable.
10002
10003 2011-04-03 Alan Modra <amodra@gmail.com>
10004
10005 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10006
10007 2011-04-03 Michael Matz <matz@suse.de>
10008
10009 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10010 an integer.
10011 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10012
10013 2011-04-03 Michael Matz <matz@suse.de>
10014
10015 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10016 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10017 without function context.
10018 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10019 current_function_decl and cfun.
10020
10021 2011-04-03 Michael Matz <matz@suse.de>
10022
10023 * tree.c (decl_init_priority_insert): Don't create entry for
10024 default priority.
10025 (decl_fini_priority_insert): Ditto.
10026 (fields_compatible_p, find_compatible_field): Remove.
10027 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10028 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10029
10030 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10031
10032 * combine.c (try_combine): Remove useless local variable.
10033
10034 2011-04-03 Richard Guenther <rguenther@suse.de>
10035 Ira Rosen <ira.rosen@linaro.org>
10036
10037 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10038 non-variable offsets and compare the remaining bases of the two
10039 accesses instead of looking for exact same data-ref.
10040
10041 2011-04-02 Kai Tietz <ktietz@redhat.com>
10042
10043 PR target/48416
10044 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10045
10046 * i386.c (ix86_is_msabi_thiscall): New helper function.
10047 (ix86_is_type_thiscall): New helper function.
10048 (ix86_comp_type_attributes): Handle thiscall for method-functions
10049 special.
10050 (init_cumulative_args): Likewise.
10051 (find_drap_reg): Likewise.
10052 (ix86_static_chain): Likewise.
10053 (x86_this_parameter): Likewise.
10054 (x86_output_mi_thunk): Likewise.
10055
10056 2011-04-01 Olivier Hainque <hainque@adacore.com>
10057 Nicolas Setton <setton@adacore.com>
10058 Eric Botcazou <ebotcazou@adacore.com>
10059
10060 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10061 (add_gnat_descriptive_type_attribute): New function.
10062 (gen_array_type_die): Call it.
10063 (gen_enumeration_type_die): Likewise.
10064 (gen_struct_or_union_type_die): Likewise.
10065 (modified_type_die): Likewise.
10066 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10067 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10068 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10069
10070 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10071
10072 PR bootstrap/48148
10073 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10074 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10075
10076 Revert:
10077 2011-03-17 Richard Guenther <rguenther@suse.de>
10078
10079 PR bootstrap/48148
10080 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10081 origin for decls in other ltrans units.
10082 (input_varpool_node): Likewise.
10083
10084 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10085
10086 PR middle-end/48335
10087 * expr.c (expand_assignment): Handle all possibilities
10088 if TO_RTX is CONCAT.
10089 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10090 (store_split_bit_field): If SUBREG_REG (op0) or
10091 op0 itself has smaller mode than word, return it
10092 for offset 0 and const0_rtx for out-of-bounds stores.
10093 If word is const0_rtx, skip it.
10094
10095 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10096
10097 * config/h8300/h8300.c (print_operand_address): Rename to...
10098 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10099 Call h8300_print_operand and h8300_print_operand_address instead of
10100 print_operand and print_operand_address. Declare.
10101 (print_operand): Renake to...
10102 (h8300_print_operand): ...this. Make static. Adjust comments.
10103 Call h8300_print_operand instead of print_operand. Declare.
10104 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10105 (h8300_register_move_cost): Likewise.
10106 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10107 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10108 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10109 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10110 * config/h8300/h8300-protos.h (print_operand): Delete.
10111 (print_operand_address): Delete.
10112
10113 2011-04-01 Richard Henderson <rth@redhat.com>
10114
10115 PR 48400
10116 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10117 in strict mode before dwarf4. Re-order tests to early out
10118 before switching sections.
10119
10120 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10121
10122 * config/h8300/constraints.md: New file.
10123 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10124 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10125 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10126 * config/h8300/predicates.md (bit_operand): Likewise.
10127 (incdec_operand): Use satisfies_constraint_M and
10128 satisfies_constraint_O. Don't use C code block.
10129 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10130 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10131 (compute_mov_length): Use satisfies_constraint_G.
10132 (fix_bit_operand): Use satisfies_constraint_U.
10133 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10134 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10135 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10136 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10137 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10138 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10139 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10140 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10141 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10142 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10143 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10144 (EXTRA_MEMORY_CONSTRAINT): Delete.
10145
10146 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10147 Michael Meissner <meissner@linux.vnet.ibm.com>
10148
10149 PR target/48262
10150 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10151 operands, as per the specifications.
10152
10153 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10154 (vec_extract_evenv4sf): Ditto.
10155 (vec_extract_evenv8hi): Ditto.
10156 (vec_extract_evenv16qi): Ditto.
10157 (vec_extract_oddv4si): Ditto.
10158
10159 2011-03-31 Mark Wielaard <mjw@redhat.com>
10160
10161 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10162 high_pc attribute if the CU has no associated code. Only output
10163 DW_AT_entry_pc for CU if not generating strict dwarf and
10164 dwarf_version < 4.
10165
10166 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10167
10168 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10169 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10170 out of ...
10171 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10172 * final.c (final_start_function): Call the new function rather
10173 than using a NULL argument for dwarf2out_frame_debug.
10174
10175 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10176 that contains the prologue.
10177
10178 * haifa-sched.c (queue_insn): New arg REASON. All callers
10179 changed. Print it in debugging output.
10180
10181 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10182
10183 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10184 Split most of the code into...
10185 (begin_move_insn): ... here. New function.
10186 (ebb_sched_info): Add a pointer to it.
10187 * haifa-sched.c (scheduled_insns): New static variable.
10188 (sched_extend_ready_list): Allocate it.
10189 (schedule_block): Use it to record the order of scheduled insns.
10190 Perform RTL changes to move insns only after all scheduling
10191 decisions have been made.
10192 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10193 begin_move_insn field.
10194 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10195 * sched-int.h (struct haifa_sched_info): Remove second argument
10196 from begin_schedule_ready hook. Add new member begin_move_insn.
10197 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10198 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10199
10200 * haifa-sched.c (prune_ready_list): New function, broken out of
10201 schedule_block.
10202 (schedule_block): Use it.
10203
10204 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10205
10206 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10207
10208 2011-04-01 Kai Tietz <ktietz@redhat.com>
10209
10210 * config.gcc (*-*-mingw*): Allow as option the
10211 posix threading model.
10212 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10213 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10214 definition.
10215 (CPP_SPEC): Add pthread/no-pthread handling.
10216 (LIB_SPEC): Likewise.
10217 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10218 (LIB_SPEC): Likewise.
10219 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10220 flag to pass -pthread option for shared libgcc build.
10221 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10222 for shared libgcc build.
10223 * config/i386/t-mingw-pthread: New file.
10224 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10225 New define to enable use of library pthread by default.
10226 * config/i386/mingw.opt (pthread): New driver option.
10227 (no-pthread): New driver option.
10228 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10229 * config/i386/mingw-w64.opt: Likewise.
10230
10231 2011-04-01 Gary Funck <gary@intrepid.com>
10232
10233 * c-decl.c (grokdeclarator): Fix formatting.
10234
10235 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10236
10237 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10238 instead of n_operands.
10239 (set_storage_via_setmem): Likewise.
10240 * optabs.c (maybe_gen_insn): Likewise.
10241 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10242 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10243 (mips_expand_builtin_direct): Likewise.
10244 * config/spu/spu.c (expand_builtin_args): Likewise.
10245
10246 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10247
10248 * recog.h (insn_data_d): Add n_generator_args.
10249 * genoutput.c (data): Likewise.
10250 (output_insn_data): Print it.
10251 (max_opno, num_dups): Delete.
10252 (scan_operands): Just fill in "d->operand[...]".
10253 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10254
10255 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10256
10257 * gensupport.h (pattern_stats): New structure.
10258 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10259 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10260 (max_operand_1, max_operand_vec): Delete.
10261 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10262
10263 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10264
10265 * emit-rtl.c (emit_pattern_after_setloc): New function.
10266 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10267 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10268 (emit_pattern_after): New function.
10269 (emit_insn_after, emit_jump_insn_after): Call it.
10270 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10271 (emit_pattern_before_setloc): New function.
10272 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10273 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10274 Likewise.
10275 (emit_pattern_before): New function.
10276 (emit_insn_before, emit_jump_insn_before): Call it.
10277 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10278
10279 2011-03-31 Richard Henderson <rth@redhat.com>
10280
10281 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10282 (dw_separate_line_info_entry): Remove.
10283 (enum dw_line_info_opcode): New.
10284 (dw_line_info_entry): Use it.
10285 (dw_line_info_table, dw_line_info_table_p): New.
10286 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10287 (line_info_table, line_info_label_num): Remove.
10288 (line_info_table_in_use): Remove.
10289 (separate_line_info_table): Remove.
10290 (separate_line_info_table_allocated): Remove.
10291 (separate_line_info_table_in_use): Remove.
10292 (LINE_INFO_TABLE_INCREMENT): Remove.
10293 (line_info_label_num): New.
10294 (cur_line_info_table): New.
10295 (text_section_line_info, cold_text_section_line_info): New.
10296 (separate_line_info): New.
10297 (SEPARATE_LINE_CODE_LABEL): Remove.
10298 (print_dwarf_line_table): Remove.
10299 (debug_dwarf): Don't dump it.
10300 (output_one_line_info_table): New.
10301 (output_line_info): Use it.
10302 (new_line_info_table): New.
10303 (set_cur_line_info_table): New.
10304 (dwarf2out_switch_text_section): Use it.
10305 (dwarf2out_begin_function): Likewise.
10306 (push_dw_line_info_entry): New.
10307 (dwarf2out_source_line): Rewrite for new line info tables.
10308 (dwarf2out_init): Remove dead initailizations.
10309
10310 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10311
10312 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10313 various flags.
10314 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10315 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10316 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10317 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10318 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10319 * opt-functions.awk (flag_init, switch_bit_fields): New.
10320 (switch_flags): Don't handle flags moved to bit-fields. Don't
10321 generate CL_MISSING_OK or CL_SAVE.
10322 * optc-gen.awk: Update to generate bit-field output as well as
10323 flags field.
10324 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10325 bit-field instead of CL_REJECT_DRIVER flag.
10326 * opts-common.c (generate_canonical_option,
10327 decode_cmdline_option): Use bit-fields instead of CL_* flags.
10328 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10329 instead of CL_REJECT_NEGATIVE flag.
10330 * toplev.c (print_switch_values): Use cl_report bit-field instead
10331 of CL_REPORT flag.
10332
10333 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10334
10335 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10336 a zero minimum index only if it is redundant.
10337
10338 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
10339
10340 PR rtl-optimization/48381
10341 * ira-color.c (assign_hard_reg): Use hard reg set intersection
10342 instead of ira_class_hard_reg_index for calculating conflicting
10343 hard registers.
10344
10345 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
10346
10347 * cprop.c: Clean up hash table building.
10348 (reg_avail_info): Remove.
10349 (oprs_available_p): Remove.
10350 (record_last_reg_set_info): Remove.
10351 (record_last_set_info): Remove.
10352 (reg_available_p): New function.
10353 (gcse_constant_p): Do not treat unfolded conditions as constants.
10354 (make_set_regs_unavailable): New function.
10355 (hash_scan_set): Simplify with new reg_available_p.
10356 (compute_hash_table_work): Traverse insns stream only once.
10357 Do not compute reg_avail_info. Traverse insns in reverse order.
10358 Record implicit sets after recording explicit sets from the block.
10359
10360 2011-03-31 Michael Matz <matz@suse.de>
10361
10362 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10363
10364 2011-03-31 Anatoly Sokolov <aesok@post.ru>
10365
10366 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10367 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10368 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10369 (h8300_mode_dependent_address_p): New function.
10370 (h8300_get_index): Make static.
10371
10372 2011-03-31 Jeff Law <law@redhat.com>
10373
10374 * reload1.c (elimination_effects): Fix typo in recent change.
10375
10376 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10377 typo potentially leading to null pointer dereference.
10378
10379 * caller-save.c (new_saved_hard_reg): Eliminate return value.
10380 (setup_save_areas): Corresponding changes to avoid useless
10381 assignments.
10382
10383 * jump.c (reversed_comparison_code_parts): Avoid successive return
10384 statements when REVERSE_CONDITION is defined.
10385
10386 * expr.c (expand_assignment): Avoid useless assignments.
10387 (expand_expr_real_1): Likewise.
10388 (expand_expr_real_2): Avoid useless statements.
10389
10390 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
10391
10392 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10393
10394 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
10395 statements.
10396
10397 * stmt.c (expand_expr_stmt): Avoid useless assignment.
10398
10399 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10400
10401 PR target/47109
10402 * doc/tm.texi.in (TARGET_VERSION): Remove.
10403 * doc/tm.texi: Regenerate.
10404 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
10405 * collect2.c (main): Don't use TARGET_VERSION.
10406 * mips-tdump.c (main): Don't use TARGET_VERSION.
10407 * mips-tfile.c (main): Don't use TARGET_VERSION.
10408 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
10409 * config/rs6000/vxworksae.h: Remove.
10410 * config/alpha/alpha.h (TARGET_VERSION): Remove.
10411 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
10412 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
10413 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
10414 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10415 * config/arm/arm.h (TARGET_VERSION): Remove.
10416 * config/arm/coff.h (TARGET_VERSION): Remove.
10417 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
10418 * config/arm/elf.h (TARGET_VERSION): Remove.
10419 * config/arm/freebsd.h (TARGET_VERSION): Remove.
10420 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
10421 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
10422 * config/arm/pe.h (TARGET_VERSION): Remove.
10423 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
10424 * config/arm/semi.h (TARGET_VERSION): Remove.
10425 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
10426 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
10427 * config/arm/vxworks.h (TARGET_VERSION): Remove.
10428 * config/avr/avr.h (TARGET_VERSION): Remove.
10429 * config/bfin/bfin.h (TARGET_VERSION): Remove.
10430 * config/fr30/fr30.h (TARGET_VERSION): Remove.
10431 * config/frv/frv.h (TARGET_VERSION): Remove.
10432 * config/h8300/h8300.h (TARGET_VERSION): Remove.
10433 * config/i386/cygwin.h (TARGET_VERSION): Remove.
10434 * config/i386/darwin.h (TARGET_VERSION): Remove.
10435 * config/i386/darwin64.h (TARGET_VERSION): Remove.
10436 * config/i386/djgpp.h (TARGET_VERSION): Remove.
10437 * config/i386/freebsd.h (TARGET_VERSION): Remove.
10438 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
10439 * config/i386/gnu.h (TARGET_VERSION): Remove.
10440 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
10441 * config/i386/i386elf.h (TARGET_VERSION): Remove.
10442 * config/i386/linux.h (TARGET_VERSION): Remove.
10443 * config/i386/linux64.h (TARGET_VERSION): Remove.
10444 * config/i386/lynx.h (TARGET_VERSION): Remove.
10445 * config/i386/mingw32.h (TARGET_VERSION): Remove.
10446 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
10447 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
10448 * config/i386/netware.h (TARGET_VERSION): Remove.
10449 * config/i386/nto.h (TARGET_VERSION): Remove.
10450 * config/i386/openbsd.h (TARGET_VERSION): Remove.
10451 * config/i386/vxworks.h (TARGET_VERSION): Remove.
10452 * config/ia64/elf.h (TARGET_VERSION): Remove.
10453 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
10454 * config/ia64/hpux.h (TARGET_VERSION): Remove.
10455 * config/ia64/linux.h (TARGET_VERSION): Remove.
10456 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10457 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
10458 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10459 * config/lm32/lm32.h (TARGET_VERSION): Remove.
10460 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
10461 * config/m32c/m32c.h (TARGET_VERSION): Remove.
10462 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
10463 * config/m32r/m32r.h (TARGET_VERSION): Remove.
10464 * config/m68k/linux.h (TARGET_VERSION): Remove.
10465 * config/m68k/m68k.h (TARGET_VERSION): Remove.
10466 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
10467 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
10468 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
10469 * config/mep/mep.h (TARGET_VERSION): Remove.
10470 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
10471 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10472 * config/mips/iris6.h (MACHINE_TYPE): Remove.
10473 * config/mips/linux.h (TARGET_VERSION): Remove.
10474 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
10475 * config/mips/vxworks.h (TARGET_VERSION): Remove.
10476 * config/mmix/mmix.h (TARGET_VERSION): Remove.
10477 * config/mn10300/linux.h (TARGET_VERSION): Remove.
10478 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
10479 * config/pa/pa.h (TARGET_VERSION): Remove.
10480 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
10481 * config/picochip/picochip.h (TARGET_VERSION): Remove.
10482 * config/rs6000/aix.h (TARGET_VERSION): Remove.
10483 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
10484 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
10485 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
10486 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
10487 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
10488 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
10489 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
10490 * config/rs6000/linux.h (TARGET_VERSION): Remove.
10491 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
10492 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
10493 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
10494 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
10495 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
10496 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
10497 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
10498 * config/s390/linux.h (TARGET_VERSION): Remove.
10499 * config/s390/s390.h (TARGET_VERSION): Remove.
10500 * config/s390/tpf.h (TARGET_VERSION): Remove.
10501 * config/score/score.h (TARGET_VERSION): Remove.
10502 * config/sh/linux.h (TARGET_VERSION): Remove.
10503 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
10504 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
10505 * config/sh/sh.h (TARGET_VERSION): Remove.
10506 * config/sh/sh64.h (TARGET_VERSION): Remove.
10507 * config/sh/superh.h (TARGET_VERSION): Remove.
10508 * config/sh/vxworks.h (TARGET_VERSION): Remove.
10509 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
10510 * config/sparc/linux.h (TARGET_VERSION): Remove.
10511 * config/sparc/linux64.h (TARGET_VERSION): Remove.
10512 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
10513 TARGET_NAME32, TARGET_NAME): Remove.
10514 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
10515 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
10516 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
10517 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
10518 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
10519 * config/spu/spu.h (TARGET_VERSION): Remove.
10520 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
10521 * config/v850/v850.h (TARGET_VERSION): Remove.
10522 * config/vax/linux.h (TARGET_VERSION): Remove.
10523 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
10524 * config/xtensa/elf.h (TARGET_VERSION): Remove.
10525 * config/xtensa/linux.h (TARGET_VERSION): Remove.
10526
10527 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10528
10529 PR target/48142
10530 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
10531 frame-related from frame-unrelated adjustments to the stack pointer.
10532
10533 2011-03-31 Jakub Jelinek <jakub@redhat.com>
10534
10535 * common.opt (fdebug-types-section): Move earlier.
10536 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
10537
10538 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
10539
10540 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
10541 var.
10542
10543 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
10544
10545 * tree.h (CASE_CHAIN): Define.
10546 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
10547 (gimple_redirect_edge_and_branch): Likewise.
10548
10549 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10550
10551 PR middle-end/48367
10552 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
10553 calculation.
10554
10555 2011-03-30 Jeff Law <law@redhat.com>
10556
10557 * PR bootstrap/48371
10558 * reload1.c (reload): Fix botch in last change.
10559
10560 * reload.h (struct reload): Fix typo introduced in last change.
10561
10562 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10563
10564 * config/arm/arm.opt (mhard-float, msoft-float): Mark
10565 Undocumented. Remove help text.
10566 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
10567 -mhard-float.
10568
10569 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10570
10571 * doc/options.texi (NegativeAlias): Document.
10572 (Alias): Mention NegativeAlias.
10573 * opt-functions.awk: Handle NegativeAlias.
10574 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
10575 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
10576 * opts.h (CL_NEGATIVE_ALIAS): Define.
10577 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
10578 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
10579 OPT_mspe_.
10580 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
10581 Alias entries.
10582 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10583 mno-spe and mno-isel instead of mspe=no and -misel=no.
10584
10585 2011-03-29 Mark Wielaard <mjw@redhat.com>
10586
10587 * common.opt (fdebug-types-section): New flag.
10588 * doc/invoke.texi: Document new -fno-debug-types-section flag.
10589 * dwarf2out.c (use_debug_types): New define.
10590 (struct die_struct): Mark die_id with GTY desc use_debug_types.
10591 (print_die): Guard output of type unit signatures using
10592 use_debug_types.
10593 (build_abbrev_table): Replace assert of dwarf_version >= 4
10594 with assert on use_debug_types.
10595 (size_of_die): Likewise.
10596 (unmark_dies): Likewise.
10597 (value_format): Decide AT_ref_external form on use_debug_types.
10598 (output_die): Replace dwarf_version version check guard with
10599 use_debug_types where appropriate.
10600 (modified_type_die): Likewise.
10601 (gen_reference_type_die): Likewise.
10602 (dwarf2out_start_source_file): Likewise.
10603 (dwarf2out_end_source_file): Likewise.
10604 (prune_unused_types_walk_attribs): Likewise.
10605 (dwarf2out_finish): Likewise.
10606
10607 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10608
10609 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
10610
10611 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10612
10613 PR rtl-optimization/48332
10614 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
10615 mode of input operand N and modeN to its actual mode.
10616
10617 2011-03-30 Jeff Law <law@redhat.com>
10618
10619 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
10620 define accessor macro.
10621 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
10622 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
10623 (reg_equiv_init): Likewise.
10624 (reg_equivs_size): New variable.
10625 (reg_equiv_init_size): Remove.
10626 (allocate_initial_values): Move prototype to here from....
10627 * integrate.h (allocate_initial_values): Remove prototype.
10628 * integrate.c: Include reload.h.
10629 (allocate_initial_values): Corresponding changes.
10630 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
10631 (fix_reg_equiv_init, no_equiv): Corresponding changes.
10632 (update_equiv_regs): Corresponding changes.
10633 (ira): Corresponding changes.
10634 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
10635 (push_secondary_reload): Corresponding changes.
10636 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
10637 (make_memloc, find_reloads_address): Corresponding changes.
10638 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
10639 (find_reloads_address_1): Corresponding changes.
10640 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
10641 (refers_to_regno_for_reload_p): Corresponding changes.
10642 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
10643 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
10644 * reload1.c: Include ggc.h.
10645 (grow_reg_equivs): New function.
10646 (replace_pseudos_in, reload): Corresponding changes.
10647 (calculate_needs_all_insns, alter_regs): Corresponding changes.
10648 (eliminate_regs_1, elimination_effects): Corresponding changes.
10649 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
10650 (delete_output_reload): Likewise.
10651 * caller-save.c (mark_referenced_regs): Corresponding changes.
10652 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
10653 * frv/predicates.md (frv_load_operand): Corresponding changes.
10654 * microblaze/microblaze.c (double_memory_operand): Corresponding
10655 changes.
10656 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
10657 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
10658 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
10659 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
10660 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
10661 changes.
10662 * pa/pa.c (emit_move_sequence): Corresponding changes.
10663 * vax/vax.c (nonindexed_address_p): Corresponding changes.
10664
10665 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10666
10667 PR target/47551
10668 * config/arm/arm.c (coproc_secondary_reload_class): Handle
10669 structure modes. Don't check neon_vector_mem_operand for
10670 vector or structure modes.
10671
10672 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10673 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10674
10675 PR target/43590
10676 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10677 operand 1 and reshuffle the operands to match.
10678 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10679
10680 2011-03-30 Christian Schüler <cschueler@gmx.de>
10681
10682 PR driver/48208
10683 * config/c.opt (F): Added 'Driver' to -F option.
10684
10685 PR driver/48260
10686 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10687 handler function.
10688 * config/darwin.opt: Added '-arch' option.
10689
10690 2011-03-30 Nick Clifton <nickc@redhat.com>
10691
10692 * config/rx/rx.md: Add peepholes and patterns to combine
10693 extending loads and simple arithmetic instructions.
10694 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10695 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10696 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10697 modes to use pre-decrement and post-increment addressing.
10698 (rx_is_restricted_memory_address): Add range checking of REG+INT
10699 addresses.
10700 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10701 (rx_memory_move_cost): Adjust cost of stores.
10702 (rx_adjust_insn_length): New function.
10703
10704 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10705
10706 PR c/48305
10707 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10708 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10709 matching arg00/arg01 types.
10710
10711 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10712
10713 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10714 last_location to UNKNOWN_LOCATION.
10715
10716 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
10717
10718 PR target/48349
10719 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10720 FLOAT_SSE_REGS.
10721
10722 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10723 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10724
10725 PR bootstrap/48337
10726 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10727 Init(PROCESSOR_V7).
10728 (sparc_cpu): Likewise.
10729 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10730 PROCESSOR_V7.
10731
10732 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10733
10734 PR target/48336
10735 PR middle-end/48342
10736 PR rtl-optimization/48345
10737 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10738 hard regs for given mode from profitable regs when doing secondary
10739 allocation.
10740
10741 2011-03-29 Jeff Law <law@redhat.com>
10742
10743 PR bootstrap/48327
10744 * tree-ssa-threadupdate.c (struct redirection_data): Remove
10745 do_not_duplicate field.
10746 (lookup_redirection_data): Corresponding changes.
10747 (create_duplicates): Always create a template block.
10748 (redirect_edges): Remove code which reused the original block
10749 when it was going to become unreachable code.
10750 (thread_block): Don't set do_not_duplicate field.
10751
10752 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10753
10754 * lto-opts.c (register_user_option_p, lto_register_user_option):
10755 Make type argument unsigned.
10756 * lto-streamer.h (lto_register_user_option): Make type argument
10757 unsigned.
10758 * opth-gen.awk: Make CL_* macros unsigned.
10759 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10760 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10761 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10762 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10763 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10764 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10765 (find_opt): Make lang_mask argument unsigned.
10766
10767 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10768
10769 PR rtl-optimization/48331
10770 PR rtl-optimization/48334
10771 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10772 for any used algorithm.
10773
10774 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10775
10776 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10777 to parent_max.
10778
10779 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10780
10781 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10782 (alpha_option_override): Don't set alpha_sr_alias_set.
10783 (emit_frame_store_1): Use gen_frame_mem rather than calling
10784 set_mem_alias_set.
10785 (alpha_expand_epilogue): Ditto.
10786
10787 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10788
10789 PR tree-optimization/48290
10790 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10791 vectorization, check that relevant phis in the basic block after
10792 the inner loop are really inner loop's exit phis.
10793
10794 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10795
10796 PR debug/48190
10797 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10798 (cached_dw_loc_list_def): New structure.
10799 (cached_dw_loc_list): New typedef.
10800 (cached_dw_loc_list_table): New variable.
10801 (cached_dw_loc_list_table_hash): New function.
10802 (cached_dw_loc_list_table_eq): Likewise.
10803 (add_location_or_const_value_attribute): Take a bool cache_p.
10804 Cache the list when the parameter is true.
10805 (gen_formal_parameter_die): Update caller.
10806 (gen_variable_die): Likewise.
10807 (dwarf2out_finish): Likewise.
10808 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10809 while generating debug info for the decl.
10810 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10811 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10812 (resolve_addr): Cache the result of resolving a chain of
10813 location lists.
10814
10815 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10816
10817 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10818 conflict object hard regset nodes have intersecting hard reg sets.
10819
10820 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10821 after regstat_init_n_sets_and_refs.
10822
10823 * ira.c: Add more comments at the top.
10824 (setup_stack_reg_pressure_class, setup_pressure_classes):
10825 Add comments how we compute the register pressure classes.
10826 (setup_allocno_and_important_classes): Add more comments.
10827 (setup_class_translate_array, reorder_important_classes)
10828 (setup_reg_class_relations): Add comments.
10829
10830 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10831 start of the file.
10832
10833 * ira-color.c: Add 2011 to the Copyright line.
10834 (assign_hard_reg): Add more comments.
10835 (improve_allocation): Ditto.
10836
10837 * ira-costs.c: Add 2011 to the Copyright line.
10838 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10839 comments.
10840 (setup_regno_cost_classes_by_mode): Ditto.
10841
10842 Initial patches from ira-improv branch:
10843
10844 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10845
10846 * ira-build.c (ira_create_object): Remove initialization of
10847 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10848 (ira_create_allocno): Remove initialization of
10849 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10850 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10851 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10852 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10853 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10854 Initialize ALLOCNO_ADD_DATA.
10855 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10856 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10857 ALLOCNO_REG.
10858 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10859 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10860
10861 * ira.c (ira_reallocate): Remove.
10862 (setup_pressure_classes): Call
10863 ira_init_register_move_cost_if_necessary. Use
10864 ira_register_move_cost instead of ira_get_register_move_cost.
10865 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10866 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10867
10868 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10869 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10870 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10871 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10872 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10873 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10874 Fix formatting.
10875 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10876 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10877 (struct allocno_color_data): New.
10878 (allocno_color_data_t): New typedef.
10879 (allocno_color_data): New definition.
10880 (ALLOCNO_COLOR_DATA): New macro.
10881 (struct object_color_data): New.
10882 (object_color_data_t): New typedef.
10883 (object_color_data): New definition.
10884 (OBJECT_COLOR_DATA): New macro.
10885 (update_copy_costs, calculate_allocno_spill_cost): Call
10886 ira_init_register_move_cost_if_necessary. Use
10887 ira_register_move_cost instead of ira_get_register_move_cost.
10888 (move_spill_restore, update_curr_costs): Ditto.
10889 (allocno_spill_priority): Make it inline.
10890 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10891 (struct coalesce_data, coalesce_data_t): New.
10892 (allocno_coalesce_data): New definition.
10893 (ALLOCNO_COALESCE_DATA): New macro.
10894 (merge_allocnos, coalesced_allocno_conflict_p): Use
10895 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10896 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10897 (coalesce_allocnos): Ditto.
10898 (setup_coalesced_allocno_costs_and_nums): Ditto.
10899 (collect_spilled_coalesced_allocnos): Ditto.
10900 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10901 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10902 (coalesce_spill_slots): Ditto.
10903 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10904 free allocno_coalesce_data.
10905
10906 * ira-conflicts.c: Fix formatting.
10907 (process_regs_for_copy): Call
10908 ira_init_register_move_cost_if_necessary. Use
10909 ira_register_move_cost instead of ira_get_register_move_cost.
10910 (build_object_conflicts): Optimize.
10911
10912 * ira-costs.c (record_reg_classes): Optimize. Call
10913 ira_init_register_move_cost_if_necessary. Use
10914 ira_register_move_cost, ira_may_move_in_cost, and
10915 ira_may_move_out_cost instead of ira_get_register_move_cost and
10916 ira_get_may_move_cost.
10917 (record_address_regs): Ditto.
10918 (scan_one_insn): Optimize.
10919 (find_costs_and_classes): Optimize.
10920 (process_bb_node_for_hard_reg_moves): Call
10921 ira_init_register_move_cost_if_necessary. Use
10922 ira_register_move_cost instead of ira_get_register_move_cost.
10923
10924 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10925 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10926 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10927 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10928 definitions.
10929 (ira_initiate_emit_data, ira_finish_emit_data)
10930 (create_new_allocno): New functions.
10931 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10932 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10933 Use ira_register_move_cost instead of ira_get_register_move_cost.
10934
10935 * ira-int.h: Fix some comments.
10936 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10937 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10938 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10939 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10940 add_data.
10941 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10942 bitfield after mode. Make hard_regno a short int. Make
10943 hard_regno short. Remove first_coalesced_allocno and
10944 next_coalesced_allocno. Move mem_optimized_dest_p,
10945 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10946 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10947 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10948 temp, colorable_p. Add new member add_data.
10949 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10950 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10951 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10952 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10953 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10954 (ALLOCNO_ADD_DATA): New macro.
10955 (ira_emit_data_t): New typedef.
10956 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10957 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10958 from struct ira_allocno.
10959 (ALLOCNO_EMIT_DATA): New macro.
10960 (ira_allocno_emit_data, allocno_emit_reg): New.
10961 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10962 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10963 (OBJECT_ADD_DATA): New macro.
10964 (ira_reallocate): Remove.
10965 (ira_initiate_emit_data, ira_finish_emit_data): New.
10966 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10967 (ira_init_register_move_cost_if_necessary): New.
10968 (ira_object_conflict_iter_next): Merge into
10969 ira_object_conflict_iter_cond.
10970 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10971
10972 * ira-live.c (process_single_reg_class_operands): Call
10973 ira_init_register_move_cost_if_necessary. Use
10974 ira_register_move_cost instead of ira_get_register_move_cost.
10975
10976 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10977
10978 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10979
10980 * ira-costs.c: Fix formatting.
10981 (cost_classes, cost_classes_num): Remove.
10982 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10983 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10984 (cost_classes_del, cost_classes_htab): New.
10985 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10986 (initiate_regno_cost_classes, setup_cost_classes): New.
10987 (setup_regno_cost_classes_by_aclass): New.
10988 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10989 (record_reg_classes): Use regno_cost_classes instead of
10990 cost_classes. Move checking opposite operand up.
10991 (record_address_regs): Use regno_cost_classes
10992 instead of cost_classes.
10993 (scan_one_insn): Ditto. Use always general register.
10994 (print_allocno_costs): Use regno_cost_classes instead of
10995 cost_classes.
10996 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10997 (find_costs_and_classes): Set up cost classes for each registers.
10998 Use also their mode for this. Use regno_cost_classes instead of
10999 cost_classes.
11000 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11001 cost_classes.
11002 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11003 (ira_costs, ira_set_pseudo_classes): Call
11004 initiate_regno_cost_classes and finish_regno_cost_classes.
11005
11006 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11007
11008 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11009
11010 * target.def (ira_cover_classes): Remove.
11011
11012 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11013
11014 * doc/tm.texi.in: Ditto.
11015
11016 * ira-conflicts.c: Remove mentioning cover classes from the file.
11017 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11018 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11019
11020 * targhooks.c (default_ira_cover_classes): Remove.
11021
11022 * targhooks.h (default_ira_cover_classes): Ditto.
11023
11024 * haifa-sched.c: Remove mentioning cover classes from the file.
11025 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11026 ira_pressure_classes and ira_pressure_classes_num instead of
11027 ira_reg_class_cover_size and ira_reg_class_cover. Use
11028 sched_regno_pressure_class instead of sched_regno_cover_class.
11029 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11030 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11031
11032 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11033 classes from the file.
11034 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11035 (struct object_hard_regs, struct object_hard_regs_node): New.
11036 (struct ira_object): New members profitable_hard_regs,
11037 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11038 (struct ira_allocno): Rename cover_class to aclass. Rename
11039 cover_class_cost and updated_cover_class_cost to class_cost and
11040 updated_class_cost. Remove splay_removed_p and
11041 left_conflict_size. Add new members colorable_p.
11042 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11043 (ALLOCNO_COLORABLE_P): New macro.
11044 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11045 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11046 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11047 (OBJECT_...): Rename parameter C to O.
11048 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11049 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11050 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11051 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11052 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11053 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11054 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11055 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11056 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11057 x_ira_reg_class_subunion.
11058 (ira_max_memory_move_cost, ira_max_register_move_cost)
11059 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11060 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11061 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11062 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11063 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11064 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11065 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11066 (ira_tune_allocno_costs_and_cover_classes): Rename to
11067 ira_tune_allocno_costs.
11068 (ira_debug_hard_regs_forest): New.
11069 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11070 (ira_object_conflict_iter_next): Fix comments.
11071 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11072 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11073 cover_class to aclass.
11074 (ira_allocate_and_accumulate_costs): Ditto.
11075 (ira_allocate_and_set_or_copy_costs): Ditto.
11076
11077 * opts.c (decode_options): Remove ira_cover_class check.
11078
11079 * ira-color.c: Remove mentioning cover classes from the file. Use
11080 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11081 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11082 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11083 (splay-tree.h): Remove include.
11084 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11085 before copy_freq_compare_func.
11086 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11087 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11088 New definitions.
11089 (hard_regs_roots, hard_regs_node_vec): Ditto.
11090 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11091 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11092 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11093 (create_new_object_hard_regs_node): Ditto.
11094 (add_new_object_hard_regs_node_to_forest): Ditto.
11095 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11096 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11097 Ditto.
11098 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11099 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11100 (remove_unused_object_hard_regs_nodes): Ditto.
11101 (enumerate_object_hard_regs_nodes): Ditto.
11102 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11103 (object_hard_regs_subnode_t): Ditto.
11104 (struct object_hard_regs_subnode): Ditto.
11105 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11106 (setup_object_hard_regs_subnode_index): Ditto.
11107 (get_object_hard_regs_subnodes_num): Ditto.
11108 (form_object_hard_regs_nodes_forest): Ditto.
11109 (finish_object_hard_regs_nodes_tree): Ditto.
11110 (finish_object_hard_regs_nodes_forest): Ditto.
11111 (allocnos_have_intersected_live_ranges_p): Rename to
11112 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11113 (pseudos_have_intersected_live_ranges_p): Rename to
11114 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11115 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11116 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11117 (update_copy_costs): Remove assert. Skip cost update if the hard
11118 reg does not belong the class.
11119 (assign_hard_reg): Process only profitable hard regs.
11120 (uncolorable_allocnos_num): Make it scalar.
11121 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11122 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11123 and ira_reg_class_max_nregs.
11124 (bucket_allocno_compare_func): Check frequency first.
11125 (sort_bucket): Add compare function as a parameter.
11126 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11127 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11128 (push_allocno_to_stack): Rewrite for checking new allocno
11129 colorability.
11130 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11131 (push_only_colorable): Pass new parameter to sort_bucket.
11132 (push_allocno_to_spill): Remove.
11133 (allocno_spill_priority_compare): Make it inline and rewrite.
11134 (splay_tree_allocate, splay_tree_free): Remove.
11135 (allocno_spill_sort_compare): New function.
11136 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11137 build and use splay tree. Choose first allocno in uncolorable
11138 allocno bucket to spill. Remove setting spill cost.
11139 (all_conflicting_hard_regs): Remove.
11140 (setup_allocno_available_regs_num): Check only profitable hard
11141 regs. Print info about hard regs nodes.
11142 (setup_allocno_left_conflicts_size): Remove.
11143 (put_allocno_into_bucket): Don't call
11144 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11145 (improve_allocation): New.
11146 (color_allocnos): Call setup_profitable_hard_regs,
11147 form_object_hard_regs_nodes_forest, improve_allocation,
11148 finish_object_hard_regs_nodes_forest. Setup spill cost.
11149 (print_loop_title): Use pressure classes.
11150 (color_allocnso): Ditto.
11151 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11152 and allocnos_for_spilling.
11153 (ira_sort_regnos_for_alter_reg): Don't setup members
11154 {first,next}_coalesced_allocno.
11155 (color): Remove allocating and freeing removed_splay_allocno_vec.
11156 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11157 prohibited_class_mode_regs.
11158
11159 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11160 formatting.
11161 (update_allocno_pressure_excess_length): Use pressure classes.
11162 (inc_register_pressure, dec_register_pressure): Check for pressure
11163 class.
11164 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11165 pressure class. Use ira_reg_class_nregs instead of
11166 ira_reg_class_max_nregs.
11167 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11168 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11169 (single_reg_class): Use ira_reg_class_nregs instead of
11170 ira_reg_class_max_nregs.
11171 (process_bb_node_lives): Use pressure classes.
11172
11173 * ira-emit.c: Remove mentioning cover classes from the file. Use
11174 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11175 (change_loop): Use pressure classes.
11176 (modify_move_list): Call ira_set_allocno_class instead of
11177 ira_set_allocno_cover_class.
11178
11179 * ira-build.c: Remove mentioning cover classes from the file. Use
11180 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11181 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11182 ALLOCNO_UPDATED_CLASS_COST instead of
11183 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11184 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11185 (ira_create_allocno): Remove initialization of
11186 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11187 ALLOCNO_COLORABLE_P.
11188 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11189 Update conflict regs for the objects.
11190 (create_cap_allocno): Remove assert. Don't propagate
11191 ALLOCNO_AVAILABLE_REGS_NUM.
11192 (ira_free_allocno_costs): New function.
11193 (finish_allocno): Change a part of code into call of
11194 ira_free_allocno_costs.
11195 (low_pressure_loop_node_p): Use pressure classes.
11196 (object_range_compare_func): Don't compare classes.
11197 (setup_min_max_conflict_allocno_ids): Ditto.
11198
11199 * loop-invariant.c: Remove mentioning cover classes from the file.
11200 Use ira_pressure_classes and ira_pressure_classes_num instead of
11201 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11202 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11203 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11204 Use reg_allocno_class instead of reg_cover_class.
11205 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11206 STACK_REG_COVER_CLASS.
11207 (get_regno_cover_class): Rename to get_regno_pressure_class.
11208 (move_loop_invariants): Initialize and finalize regstat.
11209
11210 * ira.c: Remove mentioning cover classes from the file. Add
11211 comments about coloring without cover classes. Use ALLOCNO_CLASS
11212 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11213 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11214 setup_class_subset_and_memory_move_costs.
11215 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11216 (setup_cover_and_important_classes): Rename to
11217 setup_allocno_and_important_classes.
11218 (setup_class_translate_array): New.
11219 (setup_class_translate): Call it for allocno and pressure classes.
11220 (cover_class_order): Rename to allocno_class_order.
11221 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11222 of ira_class_translate.
11223 (reorder_important_classes): Set up ira_important_class_nums.
11224 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11225 (print_class_cover): Rename to print_classes. Add parameter.
11226 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11227 Print pressure classes too.
11228 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11229 setup_reg_subclasses.
11230 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11231 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11232 (setup_prohibited_class_mode_regs): Use
11233 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11234 (clarify_prohibited_class_mode_regs): New function.
11235 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11236 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11237 (ira_init_once): Initialize them.
11238 (free_register_move_costs): Process them.
11239 (ira_init): Move calls of find_reg_classes and
11240 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11241 Call clarify_prohibited_class_mode_regs.
11242 (ira_no_alloc_reg): Remove.
11243 (too_high_register_pressure_p): Use pressure classes.
11244
11245 * sched-deps.c: Remove mentioning cover classes from the file.
11246 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11247 ira_pressure_classes and ira_pressure_classes_num instead of
11248 ira_reg_class_cover_size and ira_reg_class_cover.
11249 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11250 sched_regno_pressure_class instead of sched_regno_cover_class.
11251 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11252 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11253
11254 * ira.h: Add 2010 to Copyright.
11255 (ira_no_alloc_reg): Remove external.
11256 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11257 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11258 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11259 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11260 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11261 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11262 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11263 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11264 x_ira_no_alloc_regs.
11265 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11266 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11267 ira_allocno_classes_num and ira_allocno_classes.
11268 (ira_class_translate): Rename to ira_allocno_class_translate.
11269 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11270 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11271 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11272 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11273 (ira_no_alloc_regs): New.
11274
11275 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11276 classes from the file. Use ALLOCNO_CLASS instead of
11277 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11278 ALLOCNO_COVER_CLASS_COST.
11279 (regno_cover_class): Rename to regno_aclass.
11280 (record_reg_classes): Use ira_reg_class_subunion instead of
11281 ira_reg_class_union.
11282 (record_address_regs): Check overflow.
11283 (scan_one_insn): Ditto.
11284 (print_allocno_costs): Print total mem cost fore regional allocation.
11285 (print_pseudo_costs): Use REG_N_REFS.
11286 (find_costs_and_classes): Use classes intersected with them on the
11287 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11288 ira_reg_class_union. Use ira_allocno_class_translate and
11289 regno_aclass instead of ira_class_translate and regno_cover_class.
11290 Modify code for finding regno_aclass. Setup preferred classes for
11291 the next pass.
11292 (setup_allocno_cover_class_and_costs): Rename to
11293 setup_allocno_class_and_costs. Use regno_aclass instead of
11294 regno_cover_class. Use ira_set_allocno_class instead of
11295 ira_set_allocno_cover_class.
11296 (init_costs, finish_costs): Use regno_aclass instead of
11297 regno_cover_class.
11298 (ira_costs): Use setup_allocno_class_and_costs instead of
11299 setup_allocno_cover_class_and_costs.
11300 (ira_tune_allocno_costs_and_cover_classes): Rename to
11301 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11302 by processing objects. Use ira_reg_class_max_nregs instead of
11303 ira_reg_class_nregs.
11304
11305 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11306
11307 * sched-int.h: Remove mentioning cover classes from the file.
11308 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11309
11310 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11311 classes from the file.
11312 (struct reg_pref): Rename coverclass into allocnoclass.
11313 (reg_cover_class): Rename to reg_allocno_class.
11314
11315 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11316
11317 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11318
11319 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11320
11321 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11322
11323 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11324
11325 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11326
11327 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11328
11329 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11330
11331 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11332
11333 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11334
11335 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11336 (i386_ira_cover_classes): Ditto.
11337
11338 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11339
11340 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11341
11342 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11343
11344 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11345
11346 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11347
11348 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11349
11350 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11351 (mips_ira_cover_classes): Ditto.
11352
11353 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11354
11355 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11356
11357 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11358
11359 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11360
11361 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11362
11363 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11364 (IRA_COVER_CLASSES_VSX): Ditto.
11365
11366 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11367 (rs6000_ira_cover_classes): Ditto.
11368
11369 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11370
11371 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11372
11373 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11374
11375 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11376
11377 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11378
11379 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11380
11381 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11382
11383 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11384
11385 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11386
11387 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11388
11389 2011-03-29 Jakub Jelinek <jakub@redhat.com>
11390
11391 PR debug/48253
11392 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
11393 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
11394 dw_fde_unlikely_section_end_label, cold_in_std_section,
11395 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
11396 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
11397 fields.
11398 (output_fde): Use dw_fde_second_{begin,end} if second is
11399 true, otherwise dw_fde_{begin,end}.
11400 (output_call_frame_info): Test dw_fde_second_begin != NULL
11401 instead of dw_fde_switched_sections.
11402 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
11403 fields, initialize new fields. Initialize in_std_section
11404 unconditionally from the first partition.
11405 (dwarf2out_end_epilogue): Don't override dw_fde_end when
11406 dw_fde_second_begin is non-NULL.
11407 (dwarf2out_switch_text_section): Stop initializing removed
11408 dw_fde_struct fields, initialize new fields, initialize
11409 also dw_fde_end here. Set dw_fde_switch_cfi even when
11410 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
11411 (struct var_loc_list_def): Add last_before_switch field.
11412 (arange_table, arange_table_allocated, arange_table_in_use,
11413 ARANGE_TABLE_INCREMENT, add_arange): Removed.
11414 (size_of_aranges): Count !in_std_section and !second_in_std_section
11415 hunks in fdes, instead of looking at arange_table_in_use.
11416 (output_aranges): Add aranges_length argument, don't call
11417 size_of_aranges here. Instead of using aranges_table*
11418 emit ranges for fdes when !in_std_section resp.
11419 !second_in_std_section.
11420 (dw_loc_list): Break ranges crossing section switch.
11421 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
11422 use dw_fde_second_end instead of dw_fde_end as end of last range.
11423 (gen_subprogram_die): Don't call add_arange. Use
11424 dw_fde_{begin,end} for first partition and if switched
11425 section dw_fde_second_{begin,end} for the second.
11426 (var_location_switch_text_section_1,
11427 var_location_switch_text_section): New functions.
11428 (dwarf2out_begin_function): Initialize cold_text_section even
11429 when function_section () isn't text_section.
11430 (prune_unused_types): Don't walk arange_table.
11431 (dwarf2out_finish): Don't needlessly test
11432 flag_reorder_blocks_and_partition when testing cold_text_section_used.
11433 If info_section_emitted, call size_of_aranges and if it indicates
11434 non-empty .debug_aranges, call output_aranges with the computed
11435 size. Stop using removed dw_fde_struct fields, use
11436 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
11437 for second.
11438
11439 PR debug/48203
11440 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
11441 create ENTRY_VALUE if incoming or address of incoming's MEM
11442 is a hard REG.
11443 * dwarf2out.c (mem_loc_descriptor): Don't emit
11444 DW_OP_GNU_entry_value of DW_OP_fbreg.
11445 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
11446 on ENTRY_VALUE is able to find the canonical parameter VALUE.
11447 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
11448 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
11449 ENTRY_VALUE_EXPs.
11450 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
11451 is a REG_P or MEM_P with REG_P address, compute hash directly
11452 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
11453 (preserve_only_constants): Don't clear VALUES forwaring
11454 ENTRY_VALUE to some other VALUE.
11455
11456 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
11457
11458 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
11459 instead of GEN_INT.
11460
11461 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11462
11463 * cfgexpand.c (expand_gimple_cond): Always set the source location and
11464 block before expanding the statement.
11465 (expand_gimple_stmt_1): Likewise. Set them here...
11466 (expand_gimple_stmt): ...and not here. Tidy.
11467 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
11468 unknown.
11469
11470 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11471
11472 * Makefile.in: New rule for cprop.o.
11473 * gcse.c: Move constant/copy propagation to cprop.c.
11474 (compute_local_properties): Only handle expression tables.
11475 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
11476 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
11477 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
11478 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
11479 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
11480 compute_cprop_data, find_used_regs, try_replace_reg,
11481 find_avail_set, cprop_jump, constprop_register, cprop_insn,
11482 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
11483 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
11484 find_bypass_set, reg_killed_on_edge, bypass_block,
11485 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
11486 execute_rtl_cprop, pass_rtl_cprop): Move to...
11487 * cprop.c: ...here. New file, constant/copy propagation for RTL
11488 moved from gcse.c to here with minor cleanups in duplicated code.
11489
11490 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
11491
11492 * config/i386/i386.c (flag_opts): Fix a typo in
11493 -mavx256-split-unaligned-store.
11494
11495 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11496
11497 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11498 LIBCALL_VALUE): Remove macros.
11499 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11500 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11501 (h8300_function_value, h8300_libcall_value,
11502 h8300_function_value_regno_p): New functions.
11503
11504 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11505
11506 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
11507
11508 2011-03-28 Jeff Law <law@redhat.com>
11509
11510 * tree-ssa-threadupdate.c (redirect_edges): Call
11511 create_edge_and_update_destination_phis as needed.
11512 (create_edge_and_update_destination_phis): Accept new BB argument.
11513 All callers updated.
11514 (thread_block): Do not update the profile when threading around
11515 intermediate blocks.
11516 (thread_single_edge): Likewise.
11517 (determine_bb_domination_status): If BB is not a successor of the
11518 loop header, return NONDOMINATING.
11519 (register_jump_thread): Note when we register a jump thread around
11520 an intermediate block.
11521 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
11522 (thread_across_edge): Use it.
11523
11524 2011-03-28 Tristan Gingold <gingold@adacore.com>
11525
11526 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
11527 when for_return is 2.
11528
11529 2011-03-28 Jeff Law <law@redhat.com>
11530
11531 * var-tracking.c (canonicalize_values_mark): Delete unused
11532 lhs assignment.
11533 (canonicalize_values_star, set_variable_part): Likewise.
11534 (clobber_variable_part, delete_variable_part): Likewise.
11535
11536 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11537
11538 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
11539
11540 2011-03-28 Martin Jambor <mjambor@suse.cz>
11541
11542 * tree-inline.c (expand_call_inline): Do not check that destination
11543 node is analyzed.
11544 (optimize_inline_calls): Assert that destination node is analyzed.
11545 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
11546 not call tree_lowering_passes.
11547 * cgraph.h (cgraph_analyze_function): Declare.
11548 * cgraphunit.c (cgraph_analyze_function): Make public.
11549
11550 2011-03-28 Joseph Myers <joseph@codesourcery.com>
11551
11552 * config/sparc/sparc-opts.h: New.
11553 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
11554 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
11555 (sparc_option_override): Store processor_type enumeration rather
11556 than string in cpu_default. Remove name and enumeration from
11557 cpu_table. Directly default -mcpu then default -mtune from -mcpu
11558 without using sparc_select. Use target_flags_explicit instead of
11559 fpu_option_set.
11560 * config/sparc/sparc.h (enum processor_type): Move to
11561 sparc-opts.h.
11562 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
11563 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
11564 HeaderInclude entry.
11565 (mcpu=, mtune=): Use Var and Enum.
11566 (sparc_processor_type): New Enum and EnumValue entries.
11567
11568 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11569 Iain Sandoe <iains@gcc.gnu.org>
11570
11571 PR target/48245
11572 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
11573
11574 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11575
11576 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
11577 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
11578 Insert new statements at it in lieu of STMT.
11579 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
11580 * tree-vect-stmts.c (vectorizable_store): Likewise.
11581 (vectorizable_load): Likewise.
11582
11583 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
11584
11585 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
11586 (divtf3): Ditto.
11587 (multf3): Ditto.
11588 (subtf3): Ditto.
11589
11590 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11591
11592 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
11593 unaligned 256bit load/store.
11594 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
11595 (*avx_movdqu<avxmodesuffix>): Likewise.
11596
11597 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11598
11599 PR target/48288
11600 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
11601 * config/pa/pa.md (iordi3): Use new predicate in expander.
11602 (iorsi3): Likewise.
11603
11604 2011-03-27 Anatoly Sokolov <aesok@post.ru>
11605
11606 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
11607 FUNCTION_VALUE_REGNO_P): Remove macros.
11608 * config/mips/mips-protos.h (mips_function_value): Remove.
11609 * config/mips/mips.c (mips_function_value): Rename to...
11610 (mips_function_value_1): ... this. Make static. Handle receiving
11611 the function type in 'fn_decl_or_type' argument.
11612 (mips_function_value, mips_libcall_value,
11613 mips_function_value_regno_p): New function.
11614 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11615 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11616
11617 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11618
11619 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
11620 and -mavx256-split-unaligned-store.
11621 (ix86_option_override_internal): Split 32-byte AVX unaligned
11622 load/store by default.
11623 (ix86_avx256_split_vector_move_misalign): New.
11624 (ix86_expand_vector_move_misalign): Use it.
11625
11626 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
11627 -mavx256-split-unaligned-store.
11628
11629 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
11630 256bit load/store. Generate unaligned store on misaligned memory
11631 operand.
11632 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
11633 256bit load/store.
11634 (*avx_movdqu<avxmodesuffix>): Likewise.
11635
11636 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
11637 -mavx256-split-unaligned-store.
11638
11639 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11640
11641 PR target/38598
11642 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
11643 Update commentary.
11644
11645 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11646
11647 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
11648 opno arguments with an expand_operand. Use create_input_operand.
11649 (mips_prepare_builtin_target): Delete.
11650 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
11651 functions.
11652 (mips_expand_builtin_direct): Use create_output_operand and
11653 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
11654 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
11655 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
11656
11657 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
11658
11659 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
11660 function.
11661 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11662
11663 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11664
11665 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
11666 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
11667 basic blocks and call commit_edge_insertions directly.
11668 (fixup_abnormal_edges): Move from here to...
11669 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
11670 on the edges and return whether some have actually been inserted.
11671 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11672 compensation code.
11673
11674 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
11675
11676 PR rtl-optimization/48144
11677 * sel-sched-ir.c (merge_history_vect): Factor out from ...
11678 (merge_expr_data): ... here.
11679 (av_set_intersect): Rename to av_set_code_motion_filter.
11680 Update all callers. Call merge_history_vect when an expression
11681 is found in both sets.
11682 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11683
11684 2011-03-26 Alan Modra <amodra@gmail.com>
11685
11686 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11687 cmodel medium addresses.
11688 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11689 64-bit gpr loads and stores.
11690 (rs6000_secondary_reload_ppc64): New function.
11691 * config/rs6000/rs6000-protos.h: Declare it.
11692 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11693
11694 2011-03-26 Alan Modra <amodra@gmail.com>
11695
11696 PR target/47487
11697 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11698 GNU Go in traceback table.
11699
11700 2011-03-25 Richard Henderson <rth@redhat.com>
11701
11702 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11703 if there are exactly 6 operands.
11704 (set_storage_via_setmem): Similarly.
11705
11706 2011-03-25 Kai Tietz <ktietz@redhat.com>
11707
11708 * collect2.c (write_c_file_stat): Handle backslash
11709 as right-hand directory separator.
11710 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11711 checking just for slash.
11712 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11713 instead of checking for trailing slash.
11714 * gcc.c (record_temp_file): Use filename_cmp instead
11715 of strcmp.
11716 (do_spec_1): Likewise.
11717 (replace_outfile_spec_function): Likewise.
11718 (is_directory): Use filename_ncmp instead of strncmp.
11719 (print_multilib_info): Likewise.
11720 * gcov.c (find_source): Use filename_cmp instead
11721 instead of strcmp.
11722 (make_gcov_file_name): Fix order of slash/backslash
11723 checks.
11724 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11725 (add_standard_paths): Likewise.
11726 * mips-tfile.c (saber_stop): Handle backslash.
11727 * prefix.c (update_path): Use filename_ncmp instead of
11728 strncmp.
11729 * profile.c (output_location): Use filename_cmp instead
11730 of strcmp.
11731 * read-md.c (handle_toplevel_file): Handle backslash.
11732 * tlink.c (frob_extension): Likewise.
11733 * tree-cfg.c (same_line_p): Use filename_cmp instead of
11734 strcmp.
11735 * tree-dump.c (dequeue_and_dump): Handle backslash.
11736 * tree.c (get_file_function_name): Likewise.
11737 * gengtype.c (read_input_list): Likewise.
11738 (get_file_realbasename): Likewise.
11739 (get_output_file_with_visibility): Use filename_cmp
11740 instead of strcmp.
11741
11742 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
11743
11744 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11745 case to VFPv1.
11746
11747 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11748
11749 * fold-const.c (expr_location_or): New function.
11750 (fold_truth_not_expr): Call it.
11751
11752 2011-03-25 Jeff Law <law@redhat.com>
11753
11754 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11755 va_end.
11756 * c-family/c-common.c (def_fn_type): Likewise.
11757 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11758 * emit-rtl.c (gen_rtvec): Likewise.
11759 * lto/lto-lang.c (def_fn_type): Likewise.
11760
11761 2011-03-25 Richard Guenther <rguenther@suse.de>
11762
11763 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11764 also generate copies.
11765 (fini_copy_prop): Handle constant values properly.
11766
11767 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11768
11769 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11770 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11771 (hash_loc_operands, compare_loc_operands): Handle
11772 DW_OP_GNU_entry_value.
11773
11774 2011-03-25 Kai Tietz <ktietz@redhat.com>
11775
11776 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11777 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11778 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11779 comment and use macro TARGET_64BIT_MS_ABI instead.
11780 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11781 and change default behavior for 32-bit MS_ABI.
11782 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11783 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11784 32-bit, too.
11785 (ix86_cfun_abi): Likewise.
11786 (ix86_maybe_switch_abi): Adjust comment.
11787 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11788 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11789 instead of checking for SYSV_ABI.
11790 (ix86_nsaved_sseregs): Likewise.
11791 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11792 to 16 bytes.
11793 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11794 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11795 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11796 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11797 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11798
11799 2011-03-25 Richard Guenther <rguenther@suse.de>
11800
11801 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11802 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11803 (verify_gimple): Remove.
11804 * tree-cfg.c (verify_gimple_call): Merge verification
11805 from verify_stmts.
11806 (verify_gimple_phi): Merge verification from verify_stmts.
11807 (verify_gimple_label): New function.
11808 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11809 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11810 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11811 (verify_stmts): Rename to verify_gimple_in_cfg.
11812 (verify_gimple_in_cfg): New function.
11813 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11814 * tree-ssa.c (verify_ssa): Likewise.
11815 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11816
11817 2011-03-25 Richard Guenther <rguenther@suse.de>
11818
11819 * passes.c (init_optimization_passes): Add FRE pass after
11820 early SRA.
11821
11822 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11823 Andrew Stubbs <ams@codesourcery.com>
11824
11825 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11826 for Cortex-A8.
11827 (arm_movdi_vfp_cortexa8): New pattern.
11828 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11829 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11830 instructions when tuning for Cortex-A8. Set attribute "arch".
11831 * config/arm/arm.md: Move include arm-tune.md up a bit.
11832 (define_attr "arch"): Add "onlya8" and "nota8" values.
11833 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11834
11835 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11836
11837 PR bootstrap/48282
11838 Revert:
11839 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11840
11841 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11842 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11843 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11844 * passes.c (init_optimization_passes): Move
11845 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11846
11847 2011-03-25 Kai Tietz <ktietz@redhat.com>
11848
11849 * c-typeck.c (comptypes_internal): Replace target
11850 hook call of comp_type_attributes by version in tree.c file.
11851 * gimple.c (gimple_types_compatible_p_1): Likewise.
11852 * tree-ssa.c (useless_type_conversion_p): Likewise.
11853 * tree.c (build_type_attribute_qual_variant): Likewise.
11854 (attribute_value_equal): New static helper function.
11855 (comp_type_attributes): New function.
11856 (merge_attributes): Use attribute_value_equal for comparison.
11857 (attribute_list_contained): Likewise.
11858 * tree.h (comp_type_attributes): New prototype.
11859
11860 2011-03-25 Richard Guenther <rguenther@suse.de>
11861
11862 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11863 of complex types at -O0.
11864 (verify_gimple_assign_binary): Likewise.
11865 (verify_gimple_assign_ternary): Likewise.
11866
11867 2011-03-24 Mark Wielaard <mjw@redhat.com>
11868
11869 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11870 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11871
11872 2011-03-24 Mark Wielaard <mjw@redhat.com>
11873
11874 PR debug/48041
11875 * dwarf2out.c (output_abbrev_section): Only write table when
11876 abbrev_die_table_in_use > 1.
11877
11878 2011-02-24 Richard Henderson <rth@redhat.com>
11879
11880 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11881 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11882 (alpha_expand_unaligned_load_words): Use extql.
11883 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11884 (emit_insxl): Handle all modes for consistency.
11885
11886 2011-02-24 Richard Henderson <rth@redhat.com>
11887
11888 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11889 (alpha_expand_unaligned_load): Likewise.
11890 (alpha_expand_unaligned_store): Likewise.
11891 (alpha_expand_unaligned_load_words): Likewise.
11892 (alpha_expand_unaligned_store_words): Likewise.
11893 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11894 (alpha_split_lock_test_and_set_12): Likewise.
11895 (print_operand, alpha_fold_builtin_extxx): Likewise.
11896 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11897 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11898 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11899 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11900 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11901 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11902 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11903 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11904 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11905 (extwl, extll, extql): Similarly.
11906 (inswh, inslh, insqh): Similarly.
11907 (mskbl, mskwl, mskll, mskql): Similarly.
11908 (mskwh, msklh, mskqh): Similarly.
11909
11910 2011-02-24 Richard Henderson <rth@redhat.com>
11911
11912 * config/alpha/alpha.md (attribute isa): Add er, ner.
11913 (attribute enabled): Handle them.
11914 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11915
11916 2011-02-24 Richard Henderson <rth@redhat.com>
11917
11918 * config/alpha/alpha.md (attribute isa): Add vms.
11919 (attribute enabled): Handle it.
11920 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11921 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11922 (*movtf): Rename from *movtf_internal for consistency.
11923 (*movsi): Merge with *movsi_nt_vms.
11924 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11925 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11926 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11927 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11928
11929 2011-02-24 Richard Henderson <rth@redhat.com>
11930
11931 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11932 (extendqisi2, extendhisi2): Likewise.
11933 (extendqidi2): Simplify BWX/non-BWX expansions.
11934 (extendhidi2): Similarly.
11935
11936 2011-02-24 Richard Henderson <rth@redhat.com>
11937
11938 * config/alpha/alpha.md (attribute isa): New.
11939 (attribute enabled): New.
11940 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11941 (zero_extendqisi2, zero_extendqidi2): Similarly.
11942 (zero_extendhisi2, zero_extendhidi2): Similarly.
11943 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11944
11945 2011-02-24 Richard Henderson <rth@redhat.com>
11946
11947 * config/alpha/predicates.md (input_operand): Revert last change;
11948 update comment to mention 32-bit VMS rather than Windows.
11949
11950 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11951
11952 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11953 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11954 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11955 * passes.c (init_optimization_passes): Move
11956 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11957
11958 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11959
11960 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11961
11962 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11963
11964 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11965 correctly.
11966
11967 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11968
11969 PR debug/48204
11970 * simplify-rtx.c (simplify_const_unary_operation): Call
11971 real_convert when changing mode class with FLOAT_EXTEND.
11972
11973 2011-03-24 Nick Clifton <nickc@redhat.com>
11974
11975 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11976 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11977 * config/rx/rx.c (rx_option_override): Set align_jumps,
11978 align_loops and align_labels if not set by the user.
11979 (rx_align_for_label): New function.
11980 (rx_max_skip_for_label): New function.
11981 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11982 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11983 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11984 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11985 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11986
11987 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11988
11989 PR rtl-optimization/48263
11990 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11991 and original commutative_p handling. Use maybe_gen_insn.
11992
11993 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11994
11995 * reload.c (find_reloads_subreg_address): Add address_reloaded
11996 parameter and return true there if the full address has been
11997 reloaded.
11998 (find_reloads_toplev): Pass address_reloaded flag.
11999 (find_reloads_address_1): Don't use address_reloaded parameter.
12000
12001 2011-03-24 Jeff Law <law@redhat.com>
12002
12003 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12004 unused variable "ann".
12005 (remove_unused_locals): Likewise.
12006
12007 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12008 statement.
12009
12010 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12011 after it is freed.
12012
12013 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12014
12015 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12016 for invalid symbolic addresses.
12017 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12018 larl operands.
12019
12020 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12021
12022 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12023 the argument in calls to fold_truth_not_expr.
12024
12025 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12026
12027 * tree.c (record_node_allocation_statistics): New function.
12028 (make_node_stat, copy_node_stat, build_string): Call it.
12029 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12030 (build1_stat, build_omp_clause): Likewise.
12031
12032 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12033
12034 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12035 last commit.
12036
12037 2011-03-24 Richard Guenther <rguenther@suse.de>
12038
12039 PR tree-optimization/48271
12040 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12041 blocks that still exist.
12042
12043 2011-03-24 Richard Guenther <rguenther@suse.de>
12044
12045 PR tree-optimization/48270
12046 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12047 not free datarefs before ddrs.
12048
12049 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12050
12051 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12052 from the address built for a reference with variable offset.
12053
12054 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12055
12056 PR target/48237
12057 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12058 alternatives that can be handled with movq or movabsq insn.
12059 (*movdf_internal): Disable for !TARGET_64BIT.
12060 (*movdf_internal_nointeger): Ditto.
12061 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12062
12063 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12064
12065 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12066 (FUNCTION_ARG_ADVANCE): Likewise.
12067 * tm.texi.in: Change references to them to hook references.
12068 * tm.texi: Regenerate.
12069 * targhooks.c (default_function_arg): Eliminate check for target macro.
12070 (default_function_incoming_arg): Likewise.
12071 (default_function_arg_advance): Likewise.
12072 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12073 (function_arg_advance): Likewise.
12074 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12075
12076 2011-03-24 Richard Guenther <rguenther@suse.de>
12077
12078 PR middle-end/48269
12079 * tree-object-size.c (addr_object_size): Do not double-account
12080 for MEM_REF offsets.
12081
12082 2011-03-24 Diego Novillo <dnovillo@google.com>
12083
12084 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12085 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12086 (lto_input_data_block): Move from lto-opts.c. Make extern.
12087 Update all users.
12088 (lto_input_string): Rename from input_string. Make extern.
12089 Update all users.
12090 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12091 output_string_with_length.
12092 Output 0 to indicate a non-NULL string. Update all callers to
12093 not emit 0.
12094 (lto_output_string): Rename from output_string. Make extern.
12095 Update all users.
12096 (lto_output_decl_state_streams): Make extern.
12097 (lto_output_decl_state_refs): Make extern.
12098 * lto-streamer.h (lto_input_string): Declare.
12099 (lto_input_data_block): Declare.
12100 (lto_output_string): Declare.
12101 (lto_output_string_with_length): Declare.
12102 (lto_output_decl_state_streams): Declare.
12103 (lto_output_decl_state_refs): Declare.
12104
12105 2011-03-24 Richard Guenther <rguenther@suse.de>
12106
12107 PR tree-optimization/46562
12108 * tree.c (build_invariant_address): New function.
12109 * tree.h (build_invariant_address): Declare.
12110 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12111 a renamed function moved ...
12112 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12113 Take valueization callback parameter.
12114 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12115 * gimple-fold.h: New file.
12116 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12117 (ccp_fold, fold_const_aggregate_ref,
12118 fold_ctor_reference, fold_nonarray_ctor_reference,
12119 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12120 get_base_constructor): Move ...
12121 * gimple-fold.c: ... here.
12122 (gimple_fold_stmt_to_constant_1): New function
12123 split out from ccp_fold. Take a valueization callback parameter.
12124 Valueize all operands.
12125 (gimple_fold_stmt_to_constant): New wrapper function.
12126 (fold_const_aggregate_ref_1): New function split out from
12127 fold_const_aggregate_ref. Take a valueization callback parameter.
12128 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12129 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12130 invariant POINTER_PLUS_EXPRs to invariant form.
12131 (vn_valueize): New function.
12132 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12133 * tree-vrp.c (vrp_valueize): New function.
12134 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12135 to fold statements to constants.
12136 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12137 function declarations.
12138 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12139 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12140
12141 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12142
12143 * config/h8300/predicates.md (jump_address_operand): Fix register
12144 mode check.
12145
12146 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12147
12148 * doc/invoke.texi (max-stores-to-sink): Document.
12149 * params.h (MAX_STORES_TO_SINK): Define.
12150 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12151 if either vectorization or if-conversion is disabled.
12152 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12153 tree-vect-data-refs.c vect_equal_offsets.
12154 (dr_equal_offsets_p): New function.
12155 (find_data_references_in_bb): Remove static.
12156 * tree-data-ref.h (find_data_references_in_bb): Declare.
12157 (dr_equal_offsets_p): Likewise.
12158 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12159 (vect_drs_dependent_in_basic_block): Update calls to
12160 vect_equal_offsets.
12161 (vect_check_interleaving): Likewise.
12162 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12163 (cond_if_else_store_replacement): Rename to...
12164 (cond_if_else_store_replacement_1): ... this. Change arguments and
12165 documentation.
12166 (cond_if_else_store_replacement): New function.
12167 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12168 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12169
12170 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12171
12172 PR target/46934
12173 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12174 to subtract lower bound instead of GEN_INT().
12175
12176 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12177
12178 PR other/48179
12179 PR other/48221
12180 PR other/48234
12181 * doc/extend.texi (Alignment): Move section to match order in TOC.
12182 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12183 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12184
12185 2011-03-23 Jeff Law <law@redhat.com>
12186
12187 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12188 before removing the edge.
12189
12190 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12191 it may have been freed by redirect_branch_edge or
12192 redirect_edge_succ_nodup.
12193
12194 2011-03-23 Richard Guenther <rguenther@suse.de>
12195
12196 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12197 (check_va_list_escapes): Likewise.
12198 (check_all_va_list_escapes): Likewise.
12199
12200 2011-03-23 Richard Guenther <rguenther@suse.de>
12201
12202 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12203 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12204 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12205 (alias.o): Likewise.
12206 (ipa-type-escape.o): Remove.
12207 (ipa-struct-reorg.o): Likewise.
12208 (GTFILES): Remove ipa-struct-reorg.c.
12209 * alias.c: Do not include ipa-type-escape.h.
12210 * tree-ssa-alias.c: Likewise.
12211 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12212 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12213 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12214 and ipa-type-escape passes.
12215 * tree-pass.h (pass_ipa_type_escape): Remove.
12216 (pass_ipa_struct_reorg): Likewise.
12217 * ipa-struct-reorg.h: Remove.
12218 * ipa-struct-reorg.c: Likewise.
12219 * ipa-type-escape.h: Likewise.
12220 * ipa-type-escape.c: Likewise.
12221 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12222 (--param struct-reorg-cold-struct-ratio): Likewise.
12223 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12224 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12225 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12226
12227 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12228
12229 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12230 cpu attribute value.
12231 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12232 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12233 * config/s390/s390.c (processor_flags_table): New constant array.
12234 (s390_handle_arch_option): Remove.
12235 (s390_handle_option): Remove s390_handle_arch_option invocations
12236 and OPT_mwarn_framesize_ handling.
12237 (s390_option_override): Remove s390_handle_arch_option invocation.
12238 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12239 warnings.
12240 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12241 * config/s390/s390.opt (s390_tune, s390_arch)
12242 (march=): Replace s390_arch_option enum and values with
12243 processor_type. Set variable name to s390_arch. Set
12244 initialization value.
12245 (mtune=): Replace s390_arch_option with processor_type. Set
12246 variable name to s390_tune. Set initialization value.
12247
12248 2011-03-23 Julian Brown <julian@codesourcery.com>
12249
12250 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12251 accesses which are not naturally aligned.
12252
12253 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12254
12255 PR target/47553
12256 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12257
12258 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12259
12260 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12261 parameter from "int" to "enum insn_code".
12262 (expand_operand_type): New enum.
12263 (expand_operand): New structure.
12264 (create_expand_operand): New function.
12265 (create_fixed_operand, create_output_operand): Likewise
12266 (create_input_operand, create_convert_operand_to): Likewise.
12267 (create_convert_operand_from, create_address_operand): Likewise.
12268 (create_integer_operand): Likewise.
12269 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12270 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12271 (expand_insn, expand_jump_insn): Likewise.
12272 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12273 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12274 (expand_movstr, expand_builtin___clear_cache): Likewise.
12275 (expand_builtin_lock_release): Likewise.
12276 * explow.c (allocate_dynamic_stack_space): Likewise.
12277 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12278 and use the default handling in that case.
12279 * expmed.c (check_predicate_volatile_ok): Delete.
12280 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12281 (emit_cstore): Likewise.
12282 * expr.c (emit_block_move_via_movmem): Likewise.
12283 (set_storage_via_setmem, expand_assignment): Likewise.
12284 (emit_storent_insn, try_casesi): Likewise.
12285 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12286 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12287 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12288 (expand_twoval_unop, expand_twoval_binop): Likewise.
12289 (expand_unop_direct, emit_indirect_jump): Likewise.
12290 (emit_conditional_move, vector_compare_rtx): Likewise.
12291 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12292 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12293 (expand_sync_lock_test_and_set): Likewise.
12294 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12295 (emit_unop_insn): Likewise.
12296 (expand_copysign_absneg): Change icode to an insn_code.
12297 (create_convert_operand_from_type): New function.
12298 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12299 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12300 (expand_insn, expand_jump_insn): Likewise.
12301 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12302 than const_int_operand for operand 2.
12303
12304 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12305
12306 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12307 if possible.
12308
12309 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12310
12311 * emit-rtl.c (emit_pattern_before_noloc): New function.
12312 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12313 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12314 (emit_pattern_after_noloc): New function.
12315 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12316 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12317
12318 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12319
12320 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12321 (__ffsDI2): Likewise.
12322
12323 2011-03-22 Richard Henderson <rth@redhat.com>
12324
12325 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12326 of !TARGET_ABI_OPEN_VMS.
12327 (alpha_trampoline_init, alpha_start_function): Likewise.
12328 (alpha_expand_epilogue, alpha_file_start): Likewise.
12329 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12330 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12331 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12332 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12333 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12334
12335 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12336
12337 * config/s390/s390-opts.h: New.
12338 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12339 s390_arch_flags, s390_warn_framesize, s390_stack_size,
12340 s390_stack_guard): Remove.
12341 (s390_handle_arch_option): Return void. Take enum
12342 s390_arch_option value instead of string and searching array.
12343 (s390_handle_option): Don't assert that global structures are in
12344 use. Access variables via opts pointer. Use error_at. Don't use
12345 sscanf for -mstack-guard= or -mstack-size=. Update call to
12346 s390_handle_arch_option.
12347 (s390_option_override): Update call to s390_handle_arch_option.
12348 (s390_emit_prologue): Use %d format for s390_stack_size in
12349 diagnostic. Use %wd for HOST_WIDE_INT.
12350 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12351 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12352 * config/s390/s390.opt (config/s390/s390-opts.h): New
12353 HeaderInclude entry.
12354 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12355 s390_arch_flags, s390_warn_framesize): New Variable entries.
12356 (s390_arch_option): New Enum and EnumValue entries.
12357 (march=): Use Enum instead of Var.
12358 (mstack-guard=, mstack-size=): Use UInteger and Var.
12359 (mtune=): Use Enum.
12360
12361 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12362
12363 * config/score/score.c (score_handle_option): Don't assert that
12364 global structures are in use. Access target_flags via opts
12365 pointer. Use value of -march= option to determine target_flags
12366 settings.
12367 * config/score/score.opt (march=): Use Enum.
12368 (score_arch): New Enum and EnumValue entries.
12369
12370 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12371
12372 * config/mep/mep.c (option_mtiny_specified): Remove.
12373 (mep_option_override): Move register handling for -mivc2 from
12374 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
12375 instead of option_mtiny_specified.
12376 (mep_handle_option): Access target_flags via opts pointer. Don't
12377 assert that global structures are in use. Defer part of -mivc2
12378 handling and move it to mep_option_override.
12379 * config/mep/mep.opt (IVC2): New Mask entry.
12380 (mivc2): Use Var and Defer instead of Mask.
12381
12382 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12383
12384 * config/v850/v850-opts.h: New.
12385 * config/v850/v850.c (small_memory): Replace with
12386 small_memory_physical_max array. Make that array static const.
12387 (v850_handle_memory_option): Take integer value of argument. Take
12388 gcc_options pointer, option text and location. Return void.
12389 Update for changes to small memory structures.
12390 (v850_handle_option): Access target_flags via opts pointer. Don't
12391 assert that global structures are in use. Update calls to
12392 v850_handle_memory_option.
12393 (v850_encode_data_area): Update references to small memory settings.
12394 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
12395 (enum small_memory_type): Move to v850-opts.h.
12396 * config/v850/v850.opt (config/v850/v850-opts.h): New
12397 HeaderInclude entry.
12398 (small_memory_max): New Variable entry.
12399 (msda): Replace by pair of options msda= and msda-. Use UInteger.
12400 (mtda, mzda): Likewise.
12401
12402 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12403
12404 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
12405 pointer. Don't assert that global structures are in use.
12406
12407 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12408
12409 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
12410 via opts pointer. Don't assert that global structures are in use.
12411
12412 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12413
12414 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
12415 (munix=93): Use Var.
12416 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
12417 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
12418 * config/pa/pa-opts.h: New.
12419 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
12420 (pa_handle_option): Don't assert that global structures are in
12421 use. Access target_flags via opts pointer. Don't handle
12422 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
12423 OPT_munix_98 here.
12424 (pa_option_override): Handle deferred OPT_mfixed_range_.
12425
12426 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12427
12428 * config/mn10300/mn10300-opts.h: New.
12429 * config/mn10300/mn10300.c (mn10300_processor,
12430 mn10300_tune_string): Remove.
12431 (mn10300_handle_option): Don't assert that global structures are
12432 in use. Access mn10300_processor via opts pointer. Don't handle
12433 OPT_mtune_ here.
12434 * config/mn10300/mn10300.h (enum processor_type): Move to
12435 mn10300-opts.h.
12436 (mn10300_processor): Remove.
12437 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
12438 HeaderInclude entry.
12439 (mn10300_processor): New Variable entry.
12440 (mtune=): Use Var.
12441
12442 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12443
12444 * config/microblaze/microblaze.c: Don't include opts.h.
12445 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
12446 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
12447 (mno-clearbss): Use Var and Warn.
12448
12449 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12450
12451 * config/m32r/m32r-opts.h: New.
12452 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
12453 (m32r_handle_option): Don't assert that global structures are in
12454 use. Access target_flags and m32r_cache_flush_func via opts
12455 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
12456 OPT_mno_flush_trap here.
12457 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
12458 include of m32r-opts.h.
12459 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
12460 HeaderInclude entry.
12461 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
12462 (mmodel=): Use Enum and Var.
12463 (m32r_model): New Enum and EnumValue entries.
12464 (mno-flush-trap): Use Var.
12465 (msdata=): Use Enum and Var.
12466 (m32r_sdata): New Enum and EnumValue entries.
12467
12468 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12469
12470 * config/m32c/m32c.c: Don't include opts.h.
12471 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
12472 m32c_handle_option): Remove.
12473 (m32c_option_override): Check global_options_set.x_target_memregs
12474 instead of target_memregs_set.
12475 * config/m32c/m32c.h (target_memregs): Remove.
12476 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
12477 variable.
12478
12479 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12480
12481 * config/iq2000/iq2000-opts.h: New.
12482 * config/iq2000/iq2000.c: Don't include opts.h.
12483 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
12484 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
12485 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
12486 HeaderInclude entry.
12487 (iq2000_tune): New Variable entry.
12488 (march=): Add comment. Use Enum.
12489 (iq2000_arch): New Enum and EnumValue entries.
12490 (mcpu=): Use Enum and Var.
12491 (iq2000_tune): New Enum and EnumValue entries.
12492
12493 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12494
12495 * config/ia64/ia64-opts.h: New.
12496 * config/ia64/ia64.c (ia64_tune): Remove.
12497 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
12498 here. Use error_at.
12499 (ia64_option_override): Handle deferred OPT_mfixed_range_.
12500 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
12501 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
12502 HeaderInclude entry.
12503 (ia64_tune): New Variable entry.
12504 (mfixed-range=): Use Defer and Var.
12505 (mtune=): Use Enum and Var.
12506 (ia64_tune): New Enum and EnumValue entries.
12507
12508 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12509
12510 * config/frv/frv-opts.h: New.
12511 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
12512 frv-opts.h.
12513 (frv_cpu_type): Remove.
12514 * config/frv/frv.c: Don't include opts.h.
12515 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
12516 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
12517 (frv_cpu_type): New Variable entry.
12518 (frv_cpu): New Enum and EnumValue entries.
12519
12520 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12521
12522 * config/cris/cris.c (cris_handle_option): Access target_flags via
12523 opts pointer. Don't assert that global structures are in use.
12524 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
12525 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
12526
12527 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12528
12529 * config/bfin/bfin-opts.h: New.
12530 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
12531 bfin_si_revision, bfin_workarounds): Remove.
12532 (bfin_cpus): Make static const.
12533 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
12534 not bfin_lib_id_given.
12535 (bfin_handle_option): Don't set bfin_lib_id_given. Access
12536 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
12537 pointer. Use error_at. Don't assert that global structures are in use.
12538 * config/bfin/bfin.h: Include bfin-opts.h.
12539 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
12540 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
12541 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
12542 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
12543 entries.
12544
12545 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12546
12547 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
12548 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
12549 or -msoft-float here.
12550 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
12551 -msoft-float and -mhard-float.
12552 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
12553 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12554 msoft-float.
12555 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
12556 -msoft-float.
12557 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
12558 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
12559 not mhard-float.
12560 (LIBGCC_SPEC): Don't handle -msoft-float.
12561 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
12562 -mhard-float.
12563 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12564 msoft-float.
12565 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
12566 -mfloat-abi=*, not -msoft-float and -mhard-float.
12567 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
12568 -msoft-float.
12569 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
12570 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
12571 mhard-float and msoft-float.
12572 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
12573 mfloat-abi=soft in comments, not mhard-float and msoft-float.
12574 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12575 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
12576 mhard-float.
12577 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
12578 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
12579 msoft-float.
12580 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
12581 not mhard-float.
12582 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
12583 not msoft-float.
12584
12585 2011-03-22 Richard Henderson <rth@redhat.com>
12586
12587 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
12588 TARGET_ABI_WINDOWS_NT.
12589 (alpha_output_function_end_prologue): Likewise.
12590 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
12591 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12592 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
12593 (trap, *movsi_nt_vms): Likewise.
12594 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
12595 (*tablejump_osf_nt_internal): Remove.
12596 * config/alpha/predicates.md (input_operand): Only test Pmode.
12597
12598 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12599
12600 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
12601 via opts pointer. Use error_at. Don't assert that global
12602 structures are in use.
12603
12604 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12605
12606 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
12607 (ix86_handle_option): Access ix86_isa_flags and
12608 ix86_isa_flags_explicit via opts pointer. Don't assert that
12609 global structures are in use.
12610 (ix86_function_specific_save, ix86_function_specific_restore):
12611 Update ix86_isa_flags_explicit field name.
12612 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
12613 (ix86_isa_flags_explicit): Rename TargetSave entry to
12614 x_ix86_isa_flags_explicit.
12615
12616 2011-03-22 Richard Henderson <rth@redhat.com>
12617
12618 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
12619 (alpha_option_override, direct_return): Likewise.
12620 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
12621 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
12622 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
12623 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12624 (alpha_expand_epilogue, alpha_end_function): Likewise.
12625 (alpha_init_libfuncs): Likewise.
12626 (struct machine_function): Remove unicosmk members.
12627 (print_operand) ['t']: Remove.
12628 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
12629 unicosmk_output_module_name, unicosmk_output_common,
12630 current_section_align, unicosmk_output_text_section_asm_op,
12631 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
12632 unicosmk_section_type_flags, unicosmk_unique_section,
12633 unicosmk_asm_named_section, unicosmk_insert_attributes,
12634 unicosmk_output_align, unicosmk_defer_case_vector,
12635 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
12636 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
12637 unicosmk_output_ssib, unicosmk_add_call_info_word,
12638 unicosmk_extern_head, unicosmk_output_default_externs,
12639 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
12640 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
12641 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
12642 * config/alpha/alpha-protos.h: Update.
12643 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
12644 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
12645 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
12646 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
12647 (*mulsi_se, mulvsi3): Likewise.
12648 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
12649 (*divmodsi_internal, call, call_value, realign): Likewise.
12650 (moddi3, umoddi3): Likewise; remove duplicate expander.
12651 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
12652 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
12653 (*movdi_nofix): Remove r/U alternative.
12654 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
12655 * config/alpha/constraints.md ("U"): Remove.
12656 * config/alpha/predicates.md (call_operand"): Don't test
12657 TARGET_ABI_UNICOSMK.
12658
12659 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12660
12661 * target.def (handle_option): Take gcc_options and
12662 cl_decoded_option pointers and location_t.
12663 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
12664 * doc/tm.texi: Regenerate.
12665 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
12666 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
12667 * lto-opts.c (lto_reissue_options): Generate option structure for
12668 targetm.handle_option call.
12669 * opts.c (target_handle_option): Update call to
12670 targetm.handle_option. Remove assertions about values now passed
12671 down to hook.
12672 * targhooks.c (default_target_handle_option): New.
12673 * targhooks.h (default_target_handle_option): Declare.
12674 * config/alpha/alpha.c: Include opts.h.
12675 (alpha_handle_option): Update to new hook interface.
12676 * config/arm/arm.c: Include opts.h.
12677 (arm_handle_option): Update to new hook interface.
12678 * config/arm/t-arm (arm.o): Update dependencies.
12679 * config/bfin/bfin.c: Include opts.h.
12680 (bfin_handle_option): Update to new hook interface.
12681 * config/cris/cris.c: Include opts.h.
12682 (cris_handle_option): Update to new hook interface.
12683 * config/frv/frv.c: Include opts.h.
12684 (frv_handle_option): Update to new hook interface.
12685 * config/i386/i386.c: Include opts.h.
12686 (ix86_handle_option): Update to new hook interface.
12687 (ix86_valid_target_attribute_inner_p): Generate option structure
12688 for call to ix86_handle_option.
12689 * config/i386/t-i386 (i386.o): Update dependencies.
12690 * config/ia64/ia64.c: Include opts.h.
12691 (ia64_handle_option): Update to new hook interface.
12692 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12693 * config/iq2000/iq2000.c: Include opts.h.
12694 (iq2000_handle_option): Update to new hook interface.
12695 * config/m32c/m32c.c: Include opts.h.
12696 (m32c_handle_option): Update to new hook interface.
12697 * config/m32r/m32r.c: Include opts.h.
12698 (m32r_handle_option): Update to new hook interface.
12699 * config/m68k/m68k.c: Include opts.h.
12700 (m68k_handle_option): Update to new hook interface.
12701 * config/mep/mep.c: Include opts.h.
12702 (mep_handle_option): Update to new hook interface.
12703 * config/microblaze/microblaze.c: Include opts.h.
12704 (microblaze_handle_option): Update to new hook interface.
12705 * config/mips/mips.c: Include opts.h.
12706 (mips_handle_option): Update to new hook interface.
12707 * config/mn10300/mn10300.c: Include opts.h.
12708 (mn10300_handle_option): Update to new hook interface.
12709 * config/pa/pa.c: Include opts.h.
12710 (pa_handle_option): Update to new hook interface.
12711 * config/pdp11/pdp11.c: Include opts.h.
12712 (pdp11_handle_option): Update to new hook interface.
12713 * config/rs6000/rs6000.c: Include opts.h.
12714 (rs6000_handle_option): Update to new hook interface.
12715 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12716 * config/rx/rx.c: Include opts.h.
12717 (rx_handle_option): Update to new hook interface.
12718 * config/s390/s390.c: Include opts.h.
12719 (s390_handle_option): Update to new hook interface.
12720 * config/score/score.c: Include opts.h.
12721 (score_handle_option): Update to new hook interface.
12722 * config/sh/sh.c: Include opts.h.
12723 (sh_handle_option): Update to new hook interface.
12724 * config/sparc/sparc.c: Include opts.h.
12725 (sparc_handle_option): Update to new hook interface.
12726 * config/v850/v850.c: Include opts.h.
12727 (v850_handle_option): Update to new hook interface.
12728
12729 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12730
12731 * gcc.c (driver_unknown_option_callback): Only permit and save
12732 unknown -Wno- options.
12733 (driver_wrong_lang_callback): Save options directly instead of via
12734 driver_unknown_option_callback.
12735
12736 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12737
12738 * combine.c (simplify_set): Try harder to find the best CC mode when
12739 simplifying a nested COMPARE on the RHS.
12740
12741 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12742
12743 * config/alpha/gnu.h: Remove.
12744 * config/arc: Remove directory.
12745 * config/arm/netbsd.h: Remove.
12746 * config/arm/t-pe: Remove.
12747 * config/crx: Remove directory.
12748 * config/i386/netbsd.h: Remove.
12749 * config/m68hc11: Remove directory.
12750 * config/m68k/uclinux-oldabi.h: Remove.
12751 * config/mcore/mcore-pe.h: Remove.
12752 * config/mcore/t-mcore-pe: Remove.
12753 * config/netbsd-aout.h: Remove.
12754 * config/rs6000/gnu.h: Remove.
12755 * config/sh/sh-symbian.h: Remove.
12756 * config/sh/symbian-base.c: Remove.
12757 * config/sh/symbian-c.c: Remove.
12758 * config/sh/symbian-cxx.c: Remove.
12759 * config/sh/symbian-post.h: Remove.
12760 * config/sh/symbian-pre.h: Remove.
12761 * config/sh/t-symbian: Remove.
12762 * config/svr3.h: Remove.
12763 * config/vax/netbsd.h: Remove.
12764 * config.build: Don't handle i[34567]86-*-pe.
12765 * config.gcc: Remove handling of deprecations for most deprecated
12766 targets.
12767 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12768 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12769 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12770 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12771 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12772 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12773 Remove cases.
12774 * config.host: Don't handle i[34567]86-*-pe.
12775 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12776 (ASM_SPEC32): Don't handle -mcall-gnu.
12777 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12778 -mcall-gnu.
12779 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12780 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12781 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12782 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12783 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12784 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12785 conditional on SYMBIAN.
12786 * configure.ac: Don't handle powerpc*-*-gnu*.
12787 * configure: Regenerate.
12788 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12789 * doc/install-old.texi (m6811, m6812): Don't mention.
12790 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12791 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12792 (m68k-uclinuxoldabi): Don't mention.
12793 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12794 Remove.
12795 (-mcall-gnu): Remove.
12796 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12797 families): Remove constraint documentation.
12798
12799 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12800
12801 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12802 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12803 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12804
12805 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12806
12807 PR target/48226
12808 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12809 vector when peeking at the next token for vector, don't expand the
12810 keywords.
12811
12812 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12813
12814 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12815 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12816 * config/avr/avr.c (init_cumulative_args)
12817 (avr_function_arg_advance): Use it.
12818 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12819 sibcall epilogues.
12820 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12821 (avr_function_ok_for_sibcall): ...this new function.
12822 (avr_lookup_function_attribute1): New static Function.
12823 (avr_naked_function_p, interrupt_function_p)
12824 (signal_function_p, avr_OS_task_function_p)
12825 (avr_OS_main_function_p): Use it.
12826 * config/avr/avr.md ("sibcall", "sibcall_value")
12827 ("sibcall_epilogue"): New expander.
12828 ("*call_insn", "*call_value_insn"): New insn.
12829 ("call_insn", "call_value_insn"): Remove
12830 ("call", "call_value", "epilogue"): Change expander to handle
12831 sibling calls.
12832
12833 2011-03-21 Nick Clifton <nickc@redhat.com>
12834
12835 * doc/invoke.texi (Overall Options): Move closing brace to end of
12836 options list.
12837 (Optimization Options): Add missing @gol.
12838 (Directory Options): Likewise.
12839 (i386 and x86-64 Options): Likewise.
12840 (RS6000 and PowerPC Options): Likewise.
12841 (i386 and x86-64 Windows Options): Likewise.
12842 (V850 Options): Add text missing from descriptions.
12843
12844 2011-03-22 Richard Henderson <rth@redhat.com>
12845
12846 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12847 (avr_incoming_return_addr_rtx): New.
12848 (emit_push_byte): New.
12849 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12850 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12851 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12852 (emit_pop_byte): New.
12853 (expand_epilogue): Use it. Pop frame pointer by bytes.
12854 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12855 (INCOMING_RETURN_ADDR_RTX): New.
12856 (INCOMING_FRAME_SP_OFFSET): New.
12857 (ARG_POINTER_CFA_OFFSET): New.
12858 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12859 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12860 (pophi): Remove.
12861
12862 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12863
12864 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12865
12866 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12867 (FUNCTION_ARG_ADVANCE): Likewise.
12868 * tm.texi.in: Change references to them to hook references.
12869 * tm.texi: Regenerate.
12870 * targhooks.c (default_function_arg): Eliminate check for target
12871 macro.
12872 (default_function_incoming_arg): Likewise.
12873 (default_function_arg_advance): Likewise.
12874 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12875 (function_arg_advance): Likewise.
12876 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12877
12878 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12879
12880 * tree.c (build_call_1): New function.
12881 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12882
12883 2011-03-22 Richard Guenther <rguenther@suse.de>
12884
12885 PR tree-optimization/48228
12886 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12887 for single-arg PHIs.
12888
12889 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12890
12891 PR rtl-optimization/48143
12892 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12893 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12894 sse2_cvtps2pd): Likewise.
12895
12896 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12897
12898 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12899
12900 2011-03-22 Richard Guenther <rguenther@suse.de>
12901
12902 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12903 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12904 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12905 and REALIGN_LOAD_EXPR.
12906 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12907 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12908 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12909 DOT_PROD_EXPR case ...
12910 (expand_expr_real_2): ... here.
12911 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12912 and REALIGN_LOAD_EXPR.
12913 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12914 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12915 (vect_create_epilog_for_reduction): Likewise.
12916 (vectorizable_reduction): Likewise.
12917 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12918 * tree-vect-stmts.c (vectorizable_load): Likewise.
12919
12920 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12921
12922 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12923
12924 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12925
12926 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12927 handling for PLTOFF/GOTOFF.
12928
12929 2011-03-22 Nick Clifton <nickc@redhat.com>
12930
12931 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12932 trailing backslash from the end of the macro definition.
12933
12934 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12935
12936 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12937 and PLT unspecs.
12938
12939 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12940
12941 * expr.h (prepare_operand): Move to...
12942 * optabs.h (prepare_operand): ...here and change the insn code
12943 parameter from "int" to "enum insn_code".
12944 (insn_operand_matches): Declare.
12945 * expr.c (init_expr_target): Use insn_operand_matches.
12946 (compress_float_constant): Likewise.
12947 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12948 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12949 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12950 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12951 Likewise.
12952 (gen_cond_trap): Likewise.
12953 (prepare_operand): Likewise. Change icode to an insn_code.
12954 (insn_operand_matches): New function.
12955 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12956 * reload1.c (gen_reload): Likewise.
12957 * targhooks.c (default_secondary_reload): Likewise.
12958
12959 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12960
12961 * config/alpha/alpha.md (unspec): New define_c_enum.
12962 (unspecv): Ditto.
12963
12964 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12965
12966 PR debug/48214
12967 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12968 between a call and its CALL_ARG_LOCATION note.
12969
12970 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12971
12972 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12973
12974 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12975
12976 PR c/42544
12977 PR c/48197
12978 * c-common.c (shorten_compare): If primopN is first sign-extended
12979 to opN and then zero-extended to result type, set primopN to opN.
12980
12981 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12982
12983 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12984 for barrier handlers.
12985
12986 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12987
12988 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12989 UNSPEC constants to be in the unspec enumeration, and redefine
12990 all UNSPECV constants to be in the unspecv enumeration, so that
12991 dumps print which unspec/unspec_volatile this is.
12992 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12993 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12994 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12995 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12996 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12997
12998 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12999 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13000 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13001 * config/rs6000/sync.md (isync, lwsync): Ditto.
13002
13003 2011-03-21 Richard Guenther <rguenther@suse.de>
13004
13005 * params.def (lto-min-partition): Fix typo.
13006
13007 2011-03-21 Richard Guenther <rguenther@suse.de>
13008
13009 PR c/47939
13010 * c-decl.c (grokdeclarator): Drop to the main variant only
13011 for array types. Drop flag_gen_aux_info check.
13012
13013 2011-03-21 Richard Guenther <rguenther@suse.de>
13014
13015 PR translation/47911
13016 * params.def (lto-partitions): Fix typo.
13017 (lto-min-partition): Fix wording.
13018
13019 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13020
13021 * config/rs6000/t-freebsd: Remove duplication from file.
13022
13023 2011-03-21 Richard Guenther <rguenther@suse.de>
13024
13025 PR middle-end/47661
13026 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13027
13028 2011-03-21 Richard Guenther <rguenther@suse.de>
13029
13030 PR lto/48210
13031 * params.def (lto-partitions): Require at least 1 partition.
13032
13033 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13034
13035 * gthr-solaris.h: Remove.
13036 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13037 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13038 (LIB_SPEC): Likewise.
13039 * config/sol2.opt (threads): Remove.
13040 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13041 (sparc*-*-solaris2*): Likewise.
13042 * configure.ac (enable_threads): Enable solaris support.
13043 * configure: Regenerate.
13044 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13045 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13046 solaris.
13047
13048 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13049
13050 * config.gcc: Obsolete *-*-solaris2.8*.
13051 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13052
13053 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13054
13055 PR bootstrap/48135
13056 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13057 reference. Solaris 8 perl works.
13058
13059 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13060
13061 PR bootstrap/48135
13062 * doc/install.texi (Prerequisites): Move jar etc. up.
13063 Explain support library version requirements.
13064
13065 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13066
13067 PR bootstrap/48135
13068 * doc/install.texi (Prerequisites): Move Perl to build
13069 requirements. Always necessary on Solaris 2 with Sun ld.
13070
13071 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13072
13073 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13074 binutils 2.21.
13075 (Specific, i?86-*-solaris2.[89]): Likewise.
13076 (Specific, i?86-*-solaris2.10): Likewise.
13077 (Specific, mips-sgi-irix6): Likewise.
13078 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13079 Update for binutils 2.21.
13080
13081 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13082
13083 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13084 Allow -fuse-linker-plugin for non-default plugin linker.
13085 * configure: Regenerate.
13086
13087 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13088
13089 PR bootstrap/48167
13090 * gengtype.c (files_rules): Added rule for cp/parser.h.
13091
13092 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13093
13094 PR target/48213
13095 * config/s390/s390.c (s390_delegitimize_address): Don't call
13096 lowpart_subreg if orig_x has BLKmode.
13097
13098 2011-03-21 Kai Tietz <ktietz@redhat.com>
13099
13100 PR target/12171
13101 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13102 * tree.h (attribute_spec): Add new member affects_type_identity.
13103 * attribs.c (empty_attribute_table): Adjust attribute_spec
13104 initializers.
13105 * config/alpha/alpha.c: Likewise.
13106 * config/arc/arc.c: Likewise.
13107 * config/arm/arm.c: Likewise.
13108 * config/avr/avr.c: Likewise.
13109 * config/bfin/bfin.c: Likewise.
13110 * config/crx/crx.c: Likewise.
13111 * config/darwin.h: Likewise.
13112 * config/h8300/h8300.c: Likewise.
13113 * config/i386/cygming.h: Likewise.
13114 * config/i386/i386.c: Likewise.
13115 * config/ia64/ia64.c: Likewise.
13116 * config/m32c/m32c.c: Likewise.
13117 * config/m32r/m32r.c: Likewise.
13118 * config/m68hc11/m68hc11.c: Likewise.
13119 * config/m68k/m68k.c: Likewise.
13120 * config/mcore/mcore.c: Likewise.
13121 * config/mep/mep.c: Likewise.
13122 * config/microblaze/microblaze.c: Likewise.
13123 * config/mips/mips.c: Likewise.
13124 * config/rs6000/rs6000.c: Likewise.
13125 * config/rx/rx.c: Likewise.
13126 * config/sh/sh.c: Likewise.
13127 * config/sol2.h: Likewise.
13128 * config/sparc/sparc.c: Likewise.
13129 * config/spu/spu.c: Likewise.
13130 * config/stormy16/stormy16.c: Likewise.
13131 * config/v850/v850.c: Likewise.
13132
13133 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13134
13135 * simplify-rtx.c (simplify_binary_operation_1): Handle
13136 (xor (and A B) C) case when B and C are both constants.
13137
13138 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13139
13140 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13141
13142 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13143
13144 PR bootstrap/48168
13145 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13146
13147 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13148
13149 PR rtl-optimization/48156
13150 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13151 assume df and df_lr are not NULL.
13152
13153 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13154
13155 PR debug/48023
13156 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13157 between a call and its CALL_ARG_LOCATION note.
13158
13159 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13160
13161 PR debug/48178
13162 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13163 between a call and its corresponding CALL_ARG_LOCATION note.
13164
13165 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13166
13167 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13168 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13169 * haifa-sched.c (setup_ref_regs): Ditto.
13170 * caller-save.c (add_used_regs_1): Ditto.
13171 * dse.c (look_for_hardregs): Ditto.
13172 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13173 * sched-rgn.c (check_live_1): Ditto.
13174
13175 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13176
13177 * c-decl.c (diagnose_mismatched_decls): Give an error for
13178 redefining a typedef with variably modified type.
13179
13180 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13181
13182 * c-decl.c (grokfield): Don't allow typedefs for structures or
13183 unions with no tag by default.
13184 * doc/extend.texi (Unnamed Fields): Update.
13185
13186 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13187
13188 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13189 Rewrite using indirect functions.
13190 (lwp_slwpcb): Ditto.
13191 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13192 (avx_vinsertf128<mode>): Ditto.
13193
13194 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13195
13196 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13197 unspecs.
13198
13199 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13200
13201 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13202 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13203
13204 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13205
13206 PR rtl-optimization/48170
13207 * gcse.c (hoist_code): Remove bogus asserts.
13208
13209 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13210
13211 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13212 computation for prologue/epilogue.
13213
13214 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13215
13216 * Makefile.in (check-consistency): Remove.
13217
13218 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13219
13220 PR debug/48176
13221 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13222 arange_table_in_use is 0, but either text_section_used or
13223 cold_text_section_used is true. Don't call it if
13224 !info_section_emitted.
13225
13226 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13227
13228 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13229 FUNCTION_VALUE_REGNO_P): Remove.
13230 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13231 Remove.
13232 * config/avr/avr.c (avr_ret_register): Make static inline.
13233 (avr_function_value_regno_p): New function.
13234 (avr_libcall_value): Make static. Add 'func' argument.
13235 (avr_function_value): Make static. Rename 'func' argument to
13236 'fn_decl_or_type', forward it to avr_libcall_value. Call
13237 avr_ret_register function instead of RET_REGISTER macro.
13238 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13239
13240 2011-03-18 Jason Merrill <jason@redhat.com>
13241
13242 PR c++/23372
13243 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13244
13245 2011-03-18 Richard Guenther <rguenther@suse.de>
13246
13247 * doc/install.texi (--enable-gold): Remove.
13248 (--with-plugin-ld): Document.
13249 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13250
13251 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13252
13253 PR middle-end/47790
13254 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13255 again after expansion changes.
13256
13257 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13258
13259 * combine.c (try_combine): Do simplification only call of
13260 subst() on i2 even when i1 is present. Update comments.
13261
13262 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13263
13264 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13265 and UNSPEC_PCREL_SYMOFF.
13266
13267 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13268
13269 * config/s390/s390.md: Use define_c_enum for the unspec constant
13270 definitions.
13271
13272 2011-03-18 Richard Henderson <rth@redhat.com>
13273 Jakub Jelinek <jakub@redhat.com>
13274
13275 PR bootstrap/48161
13276 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13277 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13278
13279 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13280
13281 PR middle-end/47725
13282 * combine.c (cant_combine_insn_p): Don't check zero/sign
13283 extended hard registers.
13284
13285 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13286
13287 PR middle-end/47725
13288 * combine.c (cant_combine_insn_p): Check zero/sign extended
13289 hard registers.
13290
13291 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13292
13293 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13294 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13295 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13296 Change return type to bool.
13297 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13298
13299 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13300
13301 PR debug/48163
13302 * var-tracking.c (prepare_call_arguments): If CALL target
13303 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13304 pc instead of looking it up using cselib_lookup and use
13305 Pmode for it if x has VOIDmode.
13306 * dwarf2out.c (gen_subprogram_die): If also both first and
13307 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13308
13309 PR debug/48163
13310 * function.c (assign_parms): For data.passed_pointer parms
13311 use MEM of data.entry_parm instead of data.entry_parm itself
13312 as DECL_INCOMING_RTL.
13313 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13314 also when passed and declared mode is the same, DECL_RTL
13315 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13316 a MEM too.
13317
13318 2011-03-16 Jeff Law <law@redhat.com>
13319
13320 PR rtl-optimization/37273
13321 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13322 handle them like argument loads from stack slots. Do not double
13323 count memory for memory constants and argument loads from stack slots.
13324
13325 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13326
13327 PR debug/48160
13328 * var-tracking.c (prepare_call_arguments): Check SUBREG.
13329
13330 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13331
13332 PR target/48171
13333 * config/i386/i386.opt: Add Save to -mavx and -mfma.
13334
13335 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13336
13337 PR bootstrap/48153
13338 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13339 if dwarf_strict.
13340 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13341 Clear call_arg_locations and call_arg_loc_last always.
13342
13343 PR middle-end/48152
13344 * var-tracking.c (prepare_call_arguments): If argument needs to be
13345 passed by reference, adjust argtype and mode.
13346
13347 2011-03-17 Richard Guenther <rguenther@suse.de>
13348
13349 PR middle-end/48134
13350 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13351 a value make sure to fold the statement.
13352
13353 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
13354
13355 PR target/43872
13356 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13357 return condition with !cfun->calls_alloca.
13358
13359 2011-03-17 Richard Guenther <rguenther@suse.de>
13360
13361 PR bootstrap/48148
13362 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13363 origin for decls in other ltrans units.
13364 (input_varpool_node): Likewise.
13365
13366 2011-03-17 Richard Guenther <rguenther@suse.de>
13367
13368 PR middle-end/48165
13369 * tree-object-size.c (compute_object_offset): Properly return
13370 the offset operand of MEM_REFs as sizetype.
13371
13372 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13373
13374 PR rtl-optimization/48141
13375 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13376 * dse.c: Include params.h.
13377 (active_local_stores_len): New variable.
13378 (add_wild_read, dse_step1): Clear it when setting active_local_stores
13379 to NULL.
13380 (record_store, check_mem_read_rtx): Decrease it when removing
13381 from the chain.
13382 (scan_insn): Likewise. Increase it when adding to chain, if it
13383 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13384 set active_local_stores to NULL before the addition.
13385 * Makefile.in (dse.o): Depend on $(PARAMS_H).
13386
13387 PR rtl-optimization/48141
13388 * dse.c (record_store): If no positions are needed in an insn
13389 that cannot be deleted, at least unchain it from active_local_stores.
13390
13391 2011-03-16 Dodji Seketeli <dodji@redhat.com>
13392
13393 PR debug/47510
13394 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
13395 (lookup_type_die_strip_naming_typedef): ... here.
13396 (get_context_die): Use it.
13397 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
13398 the anonymous struct named by the naming typedef.
13399
13400 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
13401
13402 PR target/48154
13403 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
13404 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13405
13406 2011-03-16 Jeff Law <law@redhat.com>
13407
13408 * tree-vrp.c (identify_jump_threads): Slightly simplify type
13409 check for operands of conditional. Allow type to be a pointer.
13410
13411 2011-03-16 Richard Guenther <rguenther@suse.de>
13412
13413 PR tree-optimization/48149
13414 * fold-const.c (fold_binary_loc): Fold
13415 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
13416
13417 2011-03-16 Richard Guenther <rguenther@suse.de>
13418
13419 PR tree-optimization/26134
13420 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
13421 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
13422 (non_rewritable_mem_ref_base): Handle complex type component
13423 accesses, constrain offsets for vector and complex extracts
13424 more properly.
13425
13426 2011-03-16 Richard Guenther <rguenther@suse.de>
13427
13428 PR tree-optimization/48146
13429 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
13430 operands avoiding the need for renaming.
13431
13432 2011-03-16 Richard Guenther <rguenther@suse.de>
13433
13434 * gimple-fold.c (maybe_fold_reference): Open-code relevant
13435 constant folding. Move MEM_REF canonicalization first.
13436 Rely on fold_const_aggregate_ref for initializer folding.
13437 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
13438
13439 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13440
13441 PR middle-end/48136
13442 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13443 arg0/arg1 or their arguments are always fold converted to matching
13444 types.
13445
13446 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
13447 to nargs.
13448
13449 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13450
13451 PR lto/46944
13452 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
13453 Handle in-tree gold.
13454 (ld_vers): Extract binutils version for gold.
13455 (gcc_cv_ld_hidden): Handle gold here.
13456 (gcc_cv_lto_plugin): Determine level of linker plugin support.
13457 * configure: Regenerate.
13458 * config.in: Regenerate.
13459 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
13460 -fuse-linker-plugin otherwise.
13461 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
13462 (LINK_COMMAND_SPEC): Use it.
13463 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
13464
13465 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13466
13467 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
13468 * calls.c: Remove debug.h include.
13469 (emit_call_1): Don't call virtual_call_token debug hook.
13470 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
13471 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
13472 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
13473 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
13474 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
13475 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
13476 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
13477 dwarf2out_virtual_call): Remove.
13478 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
13479 copy_call_info and virtual_call hooks.
13480 (dwarf2out_init): Don't initialize vcall_insn_table,
13481 debug_dcall_section and debug_vcall_section.
13482 (prune_unused_types): Don't mark nodes from dcall_table.
13483 (dwarf2out_finish): Don't output dcall or vcall tables.
13484 * final.c (final_scan_insn): Don't call direct_call or
13485 virtual_call debug hooks.
13486 * debug.h (struct gcc_debug_hooks): Remove direct_call,
13487 virtual_call_token, copy_call_info and virtual_call hooks.
13488 (debug_nothing_uid): Remove prototype.
13489 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
13490 copy_call_info and virtual_call hooks.
13491 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13492 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
13493 * debug.c (do_nothing_debug_hooks): Likewise.
13494 (debug_nothing_uid): Remove.
13495 * doc/invoke.texi (-fenable-icf-debug): Remove.
13496 * common.opt (-fenable-icf-debug): Likewise.
13497
13498 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
13499 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
13500 call's MEM. Handle functions returning aggregate through a hidden
13501 first pointer. For virtual calls add clobbered pc to call arguments
13502 chain.
13503 * dwarf2out.c (gen_subprogram_die): Emit
13504 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
13505 can't be emitted.
13506
13507 PR debug/45882
13508 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
13509 * rtl.h (ENTRY_VALUE_EXP): Define.
13510 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
13511 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13512 * print-rtl.c (print_rtx): Likewise.
13513 * gengtype.c (adjust_field_rtx_def): Likewise.
13514 * var-tracking.c (vt_add_function_parameter): Adjust
13515 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
13516 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
13517 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
13518 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
13519 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
13520
13521 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
13522 Call var_location debug hook even on CALL_INSNs.
13523 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
13524 * rtl.def (ENTRY_VALUE): New.
13525 * dwarf2out.c: Include cfglayout.h.
13526 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13527 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
13528 (struct call_arg_loc_node): New type.
13529 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
13530 tail_call_site_count): New variables.
13531 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
13532 DW_TAG_GNU_call_site_parameter.
13533 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
13534 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
13535 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
13536 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
13537 and DW_AT_GNU_all_source_call_sites.
13538 (mem_loc_descriptor): Handle ENTRY_VALUE.
13539 (add_src_coords_attributes): Don't add enything if
13540 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
13541 (dwarf2out_abstract_function): Save and clear call_arg_location,
13542 call_site_count and tail_call_site_count around dwarf2out_decl call.
13543 (gen_call_site_die): New function.
13544 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
13545 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
13546 (dwarf2out_function_decl): Clear call_arg_locations,
13547 call_arg_loc_last, set call_site_count and tail_call_site_count
13548 to -1 and free block_map.
13549 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
13550 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
13551 followed by any real instructions.
13552 (dwarf2out_begin_function): Set call_site_count and
13553 tail_call_site_count to 0.
13554 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
13555 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
13556 attempt to force a DIE for it and worst case remove the attribute.
13557 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
13558 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
13559 the decl itself.
13560 * var-tracking.c: Include tm_p.h.
13561 (vt_stack_adjustments): For calls call note_register_arguments.
13562 (argument_reg_set): New variable.
13563 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
13564 ensure the VALUE is resolved.
13565 (call_arguments): New variable.
13566 (prepare_call_arguments): New function.
13567 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
13568 (struct expand_loc_callback_data): Add ignore_cur_loc field.
13569 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
13570 always use the best expression.
13571 (vt_expand_loc): Add ignore_cur_loc argument.
13572 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
13573 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
13574 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
13575 note for all calls.
13576 (vt_add_function_parameter): Use cselib_lookup_from_insn.
13577 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
13578 argument. Don't call cselib_preserve_only_values and
13579 cselib_reset_table.
13580 (note_register_arguments): New function.
13581 (vt_initialize): Compute argument_reg_set. Call
13582 vt_add_function_parameters before processing basic blocks instead of
13583 afterwards. For calls call prepare_call_arguments before calling
13584 cselib_process_insn.
13585 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
13586 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
13587 (var-tracking.o): Depend on $(TM_P_H).
13588 * cfglayout.h (insn_scope): New prototype.
13589 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
13590 * cfglayout.c (insn_scope): No longer static.
13591 * insn-notes.def (CALL_ARG_LOCATION): New.
13592 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
13593 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
13594 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
13595 nothing for DECL_EXTERNAL BLOCK_VARS.
13596
13597 2011-03-16 Alan Modra <amodra@gmail.com>
13598
13599 PR target/45844
13600 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13601 create invalid offset address for vsx splat insn.
13602 * config/rs6000/predicates.md (splat_input_operand): New.
13603 * config/rs6000/vsx.md (vsx_splat_*): Use it.
13604
13605 2011-03-15 Xinliang David Li <davidxl@google.com>
13606
13607 PR c/47837
13608 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
13609 (normalize_preds): New function.
13610 (is_use_properly_guarded): Normalize def predicates.
13611
13612 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13613
13614 PR target/46788
13615 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
13616 in the output template.
13617
13618 2011-03-15 Richard Guenther <rguenther@suse.de>
13619
13620 PR middle-end/47650
13621 * tree-pretty-print.c (dump_function_declaration): Properly
13622 dump unprototyped and varargs function types.
13623
13624 2011-03-15 Richard Guenther <rguenther@suse.de>
13625
13626 PR tree-optimization/13954
13627 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
13628 and friends.
13629
13630 2011-03-15 Richard Guenther <rguenther@suse.de>
13631
13632 PR tree-optimization/48037
13633 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
13634 selects into BIT_FIELD_REFs.
13635 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
13636 vector select.
13637
13638 2011-03-15 Jakub Jelinek <jakub@redhat.com>
13639
13640 PR tree-optimization/48129
13641 * builtins.c (fold_builtin_snprintf): Convert to type of
13642 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
13643 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
13644
13645 2011-03-15 Richard Guenther <rguenther@suse.de>
13646
13647 PR tree-optimization/41490
13648 * tree-ssa-dce.c (propagate_necessity): Handle returns without
13649 value but with VUSE.
13650 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
13651 return statements.
13652 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
13653 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
13654 * tree-tailcall.c (find_tail_calls): Ignore returns.
13655
13656 2011-03-15 Richard Guenther <rguenther@suse.de>
13657
13658 PR middle-end/48031
13659 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
13660 or variable-indexed array accesses when in gimple form.
13661
13662 2011-03-15 Richard Guenther <rguenther@suse.de>
13663
13664 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
13665
13666 2011-03-15 Alan Modra <amodra@gmail.com>
13667
13668 PR target/48032
13669 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13670 presume symbol_refs without a symbol_ref_decl are suitably
13671 aligned, nor other trees we may see here. Handle anchor symbols.
13672 (legitimate_constant_pool_address_p): Comment. Add mode param.
13673 Check cmodel=medium addresses. Adjust all calls.
13674 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13675 creating cmodel=medium optimized access to locals.
13676 * config/rs6000/constraints.md (R): Pass QImode to
13677 legitimate_constant_pool_address_p.
13678 * config/rs6000/predicates.md (input_operand): Pass mode to
13679 legitimate_constant_pool_address_p.
13680 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13681 Update prototype.
13682
13683 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13684
13685 PR target/48053
13686 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13687 64-bit constants being loaded into registers other than GPRs such
13688 as loading 0 into a VSX register.
13689
13690 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13691
13692 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13693
13694 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13695
13696 PR middle-end/47917
13697 * builtins.c (fold_builtin_snprintf): New function.
13698 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13699 (fold_builtin_4): Likewise.
13700
13701 PR middle-end/38878
13702 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13703 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13704 and C - X == X also strip nops from +/-/p+ operand.
13705 When optimizing -X == C, fold C to arg0's type.
13706
13707 PR debug/47946
13708 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13709 emit it as add_AT_int instead of add_AT_unsigned.
13710
13711 2011-03-14 Tom Tromey <tromey@redhat.com>
13712
13713 * unwind-dw2.c: Include sys/sdt.h if it exists.
13714 (_Unwind_DebugHook): Use STAP_PROBE2.
13715 * config.in, configure: Rebuild.
13716 * configure.ac: Check for sys/sdt.h.
13717
13718 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
13719
13720 * config/i386/i386.md (ROUND_FLOOR): New constant.
13721 (ROUND_CEIL): Ditto.
13722 (ROUND_TRUNC): Ditto.
13723 (ROUND_MXCSR): Ditto.
13724 (ROUND_NO_EXC): Ditto.
13725 (rint<mode>2): Use new defines instead of numerical constants.
13726 (floor<mode>2): Ditto.
13727 (ceil<mode>2): Ditto.
13728 (btrunc<mode>2): Ditto.
13729 * config/i386/i386-builtin-types.def: Define ROUND function type
13730 aliases.
13731 * config/i386/i386.c (enum ix86_builtins): Add
13732 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13733 (struct builtin_description): Add
13734 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13735 (ix86_expand_sse_round): New static function.
13736 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13737 function types.
13738 (ix86_builtin_vectorized_function): Handle
13739 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13740
13741 2011-03-14 Tom Tromey <tromey@redhat.com>
13742
13743 * c-parser.c (c_parser_asm_string_literal): Clear
13744 warn_overlength_strings.
13745
13746 2011-03-14 Tom Tromey <tromey@redhat.com>
13747
13748 * c-parser.c (disable_extension_diagnostics): Save
13749 warn_overlength_strings.
13750 (restore_extension_diagnostics): Restore warn_overlength_strings.
13751
13752 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13753
13754 * BASE-VER: Change to 4.7.0.
13755
13756 2011-03-14 Richard Guenther <rguenther@suse.de>
13757
13758 PR middle-end/48098
13759 * tree.c (build_vector_from_val): Adjust assert to requirements
13760 and reality.
13761
13762 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13763
13764 PR bootstrap/48102
13765 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13766
13767 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13768
13769 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13770 terms of target_flags_explicit. Adjust copyright year.
13771
13772 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13773 * config/rs6000/t-freebsd: New file. Add override for
13774 LIB2FUNCS_EXTRA.
13775
13776 2011-03-13 Chris Demetriou <cgd@google.com>
13777
13778 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13779 (-fno-diagnostics-show-option): this, to reflect current default.
13780 (-Werror=): Update text about -fno-diagnostics-show-option.
13781
13782 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13783
13784 PR target/48053
13785 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13786 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13787 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13788 mode is not V2DImode or V2DFmode.
13789 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13790 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13791 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13792 registers to 0.
13793 (movdi_internal64): Likewise.
13794
13795 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13796
13797 PR tree-optimization/47127
13798 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13799 parameter.
13800 (set_cloog_options): Same.
13801 (scop_to_clast): Same.
13802 (print_clast_stmt): Do not call cloog_state_malloc and
13803 cloog_state_free.
13804 (print_generated_program): Same.
13805 (gloog): Same.
13806 * graphite-clast-to-gimple.h (cloog_state): Declared.
13807 (scop_to_clast): Adjust declaration.
13808 * graphite.c (cloog_state): Defined here.
13809 (graphite_initialize): Call cloog_state_malloc.
13810 (graphite_finalize): Call cloog_state_free.
13811
13812 2011-03-11 Jason Merrill <jason@redhat.com>
13813
13814 * attribs.c (lookup_attribute_spec): Take const_tree.
13815 * tree.h: Adjust.
13816
13817 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13818
13819 * config/sparc/sparc.c (sparc_option_override): Use
13820 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13821
13822 2011-03-11 Richard Guenther <rguenther@suse.de>
13823
13824 PR tree-optimization/48067
13825 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13826 multiplication result will be only used once on the target
13827 stmt.
13828
13829 2011-03-11 Richard Guenther <rguenther@suse.de>
13830
13831 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13832
13833 2011-03-11 Richard Guenther <rguenther@suse.de>
13834
13835 PR lto/48073
13836 * tree.c (find_decls_types_r): Do not walk types only reachable
13837 from IDENTIFIER_NODEs.
13838
13839 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13840
13841 PR middle-end/48044
13842 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13843 all vnode->force_output nodes as needed.
13844
13845 2011-03-11 Jason Merrill <jason@redhat.com>
13846
13847 PR c++/48069
13848 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13849 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13850
13851 2011-03-11 Martin Jambor <mjambor@suse.cz>
13852
13853 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13854 cgraph_node.
13855
13856 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13857
13858 PR tree-optimization/48063
13859 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13860 inline functions called once if !tree_can_inline_p (node->callers).
13861
13862 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13863
13864 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13865 extra_objs.
13866 * config/score/score3.c: Delete.
13867 * config/score/score3.h: Delete.
13868 * config/score/mul-div.S: Delete.
13869 * config/score/sfp-machine.h: Add new file.
13870 * config/score/constraints.md: Add new file.
13871 * config/score/t-score-softfp: Add new file.
13872 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13873 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13874 (score7_extra_constraint): Delete.
13875 (score7_option_override): Remove unused code.
13876 * config/score/score.c: Remove score3 and score5 define and code.
13877 * config/score/score.h: Remove score3 and score5 define and code.
13878 * config/score/score.md: Remove score3 template and unusual insn.
13879 * config/score/score.opt: Remove score3 and score5 options.
13880
13881 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13882
13883 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13884 when _HPUX_SOURCE is defined.
13885 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13886
13887 2011-03-10 Jason Merrill <jason@redhat.com>
13888
13889 PR c++/48029
13890 * stor-layout.c (layout_type): Don't set structural equality
13891 on arrays of incomplete type.
13892 * tree.c (type_hash_eq): Handle comparing them properly.
13893
13894 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13895
13896 PR debug/48043
13897 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13898 result mode matches original rtl mode.
13899
13900 2011-03-10 Nick Clifton <nickc@redhat.com>
13901
13902 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13903 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13904
13905 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13906
13907 PR rtl-optimization/47866
13908 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13909 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13910 if target wasn't scalar.
13911 * function.c (assign_stack_temp_for_type): Assert that neither
13912 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13913 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13914 macro.
13915 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13916
13917 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13918
13919 * config/s390/s390-protos.h (s390_label_align): New prototype.
13920 * config/s390/s390.c (s390_label_align): New function.
13921 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13922
13923 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13924
13925 PR target/47755
13926 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13927 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13928 (output_vec_const_move): Ditto.
13929
13930 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13931
13932 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13933 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13934 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13935 Change 'rclass' argument and result type to reg_class_t.
13936 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13937
13938 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13939
13940 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13941 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13942 (TARGET_MEMORY_MOVE_COST): Define.
13943 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13944
13945 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13946
13947 PR debug/47881
13948 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13949 removed anything.
13950
13951 PR tree-optimization/48022
13952 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13953 for EQ/NE_EXPR.
13954
13955 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13956
13957 PR debug/47991
13958 * var-tracking.c (find_use_val): Return NULL for
13959 cui->sets && cui->store_p BLKmode MEMs.
13960
13961 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13962
13963 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13964 Remove.
13965 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13966 xstormy16_print_operand_address): Remove.
13967 * config/stormy16/stormy16.c (xstormy16_print_operand,
13968 xstormy16_print_operand_address): Make static.
13969 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13970
13971 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13972
13973 PR target/47862
13974 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13975 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13976 before definition.
13977
13978 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13979
13980 PR bootstrap/48000
13981 * cfgloopmanip.c (fix_bb_placements): Return immediately
13982 if FROM is BASE_LOOP's header.
13983
13984 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13985
13986 * gimplify.c (gimplify_function_tree): Fix building calls
13987 to __builtin_return_address.
13988
13989 2011-03-07 Alan Modra <amodra@gmail.com>
13990
13991 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13992 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13993 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13994 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13995 return_mode args.
13996 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13997 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13998 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13999 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14000 * config/rs6000/rs6000.c
14001 (rs6000_elf_end_indicate_exec_stack): Rename to..
14002 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14003 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14004 (rs6000_file_start): ..here.
14005 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14006 file scope variables.
14007 (call_ABI_of_interest): New function.
14008 (init_cumulative_args): Set above vars when function return value
14009 is a float, vector, or small struct.
14010 (rs6000_function_arg_advance_1): Likewise for function args.
14011 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14012 references float args.
14013
14014 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14015
14016 * doc/cfg.texi: Remove "See" before @ref.
14017 * doc/invoke.texi: Likewise.
14018
14019 2011-03-05 Jason Merrill <jason@redhat.com>
14020
14021 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14022
14023 2011-03-05 Anthony Green <green@moxielogic.com>
14024
14025 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14026
14027 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14028
14029 PR rtl-optimization/47899
14030 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14031 to flow_loop_nested_p when moving the loop upward.
14032
14033 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14034
14035 PR target/47719
14036 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14037
14038 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14039
14040 PR tree-optimization/47967
14041 * ipa-cp.c (build_const_val): Return NULL instead of creating
14042 VIEW_CONVERT_EXPR for mismatching sizes.
14043 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14044 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14045 give up on versioning.
14046
14047 2011-03-05 Alan Modra <amodra@gmail.com>
14048
14049 PR target/47986
14050 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14051 full cmodel medium/large lo_sum + high addresses.
14052
14053 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14054
14055 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14056 pool references in UNSPEC_LTREL_OFFSET.
14057
14058 2011-03-04 Jan Hubicka <jh@suse.cz>
14059
14060 PR lto/47497
14061 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14062 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14063 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14064 Add node pointers.
14065 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14066 cgraph_add_thunk): Add node pointers.
14067 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14068 associated to right node.
14069 (input_node): Update use of cgraph_same_body_alias
14070 and cgraph_add_thunk.
14071
14072 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14073
14074 * config/i386/i386.opt (mprefer-avx128): New flag.
14075 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14076 modes when the flag -mprefer-avx128 is on.
14077
14078 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14079
14080 * dwarf2out.c (compare_loc_operands): Fix address handling.
14081
14082 2011-03-04 Alan Modra <amodra@gmail.com>
14083
14084 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14085
14086 2011-03-04 Richard Guenther <rguenther@suse.de>
14087
14088 PR middle-end/47968
14089 * expmed.c (extract_bit_field_1): Prefer vector modes that
14090 vec_extract patterns can handle.
14091
14092 2011-03-04 Richard Guenther <rguenther@suse.de>
14093
14094 PR middle-end/47975
14095 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14096
14097 2011-03-04 Richard Henderson <rth@redhat.com>
14098
14099 * explow.c (emit_stack_save): Remove 'after' parameter.
14100 (emit_stack_restore): Likewise.
14101 * expr.h: Update to match.
14102 * builtins.c, calls.c, stmt.c: Likewise.
14103 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14104 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14105 * function.c (expand_function_end): Insert the emit_stack_save
14106 sequence before parm_birth_insn instead of after.
14107
14108 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14109
14110 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14111 (ssse3_pmaddubsw128): Ditto.
14112 (ssse3_pmaddubsw): Ditto.
14113
14114 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14115
14116 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14117
14118 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14119
14120 PR c/47963
14121 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14122 on TYPE_SIZE_UNIT if it is a DECL.
14123
14124 PR debug/47283
14125 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14126 first operand is not is_gimple_mem_ref_addr, try to fold it.
14127 If the operand still isn't is_gimple_mem_ref_addr, clear
14128 MEM_EXPR on op0.
14129
14130 2011-03-03 Richard Guenther <rguenther@suse.de>
14131
14132 PR middle-end/47283
14133 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14134 match comment.
14135 (refs_may_alias_p_1): For release branches return true if
14136 we are confused by our input.
14137
14138 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14139
14140 * config/s390/s390.c (s390_function_value): Rename to ...
14141 (s390_function_and_libcall_value): ... this.
14142 (s390_function_value): New function.
14143 (s390_libcall_value): New function.
14144 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14145 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14146 target macro definitions.
14147 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14148
14149 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14150
14151 * config/i386/freebsd64.h (CC1_SPEC): Define.
14152 * config/i386/linux64.h (CC1_SPEC): Define.
14153 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14154
14155 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14156
14157 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14158 Remove.
14159 * config/stormy16/stormy16.c: Include reload.h.
14160 (xstormy16_memory_move_cost): New function.
14161 (TARGET_MEMORY_MOVE_COST): Define.
14162
14163 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14164
14165 PR rtl-optimization/47925
14166 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14167 with side effects. Remove the more-specific check for volatile asms.
14168
14169 2011-03-02 Alan Modra <amodra@gmail.com>
14170
14171 PR target/47935
14172 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14173 toc relative addresses for valid offsets.
14174
14175 2011-03-01 Richard Guenther <rguenther@suse.de>
14176
14177 PR tree-optimization/47890
14178 * tree-vect-loop.c (get_initial_def_for_induction): Set
14179 related stmt properly.
14180
14181 2011-03-01 Richard Guenther <rguenther@suse.de>
14182
14183 PR lto/47924
14184 * lto-streamer.c (lto_record_common_node): Also register
14185 the canonical type.
14186
14187 2011-03-01 Richard Guenther <rguenther@suse.de>
14188
14189 PR lto/46911
14190 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14191 Do not stream DECL_ABSTRACT_ORIGIN.
14192 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14193 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14194 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14195 Do not stream DECL_ABSTRACT_ORIGIN.
14196 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14197 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14198
14199 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14200
14201 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14202 FUNCTION_VALUE_REGNO_P): Remove.
14203 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14204 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14205 Add 'outgoing' argument.
14206 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14207 function.
14208 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14209 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14210
14211 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14212
14213 PR debug/28047
14214 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14215 (lookup_filename): Likewise.
14216 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14217
14218 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14219 Jakub Jelinek <jakub@redhat.com>
14220
14221 PR middle-end/47893
14222 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14223 (assign_stack_local_1): Change last argument type to int.
14224 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14225 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14226 don't record padding space into frame_space_list nor use those areas.
14227 (assign_stack_local): Adjust caller.
14228 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14229 of assign_stack_local, pass 0 as last argument.
14230 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14231 callers.
14232
14233 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14234
14235 PR debug/47283
14236 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14237 Use target address_mode and pointer_mode hooks instead of hardcoded
14238 Pmode and ptr_mode. Handle some simple cases of extending if
14239 POINTERS_EXTEND_UNSIGNED < 0.
14240 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14241 Call convert_debug_memory_address.
14242 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14243 convert_debug_memory_address.
14244
14245 PR middle-end/46790
14246 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14247 * configure: Regenerated.
14248 * config.in: Regenerated.
14249 * varasm.c (default_function_section): Return NULL
14250 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14251
14252 2011-02-28 Martin Jambor <mjambor@suse.cz>
14253
14254 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14255 the description to match the printed values.
14256
14257 2011-02-28 Richard Guenther <rguenther@suse.de>
14258
14259 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14260 of the copied scope tree.
14261
14262 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14263
14264 * doc/extend.texi (Function Attributes): Avoid deeply (and
14265 wrongly) nested tables.
14266
14267 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14268
14269 PR middle-end/47903
14270 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14271 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14272 r isn't op0 nor op1.
14273
14274 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14275
14276 * config/avr/avr.md: Remove magic comment for emacs.
14277
14278 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14279
14280 PR target/45261
14281 * config/avr/avr.c (avr_option_override): Use error on bad options.
14282 (avr_help): New function.
14283 (TARGET_HELP): Define.
14284
14285 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14286
14287 PR target/42240
14288 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14289 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14290
14291 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14292
14293 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14294 (ARM Options): Ditto.
14295 (i386 and x86-64 Options): Ditto.
14296 (RX Options): Ditto.
14297 (SPARC Options): Ditto.
14298
14299 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14300
14301 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14302 FreeBSD 6 and later. Generally use cpu generic.
14303
14304 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14305
14306 * doc/cpp.texi: Update copyright years.
14307
14308 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14309
14310 PR target/46898
14311 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14312
14313 2011-02-25 Jon Beniston <jon@beniston.com>
14314
14315 PR target/46898
14316 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14317 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14318 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14319 (lm32_block_move_inline): Add type cast to remove warning.
14320 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14321 (gen_int_relational): Move declarations to start of function.
14322
14323 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
14324
14325 PR tree-optimization/45470
14326 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14327 can throw internally only.
14328 * tree-vect-stmts.c (vectorizable_call): Likewise.
14329
14330 2011-02-24 Anatoly Sokolov <aesok@post.ru>
14331
14332 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14333 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14334 * config/stormy16/stormy16-protos.h
14335 (xstormy16_preferred_reload_class): Remove.
14336 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14337 static. Change 'rclass' argument and return type to reg_class_t.
14338 (TARGET_PREFERRED_RELOAD_CLASS,
14339 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14340
14341 2011-02-24 Richard Guenther <rguenther@suse.de>
14342
14343 * lto-streamer-in.c (input_bb): Do not find referenced vars
14344 in debug statements.
14345
14346 2011-02-23 Jason Merrill <jason@redhat.com>
14347
14348 * common.opt (fabi-version): Document v5 and v6.
14349
14350 2011-02-23 Richard Guenther <rguenther@suse.de>
14351
14352 PR tree-optimization/47849
14353 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14354
14355 2011-02-23 Jie Zhang <jie@codesourcery.com>
14356
14357 * opts-common.c (decode_cmdline_option): Print empty string
14358 argument as "" in decoded->orig_option_with_args_text.
14359 * gcc.c (execute): Print empty string argument as ""
14360 in the verbose output.
14361 (do_spec_1): Keep empty string argument.
14362
14363 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
14364
14365 * config.gcc: Declare score-* and crx-* obsolete.
14366
14367 2011-02-23 Jie Zhang <jie@codesourcery.com>
14368
14369 PR rtl-optimization/47763
14370 * web.c (web_main): Ignore naked clobber when replacing register.
14371
14372 2011-02-22 Anatoly Sokolov <aesok@post.ru>
14373
14374 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14375 Remove.
14376
14377 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
14378
14379 PR doc/47848
14380 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14381
14382 2011-02-22 Mike Stump <mikestump@comcast.net>
14383
14384 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14385 assembler.
14386 * configure: Regenerate.
14387
14388 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
14389
14390 PR rtl-optimization/46002
14391 * ira-color.c (update_copy_costs): Change class intersection
14392 test to reg_class_contents[] test of 'hard_regno'.
14393
14394 2011-02-21 Joseph Myers <joseph@codesourcery.com>
14395
14396 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
14397 than Driver option.
14398 * config/hpux11.opt (mt): Likewise.
14399 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
14400 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
14401 * config/vax/elf.opt (mno-asm-pic): Likewise.
14402 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
14403
14404 2011-02-21 Mike Stump <mikestump@comcast.net>
14405
14406 PR target/47822
14407 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
14408 tree so we can get save the type.
14409 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
14410 for CFString instead of trying to use past the end of the builtins.
14411 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
14412 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
14413 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
14414 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
14415 Rename to darwin_builtin_cfstring.
14416 (darwin_init_cfstring_builtins): Return the built type.
14417
14418 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
14419
14420 PR target/47840
14421 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
14422 (_mm256_insert_epi64): Use _mm_insert_epi64.
14423
14424 2011-02-21 Anatoly Sokolov <aesok@post.ru>
14425
14426 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14427 * config/stormy16/stormy16-protos.h
14428 (xstormy16_mode_dependent_address_p): Remove.
14429 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
14430 Make static. Change return type to bool. Change argument type to
14431 const_rtx. Remove dead code.
14432 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14433
14434 2011-02-21 Richard Guenther <rguenther@suse.de>
14435
14436 PR lto/47820
14437 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14438 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14439 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
14440 TUs context.
14441 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14442 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14443
14444 2011-02-20 Richard Guenther <rguenther@suse.de>
14445
14446 PR lto/47822
14447 * tree.c (free_lang_data_in_decl): Clean builtins from
14448 the TU decl BLOCK_VARS.
14449
14450 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
14451
14452 PR debug/47620
14453 PR debug/47630
14454 * haifa-sched.c (fix_tick_ready): Skip tick computation
14455 for debug insns.
14456
14457 2011-02-19 Richard Guenther <rguenther@suse.de>
14458
14459 PR lto/47647
14460 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
14461 Remove lazy BLOCK_VARS streaming.
14462 (lto_input_ts_block_tree_pointers): Likewise.
14463 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
14464
14465 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14466
14467 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
14468
14469 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14470
14471 * config/i386/biarch32.h, config/i386/mach.h,
14472 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
14473
14474 2011-02-19 Jakub Jelinek <jakub@redhat.com>
14475
14476 PR target/47800
14477 * config/i386/i386.md (peephole2 for shift and plus): Use
14478 operands[1] original mode in the first insn.
14479
14480 2011-02-18 Mike Stump <mikestump@comcast.net>
14481
14482 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
14483
14484 2011-02-18 Jan Hubicka <jh@suse.cz>
14485
14486 PR middle-end/47788
14487 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
14488 to zero when the function is not inlinable at all.
14489
14490 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14491
14492 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
14493 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14494 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
14495 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
14496 * config/pa/t-pa64: Likewise.
14497 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14498
14499 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14500
14501 PR driver/47787
14502 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
14503
14504 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14505
14506 PR target/47792
14507 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
14508
14509 2011-02-18 Anatoly Sokolov <aesok@post.ru>
14510
14511 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14512 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
14513 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
14514 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14515 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
14516 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
14517 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
14518 m32r_load_postinc_p, m32r_store_preinc_predec_p,
14519 m32r_legitimate_address_p): New functions.
14520 * config/m32r/constraints.md (constraint "S"): Don't use
14521 STORE_PREINC_PREDEC_P.
14522 (constraint "U"): Don't use LOAD_POSTINC_P.
14523
14524 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
14525
14526 PR rtl-optimization/46178
14527 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
14528 compute ira_hard_regno_cover_class[].
14529
14530 2011-02-18 Richard Guenther <rguenther@suse.de>
14531
14532 PR lto/47798
14533 * lto-streamer.h (lto_global_var_decls): Declare.
14534 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
14535 statics for global var processing.
14536
14537 2011-02-18 Richard Guenther <rguenther@suse.de>
14538
14539 PR tree-optimization/47737
14540 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
14541 edge dominance check.
14542
14543 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14544
14545 PR debug/47780
14546 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
14547 avoid invalid rtx sharing.
14548
14549 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
14550
14551 * doc/cpp.texi (Obsolete Features): Add background on the
14552 origin of assertions.
14553
14554 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
14555
14556 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
14557 objc_abi == 2.
14558 * config/darwin.c (output_objc_section_asm_op): Added support for
14559 ABI v1 and v2.
14560 (is_objc_metadata): New.
14561 (darwin_objc2_section): New.
14562 (darwin_objc1_section): New.
14563 (machopic_select_section): Added support for ABI v1 and v2.
14564 (darwin_emit_objc_zeroed): New.
14565 (darwin_output_aligned_bss): Detect objc metadata and treat it
14566 appropriately.
14567 (darwin_asm_output_aligned_decl_common): Same.
14568 (darwin_asm_output_aligned_decl_local): Same.
14569 * config/darwin-sections.def: Updated for ABI v1 and v2.
14570 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
14571 compiling Objective-C code for the NeXT runtime, default to using
14572 ABI version 0 for 32-bit, and version 2 for 64-bit.
14573
14574 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14575
14576 * common.opt (optimize_fast): New Variable.
14577 * opts.c (default_options_optimization): Use opts->x_optimize_fast
14578 instead of local variable ofast.
14579
14580 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
14581
14582 * doc/invoke.texi (fobjc-abi-version): Documented.
14583 (fobjc-nilcheck): Documented.
14584 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
14585 version.
14586
14587 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14588
14589 PR driver/47390
14590 * common.opt (export-dynamic): New Driver option.
14591 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
14592
14593 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14594
14595 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
14596
14597 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
14598 Jan Hubicka <jh@suse.cz>
14599
14600 PR debug/47106
14601 PR debug/47402
14602 * cfgexpand.c (account_used_vars_for_block): Remove.
14603 (estimated_stack_frame_size): Use referenced vars.
14604 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
14605 that were referenced in the original function. Test src_fn
14606 rather than cfun. Drop redundant get_var_ann.
14607 (setup_one_parameter): Drop redundant get_var_ann.
14608 (declare_return_variable): Likewise.
14609 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
14610 (copy_arguments_for_versioning): Drop redundant get_var_ann.
14611 * ipa-inline.c (compute_inline_parameters): Do not compute
14612 disregard_inline_limits here.
14613 (compute_inlinable_for_current, pass_inlinable): New.
14614 (pass_inline_parameters): Require PROP_referenced_vars.
14615 * cgraphunit.c (cgraph_process_new_functions): Don't run
14616 compute_inline_parameters explicitly unless function is in SSA form.
14617 (cgraph_analyze_function): Set .disregard_inline_limits.
14618 * tree-sra.c (convert_callers): Compute inliner parameters
14619 only for functions already in SSA form.
14620
14621 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14622
14623 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
14624 -mlittle-endian-data.
14625
14626 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14627
14628 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
14629 -mno-fpu, not -fpu and -no-fpu.
14630 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
14631 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
14632
14633 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
14634
14635 PR target/43653
14636 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
14637 input reload with PLUS RTX.
14638
14639 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14640
14641 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
14642 of InverseVar(MDMX).
14643
14644 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14645
14646 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
14647 --m4-340.
14648
14649 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14650
14651 * config/mn10300/mn10300.opt (mno-crt0): New.
14652
14653 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14654
14655 * config/m68k/uclinux.opt (static-libc): New Driver option.
14656
14657 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14658
14659 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
14660
14661 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14662
14663 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
14664 %{muser-extend-enabled}.
14665
14666 2011-02-16 Richard Guenther <rguenther@suse.de>
14667
14668 PR tree-optimization/47738
14669 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14670 the TODO from tree_predictive_commoning.
14671
14672 2011-02-15 Jeff Law <law@redhat.com>
14673
14674 Revert
14675 2011-01-25 Jeff Law <law@redhat.com>
14676
14677 PR rtl-optimization/37273
14678 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14679 handle them like argument loads from stack slots. Do not double
14680 count memory for memory constants and argument loads from stack slots.
14681
14682 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14683
14684 PR middle-end/47725
14685 * combine.c (cant_combine_insn_p): Revert the last change.
14686
14687 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14688
14689 PR target/47755
14690 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14691 mode for vector constants. Remove code that checks for TImode.
14692
14693 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14694
14695 PR debug/47106
14696 PR debug/47402
14697 * cgraph.h (compute_inline_parameters): Return void.
14698 * ipa-inline.c (compute_inline_parameters): Adjust.
14699
14700 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14701
14702 PR debug/47106
14703 PR debug/47402
14704 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14705 rather than decl.
14706 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14707 * ipa-inline.c (compute_inline_parameters): Adjust.
14708
14709 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14710
14711 PR debug/47106
14712 PR debug/47402
14713 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14714 Adjust all users. Pass FN to...
14715 * tree-flow-inline.h (first_referenced_var): ... this. Add
14716 fn argument.
14717 * ipa-struct-reorg.c: Adjust.
14718 * tree-dfa.c: Adjust.
14719 * tree-into-ssa.c: Adjust.
14720 * tree-sra.c: Adjust.
14721 * tree-ssa-alias.c: Adjust.
14722 * tree-ssa-live.c: Adjust.
14723 * tree-ssa.c: Adjust.
14724 * tree-ssanames.c: Adjust.
14725 * tree-tailcall.c: Adjust.
14726
14727 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14728
14729 PR debug/47106
14730 PR debug/47402
14731 * tree-flow.h (referenced_var_lookup): Add fn parameter.
14732 Adjust all callers.
14733 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14734 * tree-flow-inline.h: Adjust.
14735 * gimple-pretty-print.c: Adjust.
14736 * tree-into-ssa.c: Adjust.
14737 * tree-ssa.c: Adjust.
14738 * cfgexpand.c: Adjust.
14739
14740 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14741
14742 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14743 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14744 (EXTRA_CONSTRAINT): Delete.
14745 * config/iq2000/constraints.md: New file.
14746 * config/iq2000/iq2000.md: Include it.
14747 (define_insn ""): Delete.
14748 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14749 unsupported constraint letters from patterns.
14750 (call_value, call_value_internal1): Likewise.
14751 (call_value_multiple_internal1): Likewise.
14752
14753 2011-02-15 Nick Clifton <nickc@redhat.com>
14754
14755 * config/mn10300/mn10300.c: Include tm-constrs.h.
14756 (struct liw_data): New data structure describing an LIW candidate
14757 instruction.
14758 (extract_bundle): Use struct liw_data. Allow small integer
14759 operands for some instructions.
14760 (check_liw_constraints): Use struct liw_data. Remove swapped
14761 parameter. Add comments describing the checks. Fix bug when
14762 assigning the source of liw1 to the source of liw2.
14763 (liw_candidate): Delete. Code moved into extract_bundle.
14764 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14765 before swapping.
14766 * config/mn10300/predicates.md (liw_operand): New predicate.
14767 Allows registers and small integer constants.
14768 * config/mn10300/constraints.md (O): New constraint. Accetps
14769 integers in the range -8 to +7 inclusive.
14770 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14771 for moving a small integer into a register. Give this alternative
14772 LIW attributes.
14773 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14774 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14775 using the J,K,L and M constraints,
14776 (liw): Remove SI mode on second operands to allow for HI and QI
14777 mode values.
14778 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14779 instruction.
14780
14781 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14782
14783 PR middle-end/47725
14784 * combine.c (cant_combine_insn_p): Check zero/sign extended
14785 hard registers.
14786
14787 2011-02-15 Richard Guenther <rguenther@suse.de>
14788
14789 PR tree-optimization/47743
14790 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14791 for a non-type-compatible VN lookup bail out.
14792
14793 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14794
14795 * config/fr30/constraints.md: New file.
14796 * config/fr30/fr30.md: Include it.
14797 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14798 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14799 (EXTRA_CONSTRAINT): Delete.
14800
14801 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14802
14803 * config/frv/constraints.md: New file.
14804 * config/frv/predicates.md: Include it.
14805 * config/frv/frv.c (reg_class_from_letter): Delete.
14806 (frv_option_override): Don't initialize it.
14807 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14808 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14809 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14810 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14811 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14812 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14813 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14814 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14815 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14816 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14817 (REG_CLASS_FROM_CONSTRAINT): Delete.
14818
14819 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14820
14821 PR middle-end/47581
14822 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14823 if frame size is 0 in a leaf function.
14824
14825 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14826
14827 PR pch/14940
14828 * config/alpha/host-osf.c: New file.
14829 * config/alpha/x-osf: New file.
14830 * config.host (alpha*-dec-osf*): Use it.
14831
14832 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14833
14834 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14835 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14836 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14837 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14838 type to const_rtx.
14839 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14840
14841 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14842
14843 * config/stormy16/constraints.md: New file.
14844 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14845 Use satisfies_constraint_Q and satisfies_constraint_R.
14846 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14847 Delete.
14848 (xstormy16_legitiamte_address_p): Declare.
14849 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14850 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14851 (EXTRA_CONSTRAINT): Delete.
14852 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14853 Un-staticize.
14854 (xstormy16_extra_constraint_p): Delete.
14855
14856 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14857
14858 PR tree-optimization/46494
14859 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14860 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14861 (pass_rtl_loop_done): Add TODO_verify_flow.
14862 * fwprop.c (pass_rtl_fwprop): Likewise.
14863 * modulo-sched.c (pass_sms): Likewise.
14864 * tree-ssa-dom.c (pass_dominator): Likewise.
14865 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14866 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14867 (pass_tree_loop_done): Likewise.
14868 * tree-ssa-pre.c (execute_pre): Likewise.
14869 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14870 * tree-ssa-sink.c (pass_sink_code): Likewise.
14871 * tree-vrp.c (pass_vrp): Likewise.
14872
14873 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14874
14875 * config/v850/constraints.md: New file.
14876 * config/v850/v850.md: Include it.
14877 * config/v850/predicates.md (reg_or_0_operand): Use
14878 satisfies_constraint_G.
14879 (special_symbolref_operand): Use satisfies_constraint_K.
14880 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14881 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14882 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14883 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14884 (EXTRA_CONSTRAINT): Delete.
14885 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14886 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14887 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14888
14889 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14890
14891 PR target/47696
14892 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14893 description.
14894
14895 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14896
14897 * config/mcore/constraints.md: New file.
14898 * config/mcore/mcore.md: Include it.
14899 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14900 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14901 (REG_CLASS_FROM_LETTER): Delete.
14902 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14903 insn_const_int_ok_for_constraint.
14904 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14905 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14906 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14907 (EXTRA_CONSTRAINT): Delete.
14908
14909 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14910
14911 PR ada/41929
14912 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14913 (IS_SIGHANDLER): Define.
14914 (sparc64_is_sighandler): New function, split off from
14915 sparc64_fallback_frame_state.
14916 (sparc_is_sighandler): New function, split off from
14917 sparc_fallback_frame_state.
14918 (sparc64_fallback_frame_state): Merge with ...
14919 (sparc_fallback_frame_state): ... this into ...
14920 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14921 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14922 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14923 stack instead of hardcoded offsets.
14924
14925 2011-02-14 Andriy Gapon <avg@freebsd.org>
14926
14927 PR target/45808
14928 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14929
14930 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14931
14932 * configure: Regenerate.
14933
14934 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14935
14936 PR driver/45731
14937 * gcc.c (asm_options): Correct spec matching --target-help.
14938
14939 2011-02-12 Martin Jambor <mjambor@suse.cz>
14940
14941 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14942 to gimple call error.
14943
14944 2011-02-12 Mike Stump <mikestump@comcast.net>
14945
14946 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14947 comments in backslash regions.
14948
14949 2011-02-12 Mike Stump <mikestump@comcast.net>
14950 Jakub Jelinek <jakub@redhat.com>
14951 Iain Sandoe <iains@gcc.gnu.org>
14952
14953 PR target/47324
14954 * dwarf2out.c (output_cfa_loc): When required, apply the
14955 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14956 (output_loc_sequence): Likewise.
14957 (output_loc_operands_raw): Likewise.
14958 (output_loc_sequence_raw): Likewise.
14959 (output_cfa_loc): Likewise.
14960 (output_loc_list): Suppress register number adjustment when
14961 calling output_loc_sequence()
14962 (output_die): Likewise.
14963
14964 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14965
14966 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14967 Remove macros.
14968 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14969 xtensa_memory_move_cost): New functions.
14970 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14971
14972 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14973
14974 PR lto/47225
14975 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14976 in the current directory.
14977 * configure: Rebuilt.
14978
14979 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14980
14981 * config/darwin.c (darwin_override_options): Add a hunk missed
14982 from the commit of r168571. Trim comment line lengths and
14983 correct indents of the preceding block.
14984
14985 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14986
14987 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14988 the switch.
14989
14990 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14991
14992 * common.opt (nostartfiles): New Driver option.
14993
14994 2011-02-11 Xinliang David Li <davidxl@google.com>
14995
14996 PR tree-optimization/47707
14997 * tree-chrec.c (convert_affine_scev): Keep type precision.
14998
14999 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15000
15001 PR tree-optimization/47420
15002 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15003
15004 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
15005
15006 PR rtl-optimization/47614
15007 * rtl.h (check_for_inc_dec): Declare.
15008 * dse.c (check_for_inc_dec): Externalize...
15009 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15010 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15011
15012 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15013
15014 PR driver/47678
15015 * gcc.c (main): Do not compile inputs if there were errors in
15016 option handling.
15017 * opts-common.c (read_cmdline_option): Check for wrong language
15018 after other error checks.
15019
15020 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15021
15022 * cgraph.c: Fix comment typos.
15023 * cgraph.h: Likewise.
15024 * cgraphunit.c: Likewise.
15025 * ipa-cp.c: Likewise.
15026 * ipa-inline.c: Likewise.
15027 * ipa-prop.c: Likewise.
15028 * ipa-pure-const.c: Likewise.
15029 * ipa-ref.c: Likewise.
15030 * ipa-reference.c: Likewise.
15031
15032 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15033
15034 PR debug/47684
15035 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15036
15037 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15038
15039 PR testsuite/47400
15040 * doc/sourcebuild.texi (Require Support): Document
15041 dg-require-ascii-locale.
15042
15043 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15044
15045 * doc/lto.texi (Write summary): Fix missing parentheses.
15046
15047 2011-02-10 DJ Delorie <dj@redhat.com>
15048
15049 * config/m32c/m32c.c (m32c_option_override): Disable
15050 -fcombine-stack-adjustments until flag value tracking and compare
15051 optimization can be rewritten.
15052
15053 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15054
15055 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15056 PROCESSOR_POWER7.
15057 (PROCESSOR_DEFAULT64): Likewise.
15058
15059 2011-02-10 Richard Henderson <rth@redhat.com>
15060
15061 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15062 change from 2011-02-03.
15063 * config/rx/rx.c (flags_from_code): Likewise.
15064 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15065 is valid, n/pz otherwise.
15066 (rx_select_cc_mode): Return CCmode if Y is not zero.
15067
15068 2011-02-10 Richard Guenther <rguenther@suse.de>
15069
15070 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15071
15072 2011-02-10 Richard Guenther <rguenther@suse.de>
15073
15074 PR tree-optimization/47677
15075 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15076
15077 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15078
15079 PR target/47665
15080 * combine.c (make_compound_operation): Only change shifts into
15081 multiplication for SCALAR_INT_MODE_P.
15082
15083 2011-02-10 Jie Zhang <jie@codesourcery.com>
15084
15085 PR testsuite/47622
15086 Revert
15087 2011-02-05 Jie Zhang <jie@codesourcery.com>
15088 PR debug/42631
15089 * web.c (entry_register): Don't clobber the number of the
15090 first uninitialized reference in used[].
15091
15092 2011-02-09 Richard Guenther <rguenther@suse.de>
15093
15094 PR tree-optimization/47664
15095 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15096 all edges again.
15097
15098 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15099
15100 PR target/46481
15101 PR target/47032
15102 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15103 PROCESSOR_POWER7.
15104 (PROCESSOR_DEFAULT64): Same.
15105 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15106
15107 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15108
15109 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15110
15111 2011-02-09 Martin Jambor <mjambor@suse.cz>
15112
15113 PR middle-end/45505
15114 * tree-sra.c (struct access): New flags grp_scalar_read and
15115 grp_scalar_write. Changed description of assignment read and write
15116 flags.
15117 (dump_access): Dump new flags, reorder all of them.
15118 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15119 to detect multiple scalar reads.
15120 (analyze_access_subtree): Use the new scalar read write flags instead
15121 of the old flags. Adjusted comments.
15122
15123 2011-02-08 DJ Delorie <dj@redhat.com>
15124
15125 PR target/47548
15126 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15127 patterns.
15128
15129 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15130
15131 * config/m68k/uclinux.opt: New.
15132 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15133
15134 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15135
15136 * config/cris/elf.opt (sim): New Driver option.
15137
15138 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15139
15140 * config/xtensa/elf.opt: New.
15141 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15142
15143 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15144
15145 * config/vax/elf.opt: New.
15146 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15147
15148 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15149
15150 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15151
15152 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15153
15154 * config/gnu-user.opt: New.
15155 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15156 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15157 *-*-uclinux*): Use gnu-user.opt.
15158
15159 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15160
15161 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15162 * config/i386/gnu.h (CPP_SPEC): Likewise.
15163
15164 2011-02-08 Ian Lance Taylor <iant@google.com>
15165
15166 * common.opt (fcx-limited-range): Add SetByCombined flag.
15167 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15168 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15169 (fassociative-math, freciprocal-math): Likewise.
15170 (funsafe-math-optimizations): Likewise.
15171 * opth-gen.awk: Handle SetByCombined.
15172 * optc-gen.awk: Likewise.
15173 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15174 (set_unsafe_math_optimizations_flags): Likewise.
15175 * doc/options.texi (Option properties): Document SetByCombined.
15176
15177 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15178
15179 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15180 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15181 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15182 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15183 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15184
15185 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15186
15187 PR tree-optimization/46834
15188 PR tree-optimization/46994
15189 PR tree-optimization/46995
15190 * graphite-sese-to-poly.c (used_outside_reduction): New.
15191 (detect_commutative_reduction): Call used_outside_reduction.
15192 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15193 translate_scalar_reduction_to_array only when at least one
15194 loop-phi/close-phi tuple has been detected.
15195
15196 2011-02-08 Richard Guenther <rguenther@suse.de>
15197
15198 PR middle-end/47639
15199 * tree-vect-generic.c (expand_vector_operations_1): Update
15200 stmts here ...
15201 (expand_vector_operations): ... not here. Cleanup EH info
15202 and the CFG if required.
15203
15204 2011-02-08 Richard Guenther <rguenther@suse.de>
15205
15206 PR tree-optimization/47641
15207 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15208 require type compatibility.
15209
15210 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15211
15212 * gimple-low.c (lower_function_body): Don't remove the location of
15213 the return statement here.
15214 (lower_gimple_return): Do it here instead but only if the return
15215 statement is actually used twice.
15216
15217 2011-02-08 Richard Guenther <rguenther@suse.de>
15218
15219 PR tree-optimization/47632
15220 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15221 unused up_to_stmt parameter, return whether cfg-cleanup is
15222 necessary, remove EH info properly.
15223 (forward_propagate_into_gimple_cond): Adjust caller.
15224 (forward_propagate_into_cond): Likewise.
15225 (forward_propagate_comparison): Likewise.
15226 (tree_ssa_forward_propagate_single_use_vars): Make
15227 forward_propagate_comparison case similar to the two others.
15228
15229 2011-02-08 Nick Clifton <nickc@redhat.com>
15230
15231 * config/mn10300/mn10300.opt (mliw): New command line option.
15232 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15233 (liw_bundling): New automaton.
15234 (liw): New attribute.
15235 (liw_op): New attribute.
15236 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15237 (movsi_internal): Add LIW attributes.
15238 (andsi3): Likewise.
15239 (iorsi3): Likewise.
15240 (xorsi3): Likewise.
15241 (addsi3): Separate register and immediate alternatives.
15242 Add LIW attributes.
15243 (subsi3): Likewise.
15244 (cmpsi): Likewise.
15245 (aslsi3): Likewise.
15246 (lshrsi3): Likewise.
15247 (ashrsi3): Likewise.
15248 (liw): New pattern.
15249 * config/mn10300/mn10300.c (liw_op_names): New
15250 (mn10300_print_operand): Handle 'W' operand descriptor.
15251 (extract_bundle): New function.
15252 (check_liw_constraints): New function.
15253 (liw_candidate): New function.
15254 (mn10300_bundle_liw): New function.
15255 (mn10300_reorg): New function.
15256 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15257 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15258 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15259 __LIW__ or __NO_LIW__.
15260 * doc/invoke.texi: Describe the -mliw command line option.
15261
15262 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15263
15264 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15265 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15266 pthread_mutex_unlock): Remove.
15267 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15268 * config/pa/t-pa64: Likewise.
15269 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15270 shared libc if not linking against libpthread.
15271 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15272
15273 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15274
15275 PR target/47558
15276 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15277 on 10.6 and later to ensure that we always use the unwinder from
15278 the system. Only add -no_compact_unwind when tarteting darwin
15279 10.6 or later.
15280
15281 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15282
15283 PR target/46997
15284 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15285 (vec_interleave_lowv2sf): Ditto.
15286 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15287 (vec_extract_oddv2sf): Ditto.
15288
15289 2011-02-07 Mike Stump <mikestump@comcast.net>
15290
15291 PR target/42333
15292 Add __ieee_divdc3 entry point.
15293 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15294 entry point.
15295 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15296 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15297 * config/darwin.c (darwin_rename_builtins): Add.
15298 * config/darwin-protos.h (darwin_rename_builtins): Add.
15299
15300 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15301
15302 PR target/47636
15303 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15304 for the condition.
15305
15306 2011-02-07 Mike Stump <mikestump@comcast.net>
15307
15308 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15309
15310 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15311
15312 PR target/47534
15313 * config/avr/libgcc.S (exit): Move .endfunc
15314
15315 2011-02-07 Richard Guenther <rguenther@suse.de>
15316
15317 PR tree-optimization/47615
15318 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15319 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15320 (run_scc_vn): Initialize it.
15321 (visit_reference_op_load): Use it.
15322 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15323
15324 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15325
15326 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15327 DImode trapping arithmetic libfuncs.
15328
15329 2011-02-07 Richard Guenther <rguenther@suse.de>
15330
15331 PR tree-optimization/47621
15332 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15333 two duplicates ...
15334 (execute_update_addresses_taken): ... here. Make it more
15335 conservative in what we accept.
15336
15337 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15338
15339 * config/sparc/freebsd.h (ASM_SPEC): Define.
15340 * config/sparc/vxworks.h (ASM_SPEC): Define.
15341
15342 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15343
15344 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15345
15346 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
15347
15348 * doc/invoke.texi: Remove reference to compiler internals from
15349 user documentation.
15350
15351 * reg-notes.def: Remove REG_VALUE_PROFILE.
15352 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15353
15354 2011-02-05 Jakub Jelinek <jakub@redhat.com>
15355
15356 PR middle-end/47610
15357 * varasm.c (default_section_type_flags): If decl is NULL,
15358 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15359
15360 2011-02-05 Jie Zhang <jie@codesourcery.com>
15361
15362 PR debug/42631
15363 * web.c (entry_register): Don't clobber the number of the
15364 first uninitialized reference in used[].
15365
15366 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
15367
15368 PR tree-optimization/46194
15369 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15370 (build_classic_dist_vector_1): Do not represent classic distance
15371 vectors when the access functions are variating in different loops.
15372
15373 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15374
15375 * config/mips/iris6.opt: New.
15376 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15377
15378 2011-02-04 Richard Henderson <rth@redhat.com>
15379 Steve Ellcey <sje@cup.hp.com>
15380
15381 PR target/46997
15382 * config/ia64/predicates.md (mux1_brcst_element): New.
15383 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15384 * config/ia64/ia64.c (ia64_unpack_assemble): New.
15385 (ia64_unpack_sign): New.
15386 (ia64_expand_unpack): Rewrite using new routines.
15387 (ia64_expand_widen_sum): Ditto.
15388 (ia64_expand_dot_prod_v8qi): Ditto.
15389 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
15390 routines, add endian check.
15391 (pmpy2_even): Rename from pmpy2_r, add endian check.
15392 (pmpy2_odd): Rename from pmpy2_l, add endian check.
15393 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
15394 (vec_widen_smult_hi_v4hi): Ditto.
15395 (vec_widen_umult_lo_v4hi): Ditto.
15396 (vec_widen_umult_hi_v4hi): Ditto.
15397 (mulv2si3): Change endian checks.
15398 (sdot_prodv4hi): Rewrite with new calls.
15399 (udot_prodv4hi): New.
15400 (vec_pack_ssat_v4hi): Add endian check.
15401 (vec_pack_usat_v4hi): Ditto.
15402 (vec_pack_ssat_v2si): Ditto.
15403 (max1_even): Rename from max1_r, add endian check.
15404 (max1_odd): Rename from max1_l, add endian check.
15405 (*mux1_rev): Format change.
15406 (*mux1_mix): Ditto.
15407 (*mux1_shuf): Ditto.
15408 (*mux1_alt): Ditto.
15409 (*mux1_brcst_v8qi): Use new predicate.
15410 (vec_extract_evenv8qi): Remove endian check.
15411 (vec_extract_oddv8qi): Ditto.
15412 (vec_interleave_lowv4hi): Format change.
15413 (vec_interleave_highv4hi): Ditto.
15414 (mix2_even): Rename from mix2_r, add endian check.
15415 (mix2_odd): Rename from mux2_l, add endian check.
15416 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
15417 (vec_extract_evenodd_helper): Format change.
15418 (vec_extract_evenv4hi): Remove endian check.
15419 (vec_extract_oddv4hi): Remove endian check.
15420 (vec_interleave_lowv2si): Format change.
15421 (vec_interleave_highv2si): Format change.
15422 (vec_initv2si): Remove endian check.
15423 (vecinit_v2si): Add endian check.
15424 (reduc_splus_v2sf): Add endian check.
15425 (reduc_smax_v2sf): Ditto.
15426 (reduc_smin_v2sf): Ditto.
15427 (vec_initv2sf): Remove endian check.
15428 (fpack): Add endian check.
15429 (fswap): Add endian check.
15430 (vec_interleave_highv2sf): Add endian check.
15431 (vec_interleave_lowv2sf): Add endian check.
15432 (fmix_lr): Add endian check.
15433 (vec_setv2sf): Format change.
15434 (*vec_extractv2sf_0_be): Use shift to extract operand.
15435 (*vec_extractv2sf_1_be): New.
15436 (vec_pack_trunc_v4hi): Add endian check.
15437 (vec_pack_trunc_v2si): Format change.
15438
15439 2011-02-04 Jakub Jelinek <jakub@redhat.com>
15440
15441 PR inline-asm/23200
15442 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
15443 do bb, locus and block comparison and disallow loads if it is not set.
15444 (stmt_is_replaceable_p): New function.
15445 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
15446 callers.
15447 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
15448 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
15449 SSA_NAME_DEF_STMT.
15450 * tree-flow.h (stmt_is_replaceable_p): New prototype.
15451
15452 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15453
15454 * config/rs6000/xilinx.opt: New.
15455 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
15456
15457 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15458
15459 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
15460
15461 2011-02-03 Anatoly Sokolov <aesok@post.ru>
15462
15463 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
15464 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15465 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
15466 secondary_reload_info, xtensa_secondary_reload): Remove.
15467 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
15468 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15469 (xtensa_preferred_reload_class): Make static. Change return and
15470 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
15471 Use CONST_DOUBLE_P predicate.
15472 (xtensa_preferred_output_reload_class): New function.
15473 (xtensa_secondary_reload): Make static.
15474
15475 2011-02-03 Joseph Myers <joseph@codesourcery.com>
15476
15477 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
15478 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
15479 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
15480
15481 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15482
15483 PR middle-end/31490
15484 * output.h (SECTION_RELRO): Define.
15485 (SECTION_MACH_DEP): Adjust.
15486 (get_variable_section): New prototype.
15487 * varpool.c (varpool_finalize_named_section_flags): New function.
15488 (varpool_assemble_pending_decls): Call it.
15489 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
15490 * cgraphunit.c (cgraph_output_in_order): Call
15491 varpool_finalize_named_section_flags.
15492 * varasm.c (get_section): Allow section flags conflicts between
15493 relro and read-only sections if the section hasn't been declared yet.
15494 Set SECTION_OVERRIDE after diagnosing section type conflict.
15495 (get_variable_section): No longer static.
15496 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
15497 readonly sections that need relocations.
15498 (decl_readonly_section_1): New function.
15499 (decl_readonly_section): Use it.
15500
15501 Revert:
15502 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
15503 Steve Ellcey <sje@cup.hp.com>
15504
15505 PR middle-end/31490
15506 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
15507 if section attribute used.
15508
15509 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15510
15511 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
15512 * config/darwin.c (SECTION_NO_ANCHOR): Define.
15513 (darwin_init_sections): Remove assertion.
15514
15515 2011-02-03 Nick Clifton <nickc@redhat.com>
15516
15517 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
15518 lt and ge.
15519 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
15520 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
15521 instead of "n" and "pz".
15522 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
15523 CC_FLAG_S.
15524
15525 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15526
15527 PR target/47312
15528 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
15529 fma, expand FMA_EXPR as fma{,f,l} call.
15530
15531 PR lto/47274
15532 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
15533 copy them into a unsigned char variable and pass address of it to
15534 lto_output_data_stream.
15535
15536 PR target/47564
15537 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
15538 around backend_init_target and lang_dependent_init_target calls.
15539 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
15540 (verify_cgraph_node): Don't call set_cfun here. Use
15541 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
15542 Set error_found for incorrectly represented calls to thunks.
15543
15544 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15545
15546 PR debug/43092
15547 PR rtl-optimization/43494
15548 * rtl.h (for_each_inc_dec_fn): New type.
15549 (for_each_inc_dec): Declare.
15550 * rtlanal.c (struct for_each_inc_dec_ops): New type.
15551 (for_each_inc_dec_find_inc_dec): New fn.
15552 (for_each_inc_dec_find_mem): New fn.
15553 (for_each_inc_dec): New fn.
15554 * dse.c (struct insn_size): Remove.
15555 (replace_inc_dec, replace_inc_dec_mem): Remove.
15556 (emit_inc_dec_insn_before): New fn.
15557 (check_for_inc_dec): Use it, along with for_each_inc_dec.
15558 (canon_address): Pass mem modes to cselib_lookup.
15559 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
15560 (cselib_lookup_from_insn): Likewise.
15561 (cselib_subst_to_values): Likewise.
15562 * cselib.c (find_slot_memmode): New var.
15563 (cselib_find_slot): New fn. Use it instead of
15564 htab_find_slot_with_hash everywhere.
15565 (entry_and_rtx_equal_p): Use find_slot_memmode.
15566 (autoinc_split): New fn.
15567 (rtx_equal_for_cselib_p): Rename and implement in terms of...
15568 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
15569 Deal with autoinc. Special-case recursion into MEMs.
15570 (cselib_hash_rtx): Likewise.
15571 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
15572 address and MEM modes.
15573 (cselib_subst_to_values): Add memmode, pass it on.
15574 Deal with autoinc.
15575 (cselib_lookup): Add memmode argument, pass it on.
15576 (cselib_lookup_from_insn): Add memmode.
15577 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
15578 (struct cselib_record_autoinc_data): New.
15579 (cselib_record_autoinc_cb): New fn.
15580 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
15581 mode to cselib_lookup. Reset autoinced REGs here instead of...
15582 (cselib_process_insn): ... here.
15583 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
15584 to cselib_lookup.
15585 (add_uses): Likewise, also to cselib_subst_to_values.
15586 (add_stores): Likewise.
15587 * sched-deps.c (add_insn_mem_dependence): Pass mode to
15588 cselib_subst_to_values.
15589 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
15590 * gcse.c (do_local_cprop): Adjusted.
15591 * postreload.c (reload_cse_simplify_set): Adjusted.
15592 (reload_cse_simplify_operands): Adjusted.
15593 * sel-sched-dump (debug_mem_addr_value): Pass mode.
15594
15595 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15596
15597 PR tree-optimization/45122
15598 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
15599 unsafe assumptions when there's more than one loop exit.
15600
15601 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15602
15603 PR target/47272
15604 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15605 Document using vector double with the load/store builtins, and
15606 that the load/store builtins always use Altivec instructions.
15607
15608 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
15609 to use altivec memory instructions, even on VSX.
15610 (vector_altivec_store_<mode>): Ditto.
15611
15612 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
15613 function.
15614
15615 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15616 V2DF, V2DI support to load/store overloaded builtins.
15617
15618 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
15619 altivec load/store builtins for V2DF/V2DI types.
15620
15621 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15622 set avoid indexed addresses on power6 if -maltivec.
15623 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
15624 vector_altivec_load/vector_altivec_store builtins.
15625 (altivec_expand_st_builtin): Ditto.
15626 (altivec_expand_builtin): Add VSX memory builtins.
15627 (rs6000_init_builtins): Add V2DI types to internal types.
15628 (altivec_init_builtins): Add support for V2DF/V2DI altivec
15629 load/store builtins.
15630 (rs6000_address_for_altivec): Insure memory address is appropriate
15631 for Altivec.
15632
15633 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
15634 vec_vsx_ld and vec_vsx_st.
15635 (vsx_store_<mode>): Ditto.
15636
15637 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
15638 variables to hold long long types for VSX vector memory builtins.
15639 (RS6000_BTI_unsigned_long_long): Ditto.
15640 (long_long_integer_type_internal_node): Ditti.
15641 (long_long_unsigned_type_internal_node): Ditti.
15642
15643 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
15644 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
15645 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
15646
15647 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
15648 short cuts.
15649 (vec_vsx_st): Ditto.
15650
15651 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15652
15653 * config/pa/pa-hpux10.opt: New.
15654 * config/hpux11.opt (pthread): New Driver option.
15655 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
15656 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
15657
15658 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15659
15660 * config/ia64/vms.opt: New.
15661 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
15662
15663 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15664
15665 PR target/47580
15666 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
15667 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15668 generator functions.
15669 (vsx_floatuns<VSi><mode>2): Ditto.
15670 (vsx_fix_trunc<mode><VSi>2): Ditto.
15671 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15672
15673 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15674
15675 * config/i386/djgpp.opt (posix): New Driver option.
15676
15677 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15678
15679 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15680 Move to the unsupported targets list.
15681
15682 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15683
15684 PR rtl-optimization/47525
15685 * df-scan.c: Update copyright years.
15686 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15687 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15688
15689 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15690
15691 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15692 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15693 (ASM_OUTPUT_ASCII): Remove.
15694 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15695
15696 2011-02-02 Jeff Law <law@redhat.com>
15697
15698 PR middle-end/47543
15699 * reload.c (find_reloads_address): Handle reg+d address where both
15700 components are invalid by reloading the entire address.
15701
15702 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15703 Richard Guenther <rguenther@suse.de>
15704
15705 PR tree-optimization/40979
15706 PR bootstrap/47044
15707 * passes.c (init_optimization_passes): After LIM call copy_prop
15708 and DCE to clean up.
15709 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15710
15711 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15712
15713 PR tree-optimization/47576
15714 PR tree-optimization/47555
15715 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15716 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15717 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15718 * tree-scalar-evolution.c (follow_ssa_edge): Use
15719 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15720
15721 2011-02-02 Richard Guenther <rguenther@suse.de>
15722
15723 PR tree-optimization/47566
15724 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15725
15726 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15727
15728 PR debug/47106
15729 PR debug/47402
15730 * tree-inline.c (declare_return_variable): Remove unused caller
15731 variable.
15732
15733 PR debug/47106
15734 PR debug/47402
15735 * tree-flow-inline.h (clear_is_used, is_used_p): New.
15736 * cfgexpand.c (account_used_vars_for_block): Use them.
15737 * tree-nrv.c (tree_nrv): Likewise.
15738 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15739 (dump_scope_block): Likewise.
15740 (remove_unused_locals): Likewise.
15741
15742 PR debug/47106
15743 PR debug/47402
15744 * tree-inline.c (declare_return_variable): Add result decl to
15745 local decls only once.
15746 * gimple-low.c (record_vars_into): Mark newly-created variables
15747 as referenced.
15748
15749 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15750
15751 PR debug/47498
15752 PR debug/47501
15753 PR debug/45136
15754 PR debug/45130
15755 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15756 debug insns.
15757 (no_real_insns_p, schedule_block, set_priorities): Drop special
15758 treatment of boundary debug insns.
15759 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15760 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15761 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15762 (BOUNDARY_DEBUG_INSN_P): Likewise.
15763 (SCHEDULE_DEBUG_INSN_P): Likewise.
15764 * sched-rgn.c (init_ready_list): Drop special treatment of
15765 boundary debug insns.
15766 * final.c (rest_of_clean_state): Clear notes' BB.
15767
15768 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15769
15770 * config/openbsd.opt (assert=): New Driver option.
15771
15772 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15773
15774 * config/i386/nto.opt: New.
15775 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15776
15777 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15778
15779 * config/i386/netware.opt: New.
15780 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15781
15782 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15783
15784 * config/interix.opt (posix): New Driver option.
15785
15786 2011-02-01 DJ Delorie <dj@redhat.com>
15787
15788 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15789
15790 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15791 class for A0/A1.
15792
15793 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15794
15795 PR tree-optimization/47561
15796 * toplev.c (process_options): Print the Graphite flags. Add
15797 flag_loop_flatten to the list of options requiring Graphite.
15798
15799 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15800
15801 * config/i386/cygming.opt (posix): New Driver option.
15802
15803 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15804
15805 * config/arm/vxworks.opt: New.
15806 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15807
15808 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15809
15810 * config/alpha/elf.opt: New.
15811 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15812 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15813
15814 2011-02-01 Richard Guenther <rguenther@suse.de>
15815
15816 PR tree-optimization/47559
15817 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15818 store-motion on references that can throw.
15819
15820 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15821
15822 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15823 * tree-pass.h (TDF_CSELIB): New macro.
15824 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15825 cselib_lookup): Check for it rather than for TDF_DETAILS.
15826
15827 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15828
15829 PR driver/47547
15830 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15831 is HOST_BIT_BUCKET.
15832
15833 * opts.c (finish_options): Don't add x_aux_base_name if it is
15834 HOST_BIT_BUCKET.
15835
15836 2011-02-01 Richard Guenther <rguenther@suse.de>
15837
15838 PR tree-optimization/47555
15839 Revert
15840 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15841
15842 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15843
15844 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15845
15846 PR gcc/46692
15847 * config/lm32/t-lm32: Add multilib for all CPU options.
15848
15849 2011-02-01 Richard Guenther <rguenther@suse.de>
15850
15851 PR tree-optimization/47541
15852 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15853 sure to have a field at offset zero.
15854
15855 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15856
15857 * config/arc/arc.opt (EB, EL): New Driver options.
15858
15859 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15860
15861 * config/alpha/osf5.opt: New.
15862 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15863
15864 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15865
15866 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15867
15868 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15869
15870 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15871 -floop-interchange.
15872 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15873 is an alias of -floop-interchange and that it requires the
15874 Graphite infrastructure.
15875 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15876 flag_loop_interchange based on the value of flag_tree_loop_linear.
15877
15878 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15879 Richard Guenther <rguenther@suse.de>
15880
15881 PR tree-optimization/47538
15882 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15883 type instead of r1type, except for comparisons. For right
15884 shifts and comparisons punt if there are mismatches in
15885 sizetype vs. non-sizetype types.
15886
15887 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15888
15889 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15890 avx_runtime.
15891
15892 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15893
15894 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15895 version number.
15896 * configure: Regenerate.
15897
15898 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15899
15900 * configure.ac (gcc_cv_ld_static_option): Define.
15901 (gcc_cv_ld_dynamic_option): Define.
15902 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15903 instead.
15904 (HAVE_LD_STATIC_DYNAMIC): Update message.
15905 (LD_STATIC_OPTION): Define.
15906 (LD_DYNAMIC_OPTION): Define.
15907 * configure: Regenerate.
15908 * config.in: Regenerate.
15909 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15910 HAVE_LD_STATIC_DYNAMIC]: Use them.
15911
15912 2011-01-31 Nick Clifton <nickc@redhat.com>
15913
15914 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15915 registers inside interrupt handlers if the handler is not a leaf
15916 function.
15917
15918 2011-01-31 Nick Clifton <nickc@redhat.com>
15919
15920 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15921 reg_renumber returning an INVALID_REGNUM.
15922
15923 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15924
15925 PR libgcj/44341
15926 * doc/install.texi: Document host options discarded when cross
15927 configuring target libraries.
15928
15929 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15930
15931 Reverted:
15932 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15933 PR debug/45136
15934 PR debug/45130
15935 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15936 debug insns.
15937 (no_real_insns_p, schedule_block, set_priorities): Drop special
15938 treatment of boundary debug insns.
15939 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15940 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15941 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15942 (BOUNDARY_DEBUG_INSN_P): Likewise.
15943 (SCHEDULE_DEBUG_INSN_P): Likewise.
15944 * sched-rgn.c (init_ready_list): Drop special treatment of
15945 boundary debug insns.
15946 * final.c (rest_of_clean-state): Clear notes' BB.
15947
15948 2011-01-31 Alan Modra <amodra@gmail.com>
15949
15950 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15951 toc relative expressions as we do in print_operand_address.
15952
15953 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15954
15955 * doc/extend.texi: Follow spelling conventions.
15956 * doc/invoke.texi: Fix a typo.
15957
15958 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15959
15960 * config/hpux11.opt: New.
15961 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15962 ia64*-*-hpux*): Use hpux11.opt.
15963
15964 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15965
15966 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15967 to tmake_file.
15968
15969 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15970
15971 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15972 support sites.
15973
15974 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15975
15976 * doc/install.texi (Binaries): Remove outdated reference for
15977 Motorola 68HC11/68HC12 downloads.
15978
15979 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15980
15981 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15982 Drepper's paper.
15983
15984 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15985
15986 PR bootstrap/47147
15987 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15988 used by NetBSD.
15989
15990 2011-01-28 Ahmad Sharif <asharif@google.com>
15991
15992 * value-prof.c (check_counter): Corrected error message.
15993
15994 2011-01-29 Jie Zhang <jie@codesourcery.com>
15995
15996 * config/arm/arm.c (arm_legitimize_reload_address): New.
15997 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15998 arm_legitimize_reload_address.
15999 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16000
16001 2011-01-28 Ian Lance Taylor <iant@google.com>
16002
16003 * godump.c (go_define): Ignore macros whose definitions include
16004 two adjacent operands.
16005
16006 2011-01-28 Jakub Jelinek <jakub@redhat.com>
16007
16008 PR target/42894
16009 * varasm.c (force_const_mem): Store copy of x in desc->constant
16010 instead of x itself.
16011 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16012 itself into REG_EQUAL note.
16013
16014 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16015
16016 * config/freebsd.opt (posix, rdynamic): New Driver options.
16017
16018 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16019
16020 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16021 -Bstatic/-Bdynamic.
16022 * configure: Regenerate.
16023
16024 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16025
16026 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16027 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16028
16029 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16030
16031 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16032 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16033 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16034 (s390_preferred_reload_class): Make static. Change return and
16035 'rclass' argument type to reg_class_t.
16036
16037 2011-01-27 Jan Hubicka <jh@suse.cz>
16038
16039 PR middle-end/46949
16040 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16041 (process_function_and_variable_attributes): Check defined weakrefs.
16042
16043 2011-01-27 Martin Jambor <mjambor@suse.cz>
16044
16045 PR tree-optimization/47228
16046 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16047 build_ref_for_offset.
16048
16049 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16050
16051 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16052
16053 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16054
16055 PR rtl-optimization/46856
16056 * postreload.c (reload_combine_recognize_const_pattern): Do not
16057 separate cc0 setter and user on cc0 targets.
16058
16059 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16060
16061 PR c/43082
16062 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16063 passed a VOID_TYPE expression, immediately emit an error and
16064 return error_mark_node.
16065
16066 2011-01-26 Jeff Law <law@redhat.com>
16067
16068 PR rtl-optimization/47464
16069 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16070 rather than may_trap_p as needed.
16071
16072 2011-01-26 DJ Delorie <dj@redhat.com>
16073
16074 PR rtl-optimization/46878
16075 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16076 setter/user dependency as well.
16077
16078 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16079
16080 PR rtl-optimization/44469
16081 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16082 after removing trivially dead basic blocks.
16083
16084 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16085
16086 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16087 * config/frv/frv.h (LINK_SPEC): Likewise.
16088 * config/i386/netware.h (LINK_SPEC): Likewise.
16089 * config/m68k/linux.h (ASM_SPEC): Likewise.
16090 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16091 * config/rs6000/sysv4.h (LINK_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.
16096
16097 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16098
16099 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16100 * config/frv/frv.h (ASM_SPEC): Likewise.
16101 * config/m68k/linux.h (ASM_SPEC): Likewise.
16102 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16103 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16104 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16105 * config/sparc/linux.h (ASM_SPEC): Likewise.
16106 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16107 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16108
16109 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16110
16111 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16112 * config/frv/frv.h (LINK_SPEC): Likewise.
16113 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16114
16115 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16116
16117 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16118 * config/frv/frv.h (ASM_SPEC): Likewise.
16119 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16120 * config/m68k/linux.h (ASM_SPEC): Likewise.
16121 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16122 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16123 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16124 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16125 * config/sparc/linux.h (ASM_SPEC): Likewise.
16126 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16127 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16128 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16129
16130 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16131
16132 PR target/46997
16133 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16134 (*mux2): Ditto.
16135 (vec_extract_evenodd_help): Ditto.
16136 (vec_extract_evenv4hi): Ditto.
16137 (vec_extract_oddv4hi): Ditto.
16138 (vec_interleave_lowv2si): Ditto.
16139 (vec_interleave_highv2si): Ditto.
16140 (vec_extract_evenv2si): Ditto.
16141 (vec_extract_oddv2si: Ditto.
16142 (vec_pack_trunc_v2si): Ditto.
16143
16144 2011-01-22 Jan Hubicka <jh@suse.cz>
16145
16146 PR target/47237
16147 * cgraph.h (cgraph_local_info): New field can_change_signature.
16148 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16149 signature can change.
16150 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16151 can change.
16152 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16153 (cgraph_function_versioning): We can not change signature of functions
16154 that don't allow that.
16155 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16156 (lto_input_node): Likewise.
16157 * ipa-inline.c (compute_inline_parameters): Compute
16158 local.can_change_signature.
16159 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16160 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16161 functions that can not change signature.
16162 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16163 init_cumulative_args): Do not use local calling conventions
16164 for functions that can not change signature.
16165
16166 2011-01-22 Jan Hubicka <jh@suse.cz>
16167
16168 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16169
16170 2011-01-26 Richard Guenther <rguenther@suse.de>
16171
16172 PR tree-optimization/47190
16173 * cgraphunit.c (process_common_attributes): New function.
16174 (process_function_and_variable_attributes): Use it.
16175
16176 2011-01-26 Richard Guenther <rguenther@suse.de>
16177
16178 PR lto/47423
16179 * cgraphbuild.c (record_eh_tables): Record reference to personality
16180 function.
16181
16182 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16183
16184 PR debug/45454
16185 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16186 non-debug insns from moving up.
16187
16188 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16189
16190 PR target/40125
16191 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16192 t-dlldir{,-x} fragment for build and add it to tmake_file.
16193 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16194 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16195 * config/i386/t-dlldir: New file.
16196 (SHLIB_DLLDIR): Define.
16197 * config/i386/t-dlldir-x: New file.
16198 (SHLIB_DLLDIR): Define.
16199 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16200 (SHLIB_INSTALL): Use it.
16201
16202 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16203
16204 PR target/47246
16205 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16206 lower bound of the allowed Thumb-2 coprocessor load/store
16207 index range to -256. Add explaining comment.
16208
16209 2011-01-25 Ian Lance Taylor <iant@google.com>
16210
16211 * godump.c (go_define): Improve lexing of macro expansion to only
16212 accept expressions which match Go spec.
16213
16214 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16215
16216 PR c++/43601
16217 * tree.c (handle_dll_attribute): Handle it.
16218 * doc/extend.texi (@item dllexport): Mention it.
16219 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16220
16221 2011-01-25 Ian Lance Taylor <iant@google.com>
16222
16223 PR tree-optimization/26854
16224 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16225 (decl_jump_unsafe): Move higher in file, with no other change.
16226 (bind): Set has_jump_unsafe_decl if appropriate.
16227 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16228 (check_earlier_gotos): Likewise.
16229 (c_check_switch_jump_warnings): Likewise.
16230
16231 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16232
16233 * doc/invoke.texi (Warning Options): Add missing hyphen.
16234 (-fprofile-dir): Minor grammatical fixes.
16235 (-fbranch-probabilities): Likewise.
16236
16237 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16238
16239 PR debug/45136
16240 PR debug/45130
16241 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16242 debug insns.
16243 (no_real_insns_p, schedule_block, set_priorities): Drop special
16244 treatment of boundary debug insns.
16245 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16246 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16247 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16248 (BOUNDARY_DEBUG_INSN_P): Likewise.
16249 (SCHEDULE_DEBUG_INSN_P): Likewise.
16250 * sched-rgn.c (init_ready_list): Drop special treatment of
16251 boundary debug insns.
16252 * final.c (rest_of_clean-state): Clear notes' BB.
16253
16254 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16255
16256 * Makefile.in (LAMBDA_H): Removed.
16257 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16258 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16259 lambda-trans.o, and tree-loop-linear.o.
16260 (lto-symtab.o): Remove dependence on LAMBDA_H.
16261 (tree-loop-linear.o): Remove rule.
16262 (lambda-mat.o): Same.
16263 (lambda-trans.o): Same.
16264 (lambda-code.o): Same.
16265 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16266 (tree-vect-slp.o): Same.
16267 * hwint.h (gcd): Moved here.
16268 (least_common_multiple): Same.
16269 * lambda-code.c: Removed.
16270 * lambda-mat.c: Removed.
16271 * lambda-trans.c: Removed.
16272 * lambda.h: Removed.
16273 * tree-loop-linear.c: Removed.
16274 * lto-symtab.c: Do not include lambda.h.
16275 * omega.c (gcd): Removed.
16276 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16277 * tree-data-ref.c (print_lambda_vector): Moved here.
16278 (lambda_vector_copy): Same.
16279 (lambda_matrix_copy): Same.
16280 (lambda_matrix_id): Same.
16281 (lambda_vector_first_nz): Same.
16282 (lambda_matrix_row_add): Same.
16283 (lambda_matrix_row_exchange): Same.
16284 (lambda_vector_mult_const): Same.
16285 (lambda_vector_negate): Same.
16286 (lambda_matrix_row_negate): Same.
16287 (lambda_vector_equal): Same.
16288 (lambda_matrix_right_hermite): Same.
16289 * tree-data-ref.h: Do not include lambda.h.
16290 (lambda_vector): Moved here.
16291 (lambda_matrix): Same.
16292 (dependence_level): Same.
16293 (lambda_transform_legal_p): Removed declaration.
16294 (lambda_collect_parameters): Same.
16295 (lambda_compute_access_matrices): Same.
16296 (lambda_vector_gcd): Same.
16297 (lambda_vector_new): Same.
16298 (lambda_vector_clear): Same.
16299 (lambda_vector_lexico_pos): Same.
16300 (lambda_vector_zerop): Same.
16301 (lambda_matrix_new): Same.
16302 * tree-flow.h (least_common_multiple): Removed declaration.
16303 * tree-parloops.c (lambda_trans_matrix): Moved here.
16304 (LTM_MATRIX): Same.
16305 (LTM_ROWSIZE): Same.
16306 (LTM_COLSIZE): Same.
16307 (LTM_DENOMINATOR): Same.
16308 (lambda_trans_matrix_new): Same.
16309 (lambda_matrix_vector_mult): Same.
16310 (lambda_transform_legal_p): Same.
16311 * tree-pass.h (pass_linear_transform): Removed declaration.
16312 * tree-ssa-loop.c (tree_linear_transform): Removed.
16313 (gate_tree_linear_transform): Removed.
16314 (pass_linear_transform): Removed.
16315 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16316 flag_loop_interchange.
16317
16318 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16319
16320 PR tree-optimization/47265
16321 PR tree-optimization/47443
16322 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16323 if name still has some uses.
16324
16325 2011-01-25 Martin Jambor <mjambor@suse.cz>
16326
16327 PR tree-optimization/47382
16328 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16329 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16330
16331 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16332
16333 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16334 sjlj_except_unwind_info.
16335
16336 2011-01-25 Richard Guenther <rguenther@suse.de>
16337
16338 PR tree-optimization/47426
16339 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16340 visible functions results escape.
16341
16342 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16343
16344 PR target/45701
16345 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16346 (arm_get_frame_offsets): Use it.
16347
16348 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16349 Jakub Jelinek <jakub@redhat.com>
16350
16351 PR tree-optimization/47271
16352 * tree-if-conv.c (bb_postdominates_preds): New.
16353 (if_convertible_bb_p): Call bb_postdominates_preds.
16354 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16355 (predicate_scalar_phi): Call bb_postdominates_preds.
16356
16357 2011-01-25 Nick Clifton <nickc@redhat.com>
16358
16359 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16360 * config/rx/rx.c (rx_function_value): Likewise.
16361 (rx_promote_function_mode): Likewise.
16362 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16363 in order to make it legitimate.
16364 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16365 make sure that the first operand is the same as the result register.
16366 (addsi3_unspec): Delete.
16367 (subdi3): Do not accept immediate operands.
16368 (subdi3_internal): Likewise.
16369
16370 2011-01-25 Jeff Law <law@redhat.com>
16371
16372 PR rtl-optimization/37273
16373 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16374 handle them like argument loads from stack slots. Do not double
16375 count memory for memory constants and argument loads from stack slots.
16376
16377 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16378
16379 PR tree-optimization/47427
16380 PR tree-optimization/47428
16381 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16382 coalesce if the new root var would be TREE_READONLY.
16383
16384 2011-01-25 Richard Guenther <rguenther@suse.de>
16385
16386 PR middle-end/47414
16387 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16388 correct type for TBAA.
16389
16390 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16391
16392 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
16393 (close_phi_written_to_memory): Call for_each_index with
16394 dr_indices_valid_in_loop.
16395
16396 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16397
16398 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
16399 when it is initialized.
16400
16401 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16402
16403 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
16404 call to graphite_find_data_references_in_stmt.
16405 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
16406 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
16407 call to graphite_find_data_references_in_stmt.
16408 (analyze_drs_in_stmts): Same.
16409 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
16410 in which the scalar analysis of indices is performed.
16411 (create_data_ref): Same. Update call to dr_analyze_indices.
16412 (find_data_references_in_stmt): Update call to create_data_ref.
16413 (graphite_find_data_references_in_stmt): Same.
16414 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
16415 declaration.
16416 (create_data_ref): Same.
16417 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
16418 call to create_data_ref.
16419
16420 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16421
16422 * graphite-sese-to-poly.c (build_poly_scop): Move
16423 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
16424
16425 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16426
16427 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
16428 VAR_DECL, PARM_DECL, and RESULT_DECL.
16429
16430 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16431
16432 * graphite-dependences.c (reduction_dr_1): Allow several reductions
16433 in a reduction PBB.
16434 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
16435 that have already been marked as PBB_IS_REDUCTION.
16436
16437 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16438
16439 * graphite-scop-detection.c (same_close_phi_node): New.
16440 (remove_duplicate_close_phi): New.
16441 (make_close_phi_nodes_unique): New.
16442 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
16443
16444 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16445
16446 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
16447 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
16448 of both data references to be the same.
16449
16450 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16451
16452 * graphite-dependences.c (build_lexicographical_constraint): Remove
16453 the gdim parameter.
16454 (build_lexicographical_constraint): Adjust call to
16455 ppl_powerset_is_empty.
16456 (dependence_polyhedron): Same.
16457 (graphite_legal_transform_dr): Same.
16458 (graphite_carried_dependence_level_k): Same.
16459 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
16460 parameter.
16461 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
16462
16463 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16464
16465 * graphite-sese-to-poly.c
16466 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16467 (close_phi_written_to_memory): New.
16468 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
16469 and unshare_expr.
16470
16471 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16472
16473 * doc/install.texi: Update the expected version number of PPL to 0.11.
16474 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
16475 #if PPL_VERSION_MINOR < 11.
16476
16477 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16478
16479 * graphite-dependences.c: Include graphite-cloog-util.h.
16480 (new_poly_ddr): Inlined into dependence_polyhedron.
16481 (free_poly_ddr): Moved close by new_poly_ddr.
16482 (dependence_polyhedron_1): Renamed dependence_polyhedron.
16483 Early return NULL when ppl_powerset_is_empty returns true.
16484 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
16485 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
16486 (graphite_legal_transform_dr): Call new_poly_ddr.
16487 (graphite_carried_dependence_level_k): Same.
16488 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
16489 (dot_transformed_deps_stmt_1): Removed.
16490 (dot_deps_stmt_1): Call dot_deps_stmt_2.
16491 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
16492 (dot_deps_1): Call dot_deps_2.
16493 * Makefile.in (graphite-dependences.o): Add missing dependence on
16494 graphite-cloog-util.h.
16495
16496 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16497
16498 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
16499 (build_lexicographical_constraint): Same.
16500 (dependence_polyhedron_1): Same.
16501 (graphite_legal_transform_dr): Same.
16502 (graphite_carried_dependence_level_k): Same.
16503 * graphite-ppl.c (ppl_powerset_is_empty): New.
16504 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
16505 * tree-data-ref.c (dump_data_reference): Print the basic block index.
16506
16507 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16508
16509 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
16510 the "a followed by b" relation and document it.
16511
16512 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16513
16514 * graphite-dependences.c (build_lexicographical_constraint): Stop the
16515 iteration when the bag of constraints is empty.
16516
16517 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16518
16519 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
16520
16521 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16522
16523 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
16524 nest and two loop depths as parameters.
16525 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
16526 lst_perfect_nestify.
16527
16528 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16529
16530 * graphite-dependences.c (print_pddr): Call
16531 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
16532
16533 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16534
16535 * graphite-ppl.c (debug_gmp_value): New.
16536 * graphite-ppl.h (debug_gmp_value): Declared.
16537
16538 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
16539
16540 * doc/install.texi: Document availability of cloog-0.16.
16541
16542 2011-01-25 Vladimir Kargov <kargov@gmail.com>
16543
16544 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
16545 invalid postdominance info.
16546
16547 2011-01-24 Jan Hubicka <jh@suse.cz>
16548
16549 PR c/21659
16550 * doc/extend.texi (weak pragma): Drop claim that it must
16551 appear before definition.
16552 * varasm.c (merge_weak, declare_weak): Only sanity check
16553 that DECL is not output at a time it is declared weak.
16554
16555 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
16556
16557 * machmode.def: Fixed comments.
16558
16559 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
16560
16561 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
16562
16563 2011-01-24 Paul Koning <ni1d@arrl.net>
16564
16565 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
16566 WORDS_BIG_ENDIAN.
16567
16568 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
16569
16570 PR target/46519
16571 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
16572 (block_info): Add scanned and prev.
16573 (move_or_delete_vzeroupper_2): Return if the basic block
16574 has been scanned and the upper 128bit state is unchanged
16575 from the last scan.
16576 (move_or_delete_vzeroupper_1): Return true if the exit
16577 state is changed.
16578 (move_or_delete_vzeroupper): Visit basic blocks using the
16579 work-list based algorithm based on vt_find_locations in
16580 var-tracking.c.
16581
16582 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
16583
16584 2011-01-24 Nick Clifton <nickc@redhat.com>
16585
16586 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
16587 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
16588 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
16589 then define __v850e1__.
16590 * doc/invoke.texi: Document -mv850es.
16591
16592 2011-01-24 Richard Henderson <rth@redhat.com>
16593
16594 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
16595 compound unordered comparisons.
16596 * config/rx/rx.c (rx_split_fp_compare): Remove.
16597 * config/rx/rx-protos.h: Update.
16598 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
16599 (cbranchsf4): Don't call rx_split_fp_compare.
16600 (*cbranchsf4): Use rx_split_cbranch.
16601 (*cmpsf): Don't accept "i" constraint.
16602 (*conditional_branch): Only valid after reload.
16603 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
16604
16605 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16606
16607 PR target/47385
16608 * config/rs6000/altivec.md (vector constant splitters): Add
16609 support for creating vector single precision constants if -mvsx is
16610 used and we would create the constant using Altivec primitives.
16611
16612 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
16613 Richard Sandiford <rdsandiford@googlemail.com>
16614
16615 PR rtl-optimization/47166
16616 * reload1.c (emit_reload_insns): Disable the spill_reg_store
16617 mechanism for PRE_MODIFY and POST_MODIFY.
16618 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
16619 reloadreg.
16620
16621 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
16622
16623 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
16624
16625 2011-01-22 Jan Hubicka <jh@suse.cz>
16626
16627 PR lto/47333
16628 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
16629
16630 2011-01-22 Jan Hubicka <jh@suse.cz>
16631
16632 PR tree-optimization/43884
16633 PR lto/44334
16634 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
16635 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
16636
16637 2011-01-22 Anatoly Sokolov <aesok@post.ru>
16638
16639 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16640 * config/s390/s390.c (s390_register_move_cost,
16641 s390_memory_move_cost): New.
16642 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16643
16644 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16645
16646 PR middle-end/47401
16647 * except.c (sjlj_assign_call_site_values): Move setting the
16648 crtl->uses_eh_lsda flag to ...
16649 (sjlj_mark_call_sites): ... here.
16650 (sjlj_emit_function_enter): Support NULL dispatch label.
16651 (sjlj_build_landing_pads): In a function with no landing pads
16652 that still has must-not-throw regions, generate code to register
16653 a personality function with empty LSDA.
16654
16655 2011-01-21 Richard Henderson <rth@redhat.com>
16656
16657 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
16658
16659 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
16660
16661 * compare-elim.c: New file.
16662 * Makefile.in (OBJS-common): Add it.
16663 (compare-elim.o): New.
16664 * common.opt (fcompare-elim): New.
16665 * opts.c (default_options_table): Add OPT_fcompare_elim.
16666 * tree-pass.h (pass_compare_elim_after_reload): New.
16667 * passes.c (init_optimization_passes): Add it.
16668 * recog.h: Protect against re-inclusion.
16669 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16670 * doc/invoke.texi (-fcompare-elim): Document it.
16671 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16672 * doc/tm.texi: Rebuild.
16673
16674 2011-01-22 Nick Clifton <nickc@redhat.com>
16675
16676 * config/rx/rx.md (cstoresf4): Pass comparison operator to
16677 rx_split_fp_compare.
16678
16679 2011-01-22 Nick Clifton <nickc@redhat.com>
16680
16681 * config/rx/rx.md (UNSPEC_CONST): New.
16682 (deallocate_and_return): Wrap the amount popped off the stack in
16683 an UNSPEC_CONST in order to stop it being rejected by
16684 -mmax-constant-size.
16685 (pop_and_return): Add a "(return)" rtx.
16686 (call): Drop the immediate operand.
16687 (call_internal): Likewise.
16688 (call_value): Likewise.
16689 (call_value_internal): Likewise.
16690 (sibcall_internal): Likewise.
16691 (sibcall_value_internal): Likewise.
16692 (sibcall): Likewise. Generate an explicit call using
16693 sibcall_internal.
16694 (sibcall_value): Likewise.
16695 (mov<>): FAIL if a constant operand is not legitimate.
16696 (addsi3_unpsec): New pattern.
16697
16698 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16699 (ok_for_max_constant): New function.
16700 (gen_safe_add): New function.
16701 (rx_expand_prologue): Use gen_safe_add.
16702 (rx_expand_epilogue): Likewise.
16703 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16704 UNSPEC CONSTs.
16705
16706 2011-01-21 Jeff Law <law@redhat.com>
16707
16708 PR tree-optimization/47053
16709 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16710 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16711 statements are deleted.
16712 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16713 is nonempty, then purge dead edges and cleanup the CFG.
16714
16715 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16716
16717 PR debug/47402
16718 Temporarily revert:
16719 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16720 PR debug/47106
16721 * tree-dfa.c (create_var_ann): Mark variable as used.
16722
16723 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16724
16725 PR middle-end/45566
16726 * except.c (convert_to_eh_region_ranges): Emit queued no-region
16727 notes from other section in hot/cold partitioning even if
16728 last_action is -3. Increment call_site_base.
16729
16730 PR rtl-optimization/47366
16731 * fwprop.c (forward_propagate_into): Return bool. If
16732 any changes are made, -fnon-call-exceptions is used and
16733 REG_EH_REGION note is present, call purge_dead_edges
16734 and return true if it purged anything.
16735 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16736 any EH edges were purged.
16737
16738 2011-01-21 Jeff Law <law@redhat.com>
16739
16740 PR rtl-optimization/41619
16741 * caller-save.c (setup_save_areas): Break out code to determine
16742 which hard regs are live across calls by examining the reload chains
16743 so that it is always used.
16744 Eliminate code which checked REG_N_CALLS_CROSSED.
16745
16746 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16747
16748 PR tree-optimization/47355
16749 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16750 NOP has non-debug uses beyond PHIs in new_bb.
16751
16752 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16753
16754 PR debug/47106
16755 * cfgexpand.c (account_used_vars_for_block): Only account vars
16756 that are annotated as used.
16757 (estimated_stack_frame_size): Don't set TREE_USED.
16758 * tree-dfa.c (create_var_ann): Mark variable as used.
16759
16760 2011-01-21 Richard Guenther <rguenther@suse.de>
16761
16762 PR middle-end/47395
16763 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16764
16765 2011-01-21 Richard Guenther <rguenther@suse.de>
16766
16767 PR tree-optimization/47365
16768 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16769 (vn_reference_lookup_pieces): Adjust.
16770 (vn_reference_lookup): Likewise.
16771 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16772 (vn_reference_lookup_3): Only look through kills if in
16773 VN_WALKREWRITE mode.
16774 (vn_reference_lookup_pieces): Adjust.
16775 (vn_reference_lookup): Likewise.
16776 (visit_reference_op_load): Likewise.
16777 (visit_reference_op_store): Likewise.
16778 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16779 (compute_avail): Likewise.
16780 (eliminate): Likewise.
16781
16782 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16783
16784 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16785 DECL_IGNORED_P non-reg vars if they are used.
16786
16787 PR tree-optimization/47391
16788 * varpool.c (const_value_known_p): Return false if
16789 decl is volatile.
16790
16791 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16792
16793 PR bootstrap/47215
16794 * config/i386/i386.c (ix86_local_alignment): Handle
16795 case for va_list_type_node is nil.
16796 (ix86_canonical_va_list_type): Likewise.
16797
16798 2011-01-21 Alan Modra <amodra@gmail.com>
16799
16800 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16801 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16802
16803 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16804
16805 * config/arm/arm.md (define_attr type): Rename f_load
16806 and f_store to f_fpa_load and f_fpa_store. Update.
16807 (write_conflict): Deal with rename fallout.
16808 (*push_fp_multi): Likewise.
16809 * config/arm/fpa.md (f_load): Use f_fpa_load.
16810 (f_store): Use f_fpa_store.
16811 (*movsf_fpa): Likewise.
16812 (*movdf_fpa): Likewise.
16813 (*movxf_fpa): Likewise.
16814 (*thumb2_movsf_fpa): Likewise.
16815 (*thumb2_movdf_fpa): Likewise.
16816 (*thumb2_movxf_fpa): Likewise.
16817 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16818 f_loadd and f_stored.
16819 (*thumb2_movdi_vfp): Likewise.
16820 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16821 (*thumb2_movsi_vfp): Likewise.
16822 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16823 Use f_loads instead of f_load.
16824 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16825
16826 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16827
16828 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16829 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16830 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16831 (xtensa_mode_dependent_address_p): New function.
16832 (constantpool_address_p): Make static. Change return type to bool.
16833 Change argument type to const_rtx. Use CONST_INT_P predicate.
16834
16835 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16836
16837 PR debug/46583
16838 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16839
16840 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16841
16842 PR debug/47283
16843 * cfgexpand.c (expand_debug_expr): Instead of generating
16844 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16845 etc. handling.
16846
16847 2011-01-20 Richard Guenther <rguenther@suse.de>
16848
16849 PR middle-end/47370
16850 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16851 the pointer operand of MEM_REFs.
16852
16853 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16854
16855 PR tree-optimization/46130
16856 * ipa-split.c (consider_split): If return_bb contains non-virtual
16857 PHIs other than for retval or if split_function would not adjust it,
16858 refuse to split.
16859
16860 2011-01-20 Richard Guenther <rguenther@suse.de>
16861
16862 PR tree-optimization/47167
16863 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16864 Revert previous change, only avoid enumeral type changes.
16865
16866 2011-01-19 Mike Stump <mikestump@comcast.net>
16867
16868 * doc/tm.texi.in (BRANCH_COST): Englishify.
16869 * doc/tm.texi (BRANCH_COST): Likewise.
16870
16871 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16872
16873 PR c++/47291
16874 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16875 (gen_scheduled_generic_parms_dies): New functions.
16876 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16877 generation for the end of CU compilation.
16878 (dwarf2out_finish): Generate template parameters DIEs here.
16879
16880 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16881
16882 PR debug/46240
16883 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16884 debug bind stmt on merge edges.
16885
16886 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16887
16888 PR debug/47079
16889 PR debug/46724
16890 * function.c (instantiate_expr): Instantiate incoming rtl of
16891 implicit arguments, and recurse on VALUE_EXPRs.
16892 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16893 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16894
16895 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16896
16897 * c-parser.c (c_parser_for_statement): Initialize
16898 collection_expression.
16899
16900 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16901
16902 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16903
16904 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16905
16906 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16907 (LINK_SHLIB_SPEC): Don't use %(link_path).
16908 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16909
16910 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16911
16912 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16913 (NO_SHARED_LIB_SUPPORT): Remove.
16914 (LINK_SHLIB_SPEC): Remove one conditional definition.
16915
16916 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16917
16918 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16919 %{call_shared}.
16920 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16921 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16922 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16923 %{call_shared} and conditionals on these options not being passed.
16924 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16925 %{call_shared}.
16926
16927 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16928
16929 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16930 simplify.
16931
16932 * ipa-split.c: Spelling fixes.
16933
16934 2011-01-19 Richard Henderson <rth@redhat.com>
16935
16936 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16937 (*mulsi3): Likewise.
16938
16939 * longlong.h [__mn10300__] (count_leading_zeros): New.
16940 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16941 [__mn10300__] (add_ssaaaa, subddmmss): New.
16942 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16943 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16944
16945 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16946
16947 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16948
16949 2011-01-19 Richard Henderson <rth@redhat.com>
16950
16951 * config/mn10300/mn10300.md (addsi3_flags): New.
16952 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16953 (subsi3_flags, subc_internal, subdi3): New.
16954 (subdi3_internal, *subdi3_degenerate): New.
16955 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16956
16957 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16958 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16959 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16960 * config/mn10300/mn10300-protos.h: Update.
16961 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16962 (return_ret): Likewise. Rename from return_internal_regs.
16963 (return_internal): Remove.
16964
16965 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16966 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16967 (mn10300_legitimate_constant_p): Likewise.
16968 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16969 (mn10300_frame_size): New.
16970 (mn10300_expand_prologue): Use it.
16971 (mn10300_expand_epilogue): Likewise.
16972 (mn10300_initial_offset): Likewise.
16973 * config/mn10300/mn10300-protos.h: Update.
16974 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16975 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16976 (prologue, epilogue, return_internal): Tidy output code.
16977 (mn10300_store_multiple_operation, return): Likewise.
16978 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16979 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16980 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16981 (load_pic, am33_load_pic): New.
16982 (mn10300_load_pic0, mn10300_load_pic1): New.
16983
16984 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16985 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16986 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16987 (cc_flags_for_mode, cc_flags_for_code): New.
16988 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16989 overflow flag is not valid. Validate that the flags we need
16990 for the comparison are valid.
16991 (mn10300_output_cmp): Remove.
16992 (mn10300_output_add): New.
16993 (mn10300_select_cc_mode): Use cc_flags_for_code.
16994 (mn10300_split_cbranch): New.
16995 (mn10300_match_ccmode): New.
16996 (mn10300_split_and_operand_count): New.
16997 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16998 to the function.
16999 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17000 (addsi3): ... here. Use mn10300_output_add.
17001 (*addsi3_flags): New.
17002 (*am33_subsi3, *mn10300_subsi3): Merge...
17003 (subsi3): ... here. Use attribute isa.
17004 (*subsi3_flags): New.
17005 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17006 when possible.
17007 (*am33_andsi3, *mn10300_andsi3): Merge...
17008 (andsi3): ... here.
17009 (*andsi3_flags): New.
17010 (andsi3 splitters): New.
17011 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17012 (iorsi3): ... here.
17013 (*iorsi3_flags): New.
17014 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17015 (xorsi3): ... here.
17016 (*xorsi3_flags): New.
17017 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17018 (one_cmplsi2): ... here.
17019 (*one_cmplsi2_flags): New.
17020 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17021 instead of "dax" in constraints. Use mn10300_split_cbranch.
17022 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17023 use matching constraints to eliminate a self-comparison.
17024 (*integer_conditional_branch): Rename from integer_conditional_branch.
17025 Use int_mode_flags to match CC_REG.
17026 (*cbranchsi4_btst, *btstsi): New.
17027 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17028 mn10300_split_cbranch.
17029 (*am33_cmpsf): Rename from am33_cmpsf.
17030 (*float_conditional_branch): Rename from float_conditional_branch.
17031 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17032 (zero_extendqisi2): ... here.
17033 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17034 (zero_extendhisi2): ... here.
17035 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17036 (extendqisi2): ... here.
17037 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17038 (extendhisi2): ... here.
17039 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17040 (ashlsi3): ... here.
17041 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17042 (lshrsi3): ... here.
17043 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17044 (ashrsi3): ... here.
17045 (consecutive add peephole): Remove.
17046 * config/mn10300/predicates.md (label_ref_operand): New.
17047 (int_mode_flags): New.
17048 (CCZN_comparison_operator): New.
17049
17050 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17051 (throughput_42_latency_43): New reservation.
17052 (mulsidi3, umulsidi3): New expanders.
17053 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17054 the MDR register to allocation; separately allocate the low and
17055 high parts of the DImode result.
17056 (umulsidi3_internal): Similarly.
17057 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17058 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17059 (udivsi3, umodsi3): Remove.
17060 (udivmodsi4, divmodsi4): New expanders.
17061 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17062 (*divmodsi4): Simiarly.
17063 (ext_internal): New.
17064
17065 * config/mn10300/constraints.md ("z"): New constraint.
17066 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17067 (FIXED_REGISTERS): Don't fix MDR.
17068 (CALL_USED_REGSITERS): Reformat nicely.
17069 (REG_ALLOC_ORDER): Add MDR.
17070 (enum regclass): Add MDR_REGS.
17071 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17072 (IRA_COVER_CLASSES): Add MDR_REGS.
17073 (REGNO_REG_CLASS): Handle MDR_REG.
17074 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17075 (mn10300_register_move_cost): Likewise.
17076 * config/mn10300/mn10300.md (MDR_REG): New.
17077 (*movsi_internal): Handle moves to/from MDR_REGS.
17078
17079 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17080 POST_MODIFY.
17081 (mn10300_secondary_reload): Tidy combination reload classes.
17082 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17083 addresses for AM33. Allow symbolic offsets for reg+imm.
17084 (mn10300_regno_in_class_p): New.
17085 (mn10300_legitimize_reload_address): New.
17086 * config/mn10300/mn10300.h (enum reg_class): Remove
17087 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17088 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17089 SP_OR_GENERAL_REGS.
17090 (REG_CLASS_NAMES): Update to match.
17091 (REG_CLASS_CONTENTS): Likewise.
17092 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17093 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17094 (REGNO_IN_RANGE_P): Remove.
17095 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17096 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17097 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17098 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17099 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17100 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17101 (REGNO_GENERAL_P): New.
17102 (HAVE_POST_MODIFY_DISP): New.
17103 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17104 (LEGITIMIZE_RELOAD_ADDRESS): New.
17105 * config/mn10300/mn10300-protos.h: Update.
17106
17107 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17108 DATA_REGS for AM33 stack-pointer destination.
17109 (mn10300_preferred_output_reload_class): Likewise.
17110 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17111 into a form appropriate for ...
17112 (TARGET_SECONDARY_RELOAD): New.
17113 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17114 * config/mn10300/mn10300-protos.h: Update.
17115 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17116 reload_insi; use the "A" constraint for the scratch; handle AM33
17117 moves of sp to non-address registers.
17118
17119 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17120 (*movqi_internal): ... here.
17121 (*am33_movhi, *mn10300_movhi): Merge into...
17122 (*movhi_internal): ... here.
17123 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17124 as the source/destination of moves from/to SP.
17125 (movsf): Only allow for AM33-2.
17126 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17127 any integer constant constraint. Only allow for AM33-2. Tidy
17128 all of the alternative outputs.
17129 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17130 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17131 for MN103.
17132 (udivsi3, umodsi3): New patterns for MN103 only.
17133
17134 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17135
17136 * doc/tm.texi.in: Spell out that a lack of register class unions
17137 can lead to ICEs.
17138 * doc/tm.texi: Regenerate.
17139
17140 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17141
17142 PR rtl-optimization/47337
17143 * dce.c (check_argument_store): New function.
17144 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17145
17146 PR tree-optimization/47290
17147 * tree-eh.c (infinite_empty_loop_p): New function.
17148 (cleanup_empty_eh): Use it.
17149
17150 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17151
17152 PR target/46997
17153 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17154 (a64_expand_widen_sum): Ditto.
17155 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17156 (vec_extract_evenodd_help): Ditto.
17157 (vec_extract_evenv4hi): Ditto.
17158 (vec_extract_oddv4hi): Ditto.
17159 (vec_extract_evenv2si): Ditto.
17160 (vec_extract_oddv2si): Ditto.
17161 (vec_extract_evenv2sf): Ditto.
17162 (vec_extract_oddv2sf): Ditto.
17163 (vec_pack_trunc_v4hi: Ditto.
17164 (vec_pack_trunc_v2si): Ditto.
17165 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17166 (vec_interleave_highv8qi): Ditto.
17167 (mix1_r): Ditto.
17168 (vec_extract_oddv8qi): Ditto.
17169 (vec_interleave_lowv4hi): Ditto.
17170 (vec_interleave_highv4hi): Ditto.
17171 (vec_interleave_lowv2si): Ditto.
17172 (vec_interleave_highv2si): Ditto.
17173
17174 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17175
17176 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17177 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17178 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17179 (pa_c_mode_for_suffix): New.
17180 (TARGET_EXPAND_BUILTIN): Define.
17181 (TARGET_C_MODE_FOR_SUFFIX): Define.
17182 (pa_builtins): Define.
17183 (pa_init_builtins): Register __float128 type and init new support
17184 builtins.
17185 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17186 * config/pa/quadlib.c (_U_Qfcopysign): New.
17187
17188 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17189
17190 PR middle-end/46894
17191 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17192 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17193 are defined.
17194
17195 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17196
17197 PR tree-optimization/47179
17198 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17199 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17200
17201 2011-01-18 Richard Guenther <rguenther@suse.de>
17202
17203 PR rtl-optimization/47216
17204 * emit-rtl.c: Include tree-flow.h.
17205 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17206 of replicating it with different semantics.
17207 * Makefile.in (emit-rtl.o): Adjust.
17208
17209 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17210
17211 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17212 (cortex_a9_dp): Handle neon types correctly.
17213
17214 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17215
17216 PR rtl-optimization/47299
17217 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17218 subtarget. Use normal multiplication if both operands are constants.
17219 * expmed.c (expand_widening_mult): Don't try to optimize constant
17220 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17221 before using it.
17222
17223 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17224
17225 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17226 spacing after 'e.g.', typos, comma, hyphenation.
17227
17228 2011-01-17 Richard Henderson <rth@redhat.com>
17229
17230 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17231 (rx_restricted_mem_operand): New.
17232 (rx_shift_operand): Use register_operand.
17233 (rx_source_operand, rx_compare_operand): Likewise.
17234 * config/rx/rx.md (addsi3_flags): New expander.
17235 (adddi3): Rewrite as expander.
17236 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17237 (subsi3_flags): New expander.
17238 (subdi3): Rewrite as expander.
17239 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17240
17241 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17242 (rx_init_builtins): Remove sat builtin.
17243 (rx_expand_builtin): Likewise.
17244 * config/rx/rx.md (ssaddsi3): New.
17245 (*sat): Rename from sat. Represent the CC_REG input.
17246
17247 * config/rx/predicates.md (rshift_operator): New.
17248 * config/rx/rx.c (rx_expand_insv): Remove.
17249 * config/rx/rx-protos.h: Update.
17250 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17251 operand to the canonical position.
17252 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17253 (*bitclr, *bitclr_in_memory): Similarly.
17254 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17255 (insv): Retain the zero_extract in the expansion.
17256
17257 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17258 (bswaphi2, bitinvert, revw): Likewise.
17259
17260 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17261 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17262 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17263 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17264 (bitset, bitset_in_memory): Likewise.
17265 (bitinvert, bitinvert_in_memory): Likewise.
17266 (bitclr, bitclr_in_memory): Likewise.
17267 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17268 (rx_strend, rx_cmpstrn): Likewise.
17269 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17270 (bitop peep2 patterns): Remove.
17271
17272 * config/rx/rx.c (rx_match_ccmode): New.
17273 * config/rx/rx-protos.h: Update.
17274 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17275 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17276 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17277 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17278 (fix_truncsfsi2, floatsisf2): Likewise.
17279 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17280 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17281 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17282 (*subsi3_flags, *xorsi3_flags): New.
17283
17284 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17285
17286 * config/rx/rx.c (rx_print_operand): Remove workaround for
17287 unsplit comparison operations.
17288
17289 * config/rx/rx.md (movsicc): Split after reload.
17290 (*movsicc): Merge *movsieq and *movsine via match_operator.
17291 (*stcc): New pattern.
17292
17293 * config/rx/rx.c (rx_float_compare_mode): Remove.
17294 * config/rx/rx.h (rx_float_compare_mode): Remove.
17295 * config/rx/rx.md (cstoresi4): Split after reload.
17296 (*sccc): New pattern.
17297
17298 * config/rx/predicates.md (label_ref_operand): New.
17299 (rx_z_comparison_operator): New.
17300 (rx_zs_comparison_operator): New.
17301 (rx_fp_comparison_operator): New.
17302 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17303 Validate that the flags are set properly for the comparison.
17304 (rx_gen_cond_branch_template): Remove.
17305 (rx_cc_modes_compatible): Remove.
17306 (mode_from_flags): New.
17307 (flags_from_code): Rename from flags_needed_for_conditional.
17308 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17309 (rx_select_cc_mode): Likewise.
17310 (rx_split_fp_compare): New.
17311 (rx_split_cbranch): New.
17312 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17313 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17314 (*cbranchsf4): Similarly.
17315 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17316 match_operator and rx_split_cbranch.
17317 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17318 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17319 (*cmpsi): Rename from cmpsi.
17320 (*tstsi): Rename from tstsi.
17321 (*cmpsf): Rename from cmpsf; use CC_Fmode.
17322 (*conditional_branch): Rename from conditional_branch.
17323 (*reveresed_conditional_branch): Remove.
17324 (b<code>): Remove expander.
17325 * config/rx/rx-protos.h: Update.
17326
17327 * config/rx/rx.c (rx_compare_redundant): Remove.
17328 * config/rx/rx.md (cmpsi): Don't use it.
17329 * config/rx/rx-protos.h: Update.
17330
17331 * config/rx/rx-modes.def (CC_F): New mode.
17332 * config/rx/rx.c (rx_select_cc_mode): New.
17333 * config/rx/rx.h (SELECT_CC_MODE): Use it.
17334 * config/rx/rx-protos.h: Update.
17335
17336 2011-01-17 Richard Henderson <rth@redhat.com>
17337
17338 * except.c (dump_eh_tree): Fix stray ; after for statement.
17339
17340 2011-01-17 Richard Guenther <rguenther@suse.de>
17341
17342 PR tree-optimization/47313
17343 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17344 handling before copying the body. Properly deal with
17345 by-reference result in SSA form.
17346
17347 2011-01-17 Ian Lance Taylor <iant@google.com>
17348
17349 PR target/47219
17350 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17351 (struct_value_alias_set): Don't define.
17352 (sparc_option_override): Don't set sparc_sr_alias_set and
17353 struct_value_alias_set.
17354 (save_or_restore_regs): Use gen_frame_mem rather than calling
17355 set_mem_alias_set.
17356 (sparc_struct_value_rtx): Likewise.
17357
17358 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
17359
17360 PR target/47318
17361 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17362 (_mm_maskstore_pd): Likewise.
17363 (_mm_maskload_ps): Likewise.
17364 (_mm_maskstore_ps): Likewise.
17365 (_mm256_maskload_pd): Change mask to __m256i.
17366 (_mm256_maskstore_pd): Likewise.
17367 (_mm256_maskload_ps): Likewise.
17368 (_mm256_maskstore_ps): Likewise.
17369
17370 * config/i386/i386-builtin-types.def: Updated.
17371 (ix86_expand_special_args_builtin): Likewise.
17372
17373 * config/i386/i386.c (bdesc_special_args): Update
17374 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17375 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17376 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17377 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17378
17379 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17380 Use <avxpermvecmode> on mask register.
17381 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17382
17383 2011-01-17 Olivier Hainque <hainque@adacore.com>
17384 Michael Haubenwallner <michael.haubenwallner@salomon.at>
17385 Eric Botcazou <ebotcazou@adacore.com>
17386
17387 PR target/46655
17388 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17389 if <= USHRT_MAX in 32-bit mode.
17390
17391 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17392
17393 * doc/install.texi (Configuration, Specific): Wrap long
17394 lines in examples. Allow line wrapping in long options
17395 and URLs where beneficial for PDF output.
17396
17397 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
17398
17399 * config/mips/mips.c (mips_classify_symbol): Don't return
17400 SYMBOL_PC_RELATIVE for nonlocal labels.
17401
17402 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
17403
17404 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
17405
17406 2011-01-15 Jan Hubicka <jh@suse.cz>
17407
17408 PR tree-optimization/47276
17409 * ipa.c (function_and_variable_visibility): Do not try to mark alias
17410 declarations as needed.
17411
17412 2011-01-15 Martin Jambor <mjambor@suse.cz>
17413
17414 * common.opt (fdevirtualize): New flag.
17415 * doc/invoke.texi (Option Summary): Document it.
17416 * opts.c (default_options_table): Add devirtualize flag.
17417 * ipa-prop.c (detect_type_change): Return immediately if
17418 devirtualize flag is not set.
17419 (detect_type_change_ssa): Likewise.
17420 (compute_known_type_jump_func): Likewise.
17421 (ipa_analyze_virtual_call_uses): Likewise.
17422
17423 2011-01-14 Martin Jambor <mjambor@suse.cz>
17424
17425 PR tree-optimization/45934
17426 PR tree-optimization/46302
17427 * ipa-prop.c (type_change_info): New type.
17428 (stmt_may_be_vtbl_ptr_store): New function.
17429 (check_stmt_for_type_change): Likewise.
17430 (detect_type_change): Likewise.
17431 (detect_type_change_ssa): Likewise.
17432 (compute_complex_assign_jump_func): Check for dynamic type change.
17433 (compute_complex_ancestor_jump_func): Likewise.
17434 (compute_known_type_jump_func): Likewise.
17435 (compute_scalar_jump_functions): Likewise.
17436 (ipa_analyze_virtual_call_uses): Likewise.
17437 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
17438
17439 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17440
17441 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
17442 * config/i386/i386.opt (msse5): New Alias.
17443
17444 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17445
17446 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17447 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17448 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17449 * config/sparc/sparc.h (CC1_SPEC): Likewise.
17450
17451 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17452
17453 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
17454 -mcpu options.
17455 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17456 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17457 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
17458 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
17459 Likewise.
17460 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
17461
17462 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17463
17464 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
17465
17466 2011-01-14 Mike Stump <mikestump@comcast.net>
17467
17468 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
17469 * config/fr30/fr30.md: Likweise
17470 (movsi_push): Likewise.
17471 (movsi_pop): Likewise.
17472 (enter_func): Likewise.
17473 * config/moxie/moxie.md (movsi_push): Likewise.
17474 (movsi_pop): Likewise.
17475
17476 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17477
17478 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
17479 %{no_archive} %{exact_version}.
17480 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
17481 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
17482 %{no_archive} %{exact_version}.
17483 * config/mips/openbsd.h (LINK_SPEC): Likewise.
17484 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
17485 * config/mips/vxworks.h: Likewise.
17486
17487 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17488
17489 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
17490
17491 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17492
17493 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
17494 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
17495
17496 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17497
17498 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
17499 -nodefaultlib.
17500
17501 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17502
17503 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
17504 for mcpu not cpu.
17505 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
17506 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
17507 not cpu.
17508 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
17509 Don't handle -shlib.
17510
17511 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17512
17513 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
17514 (CC1_SPEC): Don't handle -profile.
17515
17516 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17517
17518 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
17519 * config/mips/mips.h (CC1_SPEC): Likewise.
17520
17521 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17522
17523 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
17524 * config/mips/mips.h (CC1_SPEC): Likewise.
17525
17526 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17527
17528 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
17529 * config/m32r/linux.h (LINK_SPEC): Likewise.
17530 * config/mips/linux.h (LINK_SPEC): Likewise.
17531 * config/mips/linux64.h (LINK_SPEC): Likewise.
17532 * config/sparc/linux.h (LINK_SPEC): Likewise.
17533 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17534 LINK_SPEC): Likewise.
17535 * config/xtensa/linux.h (LINK_SPEC): Likewise.
17536
17537 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17538
17539 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
17540 %{version:-v}.
17541 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
17542
17543 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17544
17545 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
17546 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
17547
17548 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17549
17550 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
17551
17552 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17553
17554 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
17555 supports -Bstatic/-Bdynamic.
17556 * configure: Regenerate.
17557
17558 2011-01-14 Jan Hubicka <jh@suse.cz>
17559 Jack Howarth <howarth@bromo.med.uc.edu>
17560
17561 PR target/46037
17562 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
17563 when checking debug_info_level. Test write_symbols instead of
17564 debug_hooks->var_location when setting flag_var_tracking_uninit.
17565
17566 2011-01-14 Richard Guenther <rguenther@suse.de>
17567
17568 PR tree-optimization/47179
17569 * target.def (ref_may_alias_errno): New target hook.
17570 * targhooks.h (default_ref_may_alias_errno): Declare.
17571 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
17572 (default_ref_may_alias_errno): New function.
17573 * target.h (struct ao_ref_s): Declare.
17574 * tree-ssa-alias.c: Include target.h.
17575 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
17576 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
17577 (targhooks.o): Likewise.
17578 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
17579 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
17580
17581 2011-01-14 Richard Guenther <rguenther@suse.de>
17582
17583 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
17584
17585 2011-01-14 Richard Guenther <rguenther@suse.de>
17586
17587 PR tree-optimization/47280
17588 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
17589 return CFG changes.
17590 (tree_ssa_forward_propagate_single_use_vars): Deal with
17591 CFG changes from associate_plusminus.
17592
17593 2011-01-14 Richard Guenther <rguenther@suse.de>
17594
17595 PR middle-end/47281
17596 Revert
17597 2011-01-11 Richard Guenther <rguenther@suse.de>
17598
17599 PR tree-optimization/46076
17600 * tree-ssa.c (useless_type_conversion_p): Conversions from
17601 unprototyped to empty argument list function types are useless.
17602
17603 2011-01-14 Richard Guenther <rguenther@suse.de>
17604
17605 PR tree-optimization/47286
17606 * tree-ssa-structalias.c (new_var_info): Register variables are global.
17607
17608 2011-01-14 Martin Jambor <mjambor@suse.cz>
17609
17610 PR middle-end/46823
17611 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
17612
17613 2011-01-13 Anatoly Sokolov <aesok@post.ru>
17614
17615 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
17616 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17617 * config/xtensa/xtensa.c (xtensa_libcall_value,
17618 xtensa_function_value_regno_p): New functions.
17619 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17620
17621 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
17622
17623 PR c++/47213
17624 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
17625 PE specific hook.
17626 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
17627 New function prototype.
17628 * config/i386/winnt.c (i386_pe_assemble_visibility):
17629 Warn only if attribute was specified by user.
17630
17631 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17632
17633 PR target/47251
17634 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
17635 floating point.
17636 (floatunsdidf2_fcfidu): Ditto.
17637
17638 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17639
17640 * config/s390/s390.c (print_operand_address): Replace 'error' with
17641 'output_operand_lossage'.
17642 (print_operand): Likewise.
17643
17644 2011-01-13 Jeff Law <law@redhat.com>
17645
17646 PR rtl-optimization/39077
17647 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
17648 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
17649 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
17650 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
17651 * gcse.c (prune_insertions_deletions): New function.
17652 (compute_pre_data): Use it.
17653
17654 2011-01-13 Dodji Seketeli <dodji@redhat.com>
17655
17656 PR debug/PR46973
17657 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
17658 static function.
17659 (prune_unused_types_mark): Use it.
17660
17661 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
17662
17663 PR rtl-optimization/45352
17664 * sel-sched.c: Update copyright years.
17665 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
17666 in the advancing loop when we have issued issue_rate insns.
17667
17668 2011-01-12 Richard Henderson <rth@redhat.com>
17669
17670 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17671 (TARGET_MD_ASM_CLOBBERS): New.
17672
17673 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17674 (TARGET_DELEGITIMIZE_ADDRESS): New.
17675
17676 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17677 (clzsi2, *bsch): New patterns.
17678
17679 * config/mn10300/mn10300.md (INT): New mode iterator.
17680 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17681
17682 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17683 flag_split_wide_types.
17684
17685 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17686 (mn10300_trampoline_init): Rewrite without a template, an immediate
17687 load and a direct branch.
17688 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17689
17690 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17691
17692 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17693 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17694 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17695 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17696
17697 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17698
17699 PR debug/47209
17700 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17701 of type.
17702
17703 2011-01-12 Jan Hubicka <jh@suse.cz>
17704
17705 PR driver/47244
17706 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17707 (PLUGIN_COND_CLOSE): New macro.
17708 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17709
17710 2011-01-12 Richard Guenther <rguenther@suse.de>
17711
17712 PR lto/47259
17713 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17714 register variables in a MEM_REF.
17715
17716 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17717
17718 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17719 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17720 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17721 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17722 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17723 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17724 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17725 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17726 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17727 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17728 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17729 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17730 * config/gnu-user.h: New. Copied from linux.h.
17731 (LINUX_TARGET_STARTFILE_SPEC): Rename to
17732 GNU_USER_TARGET_STARTFILE_SPEC.
17733 (LINUX_TARGET_ENDFILE_SPEC): Rename to
17734 GNU_USER_TARGET_ENDFILE_SPEC.
17735 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17736 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17737 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17738 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17739 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17740 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17741 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17742 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17743 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17744 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17745 * config/arm/linux-eabi.h (CC1_SPEC): Use
17746 GNU_USER_TARGET_CC1_SPEC.
17747 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17748 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17749 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17750 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17751 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17752 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17753 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17754 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17755
17756 2011-01-12 Richard Guenther <rguenther@suse.de>
17757
17758 PR other/46946
17759 * doc/invoke.texi (ffast-math): Document it is turned on
17760 with -Ofast.
17761
17762 2011-01-12 Jan Hubicka <jh@suse.cz>
17763
17764 PR tree-optimization/47233
17765 * opts.c (common_handle_option): Disable ipa-reference with profile
17766 feedback.
17767
17768 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17769
17770 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17771 error message.
17772
17773 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17774
17775 * c-parser.c (c_lex_one_token): Updated and reindented some
17776 comments. No changes in code.
17777
17778 2011-01-11 Ian Lance Taylor <iant@google.com>
17779
17780 * godump.c (go_output_var): Don't output the variable if there is
17781 already a type with the same name.
17782
17783 2011-01-11 Ian Lance Taylor <iant@google.com>
17784
17785 * godump.c (go_format_type): Don't generate float80.
17786
17787 2011-01-11 Richard Henderson <rth@redhat.com>
17788
17789 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17790 declaration. Rewrite for both speed and size.
17791 (mn10300_address_cost_1): Remove.
17792 (mn10300_register_move_cost): New.
17793 (mn10300_memory_move_cost): New.
17794 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17795 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17796 extensions, shifts, BSWAP, CLZ.
17797 (mn10300_wide_const_load_uses_clr): Remove.
17798 (TARGET_REGISTER_MOVE_COST): New.
17799 (TARGET_MEMORY_MOVE_COST): New.
17800 * config/mn10300/mn10300-protos.h: Update.
17801 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17802
17803 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17804 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17805 * config/mn10300/mn10300-protos.h: Update.
17806 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17807 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17808 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17809 (*test_int_bitfield, *test_byte_bitfield): Remove.
17810 (*bit_test, *subreg_bit_test): Remove.
17811 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17812
17813 * config/mn10300/constraints.md ("c"): Rename from "A".
17814 ("A", "D"): New constraint letters.
17815 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17816 (fmssf4, fnmasf4, fnmssf4): Likewise.
17817
17818 * config/mn10300/mn10300.md (isa): New attribute.
17819 (enabled): New attribute.
17820
17821 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17822 (abssf2, negsf2): Define only for hardware fp.
17823 (sqrtsf2): Reformat.
17824 (addsf3, subsf3, mulsf3): Merge expander and insn.
17825
17826 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17827 (DEBUGGER_AUTO_OFFSET): Remove.
17828 (DEBUGGER_ARG_OFFSET): Remove.
17829
17830 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17831 Emit register stores with the same offsets as the hardware.
17832 (mn10300_store_multiple_operation): Don't check that the register
17833 save offsets are monotonic.
17834 * config/mn10300/mn10300-protos.h: Update.
17835
17836 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17837
17838 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17839 in terms of the value on the stack, not the MDR register.
17840
17841 2011-01-11 Jan Hubicka <jh@suse.cz>
17842
17843 PR lto/45721
17844 PR lto/45375
17845 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17846 (symbol_alias_set_destroy, symbol_alias_set_contains,
17847 propagate_aliases_backward): Declare.
17848 * lto-streamer-out.c (struct sets): New sturcture.
17849 (trivally_defined_alias): New function.
17850 (output_alias_pair_p): Rewrite.
17851 (output_unreferenced_globals): Fix output of alias pairs.
17852 (produce_symtab): Likewise.
17853 * ipa.c (function_and_variable_visibility): Set weak alias destination
17854 as needed in lto.
17855 * varasm.c (symbol_alias_set_t): Remove.
17856 (symbol_alias_set_destroy): Export.
17857 (propagate_aliases_forward, propagate_aliases_backward): New functions
17858 based on ...
17859 (compute_visible_aliases): ... this one; remove.
17860 (trivially_visible_alias): New
17861 (trivially_defined_alias): New.
17862 (remove_unreachable_alias_pairs): Rewrite.
17863 (finish_aliases_1): Reorganize code checking if alias is defined.
17864 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17865 in LTO mode.
17866
17867 2011-01-11 Richard Guenther <rguenther@suse.de>
17868
17869 PR tree-optimization/46076
17870 * tree-ssa.c (useless_type_conversion_p): Conversions from
17871 unprototyped to empty argument list function types are useless.
17872
17873 2011-01-11 Richard Guenther <rguenther@suse.de>
17874
17875 PR middle-end/45235
17876 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17877 volatile MEMs as MEM_READONLY_P.
17878
17879 2011-01-11 Richard Guenther <rguenther@suse.de>
17880
17881 PR tree-optimization/47239
17882 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17883
17884 2011-01-11 Jeff Law <law@redhat.com>
17885
17886 PR tree-optimization/47086
17887 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17888 IVs from statements that might throw.
17889
17890 2011-01-10 Jan Hubicka <jh@suse.cz>
17891
17892 PR lto/45375
17893 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17894
17895 2011-01-10 Jan Hubicka <jh@suse.cz>
17896
17897 PR lto/45375
17898 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17899 when correcting profile.
17900
17901 2011-01-10 Jan Hubicka <jh@suse.cz>
17902
17903 PR lto/46083
17904 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17905 DECL_FINI_PRIORITY.
17906 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17907 Restore DECL_FINI_PRIORITY.
17908
17909 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17910
17911 * doc/gimple.texi: Fix quoting of multi-word return values in
17912 @deftypefn statements. Ensure presence of return value. Wrap
17913 overlong @deftypefn lines.
17914 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17915 descriptions of removed functions.
17916 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17917 of multi-word return value in @deftypefn statement.
17918
17919 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17920
17921 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17922 (Conditional Expressions, Logical Operators)
17923 (Statement and operand traversals): Do not indent smallexample
17924 code. Fix duplicate function argument in example.
17925
17926 2011-01-10 Jeff Law <law@redhat.com>
17927
17928 PR tree-optimization/47141
17929 * ipa-split.c (split_function): Handle case where we are
17930 returning a value and the return block has a virtual operand phi.
17931
17932 2011-01-10 Jan Hubicka <jh@suse.cz>
17933
17934 PR tree-optimization/47234
17935 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17936 (pass_feedback_split_functions): Declare.
17937 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17938 tree-profile.
17939 * ipa-split.c (gate_split_functions): Update comments; disable
17940 split-functions for profile_arc_flag and branch_probabilities.
17941 (gate_feedback_split_functions): New function.
17942 (execute_feedback_split_functions): New function.
17943 (pass_feedback_split_functions): New global var.
17944
17945 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17946
17947 PR lto/46760
17948 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17949 calling gimple_call_set_cannot_inline.
17950
17951 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17952
17953 * config/darwin-sections.def: Remove unused section.
17954
17955 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17956
17957 PR c++/47218
17958 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17959
17960 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17961
17962 PR objc/47232
17963 * c-parser.c (c_parser_declaration_or_fndef): Improved
17964 error message.
17965
17966 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17967
17968 * config/i386/winnt.c (i386_pe_start_function): Make sure
17969 to switch back to function's section.
17970
17971 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17972
17973 PR gcc/46902
17974 PR testsuite/46912
17975 * plugin.c: Move include of dlfcn.h from here...
17976 * system.h: ... to here.
17977
17978 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17979
17980 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17981 file name.
17982 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17983 two extra empty pages in PDF output.
17984
17985 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17986
17987 PR objc/47078
17988 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17989 for error recovery purposes behave as if it was not specified so
17990 that the default type is usd.
17991
17992 2011-01-07 Jan Hubicka <jh@suse.cz>
17993
17994 PR tree-optmization/46469
17995 * ipa.c (function_and_variable_visibility): Clear needed flags on
17996 nodes with external decls; handle weakrefs merging correctly.
17997
17998 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17999
18000 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18001 not false.
18002
18003 2011-01-07 Jan Hubicka <jh@suse.cz>
18004
18005 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18006 and no longer claim that gold is required for linker plugin.
18007 * configure: Regenerate.
18008 * gcc.c (PLUGIN_COND): New macro.
18009 (LINK_COMMAND_SPEC): Use it.
18010 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18011 * config.in (HAVE_LTO_PLUGIN): New.
18012 * configure.ac (--with-lto-plugin): New parameter; autodetect
18013 HAVE_LTO_PLUGIN.
18014
18015 2011-01-07 Jan Hubicka <jh@suse.cz>
18016
18017 PR tree-optimization/46367
18018 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18019 when we can update original.
18020 (cgraph_mark_inline_edge): Sanity check.
18021 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18022
18023 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18024
18025 * config/spu/spu.h (ASM_COMMENT_START): Define.
18026
18027 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18028
18029 PR driver/42445
18030 * gcc.c (%>S): New.
18031 (SWITCH_KEEP_FOR_GCC): Likewise.
18032 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18033 (do_spec_1): Handle "%>".
18034
18035 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18036
18037 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18038
18039 PR target/47201
18040 * config/i386/i386.c (ix86_delegitimize_address): If
18041 simplify_gen_subreg fails, return orig_x.
18042
18043 PR bootstrap/47187
18044 * value-prof.c (gimple_stringop_fixed_value): Handle
18045 lhs of the call properly.
18046
18047 2011-01-07 Jan Hubicka <jh@suse.cz>
18048
18049 PR lto/45375
18050 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18051
18052 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18053
18054 * target.def (function_switched_text_sections): New hook.
18055 * doc/tm.texi: Regenerated.
18056 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18057 * final.c (default_function_switched_text_sections): New.
18058 (final_scan_insn): Call function_switched_text_sections when a
18059 mid-function section change occurs.
18060 * output.h (default_function_switched_text_sections): Declare.
18061 * config/darwin-protos.h (darwin_function_switched_text_sections):
18062 Likewise.
18063 * config/darwin.c (darwin_function_switched_text_sections): New.
18064 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18065
18066 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18067
18068 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18069 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18070 the secondary code fragment when outputting for DWARF == 2.
18071
18072 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18073
18074 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18075 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18076 Remove.
18077 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18078 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18079
18080 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18081
18082 PR debug/46704
18083 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18084 when it is not empty.
18085
18086 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18087
18088 Bobcat Enablement
18089 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18090 (case ${target}): Add btver1.
18091 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18092 -march=native recognize btver1 processors.
18093 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18094 btver1 def_and_undef
18095 * config/i386/i386.c (struct processor_costs btver1_cost): New
18096 btver1 cost table.
18097 (m_BTVER1): New definition.
18098 (m_AMD_MULTIPLE): Includes m_BTVER1.
18099 (initial_ix86_tune_features): Add btver1 tune.
18100 (processor_target_table): Add btver1 entry.
18101 (static const char *const cpu_names): Add btver1 entry.
18102 (software_prefetching_beneficial_p): Add btver1.
18103 (ix86_option_override_internal): Add btver1 instruction sets.
18104 (ix86_issue_rate): Add btver1.
18105 (ix86_adjust_cost): Add btver1.
18106 * config/i386/i386.h (TARGET_BTVER1): New definition.
18107 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18108 (enum processor_type): Add PROCESSOR_BTVER1.
18109 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18110
18111 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18112
18113 PR target/43309
18114 * config/i386/i386.c (legitimize_tls_address)
18115 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18116 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18117 (tls_initial_exec_64_sun): New pattern.
18118
18119 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18120
18121 * doc/invoke.texi (Overall Options): Improve wording and markup
18122 of the description of -wrapper.
18123
18124 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18125
18126 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18127 rdynamic, threads): New Driver options.
18128
18129 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18130
18131 PR target/38118
18132 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18133 if coming from .tdata.
18134 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18135
18136 2011-01-06 Jan Hubicka <jh@suse.cz>
18137
18138 PR lto/47188
18139 * collect2.c (main): Do not enable LTOmode when plugin is active.
18140
18141 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18142
18143 PR other/45915
18144 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18145 --version output if supported.
18146 * configure: Regenerate.
18147
18148 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18149
18150 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18151 Driver options.
18152
18153 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18154
18155 PR c/47150
18156 * c-convert.c (convert): When converting a complex expression
18157 other than COMPLEX_EXPR to a different complex type, ensure
18158 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18159 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18160 when converting COMPLEX_TYPE.
18161
18162 2011-01-06 Ira Rosen <irar@il.ibm.com>
18163
18164 PR tree-optimization/47139
18165 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18166 only the last reduction value is used outside the loop. Update
18167 documentation.
18168
18169 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18170
18171 * config/rtems.opt: New.
18172 * config.gcc (*-*-rtems*): Use rtems.opt.
18173
18174 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18175
18176 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18177 processors do not support 3DNow instructions.
18178
18179 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18180
18181 * config/spu/spu.c (spu_option_override): Set parameter
18182 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18183
18184 2011-01-05 Jan Hubicka <jh@suse.cz>
18185
18186 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18187 at the command line.
18188
18189 2011-01-05 Martin Jambor <mjambor@suse.cz>
18190
18191 PR lto/47162
18192 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18193 deltas on streamed outgoing edges.
18194 (output_node_opt_summary): Output info for outgoing edges only when
18195 the node is in new parameter set.
18196 (output_cgraph_opt_summary): New parameter set, passed to the two
18197 aforementioned functions. Update its forward declaration and its
18198 callee too.
18199
18200 2011-01-05 Tom Tromey <tromey@redhat.com>
18201
18202 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18203 operator to c_finish_omp_atomic.
18204 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18205 (build_unary_op): Update.
18206 (build_modify_expr): Update.
18207 (build_asm_expr): Update.
18208
18209 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18210
18211 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18212 newly inserted insns.
18213 (pad_bb): Likewise.
18214 (spu_emit_branch_hint): Likewise.
18215 (insert_hbrp_for_ilb_runout): Likewise.
18216 (spu_machine_dependent_reorg): Call df_finish_pass after
18217 schedule_insns returns.
18218
18219 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18220
18221 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18222
18223 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18224
18225 PR tree-optimization/47005
18226 * tree-sra.c (struct access): Add 'non_addressable' bit.
18227 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18228 (decide_one_param_reduction): Return 0 if the parameter is passed by
18229 reference and one of the accesses in the group is non_addressable.
18230
18231 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18232
18233 PR tree-optimization/47056
18234 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18235 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18236 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18237
18238 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18239
18240 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18241 initializer. Skip view conversions from aggregate types.
18242
18243 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18244
18245 PR bootstrap/47055
18246 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18247
18248 2011-01-04 Philipp Thomas <pth@suse.de>
18249
18250 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18251 obvious typo.
18252
18253 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18254
18255 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18256 on empty epilogue sequences.
18257
18258 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18259
18260 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18261 non-static): New Driver options.
18262
18263 2011-01-04 Jie Zhang <jie@codesourcery.com>
18264
18265 PR driver/47137
18266 * gcc.c (default_compilers[]): Set combinable field to 0
18267 for all assembly languages.
18268
18269 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18270
18271 * config/mips/loongson3a.md: New file.
18272 * config/mips/mips.md: Include loongson3a.md.
18273 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18274 TUNE_LOONGSON_3A.
18275
18276 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18277
18278 PR middle-end/47017
18279 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18280 instead of convert_memory_address_addr_space on the base expression.
18281
18282 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18283
18284 * config/spu/spu.c (spu_option_override): Update error text
18285 for bad -march= / -mtune= values.
18286
18287 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18288
18289 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18290 if branch-hint optimization will be performed.
18291
18292 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18293
18294 PR tree-optimization/47148
18295 * ipa-split.c (split_function): Convert arguments to
18296 DECL_ARG_TYPE if possible.
18297
18298 PR tree-optimization/47155
18299 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18300 when computing uns.
18301
18302 PR rtl-optimization/47157
18303 * combine.c (try_combine): If undobuf.other_insn becomes
18304 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18305 and set *new_direct_jump_p too.
18306
18307 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18308
18309 PR tree-optimization/47021
18310 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18311
18312 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18313
18314 * gcc.c (process_command): Update copyright notice dates.
18315 * gcov.c (print_version): Likewise.
18316 * gcov-dump.c (print_version): Likewise.
18317 * mips-tfile.c (main): Likewise.
18318 * mips-tdump.c (main): Likewise.
18319
18320 2011-01-03 Martin Jambor <mjambor@suse.cz>
18321
18322 PR tree-optimization/46801
18323 * tree-sra.c (type_internals_preclude_sra_p): Check whether
18324 aggregate fields start at byte boundary instead of the bit-field flag.
18325
18326 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
18327
18328 PR driver/47137
18329 * gcc.c (main): Revert revision 168407.
18330
18331 2011-01-03 Martin Jambor <mjambor@suse.cz>
18332
18333 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18334
18335 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18336
18337 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18338 vector optab to expand vector/scalar shift, update gimple to vector.
18339
18340 2011-01-03 Martin Jambor <mjambor@suse.cz>
18341
18342 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18343 a thunk.
18344
18345 2011-01-03 Martin Jambor <mjambor@suse.cz>
18346
18347 PR tree-optimization/46984
18348 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18349 HOST_WIDE_INT.
18350 (cgraph_create_indirect_edge): Fixed line length.
18351 (cgraph_indirect_call_info): Declare.
18352 (cgraph_make_edge_direct) Update declaration.
18353 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18354 (cgraph_create_indirect_edge): Use it.
18355 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
18356 callees.
18357 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18358 the new thunk_delta representation.
18359 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18360 HOST_WIDE_INT.
18361 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18362 (ipa_read_indirect_edge_info): Likewise.
18363 * lto-cgraph.c (output_edge_opt_summary): New function.
18364 (output_node_opt_summary): Call it on all outgoing edges.
18365 (input_edge_opt_summary): New function.
18366 (input_node_opt_summary): Call it on all outgoing edges.
18367
18368 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
18369
18370 PR driver/47137
18371 * gcc.c (main): Don't check have_o when settting combine_inputs.
18372
18373 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
18374
18375 * regrename.c: Add general comment describing the pass.
18376 (struct du_head): Remove 'length' field.
18377 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18378 (regrename_optimize): Do not sort chains. Rework comments, add others.
18379 Force renaming to the preferred class (if any) in the first pass and do
18380 not consider registers that belong to it in the second pass.
18381 (create_new_chain): Do not set 'length' field.
18382 (scan_rtx_reg): Likewise.
18383
18384 2011-01-02 Jakub Jelinek <jakub@redhat.com>
18385
18386 PR tree-optimization/47140
18387 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18388 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18389 to bit_value_binop.
18390
18391 PR rtl-optimization/47028
18392 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
18393 parm_birth_insn instead of at the beginning of first bb.
18394
18395 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
18396
18397 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
18398 Remove the word "see" before "@pxref".
18399 * doc/rtl.texi: Remove the word "see" before "@pxref".
18400
18401 2011-01-01 Jan Hubicka <jh@suse.cz>
18402
18403 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
18404 memory.
18405
18406 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
18407
18408 PR target/38662
18409 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
18410
18411 \f
18412 Copyright (C) 2011 Free Software Foundation, Inc.
18413
18414 Copying and distribution of this file, with or without modification,
18415 are permitted in any medium without royalty provided the copyright
18416 notice and this notice are preserved.