317d05767a62ba1c70a5150a18b1490b916891c5
[gcc.git] / gcc / ChangeLog
1 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
2
3 PR tree-optimization/49478
4 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
5 with constant operand.
6
7 2011-06-21 Richard Guenther <rguenther@suse.de>
8
9 * ipa-inline-transform.c (inline_transform): Fix typo.
10
11 2011-06-21 Richard Guenther <rguenther@suse.de>
12
13 PR tree-optimization/49483
14 * tree-vect-stmts.c (vectorizable_assignment): Also handle
15 VIEW_CONVERT_EXPR conversions.
16
17 2011-06-21 Joseph Myers <joseph@codesourcery.com>
18
19 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
20 * config/avr/avr-tables.opt: New file (generated).
21 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
22 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
23 avr-mcus.def.
24 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
25 (avr_option_override): Don't process -mmcu= argument here. Set
26 avr_current_device using avr_mcu_index.
27 (avr_file_start): Use avr_current_device->name instead of
28 avr_mcu_name.
29 * config/avr/avr.opt (mmcu=): Use Enum.
30 * config/avr/t-avr (avr-devices.o): Update dependencies.
31 ($(srcdir)/config/avr/avr-tables.opt): New.
32 * target.def (help): Remove.
33 * doc/tm.texi.in (TARGET_HELP): Remove.
34 * doc/tm.texi: Regenerate.
35 * opts.c: Don't include target.h.
36 (common_handle_option): Don't call targetm.help.
37 * system.h (TARGET_HELP): Poison.
38 * Makefile.in (opts.o): Update dependencies.
39
40 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41
42 * config/usegld.h: New file.
43 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
44 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
45 (LIB_SPEC): Likewise.
46 Search /lib.
47 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
48 (RDYNAMIC_SPEC): Handle GNU ld.
49 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC): Define.
50 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
51 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
52 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
53 (STACK_CHECK_STATIC_BUILTIN): Define.
54 * config/sol2.opt (compat-bsd): Remove.
55 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
56 * config/sol2-bi.h: New file.
57 * config/sol2-gld.h: Remove.
58 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
59 (NO_DBX_BNSYM_ENSYM): Remove.
60 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
61 (STACK_CHECK_STATIC_BUILTIN): Remove.
62 Test USE_GLD instead of TARGET_GNU_LD.
63 * config/i386/sol2-10.h: Rename to ...
64 * config/i386/sol2-bi.h .. this.
65 (SUBTARGET_EXTRA_SPECS): Redefine.
66 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
67 (MULTILIB_DEFAULTS): Remove.
68 (DEFAULT_ARCH32_P): Define.
69 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
70 (ARCH64_SUBDIR): Define.
71 Test USE_GLD instead of TARGET_GNU_LD.
72 (I386_EMULATION): Rename to ...
73 (ARCH32_EMULATION): ... this.
74 (X86_64_EMULATION): Rename to ...
75 (ARCH64_EMULATION): ... this.
76 (TARGET_LD_EMULATION): Remove.
77 (LINK_ARCH_SPEC): Remove.
78 * config/i386/sol2-gas.h: Remove.
79 * config/i386/t-sol2-10: Rename to ...
80 * config/i386/t-sol2-64: ... this.
81 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
82 (AS_SPARC64_FLAG): Define.
83 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
84 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
85 depending on TARGET_CPU_DEFAULT.
86 (CPP_CPU_SPEC): Redefine.
87 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
88 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
89 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
90 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
91 ASM_ARCH_DEFAULT_SPEC): Redefine.
92 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
93 LINK_ARCH_DEFAULT_SPEC.
94 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
95 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
96 (ARCH64_SUBDIR): Define.
97 (LINK_ARCH64_SPEC): Redefine.
98 (CC1_SPEC): Redefine.
99 (OPTION_DEFAULT_SPECS): Redefine.
100 (MULTILIB_DEFAULTS): Define.
101 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
102 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
103 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
104 (NO_DBX_BNSYM_ENSYM): Remove.
105 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
106 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
107 (TARGET_ASM_NAMED_SECTION): Likewise.
108 (STACK_CHECK_STATIC_BUILTIN): Remove.
109 * config/sparc/sol2-bi.h: Remove.
110 * config/sparc/sol2-gas-bi.h: Remove.
111 * config/sparc/sol2-gas.h: Remove.
112 * config/sparc/sol2-gld-bi.h: Remove.
113 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
114 common parts ...
115 (*-*-solaris2*): ... here.
116
117 2011-06-21 Christian Bruel <christian.bruel@st.com>
118
119 PR other/43564
120 * ipa-inline.c (can_inline_edge_p): Check !DECL_DISREGARD_INLINE_LIMITS.
121
122 2011-06-21 Christian Bruel <christian.bruel@st.com>
123
124 PR middle-end/49139
125 * cgraphunit.c (process_function_and_variable_attributes): warn when
126 always_inline functions that are not inline.
127 * ipa-inline-transform.c (inline_transform): Always call optimize_inline.
128 * tree-inline.c (tree_inlinable_function_p): Use error instead of sorry.
129 (expand_call_inline): Likewise.
130
131 2011-06-21 Jakub Jelinek <jakub@redhat.com>
132
133 * Makefile.in (dg_target_exps): Set.
134 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
135 instead of 7, try to divide it more evenly.
136
137 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
138
139 PR i386/49089
140 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
141 (avx256_split_unaligned_store): New definition.
142 (ix86_option_override_internal): Enable avx256 unaligned load/store
143 splitting only when avx256_split_unaligned_load/store is set.
144
145 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
146
147 * regrename.c (scan_rtx_reg): Handle the case where we write to an
148 open chain in a smaller mode without failing the entire block.
149
150 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
151
152 PR middle-end/47725
153 * combine.c (cant_combine_insn_p): Don't check zero/sign
154 extended hard registers.
155
156 2011-06-21 Alan Modra <amodra@gmail.com>
157
158 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
159 CONST high part large-toc address.
160 (rs6000_tls_referenced_p): Make static.
161 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
162
163 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
164
165 PR middle-end/47725
166 * combine.c (cant_combine_insn_p): Check zero/sign extended
167 hard registers.
168
169 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
170
171 PR target/49385
172 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
173 one of the operands is a register.
174
175 2011-06-20 Kai Tietz <ktietz@redhat.com>
176
177 * fold-const.c (fold_binary_loc): Add missing
178 folding for truth-not operations in combination
179 with binary and.
180
181 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
182
183 * regrename.c (do_replace): Don't update notes.
184
185 2011-06-20 Alan Modra <amodra@gmail.com>
186
187 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
188 of toc-relative address in CONST.
189 (rs6000_delegitimize_address): Recognize changed address.
190 (rs6000_legitimize_reload_address): Likewise.
191 (rs6000_emit_move): Don't force these constants to memory.
192 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
193 toc-relative address in CONST.
194 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
195 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
196
197 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
198
199 * longlong.h (count_leading_zeros): Use long long builtin for
200 x86-64.
201 (count_trailing_zeros): Likewise.
202
203 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
204
205 PR other/49325
206 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
207 .init_array can be used with .ctors on targets.
208 * configure: Regenerated.
209
210 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
211
212 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
213 if the element type is volatile.
214
215 2011-06-18 Jan Hubicka <jh@suse.cz>
216
217 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
218 extra name aliases.
219 (lto_symtab_resolve_can_prevail_p): Likewise.
220 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
221 * cgraphbuild.c (record_reference): Remove extra body alias code.
222 (mark_load): Likewise.
223 (mark_store): Likewise.
224 * cgraph.h (varpool_node): Remove extra_name filed;
225 add alias_of and extraname_alias.
226 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
227 (varpool_alias_aliased_node): New inline function.
228 (varpool_variable_node): New function.
229 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
230 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
231 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
232 (input_varpool_node): Likewise.
233 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
234 (varpool_externally_visible_p): Remove extra body alias code.
235 (function_and_variable_visibility): Likewise.
236 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
237 (ipa_pta_execute): Use it.
238 * varpool.c (varpool_remove_node): Remove extra name alias code.
239 (varpool_mark_needed_node): Likewise.
240 (varpool_analyze_pending_decls): Analyze aliases.
241 (assemble_aliases): New functoin.
242 (varpool_assemble_decl): Use it.
243 (varpool_create_variable_alias): New function.
244 (varpool_extra_name_alias): Rewrite.
245 (varpool_for_node_and_aliases): New function.
246
247 2011-06-18 Jakub Jelinek <jakub@redhat.com>
248
249 PR target/49411
250 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
251 last_arg_constant and last argument doesn't match its predicate,
252 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
253 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
254 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
255 spelling of error message.
256 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
257 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
258 const_0_to_255_operand instead of const_int_operand.
259
260 Revert:
261 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
262
263 * config/i386/sse.md (blendbits): Remove mode attribute.
264 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
265 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
266 Check integer value of operand 3 in insn constraint.
267
268 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
269
270 PR rtl-optimization/48542
271 * reload.c (find_equiv_reg): Stop looking when finding a
272 setjmp-type call.
273 * reload1.c (reload_as_needed): Invalidate all reload
274 registers when crossing a setjmp-type call.
275
276 2011-06-16 Jeff Law <law@redhat.com>
277
278 * tree-ssa-threadupdate.c (struct redirection_data): New field
279 intermediate_edge.
280 (THREAD_TARGET2): Define.
281 (redirection_data_eq): Also check that the intermediate edge is
282 equal.
283 (lookup_redirection_data): Drop useless argument. Extract the
284 outgoing_edge and intermediate edge from E. Callers updated.
285 (copy_phi_args, update_destination_phis): New functions.
286 (fix_duplicate_block_edges): Likewise.
287 (create_edge_and_update_destination_phis): Duplicate all the edges
288 hung off e->aux. Use copy_phi_args.
289 (create_duplicates): Use fix_duplicate_block_edges.
290 (fixup_template_block): Likewise.
291 (redirect_edges): If necessary, redirect the joiner block's incoming
292 edge to the duplicate of the joiner block.
293 (thread_block): Don't muck up loops when threading through a joiner
294 block.
295 (thread_through_loop_header): Handle threading through a joiner
296 block.
297 (mark_threaded_blocks, register_jump_thread): Likewise.
298 * tree-flow.h (register_jump_thread): Add new argument. Callers
299 updated.
300 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
301 (thread_across_edge): Handle threading through a joiner block.
302
303 2011-06-16 Martin Jambor <mjambor@suse.cz>
304
305 PR tree-optimization/49343
306 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
307 calculate offset, provide 2nd operand for the new COMPONENT_REF.
308
309 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
310
311 * config/darwin-protos.h (machopic_select_rtx_section): Move to
312 inside RTX_CODE ifdef.
313
314 2011-06-16 Tom de Vries <tom@codesourcery.com>
315
316 PR target/45098
317 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): Disallow
318 NULL pointer for pointer arithmetic.
319
320 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
321
322 PR target/49398
323 Revert.
324 2011-06-10 Wei Guozhi <carrot@google.com>
325
326 PR target/45335
327 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
328 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
329 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
330 related peephole2.
331 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
332 related peephole2.
333 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
334 (arm_legitimate_ldrd_p): New prototype.
335 (arm_output_ldrd): New prototype.
336 * config/arm/arm.c (arm_check_ldrd_operands): New function.
337 (arm_legitimate_ldrd_p): New function.
338 (arm_output_ldrd): New function.
339
340 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
341
342 PR middle-end/46500
343 * doc/tm.texi.in: Update Copyright date.
344 * doc/tm.texi: Regenerate.
345 * targhooks.c (default_setup_incoming_varargs): Replace
346 CUMULATIVE_ARGS* argument type with cumulative_args_t.
347 (default_pretend_outgoing_varargs_named): Likewise.
348 (hook_pass_by_reference_must_pass_in_stack): Likewise.
349 (hook_callee_copies_named): Likewise.
350 (default_function_arg_advance): Likewise.
351 (default_function_arg): Likewise.
352 (default_function_incoming_arg): Likewise.
353 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
354 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
355 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
356 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
357 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
358 * targhooks.h (default_setup_incoming_varargs): Likewise.
359 (default_pretend_outgoing_varargs_named): Likewise.
360 (hook_pass_by_reference_must_pass_in_stack): Likewise.
361 (hook_callee_copies_named): Likewise.
362 (default_function_arg_advance): Likewise.
363 (default_function_arg): Likewise.
364 (default_function_incoming_arg): Likewise.
365 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
366 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
367 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
368 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
369 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
370 * target.def (pass_by_reference): Likewise.
371 (setup_incoming_varargs, strict_argument_naming): Likewise.
372 (pretend_outgoing_varargs_named, callee_copies): Likewise.
373 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
374 (function_incoming_arg): Likewise.
375 * target.h: Don't include "tm.h" .
376 (cumulative_args_t): New typedef.
377 [GCC_TM_H] (get_cumulative_args): New static inline function.
378 [GCC_TM_H] (pack_cumulative_args): Likewise.
379 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
380 argument type with cumulative_args_t.
381 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
382 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
383 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
384 (frv_arg_partial_bytes, frv_function_arg): Likewise.
385 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
386 (frv_function_arg_1): Likewise.
387 * config/s390/s390.c (s390_pass_by_reference): Likewise.
388 (s390_function_arg_advance, s390_function_arg): Likewise.
389 * config/m32c/m32c.c (m32c_function_arg): Likewise.
390 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
391 (m32c_strict_argument_naming): Likewise.
392 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
393 (spu_function_arg_advance): Likewise.
394 (spu_setup_incoming_varargs): Likewise. Make static.
395 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
396 Remove prototype.
397 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
398 CUMULATIVE_ARGS* argument type with cumulative_args_t.
399 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
400 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
401 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
402 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
403 (mep_pass_by_reference, mep_function_arg): Likewise.
404 (mep_function_arg_advance): Likewise.
405 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
406 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
407 (m32r_function_arg, m32r_function_arg_advance): Likewise.
408 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
409 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
410 (ix86_function_arg, ix86_pass_by_reference): Likewise.
411 (ix86_setup_incoming_varargs): Likewise.
412 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
413 (sh_strict_argument_naming): Likewise.
414 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
415 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
416 (sh_function_arg_advance, sh_function_arg): Likewise.
417 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
418 (pdp11_function_arg_advance): Likewise.
419 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
420 Likewise.
421 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
422 * config/avr/avr.c (avr_function_arg): Likewise.
423 (avr_function_arg_advance): Likewise.
424 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
425 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
426 (xtensa_function_arg_1): Likewise.
427 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Likewise.
428 (xstormy16_function_arg): Likewise.
429 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
430 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
431 (fr30_function_arg_advance): Likewise.
432 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
433 (lm32_function_arg, lm32_function_arg_advance): Likewise.
434 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
435 (moxie_function_arg, moxie_function_arg_advance): Likewise.
436 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
437 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
438 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
439 (cris_function_arg, cris_function_incoming_arg): Likewise.
440 (cris_function_arg_advance, cris_function_arg_1): Likewise.
441 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
442 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
443 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
444 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
445 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
446 (mn10300_arg_partial_bytes): Likewise.
447 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
448 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
449 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
450 (ia64_function_arg_1): Likewise.
451 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
452 (m68k_function_arg): Likewise.
453 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
454 (rs6000_function_arg, setup_incoming_varargs): Likewise.
455 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
456 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
457 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
458 (picochip_arg_advance): Likewise.
459 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
460 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
461 (mcore_function_arg_advance): Likewise.
462 * config/score/score.c (score_pass_by_reference): Likewise.
463 (score_function_arg_advance): Likewise.
464 (score_arg_partial_bytes): Likewise. Make static.
465 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
466 * config/arm/arm.c (arm_arg_partial_bytes): Replace
467 CUMULATIVE_ARGS* argument type with cumulative_args_t.
468 (arm_function_arg, arm_function_arg_advance): Likewise.
469 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
470 * config/pa/pa.c (pa_pass_by_reference): Likewise.
471 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
472 (pa_function_arg): Likewise.
473 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
474 (mips_function_arg, mips_function_arg_advance): Likewise.
475 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
476 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
477 * config/vax/vax.c (vax_function_arg): Likewise.
478 (vax_function_arg_advance): Likewise.
479 * config/h8300/h8300.c (h8300_function_arg): Likewise.
480 (h8300_function_arg_advance): Likewise.
481 * config/v850/v850.c (v850_pass_by_reference): Likewise.
482 (v850_strict_argument_naming, v850_function_arg): Likewise.
483 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
484 (v850_setup_incoming_varargs): Likewise.
485 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
486 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
487 (mmix_function_arg, mmix_pass_by_reference): Likewise.
488 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
489 with const void *.
490 * config/bfin/bfin.c (setup_incoming_varargs): Replace
491 CUMULATIVE_ARGS* argument type with cumulative_args_t.
492 (bfin_function_arg_advance, bfin_function_arg): Likewise.
493 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
494 * calls.c (emit_call_1): Change type of args_so_far to
495 cumulative_args_t. Changed all callers.
496 (initialize_argument_information): Likewise.
497 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
498 * dse.c (get_call_args): Likewise.
499 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
500 * function.c (pass_by_reference, reference_callee_copied): Likewise.
501 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
502 New member args_so_far_v. Changed all users.
503 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
504 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
505 * config/mips/mips.c (mips_output_args_xfer): Likewise.
506 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
507 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
508 * config/microblaze/microblaze.c (microblaze_expand_prologue): Likewise.
509 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
510 m32r_pass_by_reference.
511
512 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
513
514 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
515 argument to be a VEC of statements.
516 * tree-vect-loop.c (vect_determine_vectorization_factor):
517 Remove the assert that pattern statements have to have their
518 vector type set.
519 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
520 Change the first argument to be a VEC of statements. Update
521 documentation.
522 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
523 (vect_handle_widen_mult_by_const): New function.
524 (vect_recog_widen_mult_pattern): Change the first argument to
525 be a VEC of statements. Update documentation. Check that the
526 constant is INTEGER_CST. Support multiplication by a constant
527 that fits an intermediate type - call
528 vect_handle_widen_mult_by_const.
529 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
530 call. Handle additional pattern statements if necessary.
531
532 2011-06-16 Nick Clifton <nickc@redhat.com>
533
534 PR target/49427
535 * config.gcc: Set cpu_type to v850 for any V850 architecture.
536 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
537 md_file, extra_modes, out_file and extra_options are these are all
538 deduced from cpu_type.
539
540 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
541
542 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
543 truncation mask to 63.
544
545 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
546
547 PR target/49313
548 PR target/29524
549 * longlong.h: Add AVR support:
550 (count_leading_zeros): New macro.
551 (count_trailing_zeros): New macro.
552 (COUNT_LEADING_ZEROS_0): New macro.
553 * config/avr/t-avr (LIB1ASMFUNCS): Add
554 _ffssi2, _ffshi2, _loop_ffsqi2,
555 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2,
556 _paritydi2, _paritysi2, _parityhi2,
557 _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
558 _bswapsi2, _bswapdi2,
559 _ashldi3, _ashrdi3, _lshrdi3
560 (LIB2FUNCS_EXCLUDE): Add _clz.
561 * config/avr/libgcc.S (XCALL): Move up in file.
562 (XJMP): New C Macro.
563 (DEFUN): New asm macro.
564 (ENDF): New asm macro.
565 (__ffssi2): New function.
566 (__ffshi2): New function.
567 (__loop_ffsqi2): New function.
568 (__ctzsi2): New function.
569 (__ctzhi2): New function.
570 (__clzdi2): New function.
571 (__clzsi2): New function.
572 (__clzhi2): New function.
573 (__paritydi2): New function.
574 (__paritysi2): New function.
575 (__parityhi2): New function.
576 (__parityqi2): New function.
577 (__popcounthi2): New function.
578 (__popcountsi2): New function.
579 (__popcountdi2): New function.
580 (__popcountqi2): New function.
581 (__bswapsi2): New function.
582 (__bswapdi2): New function.
583 (__ashldi3): New function.
584 (__ashrdi3): New function.
585 (__lshrdi3): New function.
586 Fix suspicous lines.
587
588 2011-06-16 Richard Guenther <rguenther@suse.de>
589
590 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
591 the same as x != 0.
592 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0 to
593 (bool) X & 1.
594 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
595 equality compares against zero for the lower bit.
596
597 2011-06-16 Jakub Jelinek <jakub@redhat.com>
598
599 PR tree-optimization/49419
600 * tree-vrp.c (execute_vrp): Call init_range_assertions
601 before estimate_numbers_of_iterations, call
602 free_number_of_iterations_estimates before calling
603 remove_range_assertions.
604
605 2011-06-16 Revital Eres <revital.eres@linaro.org>
606
607 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
608 (struct partial_schedule): Add rows_length field.
609 (verify_partial_schedule): Check rows_length.
610 (ps_insert_empty_row): Handle rows_length.
611 (create_partial_schedule): Likewise.
612 (free_partial_schedule): Likewise.
613 (reset_partial_schedule): Likewise.
614 (create_ps_insn): Remove rest_count argument.
615 (remove_node_from_ps): Update rows_length.
616 (add_node_to_ps): Update rows_length and call create_ps_insn
617 without passing row_rest_count.
618 (rotate_partial_schedule): Update rows_length.
619
620 2011-06-16 Revital Eres <revital.eres@linaro.org>
621
622 * ddg.c (add_intra_loop_mem_dep): New function.
623 (build_intra_loop_deps): Call it.
624
625 2011-06-13 Jeff Law <law@redhat.com>
626
627 * df-problems.c (df_lr_local_compute): Manually CSE
628 PIC_OFFSET_TABLE_REGNUM.
629 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
630 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
631
632 2011-06-13 Jan Hubicka <jh@suse.cz>
633
634 * cgraphunit.c (handle_alias_pairs): New function.
635 (cgraph_finalize_compilation_unit): Use it.
636 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
637 as externally visible.
638
639 2011-06-15 Richard Guenther <rguenther@suse.de>
640
641 * expr.c (expand_expr_real_2): Reduce all integral types to
642 bitfield precision.
643 (expand_expr_real_1): Likewise.
644
645 2011-06-15 Martin Jambor <mjambor@suse.cz>
646
647 PR tree-optimization/48613
648 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
649 ipa_node_params_vector is NULL.
650
651 2011-06-15 Jakub Jelinek <jakub@redhat.com>
652
653 PR debug/49382
654 * dwarf2out.c (dw_loc_list_node): Add force field.
655 (add_var_loc_to_decl): For PARM_DECL, attempt to keep
656 the incoming location in the list, even if it is modified
657 before first real insn.
658 (output_loc_list): Emit empty ranges with force flag set.
659 (dw_loc_list): If first range of a PARM_DECL is empty,
660 set force flag.
661
662 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
663
664 PR target/49349
665 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
666 (fence_to_rewind). Use it to notice when bookkeeping will be placed
667 above a fence. Update comments.
668 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
669 placed just above it. Do not allow NULL place_to_insert.
670
671 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
672
673 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
674 (slpeel_tree_peel_loop_to_edge): Don't call
675 remove_dead_stmts_from_loop.
676 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
677 remove irrelevant pattern statements. For irrelevant statements
678 check if it is the last statement of a detected pattern, use
679 corresponding pattern statement instead.
680 (destroy_loop_vec_info): No need to remove pattern statements,
681 only free stmt_vec_info.
682 (vect_transform_loop): For irrelevant statements check if it is
683 the last statement of a detected pattern, use corresponding
684 pattern statement instead.
685 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
686 pattern statements. Set basic block for the new statement.
687 (vect_pattern_recog): Update documentation.
688 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
689 operands of pattern statements.
690 (vectorizable_call): Fix printing. In case of a pattern statement
691 use the lhs of the original statement when creating a dummy
692 statement to replace the original call.
693 (vect_analyze_stmt): For irrelevant statements check if it is
694 the last statement of a detected pattern, use corresponding
695 pattern statement instead.
696 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
697 statements use gsi of the original statement.
698
699 2011-06-14 Joseph Myers <joseph@codesourcery.com>
700
701 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
702 common/common-target-def.h.
703 * target.def (default_target_flags, handle_option,
704 supports_split_stack, optimization_table, init_struct,
705 except_unwind_info, unwind_tables_default, have_named_sections):
706 Move to common/common-target.def.
707 * target.h (enum opt_levels, struct default_options): Move to
708 common/common-target.h.
709 * targhooks.c (default_except_unwind_info,
710 dwarf2_except_unwind_info, sjlj_except_unwind_info,
711 default_target_handle_option, empty_optimization_table): Move to
712 common/common-targhooks.c.
713 * targhooks.h (default_except_unwind_info,
714 dwarf2_except_unwind_info, sjlj_except_unwind_info,
715 default_target_handle_option, empty_optimization_table): Move to
716 common/common-targhooks.h.
717 * common/common-target-def.h: Include common/common-targhooks.h.
718 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
719 defined.
720 * common/common-target.def (handle_option, option_init_struct,
721 option_optimization_table, default_target_flags,
722 except_unwind_info, supports_split_stack, unwind_tables_default,
723 have_named_sections): Move from target.def.
724 (HOOK_PREFIX): Undefine at end of file.
725 * common/common-target.h: Include input.h.
726 (enum opt_levels, struct default_options): Move from target.h.
727 * common/common-targhooks.c, common/common-targhooks.h: New.
728 * config.gcc (target_has_targetm_common): Default to yes.
729 (moxie*): Set target_has_targetm_common=no.
730 (hppa*-*-*): Don't set target_has_targetm_common=yes.
731 * doc/tm.texi: Regenerate.
732 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
733 (C_TARGET_DEF_H): Add common/common-targhooks.h.
734 (GCC_OBJS): Remove vec.o.
735 (OBJS): Remove hooks.o and vec.o.
736 (OBJS-libcommon-target): Add vec.o, hooks.o and
737 common/common-targhooks.o.
738 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
739 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
740 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
741 cfglayout.o, $(out_object_file), $(common_out_object_file)):
742 Update dependencies.
743 (common/common-targhooks.o): New.
744 * common/config/default-common.c: Include tm.h. Add FIXME
745 comment.
746 * common/config/pa/pa-common.c: Include more headers. Take
747 copyright dates from pa.c.
748 (pa_option_optimization_table, pa_handle_option,
749 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
750 TARGET_HANDLE_OPTION): Move from pa.c.
751 * common/config/alpha/alpha-common.c,
752 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
753 common/config/bfin/bfin-common.c,
754 common/config/cris/cris-common.c,
755 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
756 common/config/h8300/h8300-common.c,
757 common/config/i386/i386-common.c,
758 common/config/ia64/ia64-common.c,
759 common/config/iq2000/iq2000-common.c,
760 common/config/lm32/lm32-common.c,
761 common/config/m32c/m32c-common.c,
762 common/config/m32r/m32r-common.c,
763 common/config/m68k/m68k-common.c,
764 common/config/mcore/mcore-common.c,
765 common/config/mep/mep-common.c,
766 common/config/microblaze/microblaze-common.c,
767 common/config/mips/mips-common.c,
768 common/config/mmix/mmix-common.c,
769 common/config/mn10300/mn10300-common.c,
770 common/config/pdp11/pdp11-common.c,
771 common/config/picochip/picochip-common.c,
772 common/config/rs6000/rs6000-common.c,
773 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
774 common/config/score/score-common.c, common/config/sh/sh-common.c,
775 common/config/sparc/sparc-common.c,
776 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
777 common/config/vax/vax-common.c,
778 common/config/xstormy16/xstormy16-common.c,
779 common/config/xtensa/xtensa-common.c: New.
780 * config/alpha/alpha.c: Include common/common-target.h.
781 (alpha_option_optimization_table, alpha_handle_option,
782 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
783 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
784 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
785 * config/arm/arm.c (arm_option_optimization_table,
786 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
787 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
788 arm-common.c.
789 * config/avr/avr.c (avr_option_optimization_table,
790 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
791 to avr-common.c.
792 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
793 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
794 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
795 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
796 * config/cris/cris.c (cris_option_optimization_table,
797 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
798 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
799 cris-common.c.
800 * config/fr30/fr30.c (fr30_option_optimization_table,
801 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
802 to fr30-common.c.
803 * config/frv/frv.c (frv_option_optimization_table,
804 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
805 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
806 * config/h8300/h8300.c (h8300_option_optimization_table,
807 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
808 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
809 * config/i386/i386-protos.h (ix86_handle_option): Declare.
810 * config/i386/i386.c: Include common/common-target.h.
811 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
812 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
813 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
814 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
815 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
816 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
817 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
818 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
819 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
820 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
821 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
822 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
823 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
824 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
825 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
826 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
827 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
828 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
829 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
830 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
831 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
832 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
833 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
834 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
835 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
836 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
837 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
838 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
839 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
840 ix86_option_optimization_table, ix86_option_init_struct,
841 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
842 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
843 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
844 i386-common.c.
845 * config/i386/t-i386 (i386.o): Update dependencies.
846 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
847 * config/ia64/ia64.c (ia64_option_optimization_table,
848 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
849 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
850 ia64_handle_option): Move to ia64-common.c.
851 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
852 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
853 * config/lm32/lm32.c (lm32_option_optimization_table,
854 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
855 to lm32-common.c.
856 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
857 m32c-common.c.
858 * config/m32r/m32r.c (m32r_option_optimization_table,
859 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
860 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
861 m32r_handle_option): Move to m32r-common.c.
862 (m32r_memory_move_cost): Remove comment referring to
863 TARGET_HANDLE_OPTION.
864 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
865 Move to m68k-common.c.
866 * config/mcore/mcore.c (mcore_option_optimization_table,
867 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
868 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
869 * config/mep/mep.c (mep_option_optimization_table,
870 mep_handle_option, TARGET_HANDLE_OPTION,
871 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
872 Move to mep-common.c.
873 * config/microblaze/microblaze.c
874 (microblaze_option_optimization_table,
875 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
876 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
877 * config/mips/mips.c (mips_handle_option,
878 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
879 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
880 mips-common.c.
881 * config/mmix/mmix.c (mmix_option_optimization_table,
882 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
883 Move to mmix-common.c.
884 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
885 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
886 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
887 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
888 * config/pa/pa.c: Include common/common-target.h.
889 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
890 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
891 pa_handle_option): Move to pa-common.c.
892 (pa_option_override): Use targetm_common.except_unwind_info.
893 (pa_asm_output_mi_thunk, pa_function_section): Use
894 targetm_common.have_named_sections.
895 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
896 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
897 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
898 pdp11_handle_option, pdp11_option_init_struct): Move to
899 pdp11-common.c.
900 * config/picochip/picochip.c (picochip_option_optimization_table,
901 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
902 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
903 * config/rs6000/rs6000.c: Include common/common-target.h.
904 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
905 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
906 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
907 rs6000_handle_option): Move to rs6000-common.c.
908 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
909 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
910 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
911 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
912 * config/s390/s390.c (processor_flags_table,
913 s390_option_optimization_table, s390_option_init_struct,
914 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
915 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
916 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
917 * config/s390/s390.h (processor_flags_table): Declare.
918 * config/score/score.c (score_option_optimization_table,
919 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
920 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
921 score_handle_option): Move to score-common.c.
922 * config/sh/sh.c (sh_option_optimization_table,
923 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
924 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
925 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
926 * config/sparc/sparc.c: Include common/common-target.h.
927 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
928 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
929 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
930 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
931 spu_option_init_struct): Move to spu-common.c.
932 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
933 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
934 * config/v850/v850.c (small_memory_physical_max,
935 v850_handle_memory_optionn v850_handle_option,
936 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
937 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
938 v850-common.c.
939 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
940 vax-common.c.
941 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
942 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
943 Move to xtensa-common.c.
944 * cfglayout.c: Include common/common-target.h.
945 (fixup_reorder_chain): Use targetm_common.have_named_sections.
946 * cfgrtl.c: Include common/common-target.h.
947 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
948 targetm_common.have_named_sections.
949 * dbxout.c: Include common/common-target.h.
950 (dbxout_function_end): Use targetm_common.have_named_sections.
951 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
952 targetm_common.except_unwind_info.
953 * dwarf2out.c: Include common/common-target.h.
954 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
955 dwarf2out_begin_prologue, dwarf2out_frame_init,
956 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
957 targetm_common.except_unwind_info.
958 * except.c: Include common/common-target.h.
959 (init_eh, finish_eh_generation,
960 output_one_function_exception_table): Use
961 targetm_common.except_unwind_info.
962 (switch_to_exception_section): Use
963 targetm_common.have_named_sections.
964 * explow.c: Include common/common-target.h.
965 * expr.c: Include common/common-target.h.
966 (build_personality_function): Use
967 targetm_common.except_unwind_info.
968 * function.c: Include common/common-target.h.
969 (expand_function_end): Use targetm_common.except_unwind_info.
970 * haifa-sched.c: Include common/common-target.h.
971 (sched_create_recovery_edges): Use
972 targetm_common.have_named_sections.
973 * lto-opts.c: Include common/common-target.h instead of target.h.
974 (lto_reissue_options): Use targetm_common.handle_option.
975 * opts.c: Include common/common-target.h.
976 (target_handle_option): Use targetm_common.handle_option.
977 (init_options_struct): Update comment referring to
978 targetm.target_option.optimization. Use
979 targetm_common.default_target_flags,
980 targetm_common.unwind_tables_default and
981 targetm_common.option_init_struct.
982 (default_options_optimization): Use
983 targetm_common.option_optimization_table.
984 (finish_options): Use targetm_common.except_unwind_info,
985 targetm_common.unwind_tables_default,
986 targetm_common.have_named_sections and
987 targetm_common.supports_split_stack.
988 * toplev.c: Include common/common-target.h.
989 (process_options): Use targetm_common.have_named_sections.
990 * tree-tailcall.c: Include common/common-target.h.
991 (suitable_for_tail_call_opt_p): Use
992 targetm_common.except_unwind_info.
993 * tree.c: Include common/common-target.h.
994 (build_common_builtin_nodes): Use
995 targetm_common.except_unwind_info.
996 * varasm.c: Include common/common-target.h.
997 (resolve_unique_section, hot_function_section,
998 default_function_section): Use targetm_common.have_named_sections.
999
1000 2011-06-14 Easwaran Raman <eraman@google.com>
1001
1002 PR rtl-optimization/44194
1003 * dse.c: Include tree-flow.h
1004 (insn_info): Add new field non_frame_wild_read.
1005 (group_info): Add new fields escaped_n and escaped_p.
1006 (kill_on_calls): New variable.
1007 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
1008 (dse_step0): Initialize kill_on_calls.
1009 (can_escape): New function.
1010 (set_usage_bits): Add additional parameter; record information
1011 about escaped locations.
1012 (record_store): Pass EXPR corresponding to MEM to
1013 set_usage_bits.
1014 (dse_step2_nospill): Set kill_on_calls based on
1015 group->escaped_n and group->escaped_n.
1016 (add_wild_read): Refactor into...
1017 (reset_active_stores): ... New function, and
1018 (free_read_records): ... New function.
1019 (add_non_frame_wild_read): New function.
1020 (scan_insn): Call add_non_frame_wild_read on non-const calls.
1021 (scan_reads_nospill): Handle instructions with
1022 non_frame_wild_read.
1023 (dse_step5_nospill): Call scan_reads_nospill for instructions
1024 marked as non_frame_wild_read.
1025 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
1026 bitmaps.
1027
1028 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1029
1030 * common/common-target-def.h, common/common-target.def,
1031 common/common-target.h, common/config/default-common.c,
1032 common/config/pa/pa-common.c: New files.
1033 * Makefile.in (common_out_file, common_out_object_file,
1034 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
1035 (OBJS-libcommon-target): Include $(common_out_object_file).
1036 (prefix.o): Update dependencies.
1037 ($(common_out_object_file), common/common-target-hooks-def.h,
1038 s-common-target-hooks-def-h): New.
1039 (s-tm-texi): Also check timestamp on common-target.def.
1040 (build/genhooks.o): Update dependencies.
1041 * config.gcc (common_out_file, target_has_targetm_common): Define.
1042 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
1043 TARGET_ALWAYS_STRIP_DOTDOT.
1044 * configure.ac (common_out_object_file): Define.
1045 (common_out_file, common_out_object_file): Substitute.
1046 (common): Create directory.
1047 * configure: Regenerate.
1048 * doc/tm.texi.in (targetm_common): Document.
1049 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
1050 * doc/tm.texi: Regenerate.
1051 * genhooks.c (hook_array): Also include common/common-target.def.
1052 * prefix.c (tm.h): Don't include.
1053 (common/common-target.h): Include.
1054 (ALWAYS_STRIP_DOTDOT): Don't define.
1055 (update_path): Use targetm_common.always_strip_dotdot instead of
1056 ALWAYS_STRIP_DOTDOT.
1057 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
1058
1059 2011-06-14 David Li <davidxl@google.com>
1060
1061 * passes.c (execute_function_todo): Remove TODO_dump_func.
1062 (execute_one_pass): Remove TODO_dump_func.
1063 (execute_function_dump): New function.
1064 * tree-vrp.c: Remove TODO_dump_func.
1065 * regrename.c: Remove TODO_dump_func.
1066 * fwprop.c: Remove TODO_dump_func.
1067 * tree-into-ssa.c: Remove TODO_dump_func.
1068 * tree-complex.c: Remove TODO_dump_func.
1069 * tracer.c: Remove TODO_dump_func.
1070 * tree-loop-distribution.c: Remove TODO_dump_func.
1071 * postreload-gcse.c: Remove TODO_dump_func.
1072 * postreload.c: Remove TODO_dump_func.
1073 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
1074 * tree-tailcall.c: Remove TODO_dump_func.
1075 * ipa-cp.c: Remove TODO_dump_func.
1076 * final.c: Remove TODO_dump_func.
1077 * tree-emutls.c: Remove TODO_dump_func.
1078 * omp-low.c: Remove TODO_dump_func.
1079 * tree-ssa-dse.c: Remove TODO_dump_func.
1080 * tree-ssa-uncprop.c: Remove TODO_dump_func.
1081 * auto-inc-dec.c: Remove TODO_dump_func.
1082 * reorg.c: Remove TODO_dump_func.
1083 * tree-ssa-copyrename.c: Remove TODO_dump_func.
1084 * tree-ssa-ccp.c: Remove TODO_dump_func.
1085 * compare-elim.c: Remove TODO_dump_func.
1086 * mode-switching.c: Remove TODO_dump_func.
1087 * modulo-sched.c: Remove TODO_dump_func.
1088 * tree-call-cdce.c: Remove TODO_dump_func.
1089 * cse.c: Remove TODO_dump_func.
1090 * web.c: Remove TODO_dump_func.
1091 * tree-stdarg.c: Remove TODO_dump_func.
1092 * lto-streamer-out.c: Remove TODO_dump_func.
1093 * tree-ssa-math-opts.c: Remove TODO_dump_func.
1094 * tree-ssa-dom.c: Remove TODO_dump_func.
1095 * tree-nrv.c: Remove TODO_dump_func.
1096 * loop-init.c: Remove TODO_dump_func.
1097 * gimple-low.c: Remove TODO_dump_func.
1098 * ipa-inline.c: Remove TODO_dump_func.
1099 * tree-ssa-sink.c: Remove TODO_dump_func.
1100 * jump.c: Remove TODO_dump_func.
1101 * ifcvt.c: Remove TODO_dump_func.
1102 * tree-ssa-loop.c: Remove TODO_dump_func.
1103 * recog.c: Remove TODO_dump_func.
1104 * dse.c: Remove TODO_dump_func.
1105 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
1106 * matrix-reorg.c: Remove TODO_dump_func.
1107 * tree-eh.c: Remove TODO_dump_func.
1108 * regmove.c: Remove TODO_dump_func.
1109 * function.c: Remove TODO_dump_func.
1110 * tree-vectorizer.c: Remove TODO_dump_func.
1111 * ipa-split.c: Remove TODO_dump_func.
1112 * gcse.c: Remove TODO_dump_func.
1113 * tree-if-conv.c: Remove TODO_dump_func.
1114 * init-regs.c: Remove TODO_dump_func.
1115 * tree-ssa-phiopt.c: Remove TODO_dump_func.
1116 * implicit-zee.c: Remove TODO_dump_func.
1117 * lower-subreg.c: Remove TODO_dump_func.
1118 * bt-load.c: Remove TODO_dump_func.
1119 * tree-dfa.c: Remove TODO_dump_func.
1120 * except.c: Remove TODO_dump_func.
1121 * emit-rtl.c: Remove TODO_dump_func.
1122 * store-motion.c: Remove TODO_dump_func.
1123 * cfgexpand.c: Remove TODO_dump_func.
1124 * tree-cfgcleanup.c: Remove TODO_dump_func.
1125 * cfgcleanup.c: Remove TODO_dump_func.
1126 * tree-ssa-pre.c: Remove TODO_dump_func.
1127 * tree-sra.c: Remove TODO_dump_func.
1128 * tree-mudflap.c: Remove TODO_dump_func.
1129 * tree-ssa-copy.c: Remove TODO_dump_func.
1130 * cfglayout.c: Remove TODO_dump_func.
1131 * tree-ssa-forwprop.c: Remove TODO_dump_func.
1132 * tree-ssa-dce.c: Remove TODO_dump_func.
1133 * ira.c: Remove TODO_dump_func.
1134 * tree-ssa.c: Remove TODO_dump_func.
1135 * integrate.c: Remove TODO_dump_func.
1136 * tree-optimize.c: Remove TODO_dump_func.
1137 * tree-ssa-phiprop.c: Remove TODO_dump_func.
1138 * tree-object-size.c: Remove TODO_dump_func.
1139 * combine.c: Remove TODO_dump_func.
1140 * bb-reorder.c: Remove TODO_dump_func.
1141 * cprop.c: Remove TODO_dump_func.
1142 * var-tracking.c: Remove TODO_dump_func.
1143 * tree-profile.c: Remove TODO_dump_func.
1144 * tree-vect-generic.c: Remove TODO_dump_func.
1145 * reg-stack.c: Remove TODO_dump_func.
1146 * sched-rgn.c: Remove TODO_dump_func.
1147 * tree-ssa-structalias.c: Remove TODO_dump_func.
1148 * tree-switch-conversion.c: Remove TODO_dump_func.
1149 * tree-cfg.c: Remove TODO_dump_func.
1150 * tree-ssa-reassoc.c: Remove TODO_dump_func.
1151 * combine-stack-adj.c: Remove TODO_dump_func.
1152 * dce.c: Remove TODO_dump_func.
1153 * tree-ssanames.c: Remove TODO_dump_func.
1154 * regcprop.c: Remove TODO_dump_func.
1155
1156 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
1157
1158 PR middle-end/47364
1159 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
1160 and properly handle result not in Pmode.
1161
1162 2011-06-14 Robert Millan <rmh@gnu.org>
1163
1164 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
1165 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
1166 `config/linux.h'.
1167
1168 * config/i386/kfreebsd-gnu64.h: New file.
1169 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
1170 with `i386/kfreebsd-gnu64.h'.
1171
1172 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
1173 (GNU_USER_LINK_EMULATION64): New macros.
1174 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
1175 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
1176 of hardcoding `elf_i386' and `elf_x86_64'.
1177
1178 2011-06-14 Nick Clifton <nickc@redhat.com>
1179
1180 PR target/49403
1181 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
1182
1183 PR target/49402
1184 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
1185
1186 2011-06-14 Jakub Jelinek <jakub@redhat.com>
1187
1188 PR fortran/49103
1189 * tree.h (DECL_NONSHAREABLE): Define.
1190 (struct tree_decl_common): Change decl_common_unused to
1191 decl_nonshareable_flag.
1192 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
1193 Ignore vars with DECL_NONSHAREABLE bit set.
1194 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
1195 on stores to automatic aggregate vars.
1196
1197 PR rtl-optimization/49390
1198 Revert:
1199 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1200
1201 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1202 MEM_ALIAS_SET.
1203
1204 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
1205 Tom de Vries <tom@codesourcery.com>
1206
1207 PR target/45098
1208 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
1209 Document changed semantics.
1210 (max_stmt_executions, max_stmt_executions_int): Declare.
1211 * tree-data-ref.c (estimated_loop_iterations)
1212 (estimated_loop_iterations_int): Move functions...
1213 * tree-ssa-loop-niter.c (estimated_loop_iterations)
1214 (estimated_loop_iterations_int): here.
1215 (record_estimate): Change nb_iterations_upper_bound and
1216 nb_iterations_estimate semantics.
1217 (max_stmt_executions, max_stmt_executions_int): New function.
1218 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
1219 (max_stmt_executions_tree): this.
1220 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
1221 estimated_loop_iterations_tree.
1222 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
1223 max_stmt_executions_int instead of estimated_loop_iterations_int.
1224 * predict.c (predict_loops): Idem.
1225 * tree-parloops.c (parallelize_loops): Idem.
1226 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
1227 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
1228 (init_omega_for_ddr_1): Idem.
1229 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
1230 (loop_prefetch_arrays): Idem
1231 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
1232 max_stmt_executions instead of estimated_loop_iterations.
1233 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
1234 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
1235 instead of nb_iterations_upper_bound.
1236
1237 2011-06-13 Jan Hubicka <jh@suse.cz>
1238
1239 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
1240
1241 2011-06-14 Richard Henderson <rth@redhat.com>
1242
1243 PR debug/48459
1244 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
1245 (based_loc_descr): Assert it's true.
1246 (compute_frame_pointer_to_fb_displacement): Set it, rather than
1247 aborting immediately.
1248
1249 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
1250 Mingfeng Wu <mingfeng@faraday-tech.com>
1251
1252 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
1253
1254 2011-06-13 Jan Hubicka <jh@suse.cz>
1255
1256 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
1257
1258 2011-06-13 Jan Hubicka <jh@suse.cz>
1259
1260 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
1261 similarly to DECL_COMDAT.
1262 * cgraphunit.c (cgraph_analyze_function): Likewise.
1263 * ipa.c (function_and_variable_visibility): Likewise.
1264
1265 2011-06-13 Jan Hubicka <jh@suse.cz>
1266
1267 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
1268 BINFO_VIRTUALS when streaming for ltrans unit.
1269
1270 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
1271
1272 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
1273 (movdi_internal64): Same.
1274
1275 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
1276
1277 PR target/44618
1278 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
1279 a set of similar patterns, where the MATCH_OPERAND for the function
1280 argument is replaced with individual references to hardware registers.
1281 (save_fpregs_<mode>): Ditto
1282 (restore_gpregs_<mode>): Ditto
1283 (return_and_restore_gpregs_<mode>): Ditto
1284 (return_and_restore_fpregs_<mode>): Ditto
1285 (return_and_restore_fpregs_aix_<mode>): Ditto
1286
1287 2011-06-13 Jan Hubicka <jh@suse.cz>
1288
1289 * ipa-utils.c (postorder_stack): New structure.
1290 (ipa_reverse_postorder): Handle aliases.
1291
1292 2011-06-13 Jan Hubicka <jh@suse.cz>
1293
1294 * ipa-inline.c (reset_edge_caches): Walk aliases.
1295 (update_caller_keys): Do not test inlinability of aliases.
1296 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
1297 (do_estimate_growth): Fix typo.
1298
1299 2011-06-13 Jan Hubicka <jh@suse.cz>
1300
1301 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
1302 (can_remove_node_now_p): ... here; handle same comdat groups.
1303 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
1304 (inline_call): Update use of can_remove_node_now_p.
1305
1306 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1307
1308 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
1309 condition to disallow non-identical memory locations.
1310 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
1311 preference to bit manipulation instructions.
1312
1313 2011-06-13 Jan Hubicka <jh@suse.cz>
1314
1315 * cgraph.c (cgraph_for_node_thunks_and_aliases,
1316 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
1317 (nonremovable_p): New function.
1318 (cgraph_can_remove_if_no_direct_calls_p): New function.
1319 (used_from_object_file_p): New functoin.
1320 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
1321 references from aliases.
1322 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
1323 * ipa-inline.c (check_caller_edge): New function.
1324 (want_inline_function_called_once_p): Use it; accept aliases called
1325 once, too.
1326 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
1327
1328 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1329
1330 PR target/48454
1331 * config/arm/neon.md (vec_pack_trunc): Set the lengths
1332 correctly for the case with Quad vectors.
1333
1334 2011-06-13 Jakub Jelinek <jakub@redhat.com>
1335 Ira Rosen <ira.rosen@linaro.org>
1336
1337 PR tree-optimization/49352
1338 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
1339 all, make sure loop_use_stmt after the loop is a def stmt of a used
1340 SSA_NAME that is the only one defined inside of the loop. Don't
1341 check for COND_EXPR and GIMPLE_BINARY_RHS.
1342 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
1343 check_reduction is true.
1344
1345 2011-06-11 Jan Hubicka <jh@suse.cz>
1346
1347 PR middle-end/49373
1348 * ipa.c (cgraph_externally_visible_p): Check resolution info.
1349
1350 2011-06-11 Jan Hubicka <jh@suse.cz>
1351
1352 PR middle-end/48836
1353 * ipa-inline-transform.c: Include tree-pass.h
1354 (inline_transform): Set TODO_update_ssa_only_virtuals.
1355 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
1356
1357 2011-06-11 Jan Hubicka <jh@suse.cz>
1358
1359 PR middle-end/49378
1360 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
1361 aliases and thunks.
1362
1363 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
1364
1365 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
1366 Take number of iterations to peel into account for equally frequent
1367 misalignment values.
1368
1369 2011-06-11 Jan Hubicka <jh@suse.cz>
1370
1371 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
1372 aliases.
1373
1374 2011-06-11 Jan Hubicka <jh@suse.cz>
1375
1376 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
1377 args.
1378 (ipa_update_after_lto_read): Likewise.
1379 (ipa_write_node_info): Do not sream call_with_var_arguments.
1380 (ipa_read_node_info): Likewise.
1381
1382 2011-06-11 Jan Hubicka <jh@suse.cz>
1383
1384 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
1385
1386 2011-06-11 Jan Hubicka <jh@suse.cz>
1387
1388 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
1389 (lto_symtab_resolve_can_prevail_p): Likewise.
1390 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
1391 * cgraph.c (same_body_aliases_done): New global var.
1392 (cgraph_same_body_alias_1): Rename to ...
1393 (cgraph_create_function_alias): ... this one; reorg to new
1394 representation.
1395 (cgraph_same_body_alias): Use cgraph_create_function_alias;
1396 record references when asked to.
1397 (cgraph_add_thunk): Fix formating.
1398 (cgraph_get_node): Kill same body alias code.
1399 (cgraph_node_for_asm): Likewise.
1400 (cgraph_remove_same_body_alias): Remove.
1401 (cgraph_remove_node): Kill same body alias code.
1402 (cgraph_mark_address_taken_node): Mark also the aliased function
1403 as having address taken.
1404 (dump_cgraph_node): Dump same body aliases.
1405 (cgraph_for_node_thunks_and_aliases): Update for new alias
1406 representation.
1407 (cgraph_for_node_and_aliases): Likewise.
1408 * cgraph.h (same_body): Kll pointer.
1409 (same_body_alias): Update comment.
1410 (same_body_aliases_done): Declare.
1411 (cgraph_remove_same_body_alias): Remove declaration.
1412 (cgraph_create_function_alias): Declare.
1413 (cgraph_process_same_body_aliases): Declare.
1414 (cgraph_function_with_gimple_body_p): Check for alias.
1415 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
1416 (cgraph_alias_aliased_node): New function.
1417 (cgraph_function_node): Update for new aliases.
1418 (cgraph_function_or_thunk_node): Likewise.
1419 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
1420 (inline_call): Remove dead aliases.
1421 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
1422 name hack for same body aliases.
1423 (clone_of_p): Look through aliases.
1424 (verify_cgraph_node): Verify aliases.
1425 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
1426 (cgraph_process_same_body_aliases): New function.
1427 (process_function_and_variable_attributes): Disable weakref warning on
1428 alias.
1429 (cgraph_analyze_functions): Handle aliases.
1430 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
1431 (assemble_thunks): Rename to ...
1432 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
1433 (cgraph_expand_function): Remove alias output code.
1434 (cgraph_output_in_order): Skip aliases.
1435 (cgraph_preserve_function_body_p): Aliases don't need preserving.
1436 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
1437 (ipa_record_reference): Do not assert on alias references.
1438 (ipa_ref_has_aliases_p): New function.
1439 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
1440 (ipa_ref_has_aliases_p): Declare.
1441 * lto-cgraph.c (lto_output_node): Handle aliases.
1442 (input_node): Likewise.
1443 * lto-streamer-out.c (lto_output): Skip aliases.
1444 (produce_symtab): Kill same_body_alias code.
1445 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
1446 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
1447 * ipa-inline.c (update_caller_keys): Walk aliases.
1448 (inline_small_functions): Fix thinko in previous patch.
1449 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
1450 (function_and_variable_visibility): Do not walk same body aliases.
1451 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
1452 (ipa_pta_execute): Use it.
1453
1454 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1455
1456 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
1457 (*vec_dupv2df): Rename from vec_dupv2df.
1458 (vec_dupv2df): New expander.
1459
1460 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1461
1462 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
1463
1464 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
1465
1466 * config/i386/i386.md: Use default value in "isa" attribute.
1467 * config/i386/sse.md: Ditto.
1468 * config/i386/mmx.md: Ditto.
1469
1470 2011-06-10 Wei Guozhi <carrot@google.com>
1471
1472 PR target/45335
1473 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1474 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1475 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
1476 related peephole2.
1477 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
1478 related peephole2.
1479 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
1480 (arm_legitimate_ldrd_p): New prototype.
1481 (arm_output_ldrd): New prototype.
1482 * config/arm/arm.c (arm_check_ldrd_operands): New function.
1483 (arm_legitimate_ldrd_p): New function.
1484 (arm_output_ldrd): New function.
1485
1486 2011-06-10 David Li <davidxl@google.com>
1487
1488 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1489 * passes.c (passr_eq): New function.
1490 (create_pass_tab): New function.
1491 (pass_traverse): New function.
1492 (dump_one_pass): New function.
1493 (dump_pass_list): New function.
1494 (dump_passes): New function.
1495
1496 2011-06-10 Jan Hubicka <jh@suse.cz>
1497
1498 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
1499 setting the nothrow flag.
1500 * ipa-reference.c (propagate): Skip aliases.
1501 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
1502 (propagate_nothrow): Skip aliases; do not update cgraph.
1503 (local_pure_const): Do not update cgraph.
1504 * tree-profile.c (tree_profiling): Do fixup_cfg.
1505
1506 2011-06-10 Jan Hubicka <jh@suse.cz>
1507
1508 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
1509 (cgraph_local_node_p): ... here; handle aliases.
1510 (has_addr_references_p): Break out from ...;
1511 (cgraph_remove_unreachable_nodes) ... here.
1512
1513 2011-06-10 Jan Hubicka <jh@suse.cz>
1514
1515 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
1516 * common.opt (flag_inline_functions_called_once): Do not
1517 initialize to 1.
1518
1519 2011-06-10 Jan Hubicka <jh@suse.cz>
1520
1521 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
1522 (ipcp_initialize_node_lattices): Do not deal with aliases;
1523 Do not try to propagate through thunks.
1524 (ipcp_change_tops_to_bottom): Do not deal with aliases.
1525
1526 2011-06-10 Jan Hubicka <jh@suse.cz>
1527
1528 * ipa-prop.c (ipa_write_node_info): Stream jump functions
1529 for indirect calls.
1530 (ipa_read_node_info): Likewise.
1531
1532 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1533
1534 PR lto/49302
1535 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
1536 (build_and_insert_call): Likewise.
1537 (build_and_insert_ref): New.
1538 (gimple_expand_builtin_pow): Minor cleanup.
1539 (gimple_expand_builtin_cabs): New.
1540 (execute_cse_sincos): Add case for BUILT_IN_CABS.
1541
1542 2011-06-10 Jan Hubicka <jh@suse.cz>
1543
1544 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
1545 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
1546 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
1547 (ipcp_propagate_stage): Skip aliases when propagating.
1548 (ipcp_need_redirect_p): Skip aliases.
1549 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
1550 collect_callers_of_node.
1551 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
1552 for aliases.
1553 (ipa_compute_jump_functions): Look through aliases.
1554
1555 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1556
1557 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
1558
1559 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1560
1561 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
1562 Adjust comments.
1563 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
1564
1565 2011-06-10 Jan Hubicka <jh@suse.cz>
1566
1567 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
1568 Update call of gimple_get_virt_method_for_binfo.
1569 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
1570 refuse_thunks parameter.
1571 (gimple_fold_call): Update.
1572 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
1573
1574 2011-06-10 Jan Hubicka <jh@suse.cz>
1575
1576 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
1577 (not_all_callers_have_enough_arguments_p): ... this one; turn into
1578 worker for cgraph_for_node_and_aliases.
1579 (convert_callers_for_node): Break out from ...
1580 (convert_callers): ... here.
1581 (modify_function): Use collect_callers_of_node.
1582 (ipa_early_sra): Use cgraph_for_node_and_aliases.
1583
1584 2011-06-10 Richard Guenther <rguenther@suse.de>
1585
1586 PR tree-optimization/49361
1587 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
1588 when not already in gimple form.
1589
1590 2011-06-10 Richard Guenther <rguenther@suse.de>
1591
1592 PR bootstrap/49344
1593 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
1594 FOR_EACH_PHI_OR_STMT_USE.
1595
1596 2011-06-10 Jan Hubicka <jh@suse.cz>
1597
1598 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
1599 (clone_inlined_nodes): ... here.
1600 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
1601 to real destination prior inlining.
1602 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1603 can_early_inline_edge_p, want_early_inline_function_p,
1604 want_early_inline_function_p, want_inline_small_function_p,
1605 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
1606 edge_badness, update_all_callee_keys, lookup_recursive_calls,
1607 add_new_edges_to_heap, inline_small_functions, flatten_function,
1608 inline_always_inline_functions, early_inline_small_functions): Use
1609 cgraph_function_or_thunk_node.
1610 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
1611 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
1612 (do_estimate_edge_growth_1): Break out from ...
1613 (do_estimate_growth) ... here; walk aliases.
1614 (inline_generate_summary): Skip aliases.
1615
1616 2011-06-10 Richard Guenther <rguenther@suse.de>
1617
1618 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
1619 forward when combining, visit inserted stmts when a stmt was changed.
1620
1621 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
1622
1623 * tree.h (error_operand_p): Add.
1624 * dbxout.c (dbxout_type_fields): Use the latter.
1625 * c-decl.c (add_stmt): Likewise.
1626 * gimplify.c (omp_add_variable, omp_notice_variable,
1627 gimplify_scan_omp_clauses): Likewise.
1628
1629 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
1630
1631 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
1632 when a value is actually passed in regs.
1633
1634 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
1635 Laurent Rougé <laurent.rouge@menta.fr>
1636
1637 * doc/invoke.texi (SPARC options): Add -mflat.
1638 * config/sparc/sparc.opt: Likewise.
1639 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
1640 (sparc_flat_expand_prologue): Declare.
1641 (sparc_flat_expand_epilogue): Likewise.
1642 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
1643 (CPP_ENDIAN_SPEC): Replace with...
1644 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
1645 (CPP_SPEC): Adjust to above change.
1646 (EXTRA_SPECS): Likewise.
1647 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
1648 (INCOMING_REGNO): Likewise.
1649 (OUTGOING_REGNO): Likewise.
1650 (LOCAL_REGNO): Likewise.
1651 (SETUP_FRAME_ADDRESSES): Likewise.
1652 (FIXED_REGISTERS): Set 0 for %fp.
1653 (CALL_USED_REGISTERS): Likewise.
1654 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
1655 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
1656 (RETURN_ADDR_REGNUM): Define.
1657 (RETURN_ADDR_RTX): Use it.
1658 (INCOMING_RETURN_ADDR_REGNUM): Define.
1659 (INCOMING_RETURN_ADDR_RTX): Use it.
1660 (DWARF_FRAME_RETURN_COLUMN): Likewise.
1661 (EH_RETURN_REGNUM): Define.
1662 (EH_RETURN_STACKADJ_RTX): Use it.
1663 (EH_RETURN_HANDLER_RTX): Delete.
1664 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
1665 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
1666 Delete.
1667 (struct machine_function): Add frame_size, apparent_frame_size,
1668 frame_base_reg, frame_base_offset, n_global_fp_regs and
1669 save_local_in_regs_p fields.
1670 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
1671 sparc_frame_base_offset, sparc_n_global_fp_regs,
1672 sparc_save_local_in_regs_p): New macros.
1673 (sparc_option_override): Error out if -fcall-saved-REG is specified
1674 for Out registers.
1675 (eligible_for_restore_insn): Fix formatting.
1676 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
1677 (eligible_for_sibcall_delay): Likewise.
1678 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
1679 (sparc_legitimate_address_p): Adjust to above change.
1680 (save_global_or_fp_reg_p): New predicate.
1681 (return_addr_reg_needed_p): Likewise.
1682 (save_local_or_in_reg_p): Likewise.
1683 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
1684 (SORR_SAVE, SORR_RESTORE): Delete.
1685 (sorr_pred_t): New typedef.
1686 (sorr_act_t): New enum.
1687 (save_or_restore_regs): Rename to...
1688 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
1689 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
1690 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
1691 mechanism. Add CFI information for double-word saves in 32-bit mode.
1692 (emit_adjust_base_to_offset): New function extracted from...
1693 (emit_save_or_restore_regs): ...this. Rename the rest to...
1694 (emit_save_or_restore_regs_global_fp_regs): ...this.
1695 (emit_save_or_restore_regs_local_in_regs): New function.
1696 (gen_create_flat_frame_[123]): New functions.
1697 (sparc_expand_prologue): Use SIZE local variable. Adjust.
1698 (sparc_flat_expand_prologue): New function.
1699 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
1700 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
1701 (sparc_flat_expand_epilogue): New function.
1702 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
1703 (output_return): Likewise.
1704 (output_sibcall): Likewise.
1705 (sparc_output_mi_thunk): Likewise.
1706 (sparc_frame_pointer_required): Likewise.
1707 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
1708 function optimization.
1709 * config/sparc/sparc.md (flat): New attribute.
1710 (prologue): Add TARGET_FLAT handling.
1711 (save_register_window): Disable if TARGET_FLAT.
1712 (create_flat_frame_[123]): New patterns.
1713 (epilogue): Add TARGET_FLAT handling.
1714 (sibcall_epilogue): Likewise.
1715 (eh_return): New expander.
1716 (eh_return_internal): New insn and splitter.
1717 (return_internal): Add TARGET_FLAT handling.
1718 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
1719 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
1720 (nonlocal_goto): Add TARGET_FLAT handling.
1721 * config/sparc/t-elf: Add -mflat multilib.
1722 * config/sparc/t-leon: Likewise.
1723
1724 2011-06-10 Jan Hubicka <jh@suse.cz>
1725
1726 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
1727 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
1728 (self_recursive_p): Use cgraph_function_node.
1729 (propagate_pure_const): Likewise.
1730 (propagate_nothrow): Likewise.
1731 * ipa-reference.c (ipa_reference_get_not_read_global): Use
1732 cgraph_function_node.
1733 (propagate_bits): Likewise.
1734 (propagate): Likewise.
1735
1736 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1737 Richard Earnshaw <rearnsha@arm.com>
1738
1739 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
1740 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
1741 (*thumb2_movdi_vfp): Delete.
1742 (*arm_movdi_vfp_cortexa8): Delete.
1743 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
1744 (*movdi_vfp_cortexa8): Likewise.
1745
1746 2011-06-10 Richard Guenther <rguenther@suse.de>
1747
1748 * stor-layout.c (initialize_sizetypes): Give names to all
1749 sizetype kinds.
1750
1751 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
1752
1753 PR tree-optimization/49318
1754 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
1755 irrelevant pattern statements.
1756
1757 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1758
1759 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
1760
1761 PR bootstrap/49354
1762 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
1763 to last assignment.
1764
1765 2011-06-09 Jan Hubicka <jh@suse.cz>
1766
1767 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
1768 do not recompute reachable flag.
1769 (cgraph_finalize_function, cgraph_analyze_functions): Set
1770 redefined_extern_inline here.
1771
1772 2011-06-09 Jan Hubicka <jh@suse.cz>
1773
1774 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
1775 (cgraph_only_called_directly_p): ... this one; bring offline.
1776 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1777 varpool_used_from_object_file_p): Drop names from the declaratoin.
1778 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
1779 collect_callers_of_node): New.
1780 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
1781 (cgraph_edge_recursive_p): Use cgraph_function_node.
1782 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
1783 (cgraph_node_cannot_be_local_p_1): Break out from ...
1784 (cgraph_node_can_be_local_p): ... here; walk aliases.
1785 (cgraph_for_node_thunks_and_aliases): New function.
1786 (cgraph_for_node_and_aliases): New function.
1787 (cgraph_make_node_local_1): Break out from ...
1788 (cgraph_make_node_local) ... here; use
1789 cgraph_for_node_thunks_and_aliases.
1790 (cgraph_set_nothrow_flag_1): Break out from ...
1791 (cgraph_set_nothrow_flag) ... here;
1792 use cgraph_for_node_thunks_and_aliases.
1793 (cgraph_set_const_flag_1): Break out from ...
1794 (cgraph_set_const_flag) ... here;
1795 use cgraph_for_node_thunks_and_aliases.
1796 (cgraph_set_pure_flag_1): Break out from ...
1797 (cgraph_set_pure_flag) ... here;
1798 use cgraph_for_node_thunks_and_aliases.
1799 (cgraph_propagate_frequency_1): Break out from ...
1800 (cgraph_propagate_frequency) ... here; use
1801 cgraph_for_node_thunks_and_aliases.
1802 (cgraph_used_from_object_file_p): Do not care about aliases.
1803 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
1804 New functions.
1805 (collect_callers_of_node_1, collect_callers_of_node): New functions.
1806
1807 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1808
1809 PR rtl-optimization/49154
1810 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
1811 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
1812 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
1813 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
1814 * config/cris/cris.h (cris_register_move_cost): Remove
1815 !TARGET_V32 code. Tweak comments.
1816
1817 2011-06-09 Jan Hubicka <jh@suse.cz>
1818
1819 * cgraphbuild.c (record_eh_tables): Mark personality function as having
1820 address taken.
1821
1822 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
1823
1824 PR rtl-optimization/49154
1825 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
1826 is a matching slot in the hashtable, assign it to classes_ptr.
1827
1828 PR rtl-optimization/49154
1829 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
1830 register classes.
1831 * doc/tm.texi: Regenerate.
1832
1833 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
1834
1835 PR target/49307
1836 * config/sh/sh.md (UNSPEC_CHKADD): New.
1837 (chk_guard_add): New define_insn_and_split.
1838 (symGOT_load): Use chk_guard_add instead of blockage.
1839
1840 2011-06-09 Kai Tietz <ktietz@redhat.com>
1841
1842 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
1843
1844 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
1845
1846 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
1847
1848 2011-06-09 Wei Guozhi <carrot@google.com>
1849
1850 PR target/46975
1851 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
1852 (peephole2 for conditional move): Generate 16 bit instructions.
1853
1854 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
1855
1856 * config/i386/i386.md (*movdi_internal_rex64): Merge
1857 alternatives 6 and 8.
1858
1859 2011-06-09 David Li <davidxl@google.com>
1860
1861 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
1862 * passes.c (passr_eq): New function.
1863 (create_pass_tab): New function.
1864 (pass_traverse): New function.
1865 (dump_one_pass): New function.
1866 (dump_pass_list): New function.
1867 (dump_passes): New function.
1868
1869 2011-06-09 David Li <davidxl@google.com>
1870
1871 * tree-complex.c (tree_lower_complex): Gate cleanup.
1872 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
1873 (execute_optimize_stdarg): Ditto.
1874 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
1875 (execute_cleanup_eh_1): Ditto.
1876 (execute_cleanup_eh): Ditto.
1877 * gcse.c (gate_rtl_pre): Ditto.
1878 (execute_rtl_pre): Ditto.
1879 * except.c (finish_eh_generation): Ditto.
1880 (convert_to_eh_region_ranges): Ditto.
1881 * cprop.c (one_cprop_pass): Ditto.
1882
1883 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
1884
1885 PR target/48673
1886 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
1887 in all basic blocks.
1888
1889 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1890
1891 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
1892 (HAVE_ENABLE_EXECUTE_STACK): Define.
1893 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
1894 (HAVE_ENABLE_EXECUTE_STACK): Define.
1895 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
1896 (HAVE_ENABLE_EXECUTE_STACK): Define.
1897 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
1898 (ENABLE_EXECUTE_STACK): Remove.
1899 (HAVE_ENABLE_EXECUTE_STACK): Define.
1900 [IN_LIBGCC2]: Don't include <windows.h>.
1901 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1902 (HAVE_ENABLE_EXECUTE_STACK): Define.
1903 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
1904 (HAVE_ENABLE_EXECUTE_STACK): Define.
1905 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
1906 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
1907 (HAVE_ENABLE_EXECUTE_STACK): Define.
1908 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
1909 (HAVE_ENABLE_EXECUTE_STACK): Define.
1910 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
1911 (HAVE_ENABLE_EXECUTE_STACK): Define.
1912 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
1913 (HAVE_ENABLE_EXECUTE_STACK): Define.
1914 * config/alpha/alpha.c (alpha_trampoline_init): Test
1915 HAVE_ENABLE_EXECUTE_STACK.
1916 * config/i386/i386.c (ix86_trampoline_init): Likewise.
1917 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1918 (sparc64_initialize_trampoline): Likewise.
1919 * libgcc2.c [L_enable_execute_stack]: Remove.
1920 * system.h (ENABLE_EXECUTE_STACK): Poison.
1921 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
1922 * doc/tm.texi: Regenerate.
1923 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
1924
1925 2011-06-09 Jakub Jelinek <jakub@redhat.com>
1926
1927 PR middle-end/49308
1928 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
1929 variable. After resetting and rescanning insn continue with previous
1930 statement.
1931
1932 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1933
1934 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
1935 (gcc_cv_ld_hidden): Likewise.
1936 * configure: Regenerate.
1937 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
1938 (ix86_stack_protect_fail): Mark unused.
1939 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
1940 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
1941 [TARGET_MACHO]: Don't define.
1942 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
1943 (TARGET_STACK_PROTECT_FAIL): Likewise.
1944 (rs6000_stack_protect_fail): Mark unused.
1945 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
1946 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
1947
1948 2011-06-08 Andi Kleen <ak@linux.intel.com>
1949
1950 * varasm.c (get_section): Print location of other conflict
1951 for section conflicts.
1952
1953 2011-06-08 Andi Kleen <ak@linux.intel.com>
1954
1955 * config/i386/driver-i386.c (host_detect_local_cpu):
1956 Add model 0x2d Intel CPU.
1957
1958 2011-06-08 Andi Kleen <ak@linux.intel.com>
1959
1960 * reginfo.c (global_regs_decl): Add.
1961 (globalize_reg): Add decl parameter. Compute location. Pass location
1962 to warnings and add inform. Store decl in global_regs_decl.
1963 * rtl.h (globalize_reg): Update prototype.
1964 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
1965
1966 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
1967
1968 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
1969
1970 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1971
1972 PR target/49305
1973 * config/sh/predicates.md (general_movsrc_operand): Check
1974 mode for memory with indexed address for QI and HImode.
1975 (general_movdst_operand): Likewise.
1976
1977 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
1978
1979 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
1980
1981 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
1982
1983 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
1984 (num_ssa_operands): Likewise.
1985 (op_iter_init_phiuse): Forward-declare.
1986 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
1987
1988 2011-06-08 Nick Clifton <nickc@redhat.com>
1989
1990 * doc/invoke.texi (ARM Options): Update description of
1991 -mthumb-interwork.
1992
1993 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
1994
1995 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1996 unknown Intel family 0x6 CPUs.
1997
1998 2011-06-08 Martin Jambor <mjambor@suse.cz>
1999
2000 * tree-sra.c (mark_rw_status): Removed.
2001 (analyze_access_subtree): New parameter parent instead of
2002 mark_read and mark_write, propagate from that.
2003
2004 2011-06-08 Julian Brown <julian@codesourcery.com>
2005
2006 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
2007 for double-precision helper functions in hard-float mode if only
2008 single-precision arithmetic is supported in hardware.
2009
2010 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
2011
2012 PR rtl-optimization/49303
2013 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
2014 code_motion_path_driver returned 0 or 1.
2015 (sel_region_finish): Clear h_d_i_d.
2016
2017 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2018
2019 * config/sh/sh.c (prepare_move_operands): Set pic register
2020 appropriately for global and local dynamic tls models even
2021 if flag_pic is unset.
2022
2023 2011-06-07 Jason Merrill <jason@redhat.com>
2024
2025 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
2026
2027 2011-06-07 Xinliang David Li <davidxl@google.com>
2028 * passes.c (enable_disable_pass): Handle assembler name.
2029 (is_pass_explicitly_enabled_or_disabled): Ditto.
2030
2031 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2032
2033 PR tree-optimization/48497
2034 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
2035
2036 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2037
2038 PR tree-optimization/46728
2039 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
2040 to use gimple_val_nonnegative_real_p.
2041 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
2042 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
2043
2044 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
2045
2046 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
2047
2048 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
2049
2050 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
2051 constant vectors.
2052
2053 2011-06-07 Richard Guenther <rguenther@suse.de>
2054
2055 * stor-layout.c (initialize_sizetypes): Initialize all
2056 sizetypes based on target definitions.
2057 (set_sizetype): Remove.
2058 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
2059 * tree.h (set_sizetype): Remove.
2060
2061 2011-06-07 Nick Clifton <nickc@redhat.com>
2062
2063 * config.gcc: Unify V850 architecture options and add support for
2064 newer V850 architectures.
2065 * config/v850/t-v850e: Delete.
2066
2067 2011-06-07 Richard Guenther <rguenther@suse.de>
2068
2069 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
2070 Call set_sizetype from here.
2071
2072 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
2073
2074 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
2075 (*maddhisi4tb, *maddhisi4tt): New define_insns.
2076
2077 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
2078 Andrew Stubbs <ams@codesourcery.com>
2079
2080 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
2081 multiplies.
2082 * doc/md.texi (Canonicalization of Instructions): Document widening
2083 multiply canonicalization.
2084
2085 2011-06-07 Jakub Jelinek <jakub@redhat.com>
2086
2087 PR gcov-profile/49299
2088 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
2089
2090 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
2091
2092 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
2093 a pointer.
2094 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
2095 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
2096 vect_recog_pow_pattern): Likewise.
2097 (vect_pattern_recog_1): Remove declaration.
2098 (widened_name_p): Remove declaration. Add new argument to specify
2099 whether to check that both types are either signed or unsigned.
2100 (vect_recog_widen_mult_pattern): Update documentation. Handle
2101 unsigned patterns and multiplication by constants.
2102 (vect_pattern_recog_1): Update vect_recog_func references. Use
2103 statement information from the statement returned from pattern
2104 detection functions.
2105 (vect_pattern_recog): Update vect_recog_func reference.
2106 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
2107 multiplication by a constant use the type of the other operand.
2108
2109 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2110
2111 PR rtl-optimization/49145
2112 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
2113
2114 2011-06-06 Jakub Jelinek <jakub@redhat.com>
2115
2116 PR debug/49262
2117 * dwarf2out.c (native_encode_initializer): Decrement count in each
2118 iteration.
2119
2120 PR debug/49294
2121 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
2122 non-MODE_INT modes.
2123
2124 PR c++/49264
2125 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
2126 if stmt folded into nothing.
2127 * tree-inline.c (fold_marked_statements): If a builtin at the end of
2128 a bb folded into nothing, just update cgraph edges and move to next bb.
2129 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
2130 to be NULL. Don't compute count and frequency if new_call is NULL.
2131
2132 2011-06-04 Diego Novillo <dnovillo@google.com>
2133
2134 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
2135 (cgraph.o): Likewise.
2136 (cgraphunit.o): Likewise.
2137 * cgraphunit.c: Include lto-streamer.h
2138 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
2139 if LTO is enabled.
2140 * lto-streamer-in.c (unpack_value_fields): Call
2141 streamer_hooks.unpack_value_fields if set.
2142 (lto_materialize_tree): For unhandled nodes, first try to
2143 call lto_streamer_hooks.alloc_tree, if it exists.
2144 (lto_input_ts_decl_common_tree_pointers): Move reading of
2145 DECL_INITIAL to lto_streamer_read_tree.
2146 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
2147 (lto_streamer_read_tree): New.
2148 (lto_reader_init): Rename from lto_init_reader.
2149 Move initialization code to lto/lto.c.
2150 * lto-streamer-out.c (pack_value_fields): Call
2151 streamer_hooks.pack_value_fields if set.
2152 (lto_output_tree_ref): For tree nodes that are not normally indexable,
2153 call streamer_hooks.indexable_with_decls_p before giving up.
2154 (lto_output_ts_decl_common_tree_pointers): Move handling
2155 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
2156 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
2157 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
2158 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
2159 (lto_streamer_write_tree): New.
2160 (lto_output): Call lto_streamer_init directly.
2161 (lto_writer_init): Remove.
2162 * lto-streamer.c (streamer_hooks): New.
2163 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
2164 instead of lto_preload_common_nodes.
2165 (lto_is_streamable): Move from lto-streamer.h
2166 (lto_streamer_hooks_init): New.
2167 (streamer_hooks): New.
2168 (streamer_hooks_init): New.
2169 * lto-streamer.h (struct output_block): Forward declare.
2170 (struct lto_input_block): Likewise.
2171 (struct data_in): Likewise.
2172 (struct bitpack_d): Likewise.
2173 (struct streamer_hooks): Declare.
2174 (streamer_hooks): Declare.
2175 (lto_streamer_hooks_init): Declare.
2176 (lto_streamer_write_tree): Declare.
2177 (lto_streamer_read_tree): Declare.
2178 (streamer_hooks_init): Declare.
2179 (lto_is_streamable): Move to lto-streamer.c
2180
2181 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2182
2183 * longlong.h (smul_ppmm): The resulting register pair contains the
2184 higher order word first.
2185
2186 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2187
2188 PR tree-optimization/46728
2189 * builtins.c (powi_table): Remove.
2190 (powi_lookup_cost): Remove.
2191 (powi_cost): Remove.
2192 (expand_powi_1): Remove.
2193 (expand_powi): Remove.
2194 (expand_builtin_pow_root): Remove.
2195 (expand_builtin_pow): Remove.
2196 (expand_builtin_powi): Eliminate handling of constant exponent.
2197 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
2198
2199 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2200
2201 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
2202
2203 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2204
2205 * dce.c (reset_unmarked_insns_debug_uses): New.
2206 (delete_unmarked_insns): Skip debug insns.
2207 (prescan_insns_for_dce): Likewise.
2208 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
2209 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
2210 active reg can be found.
2211 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
2212 (convert_regs_1): Use it.
2213
2214 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2215
2216 * tree-pretty-print.c (dump_function_header): Add flags.
2217 Don't dump decl_uid with nouid.
2218 * tree-pretty-print.h (dump_function_header): Adjust.
2219 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
2220 * passes.c (pass_init_dump_file): Pass dump_flags on.
2221 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
2222
2223 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
2224
2225 PR bootstrap/49270
2226 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
2227
2228 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
2229
2230 PR tree-optimization/49243
2231 * calls.c (setjmp_call_p): Also check if fndecl has the
2232 returns_twice attribute.
2233
2234 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2235
2236 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
2237 -ffast-math etc.
2238
2239 2011-06-06 Richard Henderson <rth@redhat.com>
2240 Georg-Johann Lay <avr@gjlay.de>
2241
2242 PR target/42210
2243 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
2244 New predicates.
2245 * config/avr/avr.md ("insv"): New insn expander.
2246 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
2247 "*insv.not.io", "*insv.reg"): New insns.
2248
2249 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
2250
2251 PR target/49285
2252 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
2253 to nonimmediate_operand from memory_operand for the operand that is to
2254 be forced to memory by the expander. Lose the constraints.
2255
2256 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
2257
2258 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
2259 EH return when delayed branches are disabled.
2260
2261 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
2262
2263 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
2264 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
2265 calculation.
2266 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
2267 Simplify MODE_V1DF and MODE_V2SF handling.
2268 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
2269 Simplify MODE_SF handling.
2270
2271 2011-06-04 Jan Hubicka <jh@suse.cz>
2272
2273 PR tree-optimization/48893
2274 PR tree-optimization/49091
2275 PR tree-optimization/49179
2276 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
2277 Bounds check.
2278
2279 2011-06-04 Jan Hubicka <jh@suse.cz>
2280
2281 PR lto/48954
2282 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
2283 bitmaps.
2284
2285 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
2286
2287 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
2288
2289 2011-06-04 Jakub Jelinek <jakub@redhat.com>
2290
2291 PR target/49281
2292 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
2293 to be strictly smaller than 1 << shiftcount.
2294
2295 2011-06-04 Jan Hubicka <jh@suse.cz>
2296
2297 PR tree-optimize/48929
2298 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
2299 of empty predicate.
2300
2301 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
2302
2303 PR debug/48333
2304 * calls.c (emit_call_1): Prefer the __builtin declaration of
2305 builtin functions.
2306
2307 2011-06-03 Diego Novillo <dnovillo@google.com>
2308
2309 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
2310 (lto_input_tree_pointers): Likewise.
2311 * lto-streamer-out.c (pack_value_fields): Likewise.
2312 (lto_output_tree_pointers): Likewise.
2313 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
2314 and OPTIMIZATION_NODE.
2315
2316 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2317
2318 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
2319 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
2320 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
2321 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
2322 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
2323 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
2324 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
2325 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
2326 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
2327 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
2328 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
2329 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
2330 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
2331 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
2332 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
2333 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
2334 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
2335 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
2336 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
2337 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
2338 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
2339 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
2340 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
2341 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
2342 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
2343 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
2344 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
2345 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
2346 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
2347 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
2348 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
2349 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
2350 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
2351 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
2352 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
2353 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
2354 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
2355 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
2356 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
2357 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
2358 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
2359 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
2360 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
2361 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
2362 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
2363 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
2364 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
2365 * system.h (MD_UNWIND_SUPPORT): Poison.
2366 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
2367 * doc/tm.texi: Regenerate.
2368 * unwind-dw2.c: Include md-unwind-support.h instead of
2369 MD_UNWIND_SUPPORT.
2370 * config/ia64/unwind-ia64.c: Likewise.
2371 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2372
2373 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
2374
2375 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
2376
2377 2011-06-03 Richard Henderson <rth@redhat.com>
2378 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2379
2380 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
2381 (sigill_hdlr): Correct insn, insn size.
2382 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
2383
2384 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2385
2386 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
2387 t-slibgcc-dummy.
2388 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
2389 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
2390 * config/mips/t-iris: Remove.
2391 * config/mips/t-irix6: New file.
2392 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
2393
2394 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2395
2396 * Makefile.in (LIB2ADDEHDEP): Remove.
2397 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
2398 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
2399 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
2400 * config/t-darwin (LIB2ADDEHDEP): Remove.
2401 * config/t-freebsd (LIB2ADDEHDEP): Remove.
2402 * config/t-linux (LIB2ADDEHDEP): Remove.
2403
2404 2011-06-03 Diego Novillo <dnovillo@google.com>
2405
2406 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
2407 (lto_register_var_decl_in_symtab): Likewise.
2408 (lto_register_function_decl_in_symtab): Likewise.
2409 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
2410 logic to uniquify_nodes.
2411
2412 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2413
2414 * config/alpha/t-osf5: Remove.
2415 * config/alpha/t-osf-pthread: Remove.
2416 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
2417 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
2418
2419 2011-06-03 Julian Brown <julian@codesourcery.com>
2420
2421 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
2422 (strongarm1110): Use strongarm tuning.
2423 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
2424 * config/arm/arm.c (arm_strongarm_tune): New.
2425 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2426 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
2427 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
2428 setting, using previous defaults or 1 for Cortex-A5.
2429 (arm_option_override): Set max_insns_skipped from current tuning.
2430
2431 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
2432
2433 * doc/install.texi (Options specification): Document --with-specs.
2434
2435 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2436
2437 * config/arm/neon.md (orndi3_neon): Actually split it.
2438
2439 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2440
2441 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
2442 * var-tracking.c (reverse_op): Limite recurse depth to 5.
2443
2444 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
2445
2446 PR debug/47590
2447 * target.def (delay_sched2, delay_vartrack): New.
2448 * doc/tm.texi.in: Update.
2449 * doc/tm.texi: Rebuild.
2450 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
2451 * var-tracking.c (gate_handle_var_tracking): Likewise.
2452 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
2453 (bfin_flag_var_tracking): Drop.
2454 (output_file_start): Don't save and override flag_var_tracking.
2455 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
2456 (bfin_reorg): Test original variables.
2457 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2458 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
2459 (ia64_flag_var_tracking): Drop.
2460 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2461 (ia64_file_start): Don't save and override flag_var_tracking.
2462 (ia64_override_options_after_change): Ditto
2463 flag_schedule_insns_after_reload.
2464 (ia64_reorg): Test original variables.
2465 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
2466 (picochip_flag_var_tracking): Drop.
2467 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
2468 (picochip_option_override): Don't save and override
2469 flag_schedule_insns_after_reload.
2470 (picochip_asm_file_start): Ditto flag_var_tracking.
2471 (picochip_reorg): Test original variables.
2472 * config/spu/spu.c (spu_flag_var_tracking): Drop.
2473 (TARGET_DELAY_VARTRACK): Define.
2474 (spu_var_tracking): New.
2475 (spu_machine_dependent_reorg): Call it.
2476 (asm_file_start): Don't save and override flag_var_tracking.
2477
2478 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
2479
2480 PR target/49163
2481 * config/sh/predicates.md (general_movsrc_operand): Return 0
2482 for memory and memory subreg of which address is an invalid
2483 indexed address for QI and HImode.
2484 (general_movdst_operand): Likewise.
2485
2486 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2487
2488 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
2489 edges only, when there is a non-local label in the function.
2490 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
2491
2492 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2493
2494 * config/i386/constraints.md (Y3): New register constraint.
2495 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
2496 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
2497 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
2498 *sse2_interleave_lowv2df.
2499
2500 2011-06-02 Julian Brown <julian@codesourcery.com>
2501
2502 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
2503 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
2504 (arm_cortex_a5_tune): New.
2505
2506 2011-06-02 Julian Brown <julian@codesourcery.com>
2507
2508 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
2509 * config/arm/arm.c (arm_default_branch_cost): New.
2510 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
2511 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
2512 (arm_fa726_tune): Set branch_cost field using
2513 arm_default_branch_cost.
2514 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
2515 current_tune structure.
2516 * dojump.c (tm_p.h): Include file.
2517
2518 2011-06-02 Julian Brown <julian@codesourcery.com>
2519
2520 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
2521 tuning.
2522 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
2523 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
2524 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
2525 field.
2526 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
2527 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
2528 (arm_fa726te_tune): Add prefer_constant_pool setting.
2529 (arm_v6t2_tune, arm_cortex_tune): New.
2530 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
2531 prefer_constant_pool setting.
2532
2533 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
2534
2535 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
2536 switch statement.
2537 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
2538 (*movdf_internal) <case 6,7,8>: Ditto.
2539
2540 * config/i386/constraints.md (Y4): New register constraint.
2541 * config/i386/sse.md (vec_set<mode>_0): Merge with
2542 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
2543 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
2544 *vec_extractv2di_1_sse.
2545 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
2546 and *vec_concatv2di_rex64_sse.
2547
2548 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
2549
2550 PR target/48807
2551 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
2552 of cgraph_local_info for null before attempting to use it.
2553
2554 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
2555
2556 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
2557 (current_function_dynamic_alloc_count): Delete.
2558 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
2559 (expand_builtin_nonlocal_goto): Remove obsolete comment.
2560 (expand_builtin_update_setjmp_buf): Remove dead code.
2561 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
2562 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
2563 support.
2564 * function.c (instantiate_virtual_regs): Likewise.
2565 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
2566 for a block with a single abnormal incoming edge.
2567 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
2568 (SETJMP_VIA_SAVE_AREA): Delete.
2569 * config/sparc/sparc-protos.h (load_got_register): Declare.
2570 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
2571 (load_got_register): Make global.
2572 (sparc_frame_pointer_required): Add 'static'.
2573 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
2574 (sparc_builtin_setjmp_frame_value): New function.
2575 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
2576 (save_stack_nonlocal): New expander.
2577 (restore_stack_nonlocal): Likewise.
2578 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
2579 (nonlocal_goto_internal): New insn.
2580 (goto_handler_and_restore): Delete.
2581 (builtin_setjmp_setup): Likewise.
2582 (do_builtin_setjmp_setup): Likewise.
2583 (setjmp): Likewise.
2584 (builtin_setjmp_receiver): New expander.
2585
2586 2011-06-01 David Li <davidxl@google.com>
2587
2588 PR middle-end/49261
2589 * tree-pretty-print.c (dump_function_header): Format cleanup.
2590
2591 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
2592
2593 PR target/49238
2594 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
2595 needed when original operands are used for msw_skip comparison.
2596
2597 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2598
2599 PR debug/49250
2600 * var-tracking.c (add_uses, add_stores): Don't call
2601 cselib_subst_to_values on ENTRY_VALUE.
2602
2603 2011-06-01 Diego Novillo <dnovillo@google.com>
2604
2605 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
2606 output_record_start with LTO_null instead of output_zero.
2607 (lto_output_ts_binfo_tree_pointers): Likewise.
2608 (lto_output_tree): Likewise.
2609 (output_eh_try_list): Likewise.
2610 (output_eh_region): Likewise.
2611 (output_eh_lp): Likewise.
2612 (output_eh_regions): Likewise.
2613 (output_bb): Likewise.
2614 (output_function): Likewise.
2615 (output_unreferenced_globals): Likewise.
2616 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
2617 instead of NUM_TREE_CODES.
2618 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
2619 (lto_output_int_in_range): Change << to >> when shifting VAL.
2620
2621 2011-06-01 Diego Novillo <dnovillo@google.com>
2622
2623 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
2624 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
2625
2626 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2627
2628 PR target/45074
2629 * optabs.h (valid_multiword_target_p): Declare.
2630 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
2631 doing multi-word operations.
2632 * optabs.c (expand_binop): Likewise.
2633 (expand_doubleword_bswap): Likewise.
2634 (expand_absneg_bit): Likewise.
2635 (expand_unop): Likewise.
2636 (expand_copysign_bit): Likewise.
2637 (multiword_target_p): New function.
2638
2639 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
2640
2641 PR rtl-optimization/48830
2642 PR rtl-optimization/48808
2643 PR rtl-optimization/48792
2644 * reload.c (push_reload): Check contains_reg_of_mode.
2645 * reload1.c (strip_paradoxical_subreg): New function.
2646 (gen_reload_chain_without_interm_reg_p): Use it to handle
2647 paradoxical subregs.
2648 (emit_output_reload_insns, gen_reload): Likewise.
2649
2650 2011-06-01 David Li <davidxl@google.com>
2651
2652 * predict.c : Change pass name
2653 * ipa.c: Ditto.
2654 * dce.c: Ditto.
2655 * tree-profile.c: Ditto.
2656 * except.c: Ditto.
2657
2658 2011-06-01 David Li <davidxl@google.com>
2659
2660 * tree-pretty-print.c (dump_function_header): New function.
2661 * final.c (rest_of_clean_state): Use header dumper.
2662 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
2663 * passes.c (pass_init_dump_file): Use header dumper.
2664
2665 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2666
2667 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
2668 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
2669 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
2670 New functions.
2671 (mem_loc_descriptor): Use them.
2672
2673 * var-tracking.c (create_entry_value): New function.
2674 (vt_add_function_parameter): Use it.
2675
2676 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2677
2678 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
2679 Include <signal.h>, <ucontext.h>.
2680 (sigill_caught): Define.
2681 (sigill_hdlr): New function.
2682 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
2683 insns can be executed.
2684 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
2685 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
2686
2687 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2688
2689 * config/t-slibgcc-darwin: Move to ...
2690 * config/t-slibgcc-dummy: ... this. Clarify comments.
2691 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
2692 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
2693 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
2694 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
2695 Remove i386/t-crtstuff from tmake_file.
2696 (i[34567]86-*-solaris2*): Remove t-svr4,
2697 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
2698 t-slibgcc-dummy.
2699 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
2700 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
2701 sparc/t-crtfm from tmake_file.
2702 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
2703 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
2704 Remove extra_parts.
2705 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
2706 * config/i386/t-nwld (SHLIB_LINK): Remove.
2707 * config/i386/t-rtems-i386: Rename to ...
2708 * config/i386/t-rtems: ... this.
2709 ($(T)crti.o, $(T)crtn.o): Remove.
2710 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
2711 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
2712 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
2713 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
2714 EXTRA_MULTILIB_PARTS): Remove.
2715 * config/sparc/t-sol2-64: Likewise.
2716 * config/sparc/t-sol2: Remove.
2717 * config/sparc/t-crtin: Remove.
2718 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
2719 * config/i386/gmon-sol2.c: Remove.
2720 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
2721 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
2722 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
2723 * config/i386/sol2-gc1.asm: Remove.
2724 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
2725 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
2726 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
2727 * config/t-slibgcc-sld: Remove.
2728
2729 2011-06-01 Jakub Jelinek <jakub@redhat.com>
2730
2731 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
2732 base_type_for_mode with op_mode instead of mode.
2733
2734 2011-06-01 Paul Brook <paul@cpodesourcery.com>
2735
2736 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
2737 Cortex-A15.
2738 * config/arm/arm-tune.md: Regenerate.
2739 * config/arm/arm-tables.opt: Regenerate.
2740 * config/arm/arm.c (FL_DIV): Rename...
2741 (FL_THUMB_DIV): ... to this.
2742 (FL_ARM_DIV): Define.
2743 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
2744 (arm_arch_hwdiv): Remove.
2745 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
2746 (arm_issue_rate): Add cortexr5.
2747 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
2748 __ARM_ARCH_EXT_IDIV__.
2749 (TARGET_IDIV): Define.
2750 (arm_arch_hwdiv): Remove.
2751 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
2752 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
2753 (divsi3, udivsi3): New patterns.
2754 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
2755 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
2756
2757 2011-06-01 Martin Jambor <mjambor@suse.cz>
2758
2759 * ipa-utils.c (ipa_dfs_info): New field scc_no.
2760 * ipa-utils.c (searchc): Set scc_no.
2761
2762 2011-06-01 Martin Jambor <mjambor@suse.cz>
2763
2764 * ipa-utils.c (searchc_env): New field allow_overwritable.
2765 (searchc): do not ignore edges to overwritable nodes if indicated
2766 by env->allow_overwritable.
2767 (ipa_reduced_postorder): Set env.allow_overwritable.
2768
2769 2011-06-01 Richard Guenther <rguenther@suse.de>
2770
2771 * tree.c (free_lang_data): Do not reset boolean_type_node nor
2772 char_type_node.
2773 * lto-streamer.c (lto_record_common_node): Take node pointer,
2774 do not register types.
2775 (lto_preload_common_nodes): Explicitly skip preloading nodes
2776 that differ between frontends.
2777
2778 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2779
2780 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
2781 NON_FLOAT_REGS.
2782
2783 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
2784
2785 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
2786 parameter value for dump. Dump cost on outermost call only.
2787 (rs6000_memory_move_cost): Dump cost on outermost call only.
2788
2789 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2790
2791 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
2792 DW_OP_GNU_convert ops.
2793
2794 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
2795 cselib_preserve_constants.
2796 (cselib_lookup_1): If cselib_preserve_constants,
2797 a new VALUE is being created for REG and there is a VALUE for the
2798 same register in wider mode, add another loc with lowpart SUBREG of
2799 the wider VALUE.
2800 (cselib_subst_to_values): Handle ENTRY_VALUE.
2801 * var-tracking.c (replace_expr_with_values): Return NULL for
2802 ENTRY_VALUE too.
2803 * dwarf2out.c (convert_descriptor_to_signed): New function.
2804 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
2805 instead of two shifts.
2806 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
2807 the right mode if needed.
2808 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
2809 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
2810 convert_descriptor_to_signed.
2811 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
2812 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
2813
2814 PR target/48688
2815 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
2816
2817 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2818
2819 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
2820 of X87MODEI12 and SWI48x instead of SSEMODEI24.
2821 (SWI248x): New mode iterator, rename from X87MODEI.
2822 (X87MODEI): Remove mode iterator.
2823 (X87MODEI12): Ditto.
2824 (SSEMODEI24): Ditto.
2825
2826 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2827
2828 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
2829 * doc/invoke.texi: Document max-vartrack-expr-depth.
2830 * var-tracking.c (EXPR_DEPTH): New.
2831 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
2832
2833 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2834
2835 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
2836 * config/i386/sse.md: Add n to negated FMA pattern names.
2837
2838 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2839
2840 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
2841
2842 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
2843
2844 * gengtype-state.c (read_state_params_structs): Initialize previous.
2845
2846 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2847
2848 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
2849 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
2850
2851 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
2852
2853 * config/i386/i386.md (*movtf_internal): Avoid allocating general
2854 registers. Penalize F*r->o alternative to prevent partial memory
2855 stalls. Slightly penalize *roF->*r alternative. Generate SSE
2856 CONST_DOUBLE immediates when optimizing function for size. Do not move
2857 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2858 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
2859 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
2860 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
2861 alternatives.
2862 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
2863
2864 (fp_register_operand splitters): Use fp_register_operand
2865 constraint. Do not use FP_REG_P in insn condition.
2866 (any_fp_register_operand splitters): Use any_fp_register_operand
2867 constraint. Do not use ANY_FP_REG_P in insn condition.
2868
2869 2011-05-31 Jan Hubicka <jh@suse.cz>
2870
2871 * cgraph.h (cgraph_inline_failed_t): Give enum a name
2872 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
2873 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
2874 (lto_output_edge): Use output_enum and var_len_unsigned.
2875 (lto_output_varpool_node): Likewise.
2876 (input_overwrite_node): Do not take resolution parameter;
2877 extract it from a bitpack.
2878 (input_node): Do not read resolution; use input_enum and
2879 var_len_unsigned.
2880 (input_varpool_node): Likewise.
2881 (input_edge): Likewise.
2882 (input_cgraph_1): Likewise.
2883
2884 2011-05-31 Richard Guenther <rguenther@suse.de>
2885
2886 * gimple.c (gimple_register_canonical_type): Do not register
2887 any types via gimple_register_type.
2888
2889 2011-05-31 Jan Hubicka <jh@suse.cz>
2890
2891 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
2892 of thunks.
2893
2894 2011-05-31 Jakub Jelinek <jakub@redhat.com>
2895
2896 PR rtl-optimization/49235
2897 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
2898 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
2899
2900 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
2901
2902 PR tree-optimization/49093
2903 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
2904 data references.
2905
2906 2011-05-31 Dodji Seketeli <dodji@redhat.com>
2907
2908 PR debug/49047
2909 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
2910 for concrete functions containing the code of cloned functions.
2911
2912 2011-05-31 Richard Guenther <rguenther@suse.de>
2913
2914 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
2915 to ...
2916 (forward_propagate_into_comparison_1): ... this.
2917 (forward_propagate_comparison): Rename to ...
2918 (forward_propagate_into_comparison): ... this. Split out
2919 real forward propagation code to ...
2920 (forward_propagate_comparison): ... this.
2921 (forward_propagate_into_gimple_cond): Remove looping.
2922 (forward_propagate_into_cond): Likewise.
2923 (simplify_not_neg_expr): Return whether we have done something.
2924 (simplify_gimple_switch): Likewise.
2925 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
2926 (ssa_forward_propagate_and_combine): ... this. Re-structure
2927 to do a forward forward-propagation walk on BBs and a backward
2928 stmt combining walk on BBs. Consistently re-scan changed statements.
2929 (pass_forwprop): Adjust.
2930
2931 2011-05-30 Ian Lance Taylor <iant@google.com>
2932
2933 * godump.c (go_format_type): Correct length of name added to
2934 obstack for anonymous field.
2935
2936 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
2937
2938 PR target/49186
2939 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
2940 part of the second operand is 0.
2941
2942 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
2943
2944 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
2945 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
2946 to memory for !TARGET_MEMORY_MISMATCH_STALL.
2947 (*movdf_internal_rex64): Do not penalize F->r alternative.
2948 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
2949 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
2950 when optimizing function for size. Do not move CONST_DOUBLEs
2951 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
2952 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
2953 SUBREGs. Do not check for MEM_P operands in the insn condition,
2954 check for ANY_FP_REGNO_P instead.
2955 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
2956 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
2957 function for speed.
2958 * config/i386/i386.c (ix86_option_override_internal): Do not
2959 set TARGET_INTEGER_DFMODE_MOVES here.
2960
2961 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
2962
2963 PR target/49168
2964 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
2965
2966 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2967
2968 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
2969 DW_TAG_rvalue_reference_type even for
2970 -gdwarf-4 -fno-debug-types-section.
2971
2972 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2973
2974 PR tree-optimization/46728
2975 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
2976 (build_and_insert_binop): New.
2977 (gimple_expand_builtin_pow): Reorder args for
2978 build_and_insert_call; use build_and_insert_binop; add more
2979 optimizations for fractional exponents.
2980
2981 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2982
2983 PR bootstrap/49190
2984
2985 Revert:
2986 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2987
2988 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2989 tree_common.
2990 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2991 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2992 TS_BASE instead of TS_COMMON.
2993 * varasm.c (assemble_name): Remove assert.
2994
2995 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2996
2997 * config.gcc: Keep obselete list sorted.
2998
2999 2011-05-30 Jakub Jelinek <jakub@redhat.com>
3000 Eric Botcazou <ebotcazou@adacore.com>
3001
3002 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
3003 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
3004 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
3005 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
3006 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
3007
3008 2011-05-30 Richard Guenther <rguenther@suse.de>
3009
3010 * gimple.c (gimple_types_compatible_p_1): Compare record
3011 and union type members properly.
3012
3013 2011-05-30 Richard Guenther <rguenther@suse.de>
3014
3015 PR tree-optimization/49210
3016 * ipa-split.c (split_function): Care for the case where the call
3017 result is not trivially convertible to the result holding variable.
3018
3019 2011-05-30 Richard Guenther <rguenther@suse.de>
3020
3021 PR tree-optimization/49218
3022 * tree-vrp.c (adjust_range_with_scev): Properly check whether
3023 overflow occured.
3024
3025 2011-05-30 Richard Guenther <rguenther@suse.de>
3026
3027 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
3028 New function split out from ...
3029 (forward_propagate_into_gimple_cond): ... here. Adjust.
3030 (forward_propagate_into_cond): Likewise.
3031 (forward_propagate_comparison): Also propagate into
3032 comparisons on assignment RHS. Change return value to
3033 behave similar to forward_propagate_into_cond.
3034 (tree_ssa_forward_propagate_single_use_vars): Handle
3035 strict-overflow warnings properly for forward_propagate_comparison.
3036
3037 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3038
3039 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
3040 from plugin linker.
3041 * configure: Regenerate.
3042
3043 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
3044
3045 PR tree-optimization/49199
3046 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
3047 non-reduction operands are either defined in the loop or by induction.
3048
3049 2011-05-29 Xinliang David Li <davidxl@google.com>
3050
3051 * opts-global.c (handle_common_deferred_options): Handle new options.
3052 * passes.c (register_one_dump_file): Call register_pass_name.
3053 (execute_one_pass): Check explicit enable/disable flag.
3054 (passr_hash): New function.
3055 (passr_eq): Ditto.
3056 (register_pass_name): Ditto.
3057 (get_pass_by_name): Ditto.
3058 (pass_hash): Ditto.
3059 (pass_eq): Ditto.
3060 (enable_pass): Ditto.
3061 (disable_pass): Ditto.
3062 (is_pass_explicitly_enabled_or_disabled): Ditto.
3063
3064 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
3065
3066 * config/i386/i386.md (*movoi_internal_avx): Use
3067 standard_sse_constant_opcode for alternative 0.
3068 (*movti_internal_sse): Ditto.
3069 (*movti_internal_rex64): Use standard_sse_constant_opcode for
3070 alternative 2.
3071 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
3072 sselog1 type moves.
3073 (*movsi_internal): Ditto.
3074 (*movdi_internal): Ditto. Add ssecvt type moves.
3075
3076 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
3077
3078 PR target/48830
3079 * rtlanal.c (simplify_subreg_regno): Adjust comment.
3080
3081 2011-05-29 Jakub Jelinek <jakub@redhat.com>
3082
3083 PR rtl-optimization/49095
3084 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
3085 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
3086
3087 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3088
3089 PR target/43995
3090 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
3091 recurse_p argument. Only follow register copies if it is set,
3092 and prevent mips_find_pic_call_symbol from recursing.
3093 (mips_find_pic_call_symbol): Add a recurse_p argument.
3094 Pass it to mips_pic_call_symbol_from_set.
3095 (mips_annotate_pic_calls): Update accordingly.
3096
3097 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
3098
3099 * emit-rtl.c (try_split): Use a loop to search for
3100 NOTE_INSN_CALL_ARG_LOCATIONs.
3101
3102 2011-05-29 Richard Guenther <rguenther@suse.de>
3103
3104 PR tree-optimization/49217
3105 * ipa-pure-const.c (propagate_pure_const): Fix typos.
3106
3107 2011-05-28 Jan Hubicka <jh@suse.cz>
3108
3109 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
3110 length.
3111 (string_slot_free): Remove
3112 (create_output_block): Initialize obstack.
3113 (destroy_output_block): Free obstack.
3114 (lto_string_index): Add PERSISTENT parameter; do not duplicate
3115 the string unless it needs to be added into the hash.
3116 (lto_output_string_with_length): Add persistent attribute;
3117 handle NULL strings.
3118 (lto_output_string): Add PERSISTENT parameter.
3119 (output_string_cst, output_identifier): Simplify.
3120 (lto_output_location_bitpack): Update.
3121 (lto_output_builtin_tree): Update.
3122 * lto-streamer.h (struct output_block): Add obstack.
3123 (lto_output_string, lto_output_string_with_length): Remove
3124 declarations; functions are static now.
3125
3126 2011-05-28 Jan Hubicka <jh@suse.cz>
3127
3128 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
3129 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
3130 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
3131 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
3132 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
3133 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
3134 unpack_ts_decl_with_vis_value_fields,
3135 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
3136 lto_get_builtin_tree): Use enum and variable length i/o.
3137 * basic-block.h (profile_status_d): Add PROFILE_LAST.
3138 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
3139 New functions.
3140 (bp_pack_enum, bp_unpack_enum): New macros.
3141
3142 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3143
3144 * genrecog.c: Remove redundant forward declarations.
3145
3146 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3147
3148 * config.gcc: Deprecate mips*-*-openbsd*.
3149
3150 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3151
3152 PR bootstrap/49195
3153 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
3154 for match_op_dup.
3155
3156 2011-05-27 Andrew Pinski <pinskia@gmail.com>
3157
3158 PR middle-end/48981
3159 * gengtype.c (vec_prefix_type): New function.
3160 (note_def_vec): Use vec_prefix_type and change the length
3161 attribute to be based on the prefix.
3162 * vec.c: Include coretypes.h before vec.h.
3163 (struct vec_prefix): Remove.
3164 (vec_gc_p_reserve): Change the offsetof to sizeof.
3165 (vec_gc_p_reserve_exact): Likewise.
3166 (vec_heap_p_reserve): Likewise.
3167 (vec_heap_p_reserve_exact): Likewise.
3168 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
3169 (vec_stack_p_reserve): Change the offsetof to sizeof.
3170 (vec_stack_p_reserve_exact): Likewise.
3171 * vec.h (struct vec_prefix): New struct definition.
3172 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
3173 (VEC_T_GTY(T,B)): Likewise.
3174 (DEF_VEC_FUNC_P(T)): Use prefix field.
3175 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
3176 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
3177
3178 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3179
3180 PR tree-optimization/46728
3181 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
3182 (powi_as_mults): Add gimple_set_location.
3183 (build_and_insert_call): New.
3184 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
3185 0.5, 0.25, 0.75, 1./3., or 1./6.
3186
3187 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
3188
3189 * doc/contrib.texi: Update copyright years.
3190 (Contributors): Add Zdenek Sojka.
3191
3192 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3193
3194 * c-decl.c (c_push_function_context): Copy the current statement
3195 list stack.
3196 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
3197 (finish_struct): Call building_stmt_list_p instead of checking
3198 cur_stmt_list.
3199 * c-parser.c (c_parser_postfix_expression): Likewise.
3200 * c-typeck.c (c_end_compound_stmt): Likewise.
3201 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
3202 * tree-iterator.c (stmt_list_cache): Change to a VEC.
3203 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
3204 (free_stmt_list): Likewise.
3205 * tree.h (struct tree_statement_list): Include typed_tree instead
3206 of tree_common.
3207 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
3208 as TS_TYPED instead of TS_COMMON.
3209
3210 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3211 Uros Bizjak <ubizjak@gmail.com>
3212
3213 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
3214 (HAVE_AS_IX86_TLSGDPTL): Define.
3215 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
3216 (HAVE_AS_IX86_TLSLDMPLT): Define.
3217 * configure: Regenerate.
3218 * config.in: Regenerate.
3219 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
3220 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
3221 TARGET_SUN_TLS, use @tlsgdplt or @plt.
3222 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
3223 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
3224 @tlsldmplt or @plt.
3225 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
3226
3227 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3228
3229 * sched-int.h (struct _haifa_deps_insn_data): New members cond
3230 and reverse_cond.
3231 (INSN_COND, INSN_REVERSE_COND): New macros.
3232 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
3233 once.
3234 (sched_get_condition_with_rev): Cache the results, and look them up
3235 if possible.
3236 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
3237 are clobbered by the current insn.
3238 * target.def (exposed_pipline): New sched data hook.
3239 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
3240 * doc/tm.texi: Regenerate.
3241
3242 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3243
3244 PR tree-optimization/49170
3245 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
3246 sincos or cexp.
3247
3248 2011-05-27 Richard Guenther <rguenther@suse.de>
3249
3250 PR middle-end/49189
3251 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
3252 of comparisons.
3253
3254 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
3255
3256 * haifa-sched.c (sched_scan_info): Remove.
3257 (schedule_block): Call sched_extend_luids rather than sched_init_luids
3258 with NULL args.
3259 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
3260 Remove functions.
3261 (sched_scan): Remove.
3262 (sched_extend_luids): Renamed from luids_extend_insn and no longer
3263 static. All callers changed.
3264 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
3265 static. All callers changed.
3266 (sched_init_luids): Remove all arguments except the first. All
3267 callers changed. Don't use sched_scan.
3268 (haifa_init_h_i_d): Likewise.
3269 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
3270 manually rather than using sched_init_luids. Likewise with
3271 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
3272 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
3273 rather than sched_init_luids with NULL args.
3274 * sel-sched-ir.c (new_insns): Remove variable.
3275 (sched_scan): New static function, previously in haifa-sched.c. Remove
3276 all arguments but the first two; all callers changed.
3277 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
3278 rather than sched_init_luids.
3279 (sel_init_bbs): Remove second argument. All callers changed.
3280 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
3281 with NULL arguments.
3282 (create_insn_rtx_from_pattern): Likewise.
3283 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
3284 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
3285 (sched_init_insn_luid, sched_extend_luids): Declare.
3286 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
3287 declarations.
3288
3289 2011-05-27 Richard Guenther <rguenther@suse.de>
3290
3291 PR middle-end/49177
3292 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
3293 A CMP B ? (T) true : (T) false for non-integral types T again.
3294
3295 2011-05-27 Jan Hubicka <jh@suse.cz>
3296
3297 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
3298 so 0 means NULL string.
3299 (lto_output_string_with_length): ... here.
3300 (lto_output_string, output_string_cst, output_identifier): Update
3301 handling of NULL strings.
3302 (lto_output_location_bitpack): New function.
3303 (lto_output_location): Use it.
3304 (lto_output_tree_ref): Use output_record_start.
3305 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
3306 len values.
3307 * lto-streamer-in.c (string_for_index): Break out from ...; offset
3308 values by 1.
3309 (input_string_internal): ... here;
3310 (input_string_cst, input_identifier, lto_input_string): Update handling
3311 of NULL strings.
3312 (lto_input_location_bitpack): New function
3313 (lto_input_location): Use it.
3314 (unpack_ts_type_common_value_fields): Pack align & alias in var len
3315 values.
3316 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
3317 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
3318 (bp_pack_value): Sanity check the value range.
3319 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
3320 New functions.
3321 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
3322 New functions.
3323
3324 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
3325
3326 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
3327 call_arg_location instructions down the floor.
3328
3329 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
3330
3331 PR rtl-optimization/49154
3332 * ira.c (setup_pressure_classes): Process class without sublcasses
3333 as a candidate for pressure classes.
3334
3335 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
3336
3337 PR rtl-optimization/48575
3338 * genrecog.c (position_type): New enum.
3339 (position): New structure.
3340 (decision): Use position structure instead of a string.
3341 (root_pos, peep2_insn_pos_list): New variables.
3342 (next_position, compare_positions): New functions.
3343 (new_decision): Use position structures instead of strings.
3344 (maybe_both_true): Likewise.
3345 (change_state): Likewise.
3346 (write_tree): Likewise.
3347 (make_insn_sequence): Likewise.
3348
3349 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3350
3351 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
3352 TS_BASE instead of TS_COMMON.
3353 (find_decls_types_r): Check for TS_TYPED structure before looking at
3354 TREE_TYPE.
3355 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
3356 Add chain field.
3357 (BLOCK_CHAIN): Use new chain field.
3358
3359 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
3360
3361 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
3362 moves expensive on Power7 also.
3363
3364 2011-05-26 Richard Guenther <rguenther@suse.de>
3365
3366 * fold-const.c (fold_unary_loc): Remove bogus code.
3367
3368 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3369
3370 * tree.h (struct tree_identifier): Inherit from tree_typed, not
3371 tree_common.
3372 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
3373 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
3374 TS_BASE instead of TS_COMMON.
3375 * varasm.c (assemble_name): Remove assert.
3376
3377 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3378
3379 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
3380 substituted first.
3381 * libgcc-std.ver: Delete file.
3382
3383 2011-05-26 Richard Guenther <rguenther@suse.de>
3384
3385 PR tree-optimization/48702
3386 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
3387 only when we know the base address is within bounds.
3388 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
3389 assume the base address of TARGET_MEM_REFs is in bounds.
3390
3391 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3392
3393 PR target/49099
3394 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
3395 declaration in TARGET_SOLARIS.
3396
3397 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
3398
3399 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
3400 The instruction is then expanded explicitly.
3401 (supported_compare): Callable instruction.
3402 (compare): Likewise.
3403
3404 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3405
3406 PR c++/49165
3407 * gimplify.c (shortcut_cond_r): Don't special case
3408 COND_EXPRs if they have void type on one of their arms.
3409
3410 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
3411
3412 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
3413 to reduce duplication, and to achieve a slightly more logical order
3414 of operations.
3415
3416 2011-05-26 Jakub Jelinek <jakub@redhat.com>
3417
3418 PR tree-optimization/49161
3419 * tree-vrp.c (struct case_info): New type.
3420 (compare_case_labels): Sort case_info structs instead of
3421 trees, and not primarily by CASE_LABEL uids but by
3422 label_for_block indexes.
3423 (find_switch_asserts): Put case labels into struct case_info
3424 array instead of TREE_VEC, adjust sorting, compare label_for_block
3425 values instead of CASE_LABELs.
3426
3427 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3428
3429 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
3430 ("orndi3_neon"): Likewise.
3431 ("bic<mode>3_neon"): Likewise.
3432
3433 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
3434
3435 PR tree-optimization/49038
3436 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
3437 Ensure at least one epilogue iteration if required by data
3438 accesses with gaps.
3439 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3440 to mark loops that require peeling for gaps.
3441 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
3442 (vect_get_known_peeling_cost): Take peeling for gaps into
3443 account.
3444 (vect_transform_loop): Generate epilogue if required by data
3445 access with gaps.
3446 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
3447 loop as requiring an epilogue if there are gaps in the end of
3448 the strided group.
3449
3450 2011-05-25 Ian Lance Taylor <iant@google.com>
3451
3452 * godump.c (go_format_type): Output the first field with a usable
3453 Go type, if any.
3454
3455 2011-05-25 Ian Lance Taylor <iant@google.com>
3456
3457 * godump.c (go_format_type): Check for invalid type names, pointer
3458 target types, and struct field types.
3459
3460 2011-05-25 Jason Merrill <jason@redhat.com>
3461
3462 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
3463
3464 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
3465
3466 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
3467
3468 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3469
3470 * config/i386/i386.md (*movqi_extv_1)): Put back
3471 "register_operand" check in "type" calculation.
3472 (*movqi_extzv_2): Likewise.
3473
3474 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3475
3476 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
3477
3478 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3479
3480 PR bootstrap/49160
3481 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
3482 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
3483 __divxc3, __divtc3): Wrap definitions in #ifndef.
3484
3485 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3486
3487 PR target/49142
3488 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
3489 "register_operand" check and replace q_regs_operand with
3490 QIreg_operand in "type" calculation.
3491 (*movqi_extv_1): Likewise.
3492 (*movqi_extzv_2_rex64): Likewise.
3493 (*movqi_extzv_2): Likewise.
3494
3495 * config/i386/predicates.md (QIreg_operand): New.
3496
3497 2011-05-25 Richard Guenther <rguenther@suse.de>
3498
3499 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
3500 type-based offset disambiguation, streamline MEM_REF and
3501 TARGET_MEM_REF handling.
3502
3503 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3504
3505 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
3506 (bdesc_special_args): Add pause intrinsic.
3507
3508 * config/i386/i386.md (UNSPEC_PAUSE): New.
3509 (pause): Likewise.
3510 (*pause): Likewise.
3511 * config/i386/ia32intrin.h (__pause): Likewise.
3512
3513 * doc/extend.texi (X86 Built-in Functions): Add documentation for
3514 pause intrinsic.
3515
3516 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3517
3518 PR tree-optimization/46728
3519 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
3520 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
3521
3522 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
3523
3524 * tree.h (struct tree_exp): Inherit from struct tree_typed.
3525 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
3526 instead of TS_COMMON.
3527
3528 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
3529
3530 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
3531 LIBGCC2_GNU_PREFIX is defined.
3532 (__N): New macro.
3533 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
3534 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
3535 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
3536 __clz_tab): Define using __N.
3537 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
3538 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
3539 * target.def (libfunc_gnu_prefix): New hook.
3540 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
3541 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
3542 * doc/tm.texi: Regenerate.
3543 * system.h (LIBGCC2_GNU_PREFIX): Poison.
3544 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
3545 account.
3546 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
3547 (init_optabs): Likewise for the bswap libfuncs.
3548 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
3549 and divide.
3550 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
3551 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
3552 * libgcc-std.ver: Remove.
3553 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
3554 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
3555 libgcc-std.ver.
3556 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3557 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
3558 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
3559 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
3560 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
3561 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3562 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
3563 * config/fixed-bit.h (FIXED_OP): Define differently depending on
3564 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
3565 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
3566
3567 2011-05-25 Jan Hubicka <jh@suse.cz>
3568
3569 * lto-streamer-out.c (output_record_start): Use lto_output_enum
3570 (lto_output_tree): Use output_record_start.
3571 * lto-streamer-in.c (input_record_start): Use lto_input_enum
3572 (lto_get_pickled_tree): Use input_record_start.
3573 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
3574 (lto_value_range_error): New function.
3575 * lto-streamer.h (lto_value_range_error): Declare.
3576 (lto_output_int_in_range, lto_input_int_in_range): New functions.
3577 (lto_output_enum, lto_input_enum): New macros.
3578
3579 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
3580
3581 * common.opt (flag_stack_usage_info): New variable.
3582 (-Wstack-usage): New option.
3583 * doc/invoke.texi (Warning options): Document -Wstack-usage.
3584 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
3585 <OPT_fstack_usage>: Likewise.
3586 * toplev.c (output_stack_usage): Handle -Wstack-usage.
3587 * calls.c (expand_call): Test flag_stack_usage_info variable instead
3588 of flag_stack_usage.
3589 (emit_library_call_value_1): Likewise.
3590 * explow.c (allocate_dynamic_stack_space): Likewise.
3591 * function.c (instantiate_virtual_regs ): Likewise.
3592 (prepare_function_start): Likewise.
3593 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
3594 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
3595 * config/arm/arm.c (arm_expand_prologue): Likewise.
3596 (thumb1_expand_prologue): Likewise.
3597 * config/avr/avr.c (expand_prologue): Likewise.
3598 * config/i386/i386.c (ix86_expand_prologue): Likewise.
3599 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
3600 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
3601 * config/mips/mips.c (mips_expand_prologue): Likewise.
3602 * config/pa/pa.c (hppa_expand_prologue): Likewise.
3603 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
3604 * config/s390/s390.c (s390_emit_prologue): Likewise.
3605 * config/sh/sh.c (sh_expand_prologue): Likewise.
3606 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
3607 * config/spu/spu.c (spu_expand_prologue): Likewise.
3608
3609 2011-05-25 Richard Guenther <rguenther@suse.de>
3610
3611 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
3612 (gimple_canonical_types_compatible_p): Likewise.
3613
3614 2011-05-25 Jan Hubicka <jh@suse.cz>
3615
3616 PR middle-end/49062
3617 * ipa.c (function_and_variable_visibility): Only add to same
3618 comdat group list if DECL_ONE_ONLY.
3619
3620 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
3621
3622 PR rtl-optimization/49014
3623 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
3624
3625 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3626
3627 PR target/49128
3628 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
3629
3630 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3631
3632 PR rtl-optimization/48757
3633 * ira-build.c (loop_with_eh_edge_p): Rename to
3634 loop_with_complex_edge_p, check edges on complexity, make function
3635 conditional.
3636 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
3637 conditional.
3638
3639 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3640
3641 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
3642 force flag_ira_share_save_slots to 0.
3643
3644 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3645
3646 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
3647 (vt_initialize): Set PROLOGUE_BB unconditionally.
3648 Add block comment about CFA_BASE_RTX machinery.
3649 Reset FP_CFA_OFFSET to -1 on all invalid paths.
3650 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
3651
3652 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
3653
3654 PR objc/48187
3655 * c-parser.c (c_parser_objc_class_instance_variables): More robust
3656 parsing of syntax error in ObjC instance variable lists. In
3657 particular, avoid an infinite loop if there is a stray ']'.
3658 Updated error message.
3659
3660 2011-05-24 Ian Lance Taylor <iant@google.com>
3661
3662 * godump.c (go_define): Don't accept a string immediately after
3663 another operand.
3664
3665 2011-05-24 Ian Lance Taylor <iant@google.com>
3666
3667 * godump.c (struct godump_container): Add invalid_hash field.
3668 (go_format_type): Return false if type is found in invalid_hash.
3669 (go_output_typedef): Add invalid type to invalid_hash.
3670 (go_finish): Create and delete invalid_hash.
3671
3672 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3673
3674 PR tree-optimization/46728
3675 * tree-ssa-math-opts.c (powi_table): New.
3676 (powi_lookup_cost): New.
3677 (powi_cost): New.
3678 (powi_as_mults_1): New.
3679 (powi_as_mults): New.
3680 (gimple_expand_builtin_powi): New.
3681 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
3682 (gate_cse_sincos): Remove sincos/cexp restriction.
3683
3684 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3685
3686 PR target/3746
3687 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
3688 mips-tdump native.
3689 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
3690 * mips-tdump.c: Likewise.
3691
3692 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
3693
3694 PR target/49128
3695 * config/i386/driver-i386.c (host_detect_local_cpu): Always
3696 add -mno-XXX. Handle FMA.
3697
3698 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3699
3700 PR rtl-optimization/48633
3701 * ira-build.c (loop_with_eh_edge_p): New function.
3702 (mark_loops_for_removal): Use it.
3703
3704 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
3705
3706 PR rtl-optimization/48971
3707 * ira.c (setup_pressure_classes): Don't check register move cost
3708 for classes with one registers. Don't add pressure class if there
3709 is a pressure class with the same available hard registers.
3710 Check contains_reg_of_mode. Fix a typo in collecting
3711 temp_hard_regset. Ignore hard registers not belonging to a class.
3712
3713 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
3714
3715 PR target/49133
3716 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
3717
3718 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
3719 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3720
3721 PR gcov-profile/48845
3722 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
3723
3724 2011-05-24 Richard Guenther <rguenther@suse.de>
3725
3726 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
3727 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
3728 (gimple_types_compatible_p_1): Adjust.
3729 (iterative_hash_canonical_type): Do not bother about complete vs.
3730 incomplete types.
3731 (gimple_canonical_types_compatible_p): Likewise.
3732
3733 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3734
3735 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
3736
3737 2011-05-24 Richard Guenther <rguenther@suse.de>
3738
3739 PR bootstrap/49078
3740 * gimple.c (gimple_register_canonical_type): Revert
3741 previous change.
3742 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
3743 does not for a tree for the case where it matters. Cache
3744 pointer-type alias-sets.
3745
3746 2011-05-24 Joseph Myers <joseph@codesourcery.com>
3747
3748 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
3749 (OBJS): Remove options.o, opts-common.o and prefix.o.
3750 (OBJS-libcommon-target): New.
3751 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
3752 (BACKEND): Include libcommon-target.a.
3753 (MOSTLYCLEANFILES): Include libcommon-target.a.
3754 (libcommon-target.a): New.
3755 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
3756 prefix.o.
3757
3758 2011-05-23 Joseph Myers <joseph@codesourcery.com>
3759
3760 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
3761 parts of output shared with the driver.
3762 * optc-gen.awk: Don't generate parts of output not shared with the
3763 driver.
3764 * opth-gen.awk: Remove GCC_DRIVER conditionals.
3765 * doc/options.texi (SourcerInclude): Mention options-save.c.
3766 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
3767 (OBJS): Add options-save.o.
3768 (options-save.c, options-save.o): New.
3769 (options.o): Update dependencies.
3770 (gcc-options.o): Remove.
3771 (mostlyclean): Remove options-save.c.
3772
3773 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3774
3775 PR debug/49032
3776 * dbxout.c: Include cgraph.h.
3777 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
3778 and without value expr, return NULL if no varpool node exists for
3779 it or if it is not needed.
3780 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
3781
3782 PR c/49120
3783 * c-decl.c (start_decl): Convert expr to void_type_node.
3784
3785 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
3786
3787 PR rtl-optimization/48826
3788 * emit-rtl.c (try_split): When splitting a call that is followed
3789 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
3790
3791 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3792
3793 * cfgexpand.c (expand_debug_expr): For unused non-addressable
3794 parameters passed in memory prefer using DECL_INCOMING_RTL over
3795 the pseudos it will be copied into.
3796
3797 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
3798
3799 PR target/47315
3800 * config/i386/i386.c (ix86_option_override_internal): Save the
3801 initial options after checking vzeroupper.
3802
3803 2011-05-23 David Li <davidxl@google.com>
3804
3805 PR tree-optimization/48988
3806 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3807 Initialize has_valid_pred for each pred chain.
3808
3809 2011-05-23 Richard Guenther <rguenther@suse.de>
3810
3811 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
3812 (iterative_hash_gimple_type): Always hash type names.
3813
3814 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3815
3816 * c-typeck.c (build_function_call_vec): Tweak call to
3817 check_function_arguments.
3818
3819 2011-05-23 Richard Guenther <rguenther@suse.de>
3820
3821 PR tree-optimization/49115
3822 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
3823 is not necessarily carried out, do not claim it kills the ref.
3824 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
3825
3826 2011-05-23 Richard Guenther <rguenther@suse.de>
3827
3828 PR middle-end/15419
3829 * builtins.c (fold_builtin_memory_op): Be less restrictive about
3830 what pointer types we accept for folding.
3831
3832 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3833
3834 * gthr-gnat.c: Remove.
3835 * gthr-gnat.h: Remove.
3836 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
3837 * config/t-freebsd (LIB2ADDEH): Likewise.
3838 * config/t-linux (LIB2ADDEH): Likewise.
3839 * config/t-sol2 (LIB2ADDEH): Likewise.
3840 * config/ia64/t-vms (LIB2ADDEH): Likewise.
3841 * configure.ac (target_thread_file): Remove gnat handling.
3842 * configure: Regenerate.
3843 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
3844
3845 2011-05-23 Tristan Gingold <gingold@adacore.com>
3846 Eric Botcazou <ebotcazou@adacore.com>
3847
3848 * gcov.c (create_file_names): If no object directory is specified,
3849 keep the directory of the file.
3850
3851 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3852
3853 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
3854 * configure: Regenerate.
3855
3856 2011-05-23 Jakub Jelinek <jakub@redhat.com>
3857
3858 PR middle-end/48973
3859 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
3860 failed and the comparison has a single bit signed type, use
3861 constm1_rtx instead of const1_rtx for true value.
3862 (do_store_flag): If ops->type is single bit signed type, disable
3863 signel bit test optimization and pass -1 instead of 1 as last
3864 parameter to emit_store_flag_force.
3865
3866 2011-05-23 Tom de Vries <tom@codesourcery.com>
3867
3868 PR target/45098
3869 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
3870 function.
3871 (infer_loop_bounds_from_undefined): Use new function.
3872
3873 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3874
3875 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
3876 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
3877 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
3878 and -O0 otherwise.
3879 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
3880
3881 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3882
3883 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
3884 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
3885 returns true.
3886
3887 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
3888
3889 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
3890
3891 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3892
3893 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
3894 UNSPEC_MOVE_PIC pattern.
3895
3896 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
3897
3898 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
3899 (sparc-*-rtems*): Likewise.
3900 (sparc64-*-elf*): Likewise.
3901 (sparc64-*-rtems*): Likewise.
3902 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
3903 * config/sparc/t-crtin: New file.
3904 * config/sparc/t-sol2 (crti.o): Delete rule.
3905 (crtn.o): Likewise.
3906 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
3907 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
3908 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
3909 (ENDFILE_SPEC): Add crtn.o.
3910
3911 2011-05-22 Tom de Vries <tom@codesourcery.com>
3912
3913 PR middle-end/48689
3914 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
3915 CODE_CONTAINS_STRUCT (TS_COMMON).
3916
3917 2011-05-22 Jakub Jelinek <jakub@redhat.com>
3918
3919 PR middle-end/49029
3920 * expmed.c (extract_fixed_bit_field): Test whether target can be used
3921 only after deciding which mode to use.
3922
3923 2011-05-22 Tom de Vries <tom@codesourcery.com>
3924
3925 PR target/45098
3926 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
3927 for call to get_shiftadd_cost.
3928
3929 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
3930
3931 PR target/49104
3932 * config/i386/cpuid.h (bit_MMXEXT): New define.
3933
3934 2011-05-22 Nick Clifton <nickc@redhat.com>
3935
3936 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
3937 initialisation of non-existant args[2] element. Use args[] array
3938 not arg[] array to pass arguments to build_function_type_list.
3939
3940 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
3941
3942 PR tree-optimization/49087
3943 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
3944
3945 2011-05-21 Jason Merrill <jason@redhat.com>
3946
3947 PR c++/49092
3948 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
3949 static storage duration.
3950
3951 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3952
3953 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
3954 frame pointer.
3955
3956 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
3957
3958 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
3959 false if there are call-saved registers here...
3960 (sparc_can_use_return_insn_p): ...but here instead.
3961 (save_or_restore_regs): Fix thinko.
3962 (sparc_expand_prologue): Use current_function_is_leaf.
3963 (sparc_frame_pointer_required): Likewise.
3964
3965 2011-05-21 Nick Clifton <nickc@redhat.com>
3966
3967 PR target/49098
3968 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
3969
3970 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
3971
3972 * gengtype.c (walk_type): Implemented "atomic" GTY option.
3973 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
3974
3975 2011-05-21 Joseph Myers <joseph@codesourcery.com>
3976
3977 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
3978 * optc-gen.awk: Move common code to opt-read.awk.
3979 * opth-gen.awk: Likewise.
3980 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
3981
3982 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
3983
3984 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
3985
3986 2011-05-20 Tom de Vries <tom@codesourcery.com>
3987
3988 PR target/45098
3989 * tree-ssa-loop-ivopts.c: Include expmed.h.
3990 (get_shiftadd_cost): New function.
3991 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
3992
3993 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3994
3995 PR bootstrap/49086
3996 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
3997 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
3998
3999 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4000
4001 * Makefile.in: Update comment referring to $(OBJS-common).
4002
4003 2011-05-20 Ian Lance Taylor <iant@google.com>
4004
4005 * godump.c (go_output_typedef): Put enum constants in the macro
4006 hash table to avoid duplicate Go const definitions.
4007
4008 2011-05-20 Joseph Myers <joseph@codesourcery.com>
4009
4010 * Makefile.in (LIBDEPS): Add libcommon.a.
4011 (LIBS): Likewise.
4012 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
4013 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
4014 pretty-print.o and version.o.
4015 (OBJS-libcommon): New.
4016 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
4017 (BACKEND): Add libcommon.a.
4018 (MOSTLYCLEANFILES): Likewise.
4019 (libcommon.a): New.
4020 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
4021 (cpp$(exeext)): Likewise.
4022 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
4023 pretty-print.o and input.o.
4024 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
4025 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
4026 (errors.o): Remove.
4027 (mips-tfile): Don't explicitly use version.o.
4028 (mips-tdump): Likewise.
4029 (gcov.o): Depend on $(DIAGNOSTIC_H).
4030 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
4031 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
4032 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
4033 * gcov-dump.c: Include intl.h and diagnostic.h.
4034 (main): Initialize diagnostics.
4035 * gcov.c: Include diagnostic.h.
4036 (fnotice): Remove.
4037 (main): Initialize diagnostics.
4038 * lto-wrapper.c: Include diagnostic.h.
4039 (main): Initialize diagnostics.
4040
4041 2011-05-20 Michael Matz <matz@suse.de>
4042
4043 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
4044
4045 2011-05-20 Michael Matz <matz@suse.de>
4046 Richard Guenther <rguenther@suse.de>
4047
4048 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
4049 use lto_streamer_cache_append directly instead of returning a VEC.
4050 (preload_common_node): Remove.
4051 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
4052 track seen nodes.
4053 (lto_streamer_cache_create): Call lto_preload_common_nodes.
4054
4055 2011-05-20 Richard Guenther <rguenther@suse.de>
4056
4057 PR tree-optimization/49079
4058 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
4059 MEM_REFs correctly for the trailing array access detection.
4060 Special case constants the same way as decls for overall size
4061 constraining.
4062
4063 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
4064
4065 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
4066 argument expansion.
4067
4068 2011-05-20 Jakub Jelinek <jakub@redhat.com>
4069
4070 PR tree-optimization/49073
4071 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
4072 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
4073 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
4074
4075 2011-05-20 Richard Guenther <rguenther@suse.de>
4076
4077 PR middle-end/48849
4078 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
4079 of pointer types the same way the middle-end does.
4080
4081 2011-05-20 Richard Guenther <rguenther@suse.de>
4082
4083 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
4084 or pointer-to chains. Delay all fixup to uniquify_nodes.
4085
4086 2011-05-19 Quentin Neill <quentin.neill@amd.com>
4087
4088 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
4089 (fma4_fmaddsub): Likewise
4090
4091 2011-05-19 Jan Hubicka <jh@suse.cz>
4092
4093 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
4094 (GIMPLE_TYPE_PAIR_SIZE): New macro.
4095 (type_pair_cache): New static var.
4096 (lookup_type_pair): Use fixed sized custom hash; make inline.
4097 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
4098 calls of lookup_type_pair.
4099 (print_gimple_types_stats): Remove cache stats.
4100 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
4101 and gtc_ob.
4102
4103 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
4104
4105 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
4106 when TARGET_RDRND is active.
4107 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
4108 Generate dummy SImode target register when target is NULL.
4109
4110 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4111
4112 * config/arm/arm-fpus.def: New.
4113 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
4114 arm-fpus.def.
4115 * config/arm/arm-tables.opt: Regenerate.
4116 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
4117 (arm_option_override): Don't decode FPU name to string here.
4118 * config/arm/arm.opt (mfpu=): Use Enum.
4119 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
4120 Update dependencies.
4121
4122 2011-05-19 Joseph Myers <joseph@codesourcery.com>
4123
4124 * collect2.c: Include diagnostic.h.
4125 (fatal_perror, fatal, error, fancy_abort): Remove.
4126 (main): Set progname. Call xmalloc_set_program_name and
4127 diagnostic_initialize.
4128 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
4129 scan_libraries, resolve_lib_name): Call fatal_error instead of
4130 fatal and fatal_perror.
4131 * collect2.h (error, fatal, fatal_perror): Don't declare.
4132 * tlink.c: Include diagnostic-core.h.
4133 (recompile_files): Call fatal_error instead of fatal_perror.
4134 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
4135 pretty-print.o and input.o.
4136 (collect2.o, tlink.o): Update dependencies.
4137
4138 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4139
4140 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
4141
4142 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4143
4144 PR target/40483
4145 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
4146 COMDAT group syntax, both SPARC and x86 variants.
4147 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
4148 * configure: Regenerate.
4149 * config/sol2.h (TARGET_SOLARIS): Define.
4150 (PUSHSECTION_FORMAT): Remove.
4151 (SECTION_NAME_FORMAT): Define.
4152 * config/sol2.c: Include hashtab.h.
4153 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
4154 expansion, using SECTION_NAME_FORMAT.
4155 (solaris_comdat_htab): New variable.
4156 (struct comdat_entry): Define.
4157 (comdat_hash): New function.
4158 (comdat_eq): New function.
4159 (solaris_elf_asm_comdat_section): New function.
4160 (solaris_define_comdat_signature): New function.
4161 (solaris_code_end): New function.
4162 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
4163 (solaris_code_end): Declare.
4164 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
4165 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
4166 solaris_code_end.
4167 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
4168 Remove ATTRIBUTE_UNUSED.
4169 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
4170 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
4171 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
4172 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
4173 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
4174 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
4175 (PUSHSECTION_FORMAT): Remove.
4176 (SECTION_NAME_FORMAT): Redefine.
4177
4178 2011-05-19 Kai Tietz <ktietz@redhat.com>
4179
4180 * tree-cfg.c (verify_gimple_assign_binary): Barf on
4181 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
4182 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
4183
4184 2011-05-19 Anatoly Sokolov <aesok@post.ru>
4185 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4186
4187 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
4188
4189 2011-05-19 Richard Guenther <rguenther@suse.de>
4190
4191 PR middle-end/48985
4192 * tree-object-size.c (addr_object_size): If the pointed-to
4193 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
4194
4195 2011-05-19 Richard Guenther <rguenther@suse.de>
4196
4197 * gimple.c (gimple_types_compatible_p_1): Compare names of
4198 the types themselves.
4199 (iterative_hash_gimple_type): And hash them that way.
4200 (gimple_register_type_1): If we register a main variant properly
4201 initialize the leader to ourselves.
4202
4203 2011-05-19 Tom de Vries <tom@codesourcery.com>
4204
4205 PR target/45098
4206 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
4207 get_loop_invariant_expr_id.
4208 (get_loop_invariant_expr_id): Use get_expr_id.
4209 (parm_decl_cost): New function.
4210 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
4211 Improve bound cost estimation. Use different inv_expr_id for elim and
4212 express cases.
4213
4214 2011-05-19 Tom de Vries <tom@codesourcery.com>
4215
4216 PR target/45098
4217 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
4218 cost_base.cost == 0.
4219
4220 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
4221
4222 PR target/49002
4223 * config/i386/sse.md
4224 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
4225 load cast.
4226
4227 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4228
4229 PR tree-optimization/49039
4230 * tree-vrp.c (extract_range_from_binary_expr): For
4231 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
4232 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
4233
4234 2011-05-18 Tom de Vries <tom@codesourcery.com>
4235
4236 PR target/45098
4237 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
4238
4239 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
4240
4241 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
4242 (*tls_global_dynamic_64): Ditto.
4243 (*tls_local_dynamic_base_32_gnu): Ditto.
4244 (*tls_local_dynamic_base_64): Ditto.
4245 (tls_initial_exec_64_sun): Ditto.
4246
4247 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
4248
4249 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
4250 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4251 bf592-none.
4252 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4253 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4254 * config/bfin/bfin.c (bfin_cpus): Add bf592.
4255 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4256 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
4257 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
4258 * config/bfin/elf.h (LIB_SPEC): Add bf592.
4259
4260 2011-05-18 Joseph Myers <joseph@codesourcery.com>
4261
4262 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
4263 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
4264 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
4265 target_thread_pointer, arm_structure_size_boundary, struct
4266 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
4267 struct abi_name, arm_all_abis): Remove.
4268 (arm_option_override) Don't process most enumerated option values here.
4269 Don't process target_fpe_name here. Work with integer not string for
4270 structure size boundary; use separate diagnostics for each case.
4271 * config/arm/arm.h (enum float_abi_type, enum
4272 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
4273 to arm-opts.h.
4274 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
4275 arm_structure_size_boundary): Remove.
4276 * config/arm/arm.opt (mabi=): Use Enum and Init.
4277 (arm_abi_type): New Enum and EnumValue entries.
4278 (mfloat-abi=): Use Enum and Init.
4279 (float_abi_type): New Enum and EnumValue entries.
4280 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
4281 (mfp16-format=): Use Enum and Init.
4282 (arm_fp16_format_type): New Enum and EnumValue entries.
4283 (mstructure-size-boundary=): Use UInteger and Init.
4284 (mtp=): Use Enum and Init.
4285 (arm_tp_type): New Enum and EnumValue entries.
4286
4287 2011-05-18 Richard Guenther <rguenther@suse.de>
4288
4289 PR tree-optimization/49018
4290 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
4291 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
4292 gimple_has_side_effects.
4293
4294 2011-05-18 Richard Guenther <rguenther@suse.de>
4295
4296 * gimple.c (gimple_register_type_1): New function, split out from ...
4297 (gimple_register_type): ... here. Avoid infinite recursion.
4298
4299 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4300
4301 PR tree-optimization/41881
4302 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4303 reduction_chains along with a macro for its access.
4304 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
4305 (destroy_loop_vec_info): Free reduction chains.
4306 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
4307 (vect_is_slp_reduction): New function.
4308 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
4309 (vect_create_epilog_for_reduction): Support SLP reduction chains.
4310 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
4311 definition types for reduction chains.
4312 (vect_supported_load_permutation_p): Don't allow permutations for
4313 reduction chains.
4314 (vect_analyze_slp_instance): Support reduction chains.
4315 (vect_analyze_slp): Try to build SLP instance from reduction chains.
4316 (vect_get_constant_vectors): Handle reduction chains.
4317 (vect_schedule_slp_instance): Mark the first statement of the
4318 reduction chain as reduction.
4319
4320 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
4321
4322 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
4323 names for group elements access.
4324 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
4325 reduction chains as well. Remove data reference and interleaving
4326 related words from the fields names.
4327 * tree-vect-loop.c (vect_transform_loop): Use new names for group
4328 elements access.
4329 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
4330 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
4331 vect_update_interleaving_chain, vect_same_range_drs,
4332 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
4333 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
4334 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
4335 vect_analyze_group_access, vect_analyze_data_ref_access,
4336 vect_create_data_ref_ptr, vect_transform_strided_load,
4337 vect_record_strided_load_vectors): Likewise.
4338 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
4339 vect_model_load_cost, vectorizable_store, vectorizable_load,
4340 vect_remove_stores, new_stmt_vec_info): Likewise.
4341 * tree-vect-slp.c (vect_build_slp_tree,
4342 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
4343
4344 2011-05-18 Richard Guenther <rguenther@suse.de>
4345
4346 PR middle-end/48989
4347 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
4348 operand verification.
4349 (verify_gimple_assign_binary): Likewise.
4350 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
4351 to non-1-precision BOOLEAN_TYPEs.
4352
4353 2011-05-18 Tom de Vries <tom@codesourcery.com>
4354
4355 PR target/45098
4356 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
4357
4358 2011-05-18 Jakub Jelinek <jakub@redhat.com>
4359
4360 PR tree-optimization/49000
4361 * tree-ssa.c (execute_update_addresses_taken): Call
4362 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
4363 be rewritten and decl has been marked for renaming, reset
4364 the debug stmt.
4365
4366 2011-05-17 Joseph Myers <joseph@codesourcery.com>
4367
4368 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
4369 enum_opts_set when testing if attributes have set -mfpmath=.
4370
4371 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4372
4373 * config/mips/mips.c (mips_handle_option): Remove unused variable.
4374
4375 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4376
4377 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
4378 info->entry with 0
4379 * tree-inline.c (maybe_inline_call_in_expr): Initialize
4380 id.transform_lang_insert_block with NULL.
4381
4382 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
4383
4384 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
4385 (output_fp_compare): Change args 3 and 4 to bool.
4386 (ix86_expand_call): Change arg 6 to bool.
4387 (ix86_attr_length_immediate_default): Change arg 2 to bool.
4388 (ix86_attr_length_vex_default): Change arg 3 to bool.
4389 * config/i386/i386.md: Update all uses.
4390 * config/i386/i386.c: Ditto.
4391 (ix86_flags_dependent): Change return type to bool.
4392
4393 2011-05-17 Richard Guenther <rguenther@suse.de>
4394
4395 * gimple.c (type_hash_pair_compare): Fix comparison.
4396
4397 2011-05-17 Richard Guenther <rguenther@suse.de>
4398
4399 * gimple.c (iterative_hash_gimple_type): Simplify singleton
4400 case some more, fix final hash value of the non-singleton case.
4401
4402 2011-05-17 Richard Guenther <rguenther@suse.de>
4403
4404 PR bootstrap/49013
4405 Revert
4406 2011-05-16 Richard Guenther <rguenther@suse.de>
4407
4408 * gimple.c (gimple_types_compatible_p_1): Use names of the
4409 type itself, not its main variant.
4410 (iterative_hash_gimple_type): Likewise.
4411
4412 2011-05-17 Richard Guenther <rguenther@suse.de>
4413
4414 * gimple.c (gimple_register_canonical_type): Use the main-variant
4415 leader for computing the canonical type.
4416
4417 2011-05-17 Nick Clifton <nickc@redhat.com>
4418
4419 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
4420 moves.
4421
4422 * config/rx/rx.md: Add peephole to remove redundant extensions
4423 after loads.
4424 (bitset_in_memory): Use rx_restricted_mem_operand.
4425 (bitinvert_in_memory): Likewise.
4426 (bitclr_in_memory): Likewise.
4427
4428 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
4429 Nick Clifton <nickc@redhat.com>
4430
4431 * config/rx/rx.md: Add peepholes to match a register move followed
4432 by a comparison of the moved register. Replace these with an
4433 addition of zero that does both actions in one instruction.
4434
4435 2011-05-17 Jakub Jelinek <jakub@redhat.com>
4436
4437 PR target/48986
4438 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
4439 predicate to allow CONST_INT.
4440 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
4441
4442 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4443
4444 * opts-common.c (opt_enum_arg_to_value): New.
4445 * opts.h (opt_enum_arg_to_value): Declare.
4446 * config/i386/i386.opt (fpmath): Remove.
4447 (mfpmath=): Use Enum, Init and Save.
4448 (fpmath_unit): New Enum and EnumValue entries.
4449 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
4450 name for function fpmath state.
4451 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
4452 * config/i386/i386.c: Include diagnostic.h.
4453 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
4454 (ix86_target_string): Take enum fpmath_unit value instead of string.
4455 (ix86_debug_options): Update call to ix86_target_string.
4456 (ix86_option_override_internal): Don't process fpmath strings here.
4457 (x86_function_specific_save, ix86_function_specific_restore):
4458 Don't handle fpmath state specially.
4459 (ix86_function_specific_print): Pass fpmath state to
4460 ix86_target_string instead of printing in this function.
4461 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
4462 Handle enum attributes.
4463 (IX86_ATTR_ENUM, ix86_opt_enum): New.
4464 (ix86_valid_target_attribute_tree): Update option_strings
4465 handling. Handle fpmath as enum option.
4466 (ix86_can_inline_p): Update field names for function fpmath state.
4467 (ix86_expand_builtin): Update call to ix86_target_string.
4468 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
4469 (ix86_fpmath): Remove.
4470 * config/i386/t-i386 (i386.o): Update dependencies.
4471
4472 2011-05-16 Joseph Myers <joseph@codesourcery.com>
4473
4474 PR preprocessor/48677
4475 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
4476 from decoded_options[0], not from itself.
4477
4478 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
4479
4480 * config/i386/constraints.md (z): New constraint.
4481 * config/i386/i386.c (c): New mode attribute.
4482 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
4483 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
4484 constraint for operand 0.
4485 (*call_vzeroupper): Ditto.
4486 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
4487 (*call_rex64_ms_sysv_vzeroupper): Ditto.
4488 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
4489 Use "lzm" constraint for operand 0.
4490 (*call_pop_vzeroupper): Ditto.
4491 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
4492 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
4493 constraint for operand 0.
4494 (*sibcall_vzeroupper): Ditto.
4495 (*sibcall_rex64_ms_sysv): Ditto.
4496 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
4497 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
4498 *sibcall_pop_1. Use "Uz" constraint for operand 0.
4499 (*sibcall_pop_vzeroupper): Ditto.
4500 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
4501 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
4502 mode iterator. Use "<c>zm" constraint for operand 1.
4503 (*call_value_vzeroupper): Ditto.
4504 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
4505 for operand 1.
4506 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
4507 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
4508 *call_value_pop_1. Use "lzm" constraint for operand 1.
4509 (*call_value_pop_vzeroupper): Ditto.
4510 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
4511 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
4512 mode iterator. Use "Uz" constraint for operand 1.
4513 (*sibcall_value_vzeroupper): Ditto.
4514 (*sibcall_value_rex64_ms_sysv): Ditto.
4515 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
4516 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
4517 constraint for operand 1.
4518 (*sibcall_value_pop_vzeroupper): Ditto.
4519 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
4520 and "z" constraint for operand 2.
4521 (*tls_global_dynamic_32_gnu): Ditto.
4522 (*tls_local_dynamic_base_32_gnu): Ditto.
4523 (*tls_local_dynamic_base_64): Ditto.
4524 (*tls_local_dynamic_32_once): Ditto.
4525 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
4526 Update all callers.
4527 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
4528
4529 2011-05-16 Richard Guenther <rguenther@suse.de>
4530
4531 * gimple.c (gimple_types_compatible_p_1): Use names of the
4532 type itself, not its main variant.
4533 (iterative_hash_gimple_type): Likewise.
4534
4535 2011-05-16 Richard Guenther <rguenther@suse.de>
4536
4537 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
4538 always visit pointer target and function result and argument types.
4539
4540 2011-05-16 Jason Merrill <jason@redhat.com>
4541
4542 PR c++/48999
4543 * tree-inline.c (copy_statement_list): Put back recursion.
4544
4545 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4546
4547 PR target/27663
4548 PR target/41076
4549 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
4550 * config/avr/avr.md ("*ior<mode>qi.byte0",
4551 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
4552
4553 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
4554
4555 PR target/45099
4556 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
4557 register is needed for a function argument.
4558
4559 2011-05-16 Richard Guenther <rguenther@suse.de>
4560
4561 * gimple.c (struct type_hash_pair): New type.
4562 (type_hash_pair_compare): New function.
4563 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
4564
4565 2011-05-16 Revital Eres <revital.eres@linaro.org>
4566
4567 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
4568
4569 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4570
4571 * config/i386/i386.md (floating point move splitters): Fix
4572 usage of standard_80387_constant_p.
4573 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
4574
4575 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
4576
4577 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
4578
4579 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
4580
4581 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
4582 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
4583 (tree_ssa_lim_finalize): Likewise.
4584
4585 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
4586
4587 * config/i386/constraint.md (Yd, Yx): New register constraints.
4588 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
4589 Yd conditional register constraint.
4590 (*movtf_internal): Use standard_sse_constant_opcode.
4591 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
4592 Yx conditional register constraint.
4593 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
4594 Yd conditional register constraint. Use standard_sse_constant_p to
4595 check for valid SSE constants and call standard_sse_constant_opcode to
4596 output SSE insn.
4597 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
4598 constants and call standard_sse_constant_opcode to output SSE insn.
4599 * config/i386/i386.c (ix86_option_ovverride_internal): Set
4600 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
4601 optimize_size is set.
4602 (standard_sse_constant_opcode): Output conditional AVX insn templates.
4603
4604 2011-05-14 Tobias Burnus <burnus@net-b.de>
4605
4606 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
4607
4608 2011-05-13 Martin Jambor <mjambor@suse.cz>
4609
4610 * ipa-prop.c (ipa_cst_from_jfunc): New function.
4611 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
4612 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
4613 (evaluate_conditions_for_ipcp_clone): Removed.
4614 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
4615 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
4616 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
4617
4618 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
4619
4620 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
4621 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
4622 lieu of MAY_HAVE_DEBUG_STMTS.
4623 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
4624 debug statements if !MAY_HAVE_DEBUG_STMTS.
4625
4626 2011-05-13 Martin Thuresson <martint@google.com>
4627
4628 PR gcov-profile/47793
4629 * libgcov.c (gcov_exit): Support relative profile paths.
4630 * doc/invoke.texi (-fprofile-dir): Update for above change.
4631
4632 2011-05-13 Richard Guenther <rguenther@suse.de>
4633
4634 * gimple.c (gimple_canonical_types_compatible_p): Do not use
4635 type-pair caching, do not compare hashes.
4636
4637 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
4638
4639 PR middle-end/48965
4640 * tree-cfg.c (edge_to_cases_cleanup): Return true.
4641 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
4642
4643 2011-05-13 Kai Tietz <ktietz@redhat.com>
4644
4645 * gimplify.c (gimplify_expr): Make sure operand is boolified.
4646 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
4647 compatible type for TRUTH_NOT_EXPR.
4648
4649 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
4650
4651 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
4652 (ix86_hard_regno_mode_ok): Change return value to bool. Use
4653 can_create_pseudo_p ().
4654
4655 2011-05-13 Richard Guenther <rguenther@suse.de>
4656
4657 PR lto/48978
4658 * gimple.c (iterative_hash_gimple_type): Revert change in
4659 pointer target and function result and argument hashing.
4660
4661 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
4662
4663 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
4664 (*movxf_internal_nointeger): Ditto.
4665 (*movdf_internal_rex64): Ditto.
4666 (*movdf_internal): Ditto.
4667 (*movdf_internal_nointeger): Ditto.
4668 (*movsf_internal): Ditto.
4669 (sincos splitters): Use can_create_pseudo ().
4670
4671 2011-05-13 Joseph Myers <joseph@codesourcery.com>
4672
4673 * config/i386/i386-opts.h: New.
4674 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
4675 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
4676 ix86_section_threshold): Remove.
4677 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
4678 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
4679 OPT_mbranch_cost_.
4680 (ix86_option_override_internal): Don't decode strings for options
4681 other than -march=, -mtune= and -mfpmath=. Don't allow for
4682 __attribute__ uses in remaining diagnostics for options with
4683 string arguments. Don't check for integer arguments being negative.
4684 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
4685 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
4686 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
4687 ix86_branch_cost, ix86_section_threshold): Remove.
4688 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
4689 HeaderInclude.
4690 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
4691 but not Var.
4692 (masm=): Use Enum and Init.
4693 (asm_dialect): New Enum and EnumValue entries.
4694 (mbranch-cost=): Use UInteger.
4695 (mlarge-data-threshold=): Use UInteger and Init.
4696 (mcmodel=): Use Enum and Init.
4697 (cmodel): New Enum and EnumValue entries.
4698 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
4699 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
4700 mregparm=): Use UInteger.
4701 (mstringop-strategy=): Use Enum and Init.
4702 (stringop_alg): New Enum and EnumValue entries.
4703 (mtls-dialect=): Use Enum and Init.
4704 (tls_dialect): New Enum and EnumValue entries.
4705 (mabi=): Use Enum and Init.
4706 (calling_abi): New Enum and EnumValue entries.
4707 (mveclibabi=): Use Enum and Init.
4708 (ix86_veclibabi): New Enum and EnumValue entries.
4709
4710 2011-05-13 Nick Clifton <nickc@redhat.com>
4711
4712 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
4713 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
4714
4715 2011-05-13 Kai Tietz <ktietz@redhat.com>
4716
4717 PR middle-end/48984
4718 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
4719 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
4720 (gimple_boolify): Check for cast for boolean_type_node instead for
4721 BOOLEAN_TYPE.
4722
4723 2011-05-13 Richard Guenther <rguenther@suse.de>
4724
4725 PR tree-optimization/48172
4726 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
4727 multiplying by number of iterations for equal step.
4728 (vect_create_cond_for_alias_checks): Likewise.
4729
4730 2011-05-13 Andreas Schwab <schwab@redhat.com>
4731
4732 * configure.ac: Use AS_HELP_STRING throughout.
4733 * configure: Regenerate.
4734
4735 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
4736
4737 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
4738 (ix86_emit_restore_regs_using_mov): Likewise.
4739 (ix86_emit_restore_sse_regs_using_mov): Likewise.
4740
4741 2011-05-12 Anatoly Sokolov <aesok@post.ru>
4742
4743 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
4744 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
4745 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
4746 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
4747 RTX_OK_FOR_OLO10_P): ...here.
4748 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
4749 SYMBOLIC_CONST.
4750
4751 2011-05-12 Kai Tietz <ktietz@redhat.com>
4752
4753 * gimplify.c (gimple_boolify): Re-boolify expression
4754 arguments even if expression type is of kind BOOLEAN_TYPE.
4755 (gimplify_boolean_expr): Removed.
4756 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
4757 and XOR. Additional take care that we keep expression's type.
4758 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
4759 of TRUTH_AND|OR|XOR_EXPR.
4760
4761 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4762
4763 PR tree-optimization/48975
4764 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
4765 on all bbs here and free and clear ifc_bbs at the end.
4766
4767 2011-05-12 Richard Guenther <rguenther@suse.de>
4768
4769 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
4770 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
4771 until after simple checks.
4772 (gimple_types_compatible_p): Likewise.
4773 (iterative_hash_gimple_type): Always hash pointer targets
4774 and function return and argument types.
4775 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
4776 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
4777 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
4778 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
4779 completely in the simple compare section.
4780 (gimple_register_canonical_type): Query the cache again after
4781 registering.
4782
4783 2011-05-12 Richard Guenther <rguenther@suse.de>
4784
4785 PR tree-optimization/48172
4786 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
4787 the number of iterations from the segment size calculation.
4788 (vect_create_cond_for_alias_checks): Adjust.
4789
4790 2011-05-12 Jakub Jelinek <jakub@redhat.com>
4791
4792 PR debug/48967
4793 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
4794 if validate_subreg fails.
4795
4796 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
4797
4798 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
4799 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
4800 early.
4801
4802 2011-05-12 DJ Delorie <dj@redhat.com>
4803
4804 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
4805 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
4806 created builtin into rx_builtins array.
4807 (rx_builtin_decl): New function.
4808 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
4809
4810 2011-05-12 DJ Delorie <dj@redhat.com>
4811 Nick Clifton <nickc@redhat.com>
4812
4813 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
4814 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
4815 (rx_is_legitimate_address): Add pre-decrement and post-increment
4816 addressing in HImode and QImode. Fix test for out of range
4817 REG+INT addressing.
4818 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
4819 (rx_align_for_label): Test label before extracting its usage count.
4820 (rx_adjust_insn_lengths): Fix selection of insn codes.
4821 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
4822
4823 2011-05-11 Jason Merrill <jason@redhat.com>
4824
4825 * tree.c (type_hash_canon): Use struct tree_type_non_common.
4826
4827 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4828
4829 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
4830 reindent the subsequent block.
4831
4832 2011-05-11 Satoru Takabayashi <satorux@google.com>
4833 Paul Pluzhnikov <ppluzhnikov@google.com>
4834
4835 * doc/install.texi (Configuration): Document --with-linker-hash-style.
4836 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
4837 * config.in: Add LINKER_HASH_STYLE.
4838 * configure.ac: Add --with-linker-hash-style.
4839 * configure: Regenerate.
4840
4841 2011-05-11 Richard Guenther <rguenther@suse.de>
4842
4843 PR middle-end/48964
4844 * gimple.c (iterative_hash_canonical_type): Fix typo.
4845
4846 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
4847
4848 * config/i386/i386.c (legitimize_tls_address)
4849 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4850 expanders directly for TARGET_GNU2_TLS. Determine pic and
4851 __tls_get_addr symbol reference here. Update call to
4852 gen_tls_global_dynamic_{32,64} for added arguments.
4853 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
4854 expanders directly for TARGET_GNU2_TLS. Determine
4855 __tls_get_addr symbol reference here. Update call to
4856 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
4857 unique UNSPEC REG_EQUIV to libcall block.
4858 (ix86_tls_get_addr): Declare static.
4859 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
4860 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
4861 Do not determine pic and __tls_get_addr symbol reference here. Do not
4862 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
4863 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
4864 (tls_global_dynamic_64): Add operand 2. Do not determine
4865 __tls_get_addr symbol reference here. Do not call
4866 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
4867 (tls_local_dynamic_base64): Ditto for operand 1.
4868
4869 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
4870
4871 * function.c (expand_function_start): Initialize stack_check_probe_note
4872 only if the generic stack checking mechanism is used.
4873
4874 2011-05-11 Richard Guenther <rguenther@suse.de>
4875
4876 PR tree-optimization/15256
4877 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
4878 (A & B) | C, combine (A op CST1) op CST2.
4879 (tree_ssa_forward_propagate_single_use_vars): Only bother to
4880 visit assigns that have uses.
4881
4882 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
4883
4884 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
4885 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
4886 (unpack_ts_type_common_value_fields): ...this. Update comment.
4887 (unpack_value_fields): Adjust for renaming.
4888 (lto_input_ts_type_tree_pointers): Split into...
4889 (lto_input_ts_type_common_tree_pointer): ...this and...
4890 (lto_input_ts_type_non_common_tree_pointers): ...this.
4891 (lto_input_tree_pointers): Adjust for above split.
4892 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
4893 (pack_ts_type_common_value_fields): ...this. Update comment.
4894 (lto_output_ts_type_tree_pointers): Split into...
4895 (lto_output_ts_type_common_tree_pointers): ...this and...
4896 (lto_output_ts_type_non_common_tree_pointers): ...this.
4897 (lto_output_tree_pointers): Adjust for above split.
4898 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
4899 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
4900 * stor-layout.c (vector_type_mode): Adjust location of mode field.
4901 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
4902 Define.
4903 (struct tree_type): Split into...
4904 (struct tree_type_common: ...this and...
4905 (struct tree_type_with_lang_specific): ...this and...
4906 (struct tree_type_non_common): ...this. Adjust accessor macros
4907 accordingly.
4908 (TYPE_VALUES_RAW): Define.
4909 (union tree_node): Update for above changes.
4910 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
4911 TS_TYPE_NON_COMMON.
4912 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
4913 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
4914 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
4915 * treestructu.def (TS_TYPE): Remove.
4916 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
4917 Define.
4918
4919 2011-05-11 Jakub Jelinek <jakub@redhat.com>
4920
4921 PR debug/48159
4922 * tree-ssa.c (reset_debug_uses): New function.
4923 * tree-flow.h (reset_debug_uses): New prototype.
4924 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
4925 * tree-loop-distribution.c (generate_loops_for_partition): Call
4926 reset_debug_uses on the stmts that will be removed. Keep around
4927 all debug stmts, don't count them as bits in partition bitmap.
4928 (generate_builtin): Don't count debug stmts or labels as bits in
4929 partition bitmap.
4930
4931 2011-05-11 Richard Guenther <rguenther@suse.de>
4932
4933 * gimple.c (gimple_type_hash_1): Merge with ...
4934 (gimple_type_hash): ... this.
4935 (gtc_visit): Remove mode parameter and simplify accordingly.
4936 (gimple_types_compatible_p_1): Likewise.
4937 (gimple_types_compatible_p): Likewise.
4938 (iterative_hash_gimple_type): Likewise.
4939 (visit): Likewise.
4940 (gimple_type_eq): Adjust.
4941
4942 2011-05-11 Revital Eres <revital.eres@linaro.org>
4943
4944 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
4945 enters the branch create an anti edge in the opposite direction
4946 to prevent the creation of reg-moves.
4947 * modulo-sched.c: Adjust comment to reflect the fact we are
4948 scheduling closing branch.
4949 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
4950 (stage_count): New field in struct partial_schedule.
4951 (calculate_stage_count): New function.
4952 (normalize_sched_times): Rename to reset_sched_times and handle
4953 incrementing the sched time of the nodes by a constant value
4954 passed as parameter.
4955 (duplicate_insns_of_cycles): Skip closing branch.
4956 (sms_schedule_by_order): Schedule closing branch.
4957 (ps_insn_find_column): Handle closing branch.
4958 (sms_schedule): Call reset_sched_times and adjust the code to
4959 support scheduling of the closing branch.
4960 (ps_insert_empty_row): Update calls to normalize_sched_times
4961 and rotate_partial_schedule functions.
4962
4963 2011-05-11 Richard Guenther <rguenther@suse.de>
4964
4965 PR middle-end/48953
4966 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
4967
4968 2011-05-11 Joseph Myers <joseph@codesourcery.com>
4969
4970 * opts.c (finish_options): Move warning settings from process_options.
4971 * toplev.c (process_options): Move warning settings to finish_options.
4972
4973 2011-05-11 Richard Guenther <rguenther@suse.de>
4974
4975 PR tree-optimization/18041
4976 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
4977 (simplify_bitwise_binary): ... this. Handle operand conversions
4978 by applying them to the result instead.
4979 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
4980
4981 2011-05-11 Richard Guenther <rguenther@suse.de>
4982
4983 * gimple.c (gimple_canonical_types_compatible_p): Split out
4984 from gimple_types_compatible_p and friends. Do not recurse
4985 to pointed-to types.
4986 (gimple_canonical_type_eq): Use it.
4987 (iterative_hash_canonical_type): Split out from
4988 iterative_hash_gimple_type and friends. Do not recurse
4989 to pointed-to types.
4990 (gimple_canonical_type_hash): Use it, allocate the hash here.
4991
4992 2011-05-11 Revital Eres <revital.eres@linaro.org>
4993
4994 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
4995 recognizing doloop.
4996
4997 2011-05-11 Revital Eres <revital.eres@linaro.org>
4998
4999 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
5000 instead of PREV_INSN.
5001
5002 2011-05-11 Revital Eres <revital.eres@linaro.org>
5003
5004 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
5005 * loop-doloop.c (doloop_condition_get): Likewise.
5006 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
5007 (doloop_end): New.
5008 * config/arm/arm.md (*addsi3_compare0): Remove "*".
5009
5010 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5011
5012 * tree.def (CASE_LABEL_EXPR): Add an operand.
5013 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
5014
5015 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5016
5017 * c-decl.c (c_override_global_bindings_to_false): Remove.
5018 (global_bindings_p): Don't check
5019 c_override_global_bindings_to_false.
5020 * c-tree.h (c_override_global_bindings_to_false): Remove.
5021 * c-typeck.c (composite_type): Don't set
5022 c_override_global_bindings_to_false.
5023
5024 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5025
5026 PR target/48857, 48495
5027 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
5028 (VSX_MODE): Ditto.
5029 (VSX_MOVE_MODE): Ditto.
5030 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
5031 VSX vector types. Add V2DImode.
5032 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
5033 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
5034 (MODES_TIEABLE_P): Ditto.
5035
5036 * config/rs6000/rs6000.c (rs6000_emit_move): Use
5037 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
5038 VSX_VECTOR_MODE.
5039 (init_cumulative_args): Ditto.
5040 (rs6000_function_arg_boundary): Ditto.
5041 (rs6000_function_arg_advance_1): Ditto.
5042 (rs6000_function_arg): Ditto.
5043 (rs6000_function_ok_for_sibcall): Ditto.
5044 (emit_frame_save): Ditto.
5045 (rs6000_function_value): Ditto.
5046 (rs6000_libcall_value): Ditto.
5047
5048 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5049
5050 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5051 i386/darwin-lib.h to $libgcc_tm_file.
5052 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
5053
5054 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5055
5056 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
5057
5058 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5059
5060 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
5061 * config/rs6000/rs6000-tables.opt: New file (generated).
5062 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
5063 rs6000/rs6000-tables.opt to extra_options.
5064 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
5065 * config/rs6000/rs6000.c (rs6000_select): Remove.
5066 (processor_target_table): Move contents to rs6000-cpus.def.
5067 (darwin_rs6000_override_options): Check
5068 global_options_set.x_rs6000_cpu_index instead of
5069 rs6000_select[1].string.
5070 (rs6000_option_override_internal): Likewise.
5071 (rs6000_handle_option): Don't assert that global structures are in
5072 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
5073 (rs6000_default_cpu): New variable.
5074 (rs6000_file_start): Set it instead of local default_cpu. Check
5075 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
5076 global_options_set.x_rs6000_tune_index instead of rs6000_select.
5077 (rs6000_darwin_file_start): Check rs6000_default_cpu and
5078 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
5079 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
5080 rs6000_select): Remove.
5081 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
5082 Remove.
5083 (mcpu=, mtune=): Use Var, Init, Enum and Save.
5084 * config/rs6000/t-rs6000
5085 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
5086 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5087 global_options_set.x_rs6000_cpu_index instead of
5088 rs6000_select[1].string.
5089 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5090 global_options_set.x_rs6000_cpu_index instead of
5091 rs6000_select[1].string.
5092
5093 2011-05-10 Joseph Myers <joseph@codesourcery.com>
5094
5095 * config.gcc (libgcc_tm_file): Define instead of including files
5096 from ../../libgcc/config/ in tm_file.
5097 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
5098 * configure: Regenerate.
5099 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
5100 libgcc_tm.h, cs-libgcc_tm.h): New.
5101 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
5102 (clean): Remove libgcc_tm.h.
5103 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
5104 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
5105 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
5106
5107 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
5108
5109 PR target/48896
5110 * config/avr/avr.c (avr_ret_register): Return unsigned int
5111 instead of int.
5112 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
5113 it to avr_libcall_value.
5114 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
5115 expand_expr.
5116 (avr_expand_binop_builtin): Ditto.
5117 (avr_expand_unop_builtin): Ditto.
5118
5119 2011-05-10 DJ Delorie <dj@redhat.com>
5120
5121 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
5122 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
5123 * config/rx/rx.c (rx_align_for_label): Add label and
5124 uses_threshold parameters. Do not align when the label is not
5125 used enough.
5126 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
5127
5128 2011-05-10 Richard Guenther <rguenther@suse.de>
5129
5130 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
5131 a series of conversions and apply foldings similar to what
5132 fold-const does.
5133 (tree_ssa_forward_propagate_single_use_vars): Call it.
5134
5135 2011-05-10 Jakub Jelinek <jakub@redhat.com>
5136
5137 PR tree-optimization/48611
5138 PR tree-optimization/48794
5139 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
5140 referenced from RESX or EH_DISPATCH arguments.
5141
5142 PR debug/48928
5143 * dfp.c (decimal_to_decnumber): Handle conversion from
5144 dconst{1,2,m1,half}.
5145
5146 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5147
5148 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
5149 for !flag_prefer_avx128.
5150 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
5151
5152 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5153
5154 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
5155 (fold_ternary_loc): Use expr_location_or.
5156
5157 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
5158
5159 PR debug/48853
5160 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
5161 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
5162 Pmode and mem_mode is not VOIDmode.
5163
5164 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
5165
5166 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
5167 TYPE_QUAL_RESTRICT): Convert to enum.
5168
5169 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5170
5171 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
5172 (const_pow2_1_to_8_operand): Ditto.
5173 (const_pow2_1_to_128_operand): Ditto.
5174 (const_pow2_1_to_32768_operand): Ditto.
5175 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
5176 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
5177 in insn constraint to check integer value of operand 3.
5178 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
5179
5180 (PINSR_MODE): New mode iterator.
5181 (sse2p4_1): New mode attribute.
5182 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
5183 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
5184 iterator. Use const_int_operand instead of
5185 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
5186 exact_log2 in insn constraint to check integer value of operand 3.
5187
5188 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5189
5190 * config/i386/sse.md (blendbits): Remove mode attribute.
5191 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
5192 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
5193 Check integer value of operand 3 in insn constraint.
5194
5195 2011-05-09 Richard Guenther <rguenther@suse.de>
5196
5197 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
5198 for diagnostics.
5199 (lto_symtab_merge): Likewise. Do not register types here.
5200 (lto_symtab_merge_decls_2): Likewise.
5201 (lto_symtab_merge_decls_1): Likewise.
5202 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
5203 * gimple.c (enum gtc_mode): Declare.
5204 (gimple_types_compatible_p): Make static.
5205
5206 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5207
5208 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
5209 temporary register to match Pmode.
5210
5211 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5212
5213 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
5214 and *vec_concatv4si_1_avx.
5215
5216 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
5217
5218 PR rtl-optimization/48927
5219 * ira-conflicts.c (commutative_constraint_p): Use
5220 recog_data.alternative_enabled_p to disable alternatives where
5221 "enabled" attribute is false.
5222 (get_dup_num): Ditto.
5223 * ira-lives.c (single_reg_class): Ditto.
5224 (ira_implicitly_set_insn_hard_regs): Ditto.
5225
5226 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
5227
5228 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
5229 (dataflow_set_preserve_mem_locs): Likewise.
5230
5231 2011-05-09 Philipp Thomas <pth@suse.de>
5232
5233 * config/mep/mep.c (mep_validate_vliw): Syntax description
5234 should not be translated.
5235
5236 2011-05-09 Joseph Myers <joseph@codesourcery.com>
5237
5238 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
5239 * config/mips/mips-tables.opt: New file (generated).
5240 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
5241 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
5242 MIPS_ARCH_OPTION_NATIVE): Define.
5243 * config/mips/mips.c (mips_cpu_info_table): Move contents to
5244 mips-cpus.def.
5245 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
5246 mips_parse_cpu): Remove.
5247 (mips_cpu_info_from_opt, mips_default_arch): New.
5248 (mips_handle_option): Don't assert that global structures are in
5249 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
5250 (mips_option_override): Use new variables and functions to set
5251 state of these options. Use strcmp to check for individual CPU names.
5252 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
5253 definition.
5254 * config/mips/mips.opt (march=): Use ToLower and Enum.
5255 (mips): Use ToLower, Enum and Var.
5256 (mtune=): Use ToLower and Enum.
5257 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
5258
5259 2011-05-08 Jan Hubicka <jh@suse.cz>
5260
5261 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
5262 Arrange type pairs to be UID ordered.
5263 (gimple_lookup_type_leader): Make inline.
5264
5265 2011-05-09 Nick Clifton <nickc@redhat.com>
5266
5267 PR target/48899
5268 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
5269 PROCESSOR_DEFAULT.
5270
5271 PR target/48897
5272 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
5273 variable 's'.
5274
5275 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
5276
5277 * combine.c (simplify_comparison): Abstract out parts into...
5278 (simplify_compare_const): ... new function.
5279 (try_combine): Generalize parallel arithmetic/compare combining
5280 to call simplify_compare_const() and CANONICALIZE_COMPARE().
5281
5282 2011-05-08 Jan Hubicka <jh@suse.cz>
5283
5284 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
5285 (cgraph_create_virtual_clone): Call hooks once virtual clone
5286 is finished.
5287 * cgraph.h (cgraph_clone_node): Update prototype.
5288 * ipa-cp.c (ipcp_estimate_growth): Use
5289 estimate_ipcp_clone_size_and_time.
5290 * ipa-inline-transform.c (clone_inlined_nodes): Update.
5291 * lto-cgraph.c (input_node): Update.
5292 * ipa-inline.c (recursive_inlining): Update.
5293 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
5294 (evaluate_conditions_for_known_args): Break out from ...
5295 (evaluate_conditions_for_edge): ... here.
5296 (evaluate_conditions_for_ipcp_clone): New function.
5297 (inline_node_duplication_hook): Update clone summary based
5298 on parameter map.
5299 (estimate_callee_size_and_time): Rename to ...
5300 (estimate_node_size_and_time): take NODE instead of EDGE;
5301 take POSSIBLE_TRUTHS as argument.
5302 (estimate_callee_size_and_time): Update.
5303 (estimate_ipcp_clone_size_and_time): New function.
5304 (do_estimate_edge_time): Update.
5305
5306 2011-05-08 Richard Guenther <rguenther@suse.de>
5307
5308 PR middle-end/48908
5309 PR middle-end/48905
5310 * expmed.c (expand_shift_1): Compute adjusted constant shift
5311 amount manually.
5312
5313 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5314
5315 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
5316
5317 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
5318
5319 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
5320
5321 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
5322
5323 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
5324
5325 2011-05-07 Jan Hubicka <jh@suse.cz>
5326
5327 * ipa-inline-transform.c (inline_call): Account when program size
5328 decreases.
5329 * ipa-inline.c (relative_time_benefit): New function.
5330 (edge_badness): Reorganize to be power 2 based; fix thinko when
5331 computing badness for negative growth; update comments to match
5332 reality; better dumps.
5333
5334 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
5335
5336 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
5337 type to bool and adjust comment.
5338 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
5339 (fold_mathfn_compare): Remove calls to global_bindings_p.
5340 (fold_inf_compare): Likewise.
5341 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
5342 * c-tree.h (global_bindings_p): Adjust prototype.
5343 * c-decl.c (global_bindings_p): Return bool and simplify.
5344
5345 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
5346
5347 PR tree-optimization/48837
5348 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
5349 when accumulator transformation is performed.
5350
5351 2011-05-06 Jan Hubicka <jh@suse.cz>
5352
5353 * i386.h (ix86_tune_indices): Add
5354 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
5355 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
5356 * i386.c (initial_ix86_tune_features): Add
5357 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5358 (software_prefetching_beneficial_p): Remove predicate.
5359 (ix86_option_override_internal): Use new macro.
5360
5361 2011-05-06 Jan Hubicka <jh@suse.cz>
5362
5363 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
5364
5365 2011-05-06 Jan Hubicka <jh@suse.cz>
5366
5367 * cgraph.c (cgraph_add_thunk): Create real function node instead
5368 of alias node; finalize it and mark needed/reachale; arrange visibility
5369 to be right and add it into the corresponding same comdat group list.
5370 (dump_cgraph_node): Dump thunks.
5371 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
5372 cgraph_function_with_gimple_body_p,
5373 cgraph_first_function_with_gimple_body,
5374 cgraph_next_function_with_gimple_body): New functions.
5375 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
5376 New macros.
5377 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
5378 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5379 * cgraphunit.c (cgraph_finalize_function): Only look into possible
5380 devirtualization when optimizing.
5381 (verify_cgraph_node): Verify thunks.
5382 (cgraph_analyze_function): Analyze thunks.
5383 (cgraph_mark_functions_to_output): Output thunks only in combination
5384 with function they are assigned to.
5385 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
5386 alias into normal node.
5387 (assemble_thunks): New functoin.
5388 (cgraph_expand_function): Use it.
5389 * lto-cgraph.c (lto_output_node): Stream thunks.
5390 (input_overwrite_node): Stream in thunks.
5391 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
5392 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
5393 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
5394 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
5395 (inline_analyze_function): Do not care about thunk jump functions.
5396 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
5397 * ipa-prop.c (ipa_prop_write_jump_functions): Use
5398 cgraph_function_with_gimple_body_p.
5399 * passes.c (do_per_function_toporder): Use
5400 cgraph_function_with_gimple_body_p.
5401 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
5402 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
5403 (function_called_by_processed_nodes_p): Likewise.
5404
5405 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5406
5407 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
5408 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
5409 entries.
5410 (mabi=): Replace with separate entries for mabi=altivec,
5411 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
5412 mabi=ieeelongdouble and mabi=ibmlongdouble.
5413 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
5414 check for -mabi=spe without SPE ABI support here.
5415 (rs6000_handle_option): Replace OPT_mabi_ handling with
5416 OPT_mabi_altivec and OPT_mabi_spe handling.
5417
5418 2011-05-06 Cary Coutant <ccoutant@google.com>
5419
5420 * dwarf2out.c (contains_subprogram_definition): New function.
5421 (should_move_die_to_comdat): Call it.
5422
5423 2011-05-06 Jeff Law <law@redhat.com>
5424
5425 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
5426 remove_ctrl_stmt_and_useless_edges.
5427 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
5428 (fixup_template_block, thread_single_edge): Likewise.
5429 (mark_threaded_blocks): Use THREAD_TARGET.
5430
5431 2011-05-06 Alan Modra <amodra@gmail.com>
5432
5433 PR target/48900
5434 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5435 const0_rtx as the arg to the dummy __tls_get_addr libcall.
5436
5437 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5438
5439 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
5440 constraint modifier to "r".
5441
5442 2011-05-06 Joseph Myers <joseph@codesourcery.com>
5443
5444 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
5445 fall through for OPT_mcmodel_.
5446
5447 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5448
5449 * config/s390/s390.c (s390_asm_trampoline_template): Comment
5450 instruction sizes.
5451 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
5452
5453 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5454
5455 PR target/47930
5456 * config/arm/arm.opt (marm): Document it.
5457 (mthumb): Reject negative variant.
5458
5459 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
5460
5461 PR target/48898
5462 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5463 Fix typo in "ccvt" variable name.
5464
5465 2011-05-06 Tristan Gingold <gingold@adacore.com>
5466
5467 PR target/48895
5468 * config/vms/vms-ar.c (main): Remove cwd variable.
5469
5470 2011-05-06 Jakub Jelinek <jakub@redhat.com>
5471
5472 PR debug/48902
5473 * var-tracking.c (prepare_call_arguments): Move else before #endif.
5474
5475 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5476
5477 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
5478 * gimplify.c (gimplify_switch_expr): Likewise.
5479 * omp-low.c (expand_omp_sections): Likewise.
5480 * tree-eh.c (lower_try_finally_switch): Likewise.
5481 (lower_eh_dispatch): Likewise.
5482 * tree.h (build_case_label): Declare.
5483 * tree.c (build_case_label): Define.
5484
5485 2011-05-05 Jason Merrill <jason@redhat.com>
5486
5487 PR c++/40975
5488 * tree-inline.c (copy_tree_r): Use copy_statement_list.
5489 (copy_statement_list): Don't recurse.
5490 * stor-layout.c (copy_self_referential_tree_r): Don't allow
5491 STATEMENT_LIST.
5492
5493 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5494
5495 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
5496 through from -mfpu= handling.
5497 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
5498
5499 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
5500
5501 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
5502 POST_MODIFY.
5503
5504 2011-05-05 Steve Ellcey <sje@cup.hp.com>
5505
5506 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
5507 for 11.31.
5508 (hppa[12]*-*-hpux11*): Ditto.
5509 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
5510 * config/ia64/hpux-unix2003.h: New.
5511 * config/pa/pa-hpux1131.opt: New.
5512 * config/pa/pa-hpux1131.h: New.
5513 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
5514 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
5515 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
5516
5517 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5518
5519 PR debug/48853
5520 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
5521 instead of mode as 3rd argument to recursive call.
5522 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
5523 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
5524 VOIDmode.
5525 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
5526 don't give up if mode is Pmode and mem_mode is not VOIDmode.
5527 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
5528 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
5529
5530 2011-05-05 Julian Brown <julian@codesourcery.com>
5531
5532 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
5533 parenthesis in D-register case.
5534
5535 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5536
5537 * opt-functions.awk (var_type_struct): Handle Enum options.
5538 * optc-gen.awk: Don't check range of variables of character type.
5539 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
5540 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
5541 rs6000_sdata_name, rs6000_explicit_options): Remove.
5542 (rs6000_option_override_internal): Check for -malign-power here.
5543 Use global_options_set instead of rs6000_explicit_options.
5544 (rs6000_parse_fpu_option): Remove.
5545 (rs6000_handle_option): Access variables via opts and opts_set
5546 pointers. Use error_at and warning_at. Add fall-through
5547 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
5548 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
5549 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
5550 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
5551 here. Don't use rs6000_parse_fpu_option.
5552 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
5553 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
5554 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
5555 (mrecip=): Use Var.
5556 (mspe): Use Var and Save.
5557 (mtraceback=): Use Enum and Var.
5558 (rs6000_traceback_type): New Enum and EnumValue entries.
5559 (mfloat-gprs=): Use Enum, Var and Save.
5560 (rs6000_float_gprs): New Enum and EnumValue entries.
5561 (mlong-double-): use Var and Save.
5562 (msched-costly-dep=, minsert-sched-nops=): Use Var.
5563 (malign-): Use Enum and Var.
5564 (rs6000_alignment_flags): New Enum and EnumValue entries.
5565 (mfpu=): Use Enum.
5566 (fpu_type_t): New Enum and EnumValue entries.
5567 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5568 global_options_set instead of rs6000_explicit_options.
5569 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5570 global_options_set instead of rs6000_explicit_options.
5571 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5572 global_options_set instead of rs6000_explicit_options.
5573 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
5574 global_options_set instead of rs6000_explicit_options.
5575 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
5576 global_options_set instead of rs6000_explicit_options.
5577 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5578 global_options_set instead of rs6000_explicit_options.
5579 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
5580 definition.
5581 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5582 global_options_set instead of rs6000_explicit_options.
5583 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
5584 (rs6000_cmodel): New Enum and EnumValue entries.
5585 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5586 global_options_set instead of rs6000_explicit_options.
5587 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
5588 (mtls-size=): Use Enum and Var.
5589 (rs6000_tls_size): New Enum and EnumValue entries.
5590
5591 2011-05-05 Michael Matz <matz@suse.de>
5592
5593 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
5594 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
5595 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
5596 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
5597 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
5598 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
5599 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
5600 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
5601 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
5602 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
5603 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
5604 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
5605 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
5606 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
5607 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
5608 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
5609
5610 2011-05-05 Richard Guenther <rguenther@suse.de>
5611
5612 * expmed.c (expand_variable_shift): Rename to ...
5613 (expand_shift_1): ... this. Take an expanded shift amount.
5614 For rotates recurse directly not building trees for the shift amount.
5615 (expand_variable_shift): Wrap around expand_shift_1.
5616 (expand_shift): Adjust.
5617
5618 2011-05-05 Jakub Jelinek <jakub@redhat.com>
5619
5620 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
5621
5622 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
5623
5624 * tree.h (get_pending_sizes): Remove prototype.
5625 (put_pending_size): Likewise.
5626 (put_pending_sizes): Likewise.
5627 * stor-layout.c (pending_sizes): Delete.
5628 (get_pending_sizes): Likewise.
5629 (put_pending_size): Likewise.
5630 (put_pending_sizes): Likewise.
5631 (variable_size): Do not call put_pending_size and tidy up.
5632 * function.h (struct function): Remove dont_save_pending_sizes_p.
5633 * lto-streamer-in.c (input_function): Do not stream it.
5634 * lto-streamer-out.c (output_function): Likewise.
5635 * tree-inline.c (initialize_cfun): Do not copy it.
5636 * c-decl.c (store_parm_decls): Do not set it.
5637 * omp-low.c (create_task_copyfn): Likewise.
5638 * tree-optimize.c (tree_rest_of_compilation): Likewise.
5639
5640 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
5641
5642 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
5643 conditions.
5644 (*movdf_internal): Ditto.
5645 (*movdf_internal_nointeger): Ditto.
5646 (*movsf_internal): Ditto.
5647
5648 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5649
5650 * c-decl.c (finish_decl): Don't call get_pending_sizes.
5651 (grokparm): Add parameter expr. Pass it to grokdeclarator.
5652 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
5653 (c_variable_size): Remove.
5654 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
5655 call put_pending_sizes.
5656 (get_parm_info): Add parameter expr. Use it to set
5657 arg_info->pending_sizes.
5658 (store_parm_decls): Use arg_info->pending_sizes instead or calling
5659 get_pending_sizes.
5660 * c-parser.c (c_parser_parms_declarator): Update call to
5661 c_parser_parms_list_declarator.
5662 (c_parser_parms_list_declarator): Take parameter expr. Update
5663 call to push_parm_decl. Update recursive call. Don't call
5664 get_pending_sizes. Update calls to get_parm_info.
5665 (c_parser_objc_method_definition): Update calls to
5666 c_parser_objc_method_decl and objc_start_method_definition.
5667 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
5668 (c_parser_objc_method_decl): Add parameter expr. Update call to
5669 grokparm.
5670 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
5671 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
5672 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
5673
5674 2011-05-05 Michael Hope <michael.hope@linaro.org>
5675
5676 PR pch/45979
5677 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
5678 __ARM_EABI__ hosts.
5679
5680 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5681
5682 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
5683 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
5684 (spu_output_mi_thunk): New function.
5685
5686 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5687
5688 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
5689 targetm.asm_out.print_operand.
5690 * config/sol2.c: Include target.h.
5691
5692 2011-05-04 Jan Hubicka <jh@suse.cz>
5693
5694 * ipa-inline.c (reset_edge_caches): New function.
5695 (update_caller_keys): Add check_inlinablity_for; do not
5696 reset edge caches; remove now unnecesary loop.
5697 (update_callee_keys): Add comments; reset node_growth_cache of callee.
5698 (update_all_callee_keys): Likewise.
5699 (inline_small_functions): Sanity check cache; update code
5700 recomputing it.
5701
5702 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
5703
5704 PR rtl-optimization/47612
5705 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
5706 as the last insn of the sequence to be moved.
5707
5708 2011-05-04 Tobias Burnus <burnus@net-b.de>
5709
5710 PR fortran/48864
5711 * doc/invoke.texi (Ofast): Document that it
5712 enables Fortran's -fno-protect-parens.
5713
5714 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5715
5716 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
5717
5718 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
5719
5720 * stor-layout.c (variable_size): Do not issue errors.
5721
5722 2011-05-04 Richard Guenther <rguenther@suse.de>
5723
5724 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
5725 for array-ref indices.
5726 (tree_coverage_counter_addr): Likewise.
5727 (build_fn_info_type): Use size_int for index types.
5728 (build_gcov_info): Likewise.
5729
5730 2011-05-04 Richard Guenther <rguenther@suse.de>
5731
5732 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
5733 to build_int_cst.
5734 * c-typeck.c (really_start_incremental_init): Use bitsize_int
5735 for constructor indices.
5736 (push_init_level): Likewise.
5737
5738 2011-05-04 Richard Guenther <rguenther@suse.de>
5739
5740 * explow.c (promote_mode): Move variable declarations before code.
5741
5742 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5743
5744 * tree.h (build_function_type_array): Declare.
5745 (build_varargs_function_type_array): Declare.
5746 (build_function_type_vec, build_varargs_function_type_vec): Define.
5747 * tree.c (build_function_type_array_1): New function.
5748 (build_function_type_array): New function.
5749 (build_varargs_function_type_array): New function.
5750
5751 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
5752
5753 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
5754 before setting STMT_VINFO_TYPE.
5755
5756 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5757
5758 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
5759 instead of spu_pass_by_reference.
5760
5761 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5762
5763 * calls.c (emit_library_call_value_1): Invoke
5764 promote_function_mode hook on libcall arguments.
5765 * explow.c (promote_function_mode, promote_mode): Handle TYPE
5766 argument being NULL.
5767 * targhooks.c (default_promote_function_mode): Lisewise.
5768 * config/s390/s390.c (s390_promote_function_mode): Likewise.
5769 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
5770
5771 * doc/tm.texi: Document that TYPE argument might be NULL.
5772
5773 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5774
5775 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
5776
5777 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5778
5779 From Bernd Schmidt
5780 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
5781
5782 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5783
5784 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
5785 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
5786 Move ...
5787 * mips-tfile.c: ... here.
5788 Don't include coretypes.h, tm.h, filenames.h.
5789 (saber_stop): Remove definition and all calls.
5790 [__SABER__]: Remove.
5791 (__LINE__): Remove default.
5792 (Size_t, Ptrdiff_t): Remove definitions.
5793 Replace by size_t, ptrdiff_t.
5794 [!MIPS_DEBUGGING_INFO]: Remove.
5795 (SHASH_SIZE, THASH_SIZE): Remove defaults.
5796 (progname): Add const.
5797 (STATIC): Remove.
5798 Replace all uses by static.
5799 (ALIGN_SYMTABLE_OFFSET): Remove default.
5800 * mips-tdump.c: Don't include coretypes.h, tm.h.
5801 Remove !MIPS_IS_STAB guard.
5802 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
5803 $(TM_H), filenames.h dependencies.
5804 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
5805
5806 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5807
5808 From Jie Zhang
5809 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
5810 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5811
5812 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5813
5814 From Bernd Schmidt
5815 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
5816 account and save/restore RETS.
5817 (PROFILE_BEFORE_PROLOGUE): Define.
5818 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
5819 the push insn to use predecrement.
5820
5821 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
5822
5823 From Jie Zhang
5824 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
5825
5826 2011-05-04 Nick Clifton <nickc@redhat.com>
5827
5828 * config/mn10300/mn10300.c: Include cfgloop.h.
5829 (DUMP): New macro.
5830 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
5831 Lcc or a FLcc insn into the instruction stream.
5832 (mn10300_block_contains_call): New function. Returns true if the
5833 given basic block contains a CALL insn.
5834 (mn10300_loop_contains_call_insn): New function. Returns true if
5835 the given loop contains a CALL insn.
5836 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
5837 to use the SETLB and Lcc or FLcc insns.
5838 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
5839 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
5840 * config/mn10300/mn10300.opt (msetlb): New option. Used to
5841 disable the SETLB optimization.
5842 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
5843 __SETLB__ or __NO_SETLB__.
5844 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
5845 (movsf_internal): Handle MDR register.
5846 (cmpsi): Make visible.
5847 (setlb): New pattern.
5848 (Lcc): New pattern.
5849 (FLcc): New pattern.
5850
5851 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
5852
5853 PR target/48860
5854 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
5855 for reg<->xmm moves.
5856 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
5857 (vec_concatv2di_rex64_sse): Ditto.
5858 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
5859 (*vec_extractv2di_1_rex64): Ditto.
5860
5861 Revert:
5862 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5863
5864 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5865 reg<->xmm moves.
5866 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
5867
5868 2011-05-04 Richard Guenther <rguenther@suse.de>
5869
5870 * tree.h (int_const_binop): Remove notrunc argument.
5871 * fold-const.c (int_const_binop): Remove notrunc argument. Always
5872 create integer constants that are properly truncated.
5873 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
5874 (const_binop): Remove zero notrunc argument to int_const_binop.
5875 (size_binop_loc): Likewise.
5876 (fold_div_compare): Likewise.
5877 (maybe_canonicalize_comparison_1): Likewise.
5878 (fold_comparison): Likewise.
5879 (fold_binary_loc): Likewise.
5880 (multiple_of_p): Likewise.
5881 * expr.c (store_constructor): Likewise.
5882 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
5883 (maybe_fold_stmt_addition): Likewise.
5884 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
5885 * stor-layout.c (layout_type): Likewise.
5886 * tree-data-ref.c (tree_fold_divides_p): Likewise.
5887 * tree-sra.c (build_ref_for_offset): Likewise.
5888 (build_user_friendly_ref_for_offset): Likewise.
5889 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
5890 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
5891 * tree-ssa-loop-niter.c (inverse): Likewise.
5892 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
5893 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
5894 * tree-switch-conversion.c (check_range): Likewise.
5895 (build_constructors): Likewise.
5896 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
5897 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
5898 (extract_range_from_assert): Likewise.
5899 (vrp_int_const_binop): Likewise.
5900 (extract_range_from_binary_expr): Likewise.
5901 (extract_range_from_unary_expr): Likewise.
5902 (check_array_ref): Likewise.
5903 (find_case_label_range): Likewise.
5904 (simplify_div_or_mod_using_ranges): Likewise.
5905 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
5906 comparing case labels for merging.
5907
5908 2011-05-03 Mark Wielaard <mjw@redhat.com>
5909
5910 * dwarf2out.c (debug_str_hash_forced): Removed.
5911 (gen_label_for_indirect_string): Removed.
5912 (get_debug_string_label): Removed.
5913 (AT_string_form): Generate label directly.
5914 (output_indirect_string): Test indirect_string_node for
5915 DW_FORM_strp instead of checking label and refcount.
5916 (prune_indirect_string): Removed.
5917 (prune_unused_types): Don't check debug_str_hash_forced or
5918 call prune_indirect_string.
5919
5920 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5921
5922 PR other/48093
5923 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
5924
5925 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
5926
5927 PR debug/47994
5928 PR debug/47919
5929 * combine.c (try_combine): Skip debug insns at m_split tests.
5930
5931 2011-04-26 Mark Wielaard <mjw@redhat.com>
5932
5933 PR42288
5934 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
5935 when info_section_emitted.
5936
5937 2011-05-03 Joseph Myers <joseph@codesourcery.com>
5938
5939 * config/mips/mips-opts.h: New.
5940 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
5941 to mips-opts.h.
5942 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
5943 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
5944 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
5945 via opts pointer.
5946 * config/mips/mips.h (enum mips_code_readable_setting): Move to
5947 mips-opts.h.
5948 (mips_abi, mips_code_readable): Don't declare.
5949 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
5950 (mabi=): Use Enum and Var.
5951 (mips_abi): New Enum and EnumValue entries.
5952 (mcode-readable=): Use Enum and Var.
5953 (mips_code_readable_setting): New Enum and EnumValue entries.
5954 (mr10k-cache-barrier=): Use Enum and Var.
5955 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
5956
5957 2011-05-03 Jan Hubicka <jh@suse.cz>
5958
5959 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
5960 replace hash by pointer map.
5961 (cgraph_node_set_element_def, cgraph_node_set_element,
5962 const_cgraph_node_set_element, varpool_node_set_element_def,
5963 varpool_node_set_element, const_varpool_node_set_element): Remove.
5964 (free_cgraph_node_set, free_varpool_node_set): New function.
5965 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
5966 * tree-emutls.c: Free varpool node set.
5967 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
5968 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5969 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
5970 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5971 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
5972 Move here from ipa.c; implement using pointer_map
5973 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
5974 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
5975 debug_cgraph_node_set, varpool_node_set_new,
5976 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
5977 dump_varpool_node_set, debug_varpool_node_set):
5978 Move to ipa-uitls.c.
5979 * passes.c (ipa_write_summaries): Update.
5980
5981 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5982
5983 From Mike Frysinger:
5984 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
5985 bf542/bf544/bf547/bf548/bf549.
5986
5987 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5988
5989 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
5990
5991 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5992
5993 From Bernd Schmidt:
5994 * config/bfin/bfin.md (MOVCC): New mode_macro.
5995 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
5996 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
5997 comments from generated assembly.
5998
5999 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6000
6001 From Bernd Schmidt
6002 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
6003 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
6004 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
6005 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
6006 * config/bfin/lib1funcs.asm (___muldi3): New function.
6007
6008 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6009
6010 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
6011 build_function_type_list instead of build_function_type.
6012 Rearrange initialization of `args' to do so.
6013
6014 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6015
6016 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
6017 instead of build_function_type.
6018
6019 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6020
6021 * config/rs6000/rs6000.c (spe_init_builtins): Call
6022 build_function_type_list instead of build_function_type.
6023 (paired_init_builtins, altivec_init_builtins): Likewise.
6024 (builtin_function_type): Likewise.
6025
6026 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6027
6028 * config/sh/sh.c (sh_media_init_builtins): Call
6029 build_function_type_list instead of build_function_type.
6030
6031 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6032
6033 * config/sparc/sparc.c (sparc_file_end): Call
6034 build_function_type_list instead of build_function_type.
6035
6036 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6037
6038 * config/alpha/alpha.c (alpha_init_builtins): Call
6039 build_function_type_list instead of build_function_type.
6040
6041 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6042
6043 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
6044 build_function_type_list instead of build_function_type.
6045
6046 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6047
6048 * config/iq2000/i2000.c (iq2000_init_builtins): Call
6049 build_function_type_list instead of build_function_type.
6050 Delete `endlink' variable.
6051
6052 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6053
6054 * config/avr/avr.c (avr_init_builtins): Call
6055 build_function_type_list instead of build_function_type.
6056
6057 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6058
6059 * config/picochip/picochip.c (picochip_init_builtins): Call
6060 build_function_type_list instead of build_function_type.
6061 Delete `endlink' variable.
6062
6063 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
6064
6065 * config/bfin/bfin.c (bfin_init_builtins): Call
6066 build_function_type_list instead of build_function_type.
6067
6068 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6069
6070 From Bernd Schmidt
6071 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
6072 that's not CONST_INT. Seemingly redundant check is due to PR39768.
6073
6074 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6075
6076 From Jie Zhang:
6077 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
6078 libbffastfp overrides libgcc when -mfast-fp.
6079
6080 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6081
6082 Originally from Bernd Schmidt
6083 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
6084 * config/bfin/bfin.c (override_options): Test it and error if
6085 TARGET_FDPIC.
6086
6087 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
6088
6089 Originally From Bernd Schmidt
6090 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
6091 FD-PIC.
6092
6093 2011-05-03 Jeff Law <law@redhat.com>
6094
6095 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
6096 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
6097 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
6098 than accessing AUX field directly. Free the AUX field before
6099 clearing it.
6100 (thread_block, thread_through_loop_header): Likewise.
6101 (thread_single_edge, mark_threaded_blocks): Likewise.
6102 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
6103 (register_jump_thread): Do not attempt to thread to a NULL edge.
6104
6105 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6106
6107 * function.c (init_function_start): Call decide_function_section.
6108 * varasm.c (decide_function_section): New function.
6109 (assemble_start_function): When not using
6110 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
6111 or first_function_block_is_cold.
6112 * rtl.h (decide_function_section): Declare.
6113
6114 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
6115 Jakub Jelinek <jakub@redhat.com>
6116
6117 PR target/48774
6118 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
6119 only succeed if req_mode is the same as set_mode.
6120
6121 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
6122
6123 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
6124 * genemit.c (gen_exp): Handle RETURN.
6125 * emit-rtl.c (verify_rtx_sharing): Likewise.
6126 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
6127 * rtl.c (copy_rtx): RETURN is shared.
6128 * rtl.h (enum global_rtl_index): Add GR_RETURN.
6129 (ret_rtx): New.
6130 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
6131 * config/s390/s390.c (s390_emit_epilogue): Likewise.
6132 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
6133 * config/cris/cris.c (cris_expand_return): Likewise.
6134 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
6135 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
6136 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
6137 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
6138 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
6139 Likewise.
6140 * config/v850/v850.c (expand_epilogue): Likewise.
6141 * config/bfin/bfin.c (bfin_expand_call): Likewise.
6142 * config/arm/arm.md (epilogue): Likewise.
6143 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
6144 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
6145 variable to ret_reg.
6146
6147 2011-05-03 Richard Guenther <rguenther@suse.de>
6148
6149 PR lto/48846
6150 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
6151 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
6152 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
6153
6154 2011-05-03 Richard Guenther <rguenther@suse.de>
6155
6156 * c-decl.c (grokdeclarator): Instead of looking at
6157 TREE_OVERFLOW check if the constant fits in the index type.
6158
6159 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6160
6161 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
6162 (vec_store_lanes<mode><mode>): Likewise.
6163
6164 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6165
6166 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
6167 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
6168 convert_optab_index values.
6169 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
6170 * genopinit.c (optabs): Initialize the new optabs.
6171 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
6172 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
6173 (expand_STORE_LANES): New functions.
6174 * tree.h (build_array_type_nelts): Declare.
6175 * tree.c (build_array_type_nelts): New function.
6176 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
6177 (vect_model_load_cost): Likewise.
6178 (vect_store_lanes_supported, vect_load_lanes_supported)
6179 (vect_record_strided_load_vectors): Declare.
6180 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
6181 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
6182 (vect_transform_strided_load): Split out statement recording into...
6183 (vect_record_strided_load_vectors): ...this new function.
6184 * tree-vect-stmts.c (create_vector_array, read_vector_array)
6185 (write_vector_array, create_array_ref): New functions.
6186 (vect_model_store_cost): Add store_lanes_p argument.
6187 (vect_model_load_cost): Add load_lanes_p argument.
6188 (vectorizable_store): Try to use store-lanes functions for
6189 interleaved stores.
6190 (vectorizable_load): Likewise load-lanes and loads.
6191 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
6192 to vect_model_store_cost.
6193 (vect_build_slp_tree): Likewise vect_model_load_cost.
6194
6195 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
6196
6197 * hooks.h (hook_bool_mode_uhwi_false): Declare.
6198 * hooks.c (hook_bool_mode_uhwi_false): New function.
6199 * target.def (array_mode_supported_p): New hook.
6200 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
6201 * doc/tm.texi: Regenerate.
6202 * stor-layout.c (mode_for_array): New function.
6203 (layout_type): Use it.
6204 * config/arm/arm.c (arm_array_mode_supported_p): New function.
6205 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
6206
6207 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
6208
6209 PR target/48723
6210 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
6211 for -fstack-check if the size to allocate is negative.
6212
6213 2011-05-02 Lawrence Crowl <crowl@google.com>
6214
6215 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
6216 (timevar_cond_start): New for starting a timer only when it is not
6217 already running.
6218 (timevar_cond_stop): New for stopping a timer when it was not already
6219 running.
6220
6221 * timevar.c (timevar_stop): Enable start/stop timers to start again.
6222 (timevar_cond_start): New as above.
6223 (timevar_cond_stop): New as above.
6224
6225 * timevar.def: Add start/stop timers for compiler phases,
6226 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
6227 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
6228 and TV_PHASE_FINALIZE.
6229 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
6230 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
6231 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
6232 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
6233 Make unused TV_OVERLOAD into a start/stop timer.
6234
6235 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
6236 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
6237 to indicate that they are start/stop timers.
6238
6239 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
6240 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
6241 Move initialization to do_compile.
6242 (do_compile): Add initialization from above.
6243 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
6244
6245 * c-decl.c (c_write_global_declarations): Add start/stop of
6246 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
6247
6248 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
6249 or TV_PARSE_INLINE, as appropriate.
6250 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
6251 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
6252
6253 2011-05-02 Jason Merrill <jason@redhat.com>
6254
6255 PR c++/40975
6256 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
6257
6258 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
6259
6260 PR c/35445
6261 * c-decl.c (finish_decl): Only create a composite if the types are
6262 compatible.
6263
6264 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6265
6266 * config/fr30/fr30-protos.h (Mmode): Don't define.
6267 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
6268 definition where used.
6269 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
6270 define. Expand definitions where used.
6271 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
6272 Expand definitions where used.
6273 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
6274 rx_function_arg, rx_function_arg_advance,
6275 rx_function_arg_boundary): Expand definitions of those macros.
6276 * config/v850/v850-protos.h (Mmode): Don't define. Expand
6277 definition where used.
6278
6279 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6280
6281 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
6282 reg<->xmm moves.
6283 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
6284 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
6285 with *movv2sf_internal_rex64_avx.
6286 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
6287 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
6288 Use %v prefix in insn mnemonic to handle TARGET_AVX.
6289 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
6290 "vex" in "prefix" attribute calculation.
6291 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
6292
6293 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
6294
6295 PR target/47951
6296 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
6297 inputs match the output.
6298
6299 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
6300
6301 PR target/47955
6302 * config/m68k/m68k.c (m68k_expand_prologue): Set
6303 current_function_static_stack_size.
6304
6305 2011-05-02 Jan Hubicka <jh@suse.cz>
6306
6307 * lto-streamer.c (lto_streamer_cache_insert_1,
6308 lto_streamer_cache_lookup, lto_streamer_cache_create,
6309 lto_streamer_cache_delete): Use pointer map instead of hashtable.
6310 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
6311
6312 2011-05-02 Joseph Myers <joseph@codesourcery.com>
6313
6314 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
6315 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
6316 config/m68k/t-opts: New files.
6317 * config/m68k/m68k-tables.opt: New file (generated).
6318 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
6319 extra_options and m68k/t-opts to tmake_file.
6320 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
6321 (all_isas): Initialize using m68k-isas.def.
6322 (all_microarchs): Initialize using m68k-microarchs.def.
6323 (m68k_find_selection): Remove.
6324 (m68k_handle_option): Don't assert that global structures are in
6325 use. Use error_at. Access variables via opts pointer. Don't
6326 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
6327 directly for -m68020-40 and -m68020-60.
6328 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
6329 m68k_tune_entry here.
6330 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
6331 to m68k-opts.h.
6332 (m68k_library_id_string): Remove declaration.
6333 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
6334 (m68k_library_id_string): New Variable.
6335 (march=, mcpu=, mtune=): Use Enum and Var.
6336
6337 2011-05-02 Richard Guenther <rguenther@suse.de>
6338
6339 * varasm.c (output_constructor_regular_field): Compute zero-based
6340 index with double-ints. Make sure to ICE instead of producing
6341 wrong code.
6342 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
6343 in asserts. Properly use a signed type.
6344
6345 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
6346
6347 * config/i386/sse.md (V): New mode iterator.
6348 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
6349 TARGET_SSE2.
6350 (V_256): Rename from AVX256MODE.
6351 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
6352 condition to all users.
6353 (VF1): Ditto.
6354 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
6355 condition to all users.
6356 (VF_128): Make V4SF mode unconditional.
6357 (VF_256): Rename from AVX256MODEF2P.
6358 (VI4F_128): Rename from SSEMODE4S.
6359 (VI8F_128): Rename from SSEMODE2D.
6360 (VI4F_256): Rename from AVX256MODE8P.
6361 (VI8F_256): Rename from AVX256MODE4P.
6362 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
6363 (ssescalarmodesuffix): Remove SF and DF modes.
6364 (SSEMODE124): Remove.
6365 (SSEMODE1248): Ditto.
6366 (SSEMODEF2P): Ditto.
6367 (AVXMODEF2P): Ditto.
6368 (AVXMODEFDP): Ditto.
6369 (AVXMODEFSP): Ditto.
6370 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
6371 unconditional.
6372 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
6373 unconditional.
6374 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
6375 xop_pcmov_<mode>256. Use V mode iterator.
6376
6377 Adjust RTX patterns globally for renamed mode attributes.
6378
6379 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6380
6381 * haifa-sched.c (sched_emit_insn): Emit insn before first
6382 non-scheduled insn. Inform back-end about new insn. Add
6383 new insn to scheduled_insns list.
6384
6385 2011-05-02 Richard Guenther <rguenther@suse.de>
6386
6387 PR tree-optimization/48822
6388 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
6389 (process_scc): Indicate which iteration we start.
6390
6391 2011-05-02 Jan Hubicka <jh@suse.cz>
6392
6393 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
6394 (lto_section_overrun): New.
6395 * lto-section-out.c (append_block): Rename to ...
6396 (lto_append_block): ... this one; export.
6397 (lto_output_1_stream): Move lto lto-streamer.h
6398 (lto_output_data_stream): Update.
6399 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
6400 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
6401 functions.
6402
6403 2011-05-02 Richard Guenther <rguenther@suse.de>
6404
6405 * tree.c (tree_code_counts): New global array.
6406 (record_node_allocation_statistics): Count individual tree codes.
6407 (dump_tree_statistics): Dump individual code stats.
6408
6409 2011-05-01 Jan Hubicka <jh@suse.cz>
6410
6411 * ipa-inline.c (caller_growth_limits): Fix thinko when
6412 looking for largest stack frame.
6413 * ipa-inline.h (dump_inline_summary): Declare.
6414 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
6415 on stack usage.
6416 (dump_inline_summary): Export.
6417 (debug_inline_summary): Declare as DEBUG_FUNCTION.
6418
6419 2011-05-01 Anatoly Sokolov <aesok@post.ru>
6420
6421 * reginfo.c (memory_move_cost): Change rclass argument type form
6422 'enum reg_class' to reg_class_t.
6423 * reload.h (memory_move_cost): Update prototype.
6424 * postreload.c reload_cse_simplify_set): Change type dclass var to
6425 reg_class_t.
6426 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
6427 Update prototype.
6428 (ira_allocate_and_set_costs): Change aclass argument type form
6429 'enum reg_class' to reg_class_t.
6430 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6431 Change aclass argument type to reg_class_t.
6432 (update_conflict_hard_reg_costs): Change type aclass and pref vars
6433 to reg_class_t.
6434 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
6435 memory_move_cost call.
6436
6437 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
6438 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
6439 Change type tmp var to reg_class_t.
6440
6441 2011-04-30 Jan Hubicka <jh@suse.cz>
6442
6443 * ipa-inline.c (can_inline_edge_p): Disregard limits when
6444 inlining into function with flatten attribute.
6445 (want_inline_small_function_p): Be more realistic about inlining
6446 cold calls where callee size grows.
6447
6448 2011-04-30 Jan Hubicka <jh@suse.cz>
6449
6450 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
6451 flags.
6452
6453 2011-04-30 Anatoly Sokolov <aesok@post.ru>
6454
6455 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6456 PRINT_OPERAND_PUNCT_VALID_P): Remove.
6457 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
6458 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
6459 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6460 (print_operand): Rename to...
6461 (sparc_print_operand): ...this. Make static. Adjust
6462 sparc_print_operand function call.
6463 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
6464 functions.
6465
6466 2011-04-30 Jan Hubicka <jh@suse.cz>
6467
6468 PR middle-end/48752
6469 * ipa-inline.c (early_inliner): Disable when doing late
6470 addition of function.
6471
6472 2011-04-30 Jakub Jelinek <jakub@redhat.com>
6473
6474 * dwarf2out.c (get_address_mode): New inline.
6475 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
6476 if not dwarf_strict emit
6477 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
6478 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
6479 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
6480 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
6481 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
6482 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
6483 mem_loc_descriptor callers.
6484 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6485 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
6486 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
6487 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
6488 (base_types): New variable.
6489 (get_base_type_offset, calc_base_type_die_sizes,
6490 base_type_for_mode, mark_base_types, base_type_cmp,
6491 move_marked_base_types): New functions.
6492 (calc_die_sizes): Assert that die_offset is 0 or equal to
6493 next_die_offset.
6494 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
6495 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
6496 callers. If not dwarf_strict, call mem_loc_descriptor even for
6497 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
6498 (gen_subprogram_die): Don't give up on call site parameters
6499 with non-integral or large integral modes. Adjust
6500 mem_loc_descriptor callers.
6501 (prune_unused_types): Call prune_unused_types_mark on base_types
6502 vector entries.
6503 (resolve_addr): Call mark_base_types.
6504 (dwarf2out_finish): Call move_marked_base_types.
6505
6506 PR tree-optimization/48809
6507 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
6508 type.
6509 (gen_inbound_check): Don't compute index_expr - range_min in utype
6510 again, instead reuse SSA_NAME initialized in build_arrays.
6511 Remove two useless gsi_for_stmt calls.
6512
6513 2011-04-29 Jeff Law <law@redhat.com>
6514
6515 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
6516
6517 2011-04-29 Martin Jambor <mjambor@suse.cz>
6518
6519 * cgraph.h (cgraph_postorder): Remove declaration.
6520 * ipa-utils.h (ipa_free_postorder_info): Declare.
6521 (ipa_reverse_postorder): Likewise.
6522 * cgraphunit.c: Include ipa-utils.h.
6523 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
6524 * ipa-inline.c: Include ipa-utils.h.
6525 (ipa_inline): Update call to ipa_reverse_postorder.
6526 * ipa-pure-const.c (propagate_pure_const): Update call to
6527 ipa_reduced_postorder and ipa_print_order. Call
6528 ipa_free_postorder_info to clean up.
6529 (propagate_nothrow): Likewise.
6530 * ipa-reference.c (propagate): Removed a useless call to
6531 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
6532 and ipa_print_order. Call ipa_free_postorder_info to clean up.
6533 * ipa.c: Include ipa-utils.h.
6534 (ipa_profile): Update call to ipa_reverse_postorder.
6535 (cgraph_postorder): Moved to...
6536 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
6537 (ipa_utils_print_order): Renamed to ipa_print_order.
6538 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
6539 comments.
6540 (ipa_free_postorder_info): New function.
6541 * passes.c: Include ipa-utils.h.
6542 (do_per_function_toporder): Update call to ipa_reverse_postorder.
6543 (ipa_write_summaries): Likewise.
6544 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
6545 (cgraphunit.o): Likewise.
6546 (ipa.o): Likewise.
6547 (ipa-inline.o): Likewise.
6548
6549 2011-04-29 Jan Hubicka <jh@suse.cz>
6550
6551 * gcc.dg/tree-ssa/inline-10.c: New testcase.
6552 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
6553 * ipa-inline.h (clause_t): Turn into unsigned int.
6554 * ipa-inline-analysis.c (add_clause): Do more simplification.
6555 (and_predicates): Shortcut more cases.
6556 (predicates_equal_p): Move forward; check that clauses are properly
6557 ordered.
6558 (or_predicates): Shortcut more cases.
6559 (edge_execution_predicate): Rewrite as...
6560 (set_cond_stmt_execution_predicate): ... this function; handle
6561 __builtin_constant_p.
6562 (set_switch_stmt_execution_predicate): New .
6563 (compute_bb_predicates): New.
6564 (will_be_nonconstant_predicate): Update TODO.
6565 (estimate_function_body_sizes): Use compute_bb_predicates
6566 and free them later, always try to estimate if stmt is constant.
6567 (estimate_time_after_inlining, estimate_size_after_inlining):
6568 Gracefully handle optimized out edges.
6569 (read_predicate): Fix off by one error.
6570
6571 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
6572
6573 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
6574
6575 2011-04-27 Xinliang David Li <davidxl@google.com>
6576
6577 * tree-profile.c (init_ic_make_global_vars): Set
6578 tls attribute on ic vars.
6579 * coverage.c (coverage_end_function): Initialize
6580 function_list with zero.
6581
6582 2011-04-29 Richard Guenther <rguenther@suse.de>
6583
6584 * builtins.c (fold_builtin_classify_type): Use integer_type_node
6585 for the type of the result.
6586 (fold_builtin_isascii): Likewise.
6587 (fold_builtin_toascii): Use integer_type_node where appropriate.
6588 (fold_builtin_logb): Likewise.
6589 (fold_builtin_frexp): Likewise.
6590 (fold_builtin_strstr): Likewise.
6591 (fold_builtin_strpbrk): Likewise.
6592 (fold_builtin_fputs): Likewise.
6593 (fold_builtin_sprintf): Likewise.
6594 (fold_builtin_snprintf): Likewise.
6595 (fold_builtin_printf): Likewise.
6596 (do_mpfr_remquo): Use a proper type for the assigned constant.
6597 (do_mpfr_lgamma_r): Likewise.
6598 * dwarf2out.c (resolve_one_addr): Use size_int.
6599 * except.c (init_eh): Likewise.
6600 (assign_filter_values): Use integer_type_node for filter values.
6601 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
6602 indices.
6603 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
6604 for EH region numbers.
6605 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
6606 for the shift amount.
6607
6608 2011-04-29 Richard Guenther <rguenther@suse.de>
6609
6610 * expr.h (expand_shift): Rename to ...
6611 (expand_variable_shift): ... this.
6612 (expand_shift): Take a constant shift amount.
6613 * expmed.c (expand_shift): Rename to ...
6614 (expand_variable_shift): ... this.
6615 (expand_shift): New wrapper around expand_variable_shift.
6616 * expr.c (convert_move, emit_group_load_1, emit_group_store,
6617 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
6618 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
6619 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
6620 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
6621 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
6622 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
6623 emit_store_flag_1, emit_store_flag): Likewise.
6624 * builtins.c (expand_builtin_signbit): Likewise.
6625 * calls.c (load_register_parameters): Likewise.
6626 * function.c (assign_parm_setup_block): Likewise.
6627 * lower-subreg.c (resolve_shift_zext): Likewise.
6628 * optabs.c (widen_bswap, expand_abs_nojump,
6629 expand_one_cmpl_abs_nojump, expand_float): Likewise.
6630 * spu/spu.c (spu_expand_extv): Likewise.
6631 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6632
6633 2011-04-29 Richard Guenther <rguenther@suse.de>
6634
6635 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
6636 for the remapped region number.
6637 * predict.c (build_predict_expr): Use integer_type_node for the
6638 predict kind.
6639 * fold-const.c (fold_binary_loc): Use integer_type_node for
6640 the shift amount. Use a proper type for the PLUS_EXPR operand.
6641
6642 2011-04-29 Michael Matz <matz@suse.de>
6643
6644 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
6645 other trees that just builtins.
6646 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
6647
6648 2011-04-29 Richard Guenther <rguenther@suse.de>
6649
6650 * tree-nested.c (get_trampoline_type): Use size_int.
6651 (get_nl_goto_field): Likewise.
6652 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
6653 for all indexes.
6654 (lower_eh_constructs_2): Likewise.
6655 (lower_resx): Likewise.
6656 (lower_eh_dispatch): Likewise.
6657 * tree-mudflap.c (mf_build_string): Use size_int.
6658 (mudflap_register_call): Use integer_type_node for the flag.
6659 (mudflap_enqueue_constant): Use size_int.
6660 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
6661 instead of rebuilding it.
6662
6663 2011-04-29 Richard Guenther <rguenther@suse.de>
6664
6665 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
6666 Handle OBJ_TYPE_REF.
6667 (find_func_aliases_for_call): Use it more consistently.
6668
6669 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
6670
6671 * haifa-sched.c (last_nondebug_scheduled_insn): New.
6672 (rank_for_schedule): Use it.
6673 (schedule_block): Set it.
6674
6675 2011-04-28 David Li <davidxl@google.com>
6676
6677 * tree.c (crc32_string): Use crc32_byte.
6678 (crc32_byte): New function.
6679 * tree.h (crc32_byte): New function.
6680 * gcov.c (read_graph_file): Handle new cfg_cksum.
6681 (read_count_file): Ditto.
6682 * profile.c (instrument_values): Ditto.
6683 (get_exec_counts): Ditto.
6684 (read_profile_edge_counts): Ditto.
6685 (compute_branch_probabilities): Ditto.
6686 (compute_value_histograms): Ditto.
6687 (branch_prob): Ditto.
6688 (end_branch_prob): Ditto.
6689 * coverage.c (read_counts_file): Ditto.
6690 (get_coverage_counts): Ditto.
6691 (tree_coverage_counter_addr): Ditto.
6692 (coverage_checksum_string): Ditto.
6693 (coverage_begin_output): Ditto.
6694 (coverage_end_function): Ditto.
6695 (build_fn_info_type): Ditto.
6696 (build_fn_info_value): Ditto.
6697 * libgcov.c (gcov_exit): Ditto.
6698 * gcov-dump.c (tag_function): Ditto.
6699 (compute_checksum): Remove.
6700
6701 2011-04-29 Alan Modra <amodra@gmail.com>
6702
6703 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
6704 unspec plus offset. Tidy macho code.
6705
6706 2011-04-29 Martin Jambor <mjambor@suse.cz>
6707
6708 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
6709 node instead of a decl. Update all callers.
6710 * cgraph.h: Update declaration.
6711
6712 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
6713
6714 PR tree-optimization/48765
6715 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
6716 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
6717 to indicate if loop aware SLP is being used. Scan the statements
6718 and update the vectorization factor according to the type of
6719 vectorization before statement analysis.
6720 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
6721 pass it to vect_analyze_loop_operations.
6722 (vectorizable_reduction): Set number of copies to 1 in case of pure
6723 SLP statement.
6724 * tree-vect-stmts.c (vectorizable_conversion,
6725 vectorizable_assignment, vectorizable_shift,
6726 vectorizable_operation, vectorizable_type_demotion,
6727 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
6728 Likewise.
6729 (vectorizable_condition): Move the check that it is not SLP
6730 vectorization before the number of copies check.
6731 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
6732 to vectorize the loop using SLP.
6733
6734 2011-04-28 Jakub Jelinek <jakub@redhat.com>
6735
6736 PR middle-end/48597
6737 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
6738 inline asm.
6739
6740 2011-04-28 Joseph Myers <joseph@codesourcery.com>
6741
6742 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
6743 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
6744 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
6745 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
6746 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
6747 linux*.h headers.
6748 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6749 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6750 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6751 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6752 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6753 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
6754 REG_NAME.
6755 * config/i386/linux.h (REG_NAME): Don't define.
6756 * config/i386/linux64.h (REG_NAME): Don't define.
6757 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
6758 Undefine before defining.
6759
6760 2011-04-28 Jan Hubicka <jh@suse.cz>
6761
6762 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
6763 nonconstant_names array.
6764 (estimate_function_body_sizes): Build nonconstant_names array; handle
6765 BUILT_IN_CONSTANT_P.
6766
6767 2011-04-28 Richard Guenther <rguenther@suse.de>
6768
6769 PR bootstrap/48804
6770 Revert
6771 2011-04-28 Richard Guenther <rguenther@suse.de>
6772
6773 * tree-ssa-structalias.c (solve_constraints): Build succ graph
6774 as late as possible.
6775
6776 2011-04-28 Richard Guenther <rguenther@suse.de>
6777
6778 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
6779 (debug_constraint): Do it here.
6780 (dump_constraints): And here.
6781 (rewrite_constraints): And here.
6782 (dump_constraint_edge): Remove.
6783 (dump_constraint_graph): Rewrite to produce DOT output.
6784 (solve_constraints): Build succ graph as late as possible.
6785 Dump constraint graphs before and after solving.
6786
6787 2011-04-28 Richard Guenther <rguenther@suse.de>
6788
6789 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6790 New function split out from ...
6791 (find_func_aliases): ... here. Call it.
6792 (find_func_aliases_for_call): Likewise.
6793
6794 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6795
6796 * internal-fn.h (internal_fn_name_array): Declare.
6797 (internal_fn_flags_array): Likewise.
6798
6799 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6800
6801 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
6802 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
6803 Move from sse.md.
6804 (ssemodefsuffix): Remove.
6805 (ssevecmodesuffix): New mode attribute.
6806 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
6807 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
6808 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
6809 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
6810 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
6811 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
6812 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
6813 ssemodesuffix mode attribute.
6814 (float splitters): Use ssevecmodesuffix mode attribute.
6815 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
6816 (sseinsmode): Rename from avxvecmode.
6817 (avxsizesuffix): Rename from avxmodesuffix.
6818 (sseintvecmode): Rename from avxpermvecmode.
6819 (ssedoublevecmode): Rename from ssedoublesizemode.
6820 (ssehalfvecmode): Rename from avxhalfvecmode.
6821 (ssescalarmode): Rename from avxscalarmode.
6822 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
6823 templates for ssemodesuffix mode attribute.
6824 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
6825 mode attribute.
6826
6827 Adjust RTX patterns globally for renamed mode attributes.
6828
6829 2011-04-27 Jan Hubcika <jh@suse.cz>
6830
6831 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
6832 * ipa-inline-analysis.c: Include alloc-pool.h.
6833 (edge_predicate_pool): New.
6834 (trye_predicate_p): New function
6835 (false_predicate_p): New function.
6836 (add_clause): Sanity check that false clauses are "optimized";
6837 never add clauses to predicate that is already known to be false.
6838 (and_predicate): Use flase_predicate_p.
6839 (evaulate_predicate): Rename to ...
6840 (evaluate_predicate): ... this one; update all callers; assert
6841 that false is not listed among possible truths.
6842 (dump_predicate): Use true_predicate_p.
6843 (account_size_time): Use false_predicate_p.
6844 (evaulate_conditions_for_edge): Rename to ...
6845 (evaluate_conditions_for_edge) ... this one.
6846 (edge_set_predicate): New function.
6847 (inline_edge_duplication_hook): Duplicate edge predicates.
6848 (inline_edge_removal_hook): Free edge predicates.
6849 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
6850 (dump_inline_summary): Update.
6851 (estimate_function_body_sizes): Set edge predicates.
6852 (estimate_calls_size_and_time): Handle predicates.
6853 (estimate_callee_size_and_time): Update.
6854 (remap_predicate): Add toplev_predicate; update comment.
6855 (remap_edge_predicates): New function.
6856 (inline_merge_summary): Compute toplev predicate; update.
6857 (read_predicate): New function.
6858 (read_inline_edge_summary): Use it.
6859 (inline_read_section): Likewise.
6860 (write_predicate): New function.
6861 (write_inline_edge_summary): Use it.
6862 (inline_write_summary): Likewise.
6863 (inline_free_summary): Free alloc pool and edge summary vec.
6864
6865 2011-04-27 Richard Guenther <rguenther@suse.de>
6866
6867 * tree-ssa-structalias.c (changed_count): Remove.
6868 (changed): Use a bitmap.
6869 (unify_nodes): Adjust.
6870 (do_sd_constraint): Likewise.
6871 (do_ds_constraint): Likewise.
6872 (do_complex_constraint): Likewise.
6873 (solve_graph): Likewise.
6874
6875 2011-04-27 Jan Hubicka <jh@suse.cz>
6876
6877 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
6878
6879 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
6880
6881 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
6882 (avx_vperm2f128_*_operand): Ditto.
6883 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
6884 Use avx_vpermilp_parallel in insn condition.
6885 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
6886 Use avx_vperm2f128_parallel in insn condition.
6887
6888 2011-04-27 Richard Guenther <rguenther@suse.de>
6889
6890 * Makefile.in (tree-ssa-structalias.o): Remove
6891 gt-tree-ssa-structalias.h dependency.
6892 (GTFILES): Remove tree-ssa-structalias.c.
6893 * tree.c (allocate_decl_uid): New function.
6894 (make_node_stat): Use it.
6895 (copy_node_stat): Likewise.
6896 * tree.h (allocate_decl_uid): Declare.
6897 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
6898 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
6899 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
6900 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
6901 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
6902 (struct heapvar_map): Likewise.
6903 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
6904 heapvar_insert): Likewise.
6905 (make_heapvar_for): Rename to ...
6906 (make_heapvar): ... this. Simplify.
6907 (fake_var_decl_obstack): New global var.
6908 (build_fake_var_decl): New function.
6909 (make_constraint_from_heapvar): Adjust.
6910 (handle_lhs_call): Likewise.
6911 (create_function_info_for): Likewise.
6912 (intra_create_variable_infos): Likewise.
6913 (init_alias_vars): Allocate fake_var_decl_obstack.
6914 (init_alias_heapvars, delete_alias_heapvars): Remove.
6915 (compute_points_to_sets): Do not call init_alias_heapvars.
6916 (ipa_pta_execute): Likewise.
6917 (delete_points_to_sets): Free fake_var_decl_obstack.
6918
6919 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6920
6921 * config/spu/divmovti4.c (union qword_UTItype): New data type.
6922 (si_from_UTItype, si_to_UTItype): New functions.
6923 (__udivmodti4): Use them to implement type-punning.
6924 * config/spu/multi3.c (union qword_TItype): New data type.
6925 (si_from_TItype, si_to_TItype): New functions.
6926 (__multi3): Use them to implement type-punning.
6927
6928 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6929
6930 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
6931
6932 2011-04-27 Jan Hubicka <jh@suse.cz>
6933
6934 * ipa-prop.c (function_insertion_hook_holder): New holder.
6935 (ipa_add_new_function): New function.
6936 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
6937 Register/deregister holder.
6938
6939 2011-04-27 Richard Guenther <rguenther@suse.de>
6940
6941 PR tree-optimization/48772
6942 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
6943
6944 2011-04-27 Richard Guenther <rguenther@suse.de>
6945
6946 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
6947 TARGET_MEM_REF handling.
6948
6949 2011-04-27 Nick Clifton <nickc@redhat.com>
6950
6951 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
6952 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
6953 (REG_CLASS_NAMES): Likewise.
6954 (REG_CLASS_CONTENTS): Likewise.
6955 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6956 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
6957 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
6958 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
6959 (EVEN_REGS): New macro. Alias for QUAD_REGS.
6960 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
6961 duplicate register classes.
6962 (frv_class_likely_spilled_p): Likewise.
6963 (frv_register_move_cost): Likewise.
6964
6965 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
6966 end of the regno_reg_class array.
6967
6968 2011-04-27 Jakub Jelinek <jakub@redhat.com>
6969
6970 PR c/48742
6971 * c-typeck.c (build_binary_op): Don't wrap arguments if
6972 int_operands is true.
6973
6974 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
6975
6976 PR target/48767
6977 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
6978 targetm.calls.must_pass_in_stack for void type.
6979
6980 2011-04-26 Jan Hubicka <jh@suse.cz>
6981
6982 * cgraphbuild.c (build_cgraph_edges): Update call
6983 of cgraph_create_edge and cgraph_create_indirect_edge.
6984 * cgraph.c (cgraph_create_edge_including_clones,
6985 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
6986 cgraph_update_edges_for_call_stmt_node): Do not take nest
6987 argument; do not initialize call_stmt_size/time.
6988 (dump_cgraph_node): Do not dump nest.
6989 (cgraph_clone_edge): Do not take loop_nest argument;
6990 do not propagate it; do not clone call_stmt_size/time.
6991 (cgraph_clone_node): Likewise.
6992 (cgraph_create_virtual_clone): Update.
6993 * cgraph.h (struct cgraph_edge): Remove
6994 call_stmt_size/call_stmt_time/loop_nest.
6995 (cgraph_create_edge, cgraph_create_indirect_edge,
6996 cgraph_create_edge_including_clones, cgraph_clone_node): Update
6997 prototype.
6998 * tree-emutls.c (gen_emutls_addr): Update.
6999 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
7000 loop_nest; handle indirect calls, too.
7001 (clone_inlined_nodes): Do not care about updating inline summaries.
7002 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
7003 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
7004 stream call_stmt_size/call_stmt_time/loop_nest.
7005 * ipa-inline.c (edge_badness): Update.
7006 (ipa_inline): dump summaries after inlining.
7007 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
7008 New.
7009 (inline_edge_summary): New function.
7010 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
7011 (inline_edge_removal_hook): Handle edge summaries.
7012 (inline_edge_duplication_hook): New hook.
7013 (inline_summary_alloc): Alloc hooks.
7014 (initialize_growth_caches): Do not register removal hooks.
7015 (free_growth_caches); Do not free removal hook.
7016 (dump_inline_edge_summary): New function.
7017 (dump_inline_summary): Use it.
7018 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
7019 (inline_update_callee_summaries): New function.
7020 (inline_merge_summary): Use it.
7021 (do_estimate_edge_time, do_estimate_edge_growth): Update.
7022 (read_inline_edge_summary): New function.
7023 (inline_read_section): Use it.
7024 (write_inline_edge_summary): New function.
7025 (inline_write_summary): Use it.
7026 (inline_free_summary): Free edge new holders.
7027 * tree-inline.c (copy_bb): Update.
7028
7029 2011-04-26 Jason Merrill <jason@redhat.com>
7030
7031 * tree-eh.c (lower_try_finally_switch): Create the label along with
7032 the CASE_LABEL_EXPR.
7033
7034 2011-04-26 David S. Miller <davem@davemloft.net>
7035 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7036
7037 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
7038 * configure: Regenerate.
7039
7040 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7041
7042 PR target/48258
7043 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
7044 reduction.
7045 (VEC_reduc): New code iterator and splitters for vector reduction.
7046 (VEC_reduc_name): Ditto.
7047 (VEC_reduc_rtx): Ditto.
7048 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
7049 (reduc_<VEC_reduc_name>_v4sf): Ditto.
7050
7051 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7052 support for extracting SF on VSX.
7053
7054 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
7055 generating xscvspdp.
7056 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
7057 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
7058 double add, minimum, maximum vector reduction.
7059 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
7060 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
7061 optimize double vector reduction.
7062 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
7063
7064 2011-04-26 Joseph Myers <joseph@codesourcery.com>
7065
7066 * config/fr30/fr30.h (inhibit_libc): Don't define.
7067 * config/m32r/m32r-protos.h: Correct comment.
7068 * config/v850/v850.h (GHS_default_section_names,
7069 GHS_current_section_names): Use tree, not union tree_node *.
7070
7071 2011-04-26 Xinliang David Li <davidxl@google.com>
7072
7073 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
7074 * c-family/c-opts.c (c_common_handle_option): Set
7075 warn_maybe_uninitialized.
7076 * opts.c (common_handle_option): Ditto.
7077 * common.opt: New option.
7078 * tree-ssa.c (warn_uninit): Add one more parameter.
7079 (warn_uninitialized_var): Pass warning code.
7080 * tree-flow.h: Interface change.
7081
7082 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7083
7084 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
7085 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
7086 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
7087
7088 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7089
7090 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
7091 * config/mips/mips.opt (mmips-tfile): Remove.
7092
7093 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
7094 mips-tdump reference to ...
7095 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
7096 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
7097 reference by Tru64 UNIX.
7098
7099 2011-04-26 Jakub Jelinek <jakub@redhat.com>
7100
7101 PR debug/48768
7102 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
7103 is error_mark_node, set value to NULL.
7104
7105 PR tree-optimization/48734
7106 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
7107 if return value from maybe_fold_*_comparsions isn't something
7108 the code is prepared to handle.
7109
7110 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
7111
7112 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
7113 mode check.
7114 (ext_QIreg_nomode_operands): Remove.
7115 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
7116 (*andsi_1): Ditto.
7117 (*andhi_1): Ditto.
7118
7119 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
7120
7121 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
7122
7123 2011-04-26 Richard Guenther <rguenther@suse.de>
7124
7125 * c-typeck.c (build_unary_op): Do not expand array-refs via
7126 pointer arithmetic. Only adjust qualifiers for function types.
7127
7128 2011-04-26 Richard Guenther <rguenther@suse.de>
7129
7130 PR middle-end/48694
7131 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
7132 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
7133 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
7134 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
7135
7136 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
7137
7138 * doc/extend.texi: Document __underlying_type.
7139
7140 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
7141
7142 * config/rs6000/titan.md (automata_option "progress"): Remove.
7143
7144 2011-04-25 Jeff Law <law@redhat.com>
7145
7146 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
7147
7148 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7149
7150 * system.h (ENUM_BITFIELD): Remove.
7151
7152 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
7153 Eric Botcazou <ebotcazou@adacore.com>
7154
7155 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
7156 for STORE_FLAG_VALUE==-1 case.
7157
7158 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
7159
7160 PR target/43804
7161 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
7162 LEGITIMATE_PIC_OPERAND_P.
7163
7164 2011-04-24 Jan Hubicka <jh@suse.cz>
7165
7166 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
7167 WPA hack.
7168 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
7169 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
7170 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
7171 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
7172 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
7173 Sanity check predicate length.
7174 (remap_predicate): Likewise; sanity check jump functions.
7175 (inline_read_section, inline_write_summary): Sanity check
7176 predicate length.
7177
7178 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7179
7180 PR other/48748
7181 * doc/extend.texi (Type Traits): Document __is_standard_layout,
7182 __is_literal_type, and __is_trivial; update throughout about
7183 possibly cv-qualified void types.
7184
7185 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
7186
7187 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
7188 testsuite and make it version agnostic.
7189
7190 2011-04-22 Jan Hubicka <jh@suse.cz>
7191
7192 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
7193
7194 2011-04-23 Jakub Jelinek <jakub@redhat.com>
7195
7196 PR c/48685
7197 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
7198 to VOID_TYPE even around MODIFY_EXPR.
7199
7200 2011-04-22 Mike Stump <mikestump@comcast.net>
7201
7202 * gensupport.c (read_md_rtx): Fix typo in comment.
7203 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
7204 comment.
7205
7206 2011-04-22 Jan Hubicka <jh@suse.cz>
7207
7208 * gengtype.c (open_base_files): Add ipa-inline.h include.
7209 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
7210 ipa-prop.c; update all uses.
7211 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
7212 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
7213 merge summary of inlined function into former caller.
7214 * ipa-inline.c (max_benefit): Remove.
7215 (edge_badness): Compensate for removal of benefits.
7216 (update_caller_keys): Use
7217 reset_node_growth_cache/reset_edge_growth_cache.
7218 (update_callee_keys): Likewise.
7219 (update_all_callee_keys): Likewise.
7220 (inline_small_functions): Do not collect max_benefit; do not reset
7221 estimated_growth; call free_growth_caches and initialize_growth_caches.
7222 * ipa-inline.h (struct condition, type clause_t, struct predicate,
7223 struct size_time_entry): New structures.
7224 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
7225 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
7226 and estimated_growth.
7227 (edge_growth_cache_entry): New structure.
7228 (node_growth_cache, edge_growth_cache): New global vars.
7229 (estimate_growth): Turn into inline.
7230 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
7231 initialize_growth_caches, free_growth_caches): Declare.
7232 (estimate_edge_growth): Rewrite.
7233 (estimate_edge_time): Implement as inline cache lookup.
7234 (reset_node_growth_cache, reset_edge_growth_cache): New inline
7235 functions.
7236 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
7237 (NUM_CONDITIONS): New constant.
7238 (predicate_conditions): New enum.
7239 (IS_NOT_CONSTANT): New constant.
7240 (edge_removal_hook_holder): New var.
7241 (node_growth_cache, edge_growth_cache): New global vars.
7242 (true_predicate, single_cond_predicate, false_predicate,
7243 not_inlined_predicate, add_condition, add_clause, and_predicates,
7244 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
7245 dump_clause, dump_predicate, account_size_time,
7246 evaulate_conditions_for_edge): New functions.
7247 (inline_summary_alloc): Move to heap.
7248 (inline_node_removal_hook): Clear condition and entry vectors.
7249 (inline_edge_removal_hook): New function.
7250 (initialize_growth_caches, free_growth_caches): New function.
7251 (dump_inline_summary): Update.
7252 (edge_execution_predicate): New function.
7253 (will_be_nonconstant_predicate): New function.
7254 (estimate_function_body_sizes): Compute BB and constantness predicates.
7255 (compute_inline_parameters): Do not clear estimated_growth.
7256 (estimate_edge_size_and_time): New function.
7257 (estimate_calls_size_and_time): New function.
7258 (estimate_callee_size_and_time): New function.
7259 (remap_predicate): New function.
7260 (inline_merge_summary): New function.
7261 (do_estimate_edge_time): New function based on...
7262 (estimate_edge_time): ... this one.
7263 (do_estimate_edge_growth): New function.
7264 (do_estimate_growth): New function based on....
7265 (estimate_growth): ... this one.
7266 (inline_analyze_function): Analyze after deciding on jump functions.
7267 (inline_read_section): New function.
7268 (inline_read_summary): Use it.
7269 (inline_write_summary): Write all the new data.
7270 * ipa-prop.c (ipa_get_param_decl_index): Export.
7271 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
7272 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
7273 Declare.
7274 (ipa_get_lattice): Move here from ipa-cp.c
7275 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
7276 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
7277 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
7278 cgraph_edge_inlinable_p): Remove.
7279 * cgraphunit.c: Include ipainline.h
7280 (cgraph_process_new_functions): Update call of
7281 compute_inline_parameters.
7282
7283 2011-04-22 Richard Guenther <rguenther@suse.de>
7284
7285 * tree.c (build_int_cst): Properly create canonicalized integer
7286 constants.
7287 (build_int_cst_type): Remove scary comments.
7288
7289 2011-04-22 Xinliang David Li <davidxl@google.com>
7290
7291 * toplev.c (process_options): Enable -Werror=coverage-mismatch
7292 by default when -Wno-error is not specified.
7293 * opts-global.c (decode_options): Remove call to
7294 control_warning_options.
7295
7296 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7297
7298 PR tree-optimization/48717
7299 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
7300 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
7301
7302 2011-04-22 Joseph Myers <joseph@codesourcery.com>
7303
7304 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
7305 definition where used.
7306
7307 2011-04-22 Jakub Jelinek <jakub@redhat.com>
7308
7309 PR c/48716
7310 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
7311 TREE_STATIC variables declared inside of some OpenMP construct.
7312
7313 2011-04-22 Martin Jambor <mjambor@suse.cz>
7314
7315 PR middle-end/48585
7316 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
7317
7318 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
7319
7320 PR c/36750
7321 * c-typeck.c (pop_init_level): Do not warn about initializing
7322 with ` = {0}'.
7323
7324 2011-04-22 Alan Modra <amodra@gmail.com>
7325
7326 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
7327 when returning call_cookie.
7328 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
7329 pointers, to functions with no more vector args than the current
7330 function, and some non-local calls for ABI_V4.
7331 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
7332 sibcall_nonlocal_aix64): Combine to ..
7333 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
7334 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
7335 (sibcall_value_nonlocal_aix<mode>): ..likewise.
7336 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
7337 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
7338 operand.
7339 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
7340 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
7341 sibcall_value_symbolic_64): Delete.
7342
7343 2011-04-21 Xinliang David Li <davidxl@google.com>
7344
7345 * cgraph.h: Remove pid.
7346 * cgraph.c: Remove pid.
7347 * value-prof.c (init_node_map): New function.
7348 (del_node_map): New function.
7349 (find_func_by_funcdef_no): New function.
7350 (gimple_ic_transform): Call new function.
7351 * cgraphunit.c (cgraph_finalize_function): Remove pid.
7352 * function.c (get_last_funcdef_no): New function.
7353 * function.h (get_last_funcdef_no): New function.
7354 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
7355 to libgcov function.
7356 (tree-profiling): Call node map init and delete function.
7357
7358 2011-04-21 Ian Lance Taylor <iant@google.com>
7359
7360 * godump.c (go_format_type): Use exported Go name for anonymous
7361 field name.
7362
7363 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7364
7365 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
7366 Call builtin_function_type_list instead of builtin_function_type.
7367 (UNARY, BINARY, TRINARY, QUAD): Likewise.
7368
7369 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7370
7371 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
7372 build_function_type_list instead of build_function_type.
7373 Delete variable `endlink'.
7374
7375 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7376
7377 * config/s390/s390.c (s390_init_builtins): Call
7378 build_function_type_list instead of build_function_type.
7379
7380 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
7381
7382 * config/ia64/ia64.c (ia64_init_builtins): Call
7383 build_function_type_list instead of builtin_function_type.
7384
7385 2011-04-21 Easwaran Raman <eraman@google.com>
7386
7387 * cfgexpand.c (stack_var): Remove OFFSET...
7388 (add_stack_var): ...and its reference here...
7389 (expand_stack_vars): ...and here.
7390 (stack_var_cmp): Sort by descending order of size.
7391 (partition_stack_vars): Change heuristic.
7392 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
7393 (dump_stack_var_partition): Add newline after each partition.
7394
7395 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
7396 Jeff Law <law@redhat.com>
7397
7398 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
7399 * gengtype.c (matching_file_name_substitute): Likewise.
7400
7401 2011-04-21 Richard Guenther <rguenther@suse.de>
7402
7403 PR lto/48703
7404 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
7405
7406 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
7407
7408 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
7409
7410 2011-04-21 Richard Guenther <rguenther@suse.de>
7411
7412 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
7413 file name.
7414
7415 2011-04-21 Richard Guenther <rguenther@suse.de>
7416
7417 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7418 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
7419 Use DECL_P, not SSA_VAR_P.
7420 (ptr_derefs_may_alias_p): Likewise.
7421 (ptr_deref_may_alias_ref_p_1): Likewise.
7422 (decl_refs_may_alias_p): Likewise.
7423 (refs_may_alias_p_1): Likewise.
7424 (ref_maybe_used_by_call_p_1): Likewise.
7425 (call_may_clobber_ref_p_1): Likewise.
7426 (indirect_ref_may_alias_decl_p): Assume indirect refrences
7427 are either MEM_REF or TARGET_MEM_REF.
7428 (indirect_refs_may_alias_p): Likewise.
7429 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
7430 for MEM_EXPR of indirect calls.
7431
7432 2011-04-21 Tristan Gingold <gingold@adacore.com>
7433
7434 * vmsdbgout.c (write_srccorr): Compute file length from the string.
7435 (dst_file_info_struct): Remove flen field.
7436 (lookup_filename): Remove code that set flen field.
7437
7438 2011-04-21 Tristan Gingold <gingold@adacore.com>
7439
7440 * config/ia64/ia64.c (ia64_start_function): Add a guard.
7441
7442 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
7443
7444 PR target/48708
7445 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
7446 vec_extract and vec_concat for non-SSE4_1 targets.
7447
7448 2011-04-21 Richard Guenther <rguenther@suse.de>
7449
7450 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
7451 return statements.
7452
7453 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7454
7455 * config/i386/cygming.h (union tree_node, TREE): Don't define or
7456 undefine.
7457 (FILE): Don't undefine.
7458
7459 2011-04-21 Joseph Myers <joseph@codesourcery.com>
7460
7461 * config/alpha/alpha.c (struct machine_function): Use rtx, not
7462 struct rtx_def *.
7463 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
7464 struct rtx_def *.
7465 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
7466 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
7467 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
7468 rtx_def *.
7469 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
7470 definitions where used.
7471 * config/microblaze/microblaze.h (struct microblaze_args): Use
7472 rtx, not struct rtx_def *.
7473 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
7474 rtx_def *.
7475 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
7476 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
7477 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
7478 not struct rtx_def *.
7479 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
7480 struct rtx_def *.
7481 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
7482 rtx_def *.
7483 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
7484
7485 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7486
7487 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
7488 operand_equal_p to compare DR_BASE_ADDRESSes.
7489 (vect_check_interleaving): Likewise.
7490
7491 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7492
7493 PR target/46329
7494 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
7495 for all Neon struct constants.
7496
7497 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7498
7499 * target.def (legitimate_constant_p): New hook.
7500 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
7501 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
7502 * doc/tm.texi: Regenerate.
7503 * hooks.h (hook_bool_mode_rtx_true): Declare.
7504 * hooks.c (hook_bool_mode_rtx_true): Define.
7505 * system.h (LEGITIMATE_CONSTANT_P): Poison.
7506 * calls.c (precompute_register_parameters): Replace uses of
7507 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
7508 (emit_library_call_value_1): Likewise.
7509 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
7510 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
7511 * ira-costs.c (scan_one_insn): Likewise.
7512 * recog.c (general_operand, immediate_operand): Likewise.
7513 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
7514 * reload1.c (init_eliminable_invariants): Likewise.
7515
7516 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
7517 mode argument.
7518 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
7519 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
7520 argument.
7521 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7522 * config/alpha/predicates.md (input_operand): Update call to
7523 alpha_legitimate_constant_p.
7524
7525 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
7526 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
7527 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
7528 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7529 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
7530 (arm_legitimate_constant_p): New functions.
7531 (arm_cannot_force_const_mem): Make static.
7532
7533 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
7534
7535 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
7536 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
7537 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
7538 instead of bfin_legitimate_constant_p.
7539 (bfin_legitimate_constant_p): Make static. Add a mode argument.
7540 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7541
7542 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
7543
7544 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
7545
7546 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
7547 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
7548 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7549 (frv_legitimate_constant_p): Make static. Add a mode argument.
7550
7551 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
7552 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
7553 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
7554
7555 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
7556 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
7557 * config/i386/i386.c (legitimate_constant_p): Rename to...
7558 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
7559 argument.
7560 (ix86_cannot_force_const_mem): Update accordingly.
7561 (ix86_legitimate_address_p): Likewise.
7562 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7563 * config/i386/i386.md: Update commentary.
7564
7565 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
7566 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
7567 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7568 (ia64_legitimate_constant_p): Make static. Add a mode argument.
7569
7570 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
7571
7572 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
7573 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
7574 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7575 (lm32_legitimate_constant_p): Make static. Add a mode argument.
7576
7577 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
7578 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
7579 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
7580
7581 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
7582 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7583 (m32r_legitimate_constant_p): New function.
7584
7585 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
7586 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
7587 LEGITIMATE_CONSTANT_P.
7588 (LEGITIMATE_CONSTANT_P): Delete.
7589 * config/m68k/m68k.c (m68k_expand_prologue): Call
7590 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
7591 (m68k_legitimate_constant_p): New function.
7592 * config/m68k/m68k.md: Update comments.
7593
7594 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
7595 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7596 (mcore_legitimate_constant_p): New function.
7597
7598 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
7599 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
7600 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
7601 Add a mode argument.
7602 (mep_legitimate_address): Update accordingly.
7603 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7604
7605 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
7606 Delete.
7607 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
7608 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
7609 static. Check OP's mode for VOIDmode.
7610 (microblaze_legitimate_constant_p): New function.
7611 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7612
7613 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
7614 * config/mips/mips.c (mips_legitimate_constant_p): New function.
7615 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
7616 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7617 * config/mips/predicates.md: Update comments.
7618
7619 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
7620 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
7621 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7622 (mmix_legitimate_constant_p): Make static, return a bool, and take
7623 a mode argument.
7624 (mmix_print_operand_address): Update accordingly.
7625
7626 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
7627 Delete.
7628 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
7629 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
7630 static. Add a mode argument.
7631 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7632
7633 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
7634
7635 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
7636 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7637 (pa_legitimate_constant_p): New function.
7638
7639 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
7640
7641 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
7642 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7643 (pdp11_legitimate_constant_p): New function.
7644
7645 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
7646 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7647 (rs6000_legitimate_constant_p): New function.
7648
7649 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
7650 (rx_legitimate_constant_p): ...this.
7651 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
7652 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
7653 (rx_legitimate_constant_p): ...this.
7654 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7655 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
7656
7657 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
7658 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
7659 * config/s390/s390.c (legitimate_constant_p): Rename to...
7660 (s390_legitimate_constant_p): ...this. Make static, return a bool,
7661 and add a mode argument.
7662 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7663
7664 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
7665
7666 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
7667 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7668 (sh_legitimate_constant_p): New function.
7669
7670 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
7671 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
7672 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7673 (legitimate_constant_p): Rename to...
7674 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
7675 argument.
7676 (constant_address_p): Update accordingly.
7677
7678 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
7679 argument and return a bool.
7680 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
7681 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7682 (spu_legitimate_constant_p): Add a mode argument and return a bool.
7683 (spu_rtx_costs): Update accordingly.
7684 * config/spu/predicates.md (vec_imm_operand): Likewise.
7685
7686 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
7687
7688 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
7689 * config/v850/v850.c (v850_legitimate_constant_p): New function.
7690 (TARGET_LEGITIMATE_CONSTANT_P): Define.
7691
7692 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
7693 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
7694 * config/vax/vax.c (legitimate_constant_p): Likewise.
7695
7696 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
7697 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
7698 (xtensa_legitimate_constant_p): New function.
7699
7700 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
7701
7702 * target.def (cannot_force_const_mem): Add a mode argument.
7703 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
7704 * doc/tm.texi: Regenerate.
7705 * hooks.h (hook_bool_mode_rtx_false): Declare.
7706 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
7707 (hook_bool_mode_const_rtx_true): Likewise.
7708 (hook_bool_mode_rtx_false): New function.
7709 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
7710 to be non-VOID. Update call to cannot_force_const_mem.
7711 (find_reloads): Update accordingly.
7712 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
7713 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
7714 argument.
7715 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
7716 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
7717 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
7718 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
7719 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
7720 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
7721 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
7722 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7723 (m68k_cannot_force_const_mem): ...this new function.
7724 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
7725 argument.
7726 (mips_const_insns, mips_legitimize_const_move): Update calls.
7727 (mips_secondary_reload_class): Likewise.
7728 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
7729 (pa_cannot_force_const_mem): ...this new function.
7730 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
7731 (rs6000_cannot_force_const_mem): ...this new function.
7732 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
7733 argument.
7734 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
7735 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
7736 to...
7737 (xtensa_cannot_force_const_mem): ...this new function.
7738
7739 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7740
7741 * config/mips/mips.c (mips16_build_function_stub): Call
7742 build_function_type_list instead of build_function_type.
7743 (mips16_build_call_stub): Likewise.
7744
7745 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7746
7747 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
7748 instead of build_function_type.
7749
7750 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
7751
7752 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
7753 instead of build_function_type.
7754
7755 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
7756
7757 PR target/48678
7758 * config/i386/i386.md (insv): Change operand 0 constraint to
7759 "register_operand". Change operand 1 and 2 constraint to
7760 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
7761 * config/i386/sse.md (sse4_1_pinsrb): Export.
7762 (sse2_pinsrw): Ditto.
7763 (sse4_1_pinsrd): Ditto.
7764 (sse4_1_pinsrq): Ditto.
7765 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
7766 * config/i386/i386.c (ix86_expand_pinsr): New.
7767
7768 2011-04-20 Easwaran Raman <eraman@google.com>
7769
7770 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
7771 containing union type only with -fstrict-aliasing.
7772
7773 2011-04-20 Jim Meyering <meyering@redhat.com>
7774
7775 Remove useless if-before-free tests.
7776 * calls.c (expand_call, save_area): Likewise.
7777 * cfgcleanup.c (try_forward_edges): Likewise.
7778 * collect2.c (collect_execute): Likewise.
7779 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
7780 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
7781 * coverage.c (coverage_checksum_string): Likewise.
7782 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
7783 * cselib.c (cselib_init): Likewise.
7784 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
7785 (df_set_clean_cfg): Likewise.
7786 * function.c (free_after_compilation): Likewise.
7787 * gcc.c (do_spec_1, main): Likewise.
7788 * gcov.c (create_file_names): Likewise.
7789 * gensupport.c (identify_predicable_attribute): Likewise.
7790 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
7791 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
7792 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
7793 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
7794 * ipa-pure-const.c (local_pure_const): Likewise.
7795 * ipa-reference.c (propagate): Likewise.
7796 * ira-costs.c (free_ira_costs): Likewise.
7797 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
7798 * matrix-reorg.c (mat_free): Likewise.
7799 * prefix.c (get_key_value): Likewise.
7800 * profile.c (compute_value_histograms): Likewise.
7801 * reload1.c (free_reg_equiv): Likewise.
7802 * sched-deps.c (free_deps): Likewise.
7803 * sel-sched-ir.c (fence_clear): Likewise.
7804 * sese.c (set_rename, if_region_set_false_region): Likewise.
7805 * tree-data-ref.c (free_rdg): Likewise.
7806 * tree-eh.c (lower_try_finally): Likewise.
7807 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
7808 * tree-ssa-live.c (delete_var_map): Likewise.
7809 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
7810 * tree-ssa-pre.c (phi_trans_add): Likewise.
7811
7812 2011-04-20 Jakub Jelinek <jakub@redhat.com>
7813
7814 PR tree-optimization/48611
7815 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
7816 beyond ERT_MUST_NOT_THROW region.
7817
7818 2011-04-20 Catherine Moore <clm@codesourcery.com>
7819
7820 * config/mips/mips.opt (mfix-24k): New.
7821 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
7822 * config/mips/mips.md (length): Increase by 4 for stores if
7823 fixing 24K errata.
7824 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
7825 all noreorder if fixing 24K errata.
7826 * doc/invoke.texi: Document mfix-24k.
7827
7828 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
7829
7830 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
7831 quad-word modes, reduce to 9-bit index range when above 1016 limit.
7832
7833 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7834
7835 * config/arm/arm.c (arm_gen_constant): Move movw support ....
7836 (const_ok_for_op): ... to here.
7837
7838 2011-04-20 Kai Tietz <ktietz@redhat.com>
7839
7840 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
7841 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
7842
7843 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
7844
7845 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
7846
7847 2011-04-20 Richard Guenther <rguenther@suse.de>
7848
7849 PR tree-optimization/47892
7850 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
7851 are if-convertible.
7852
7853 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
7854
7855 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
7856
7857 2011-04-20 Tristan Gingold <gingold@adacore.com>
7858
7859 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
7860
7861 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
7862
7863 PR target/18145
7864
7865 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
7866 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
7867 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
7868 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
7869 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
7870
7871 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
7872 New prototype.
7873
7874 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
7875 (avr_asm_named_section, avr_asm_output_aligned_common,
7876 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
7877 New functions to update...
7878 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
7879 (avr_asm_init_sections): Overwrite section callbacks for
7880 data_section, bss_section.
7881 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
7882 from here to...
7883 (avr_file_end): ...here.
7884
7885 2011-04-20 Richard Guenther <rguenther@suse.de>
7886
7887 PR middle-end/48695
7888 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
7889 objects and types here. Adjust for their offset before comparing.
7890
7891 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7892
7893 * tree-vect-stmts.c (vectorizable_store): Only chain one related
7894 statement per copy.
7895
7896 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
7897
7898 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
7899 (GIMPLE_H): Include $(INTERNAL_FN_H).
7900 (OBJS-common): Add internal-fn.o.
7901 (internal-fn.o): New rule.
7902 * internal-fn.def: New file.
7903 * internal-fn.h: Likewise.
7904 * internal-fn.c: Likewise.
7905 * gimple.h: Include internal-fn.h.
7906 (GF_CALL_INTERNAL): New gf_mask.
7907 (gimple_statement_call): Put fntype into a union with a new
7908 internal_fn field.
7909 (gimple_build_call_internal): Declare.
7910 (gimple_build_call_internal_vec): Likewise.
7911 (gimple_call_same_target_p): Likewise.
7912 (gimple_call_internal_p): New function.
7913 (gimple_call_internal_fn): Likewise.
7914 (gimple_call_fntype): Return null for internal calls.
7915 (gimple_call_set_fntype): Assert that the function is not internal.
7916 (gimple_call_set_fn): Likewise.
7917 (gimple_call_set_fndecl): Likewise.
7918 (gimple_call_set_internal_fn): New function.
7919 (gimple_call_addr_fndecl): Handle null functions.
7920 (gimple_call_return_type): Likewise null types.
7921 * gimple.c (gimple_build_call_internal_1): New function.
7922 (gimple_build_call_internal): Likewise.
7923 (gimple_build_call_internal_vec): Likewise.
7924 (gimple_call_same_target_p): Likewise.
7925 (gimple_call_flags): Handle calls to internal functions.
7926 (gimple_call_fnspec): New function.
7927 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
7928 (gimple_has_side_effects): Handle null functions.
7929 (gimple_rhs_has_side_effects): Likewise.
7930 (gimple_call_copy_skip_args): Handle calls to internal functions.
7931 * cfgexpand.c (expand_call_stmt): Likewise.
7932 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
7933 * gimple-fold.c (gimple_fold_call): Handle null functions.
7934 (gimple_fold_stmt_to_constant_1): Don't fold
7935 calls to internal functions.
7936 * gimple-low.c (gimple_check_call_args): Handle calls to internal
7937 functions.
7938 * gimple-pretty-print.c (dump_gimple_call): Likewise.
7939 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
7940 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
7941 (do_warn_unused_result): Likewise.
7942 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
7943 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
7944 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
7945 the target of a call.
7946 (initialize_hash_element): Update accordingly.
7947 (hashable_expr_equal_p): Use gimple_call_same_target_p.
7948 (iterative_hash_hashable_expr): Handle calls to internal functions.
7949 (print_expr_hash_elt): Likewise.
7950 * tree-ssa-pre.c (can_value_number_call): Likewise.
7951 (eliminate): Handle null functions.
7952 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
7953 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
7954 (find_func_aliases): Likewise.
7955 * value-prof.c (gimple_ic_transform): Likewise.
7956 (gimple_indirect_call_to_profile): Likewise.
7957 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7958 * lto-streamer-out.c (output_gimple_stmt): Likewise.
7959
7960 2011-04-19 Jan Hubicka <jh@suse.cz>
7961
7962 * ipa-inline-transform.c (save_inline_function_body): Add comments.
7963 * ipa-inline.c (inline_small_functions): Compute summaries first,
7964 populate heap later.
7965
7966 2011-04-19 Jan Hubicka <jh@suse.cz>
7967
7968 * cgraph.h (save_inline_function_body): Remove.
7969 * ipa-inline-transform.c: New file, broke out of...
7970 * ipa-inline.c: ... this one; Update toplevel comment.
7971 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
7972 make global.
7973 (update_noncloned_frequencies): Move to ipa-inline-transform.c
7974 (cgraph_mark_inline_edge): Rename to inline_call; move to
7975 ipa-inline-transform.c.
7976 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
7977 move to ipa-inline-transform.c
7978 (recursive_inlining, inline_small_functions, flatten_function,
7979 ipa_inline, inline_always_inline_functions,
7980 early_inline_small_functions): Update.
7981 (inline_transform): Move to ipa-inline-transform.c.
7982 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
7983 Declare.
7984 * Makefile.in (ipa-inline-transform.o): New file.
7985 * cgraphunit.c (save_inline_function_body): Move to
7986 ipa-inline-transform.c
7987
7988 2011-04-19 DJ Delorie <dj@redhat.com>
7989
7990 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
7991 registers if we already know there aren't any.
7992 (m32c_emit_epilogue): Don't emit a barrier here.
7993 (m32c_emit_eh_epilogue): Likewise.
7994 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
7995 operands at expand time.
7996 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
7997 int" wchar type.
7998 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
7999 duplicates. Provide aliases instead.
8000 * config/m32c/prologue.md (eh_return): Emit a barrier here.
8001 (eh_epilogue): Add a "(return)" here as a hint to other parts of
8002 the compiler.
8003
8004 2011-04-19 Anatoly Sokolov <aesok@post.ru>
8005
8006 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
8007 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
8008 (general_or_i64_p, sparc_register_move_cost): New function.
8009
8010 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8011
8012 * doc/install.texi (Configuration, --enable-threads): Remove mach.
8013 Add lynx, mipssde. Sort table.
8014
8015 2011-04-19 Xinliang David Li <davidxl@google.com>
8016
8017 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
8018 not negative.
8019
8020 2011-04-19 Jakub Jelinek <jakub@redhat.com>
8021
8022 PR target/48678
8023 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
8024 is a SUBREG with non-MODE_INT mode inside of it.
8025
8026 2011-04-19 Martin Jambor <mjambor@suse.cz>
8027
8028 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
8029 also according to actual contants.
8030 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
8031 (gimple_fold_call): Use it.
8032 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
8033
8034 2011-04-19 Martin Jambor <mjambor@suse.cz>
8035
8036 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
8037 non-pointer assignments.
8038
8039 2011-04-19 Martin Jambor <mjambor@suse.cz>
8040
8041 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
8042 account anc_offset and otr_type from the indirect edge info.
8043 * ipa-prop.c (get_ancestor_addr_info): New function.
8044 (compute_complex_ancestor_jump_func): Assignment analysis moved to
8045 get_ancestor_addr_info, call it.
8046 (ipa_note_param_call): Do not initialize information about polymorphic
8047 calls, return the indirect call graph edge. Remove the last
8048 parameter, adjust all callers.
8049 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
8050 parameters. Initialize polymorphic information in the indirect edge.
8051
8052 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8053
8054 PR lto/48148
8055 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
8056 the types if they have different enumeration identifiers.
8057
8058 2011-04-19 Jan Hubicka <jh@suse.cz>
8059
8060 * cgraph.h (cgraph_optimize_for_size_p): Declare.
8061 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
8062 * predict.c (cgraph_optimize_for_size_p): Break out from ...
8063 (optimize_function_for_size_p) ... here.
8064
8065 2011-04-19 Richard Guenther <rguenther@suse.de>
8066
8067 PR lto/48207
8068 * tree.c (free_lang_data): Do not reset the decl-assembler-name
8069 langhook.
8070
8071 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
8072
8073 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
8074 if DECL_NO_INLINE_WARNING_P is set on the function.
8075
8076 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
8077
8078 PR fortran/47976
8079 * reload1.c (inc_for_reload): Return void. All callers changed.
8080 (emit_input_reload_insns): Don't try to delete previous output
8081 reloads to a register, or record spill_reg_store for autoincs.
8082
8083 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
8084
8085 * gengtype.h: Updated copyright year.
8086 (struct input_file_st): Add inpisplugin field.
8087 (type_fileloc): New function.
8088 * gengtype.c
8089 (write_typed_struct_alloc_def): Add gcc_assert.
8090 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
8091 (write_typed_alloc_defns): Don't output for plugin files.
8092 (input_file_by_name): Clear inpisplugin field.
8093 (main): Set inpisplugin field for plugin files.
8094
8095 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
8096
8097 * gengtype-state.c (string_eq): New.
8098 (read_state): Use string_eq instead of strcmp when creating the
8099 state_ident_tab.
8100
8101 2011-04-19 Wei Guozhi <carrot@google.com>
8102
8103 PR target/47855
8104 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
8105 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
8106 linkage.
8107 * config/arm/constraints.md (Uu): New constraint.
8108 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
8109
8110 2011-04-19 Tristan Gingold <gingold@adacore.com>
8111
8112 * config.gcc (-*-*-*vms): Added.
8113 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
8114 definitions moved.
8115 * config/vms/vms-ld.c: New file.
8116 * config/vms/vms-ar.c: New file.
8117 * config/vms/t-vmsnative: New file.
8118
8119 2011-04-18 Xinliang David Li <davidxl@google.com>
8120
8121 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
8122
8123 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8124
8125 PR middle-end/48661
8126 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
8127 if TREE_TYPE (v) is non-NULL.
8128
8129 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
8130 gimple_get_virt_mehtod_for_binfo.
8131 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
8132 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
8133 callers.
8134 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8135
8136 2011-04-18 Michael Matz <matz@suse.de>
8137 Steve Ellcey <sje@cup.hp.com>
8138
8139 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
8140 use its mode as source mode if it isn't VOIDmode.
8141
8142 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
8143
8144 * doc/passes.texi: Fill crossref nodes.
8145
8146 2011-04-18 Jim Meyering <meyering@redhat.com>
8147
8148 Fix doubled-word typos in comments and strings
8149 * config/alpha/vms-unwind.h: s/for for/for/
8150 * config/arm/unwind-arm.h: Likewise.
8151 * config/microblaze/microblaze.c: Likewise.
8152 * config/sh/constraints.md: s/in in/in/
8153 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
8154
8155 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
8156
8157 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
8158 (AVX_FLOAT_MODE_P): Ditto.
8159 (AVX128_VEC_FLOAT_MODE_P): Ditto.
8160 (AVX256_VEC_FLOAT_MODE_P): Ditto.
8161 (AVX_VEC_FLOAT_MODE_P): Ditto.
8162 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
8163 (UNSPEC_MASKSTORE): Ditto.
8164 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
8165 Merge from <sse>_movmsk<ssemodesuffix> and
8166 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
8167 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
8168 iterator.
8169 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
8170 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
8171 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
8172
8173 2011-04-18 Jan Hubicka <jh@suse.cz>
8174
8175 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
8176
8177 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
8178 (want_inline_function_called_once_p): Break out the logic from
8179 ipa_inline.
8180 (edge_badness): Ensure that profile is not misupdated.
8181 (lookup_recursive_calls): Prioritize by call frequencies.
8182 (inline_small_functions): Move program size estimates here;
8183 actually process whole queue even when unit growth has been
8184 met. (to properly compute inline_failed reasons and for the
8185 case unit size decrease.) Revisit comments on recursive inlining.
8186 (ipa_inline): Remove unit summary code; first inline hot calls
8187 of functions called once, cold calls next.
8188 (order, nnodes): Remove unused variables.
8189 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
8190 (GTFILES): Remove ipa-inline.c
8191 * sel-sched.c (fill_insns): Silence uninitialized var warning.
8192
8193 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8194
8195 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
8196
8197 2011-04-18 Jie Zhang <jie@codesourcery.com>
8198 Richard Earnshaw <rearnsha@arm.com>
8199
8200 * arm.c (neon_builtin_type_bits): Remove.
8201 (typedef enum neon_builtin_mode): New.
8202 (T_MAX): Don't define.
8203 (typedef enum neon_builtin_datum): Remove bits, codes[],
8204 num_vars and base_fcode. Add mode, code and fcode.
8205 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
8206 VAR10): Change accordingly.
8207 (neon_builtin_data[]): Change accordingly
8208 (arm_init_neon_builtins): Change accordingly.
8209 (neon_builtin_compare): Remove.
8210 (locate_neon_builtin_icode): Remove.
8211 (arm_expand_neon_builtin): Change accordingly.
8212
8213 * arm.h (enum arm_builtins): Move to ...
8214 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
8215
8216 * arm.c (arm_builtin_decl): Declare.
8217 (TARGET_BUILTIN_DECL): Define.
8218 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
8219 (arm_builtin_decls[]): New.
8220 (arm_init_neon_builtins): Store builtin declarations in
8221 arm_builtin_decls[].
8222 (arm_init_tls_builtins): Likewise.
8223 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
8224 (arm_builtin_decl): New.
8225
8226 2011-04-18 Richard Guenther <rguenther@suse.de>
8227
8228 * tree.c (upper_bound_in_type): Build properly canonicalized
8229 INTEGER_CSTs.
8230 (lower_bound_in_type): Likewise.
8231
8232 2011-04-18 Richard Guenther <rguenther@suse.de>
8233
8234 * gimple.h (gimple_call_addr_fndecl): New function.
8235 (gimple_call_fndecl): Use it.
8236 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
8237 for direct calls.
8238 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
8239 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
8240
8241 2011-04-18 Richard Guenther <rguenther@suse.de>
8242
8243 PR middle-end/48650
8244 * tree.c (build_string): STRING_CST is now derived from tree_typed.
8245
8246 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
8247
8248 PR lto/48492
8249 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
8250 DECL_IN_CONSTANT_POOL without RTL.
8251
8252 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
8253 Ira Rosen <ira.rosen@linaro.org>
8254
8255 PR target/48252
8256 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
8257 to match neon_vzip/vuzp/vtrn_internal.
8258 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
8259 outputs explicitly dependent on both inputs.
8260 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
8261
8262 2011-04-18 Jakub Jelinek <jakub@redhat.com>
8263
8264 PR tree-optimization/48616
8265 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
8266 whether the shift is by scalar or vector based on whether all SLP
8267 scalar stmts have the same rhs.
8268
8269 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
8270
8271 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
8272 memory operands.
8273
8274 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
8275
8276 PR target/43700
8277 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
8278 registers.
8279
8280 2011-04-17 Jan Hubicka <jh@suse.cz>
8281
8282 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
8283 * cgrpahunit.c (cgraph_finalize_function): Do not set
8284 finalized_by_frontend.
8285 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8286 finalized_by_frontend.
8287
8288 2011-04-17 Jan Hubicka <jh@suse.cz>
8289
8290 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
8291 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
8292 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
8293 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
8294 method.
8295 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
8296 gimple-fold.c
8297 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
8298
8299 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
8300
8301 PR lto/48538
8302 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
8303 is non-null before accessing it.
8304 (input_cgraph): Remove trailing spaces.
8305
8306 2011-04-17 Revital Eres <revital.eres@linaro.org>
8307
8308 * params.def (sms-min-sc): New param flag.
8309 * modulo-sched.c (sms_schedule): Use it.
8310 * doc/invoke.texi (sms-min-sc): Document it.
8311
8312 2011-04-17 Jan Hubicka <jh@suse.cz>
8313
8314 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
8315 present, also set gimple_call_set_cannot_inline.
8316 * ipa-inline.c: Update toplevel comment.
8317 (MAX_TIME): Remove.
8318 (cgraph_clone_inlined_nodes): Fix linebreaks.
8319 (cgraph_check_inline_limits): Restructure to ...
8320 (caller_growth_limits): ... this one; be more tolerant
8321 on growth in nested inline chains; add explanatory comment;
8322 fix stack accounting thinko introduced by previous patch.
8323 (cgraph_default_inline_p): Remove.
8324 (report_inline_failed_reason): New function.
8325 (can_inline_edge_p): New function.
8326 (can_early_inline_edge_p): New function.
8327 (leaf_node_p): Move upwards in file.
8328 (want_early_inline_function_p): New function.
8329 (want_inline_small_function_p): New function.
8330 (want_inline_self_recursive_call_p): New function.
8331 (cgraph_edge_badness): Rename to ...
8332 (edge_badness) ... this one; fix linebreaks.
8333 (update_edge_key): Update call of edge_baddness; add
8334 detailed dump about queue updates.
8335 (update_caller_keys): Use can_inline_edge_p and
8336 want_inline_small_function_p.
8337 (cgraph_decide_recursive_inlining): Rename to...
8338 (recursive_inlining): Use can_inline_edge_p and
8339 want_inline_self_recursive_call_p; simplify and remove no longer
8340 valid FIXME.
8341 (cgraph_set_inline_failed): Remove.
8342 (add_new_edges_to_heap): Use can_inline_edge_p and
8343 want_inline_small_function_p.
8344 (cgraph_decide_inlining_of_small_functions): Rename to ...
8345 (inline_small_functions): ... this one; cleanup; use
8346 can/want predicates; cleanup debug ouput; work edges till fibheap
8347 is exhausted and do not stop once unit growth is reached; remove
8348 later loop processing remaining edges.
8349 (cgraph_flatten): Rename to ...
8350 (flatten_function): ... this one; use can_inline_edge_p
8351 and can_early_inline_edge_p predicates.
8352 (cgraph_decide_inlining): Rename to ...
8353 (ipa_inline): ... this one; remove unreachable nodes before
8354 inlining functions called once; simplify the pass.
8355 (cgraph_perform_always_inlining): Rename to ...
8356 (inline_always_inline_functions): ... this one; use
8357 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
8358 (cgraph_decide_inlining_incrementally): Rename to ...
8359 (early_inline_small_functions): ... this one; simplify
8360 using new predicates; cleanup; make dumps prettier.
8361 (cgraph_early_inlining): Rename to ...
8362 (early_inliner): newer inline regular functions into always-inlines;
8363 fix updating of call stmt summaries.
8364 (pass_early_inline): Update for new names.
8365 (inline_transform): Fix formating.
8366 (gate_cgraph_decide_inlining): Rename to ...
8367 (pass_ipa_inline): ... this one.
8368 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
8369 * ipa-inline-analysis.c (dump_inline_summary): Update.
8370 (compute_inline_parameters): Do not compute disregard_inline_limits;
8371 look for mismatching arguments.
8372 (estimate_growth): Fix handlig of non-trivial self recursion.
8373 (inline_read_summary): Do not read info->disregard_inline_limits.
8374 (inline_write_summary): Do not write info->disregard_inline_limits.
8375 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
8376 and move all checks into can_inline_edge_p predicate; re-enable code
8377 comparing optimization levels.
8378 (expand_call_inline): Do not test inline_forbidden_into_p.
8379 * Makefile.in (ipa-inline.o): Update arguments.
8380
8381 2011-04-17 Revital Eres <revital.eres@linaro.org>
8382
8383 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
8384
8385 2011-04-17 Revital Eres <revital.eres@linaro.org>
8386
8387 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
8388
8389 2011-04-17 Michael Matz <matz@suse.de>
8390
8391 PR tree-optimization/48622
8392 PR lto/48645
8393 * ipa-inline-analysis.c (inline_read_summary): Read size/time
8394 in same order as they're written.
8395
8396 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8397
8398 * config/pa/predicates.md: Reorganize and simplify predicates.
8399 Eliminate duplicate code checks.
8400 (arith_operand): Rename to arith14_operand
8401 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
8402 * config/pa/pa.md: Use renamed operands.
8403 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
8404 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
8405 arith11_operand, adddi3_operand, indexed_memory_operand,
8406 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
8407 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
8408 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
8409 move_dest_operand, move_src_operand, prefetch_cc_operand,
8410 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
8411 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
8412 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
8413 div_operand, int5_operand, movb_comparison_operator,
8414 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
8415 arith_double_operand, ireg_operand, lhs_lshift_operand,
8416 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
8417 integer_store_memory_operand): Likewise.
8418 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
8419 (integer_store_memory_operand, read_only_operand,
8420 function_label_operand, borx_reg_operand,
8421 non_hard_reg_operand): Likewise.
8422 (eq_neq_comparison_operator): Delete unused operator.
8423 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
8424 function_label_operand.
8425 (emit_move_sequence): Likewise.
8426
8427 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8428
8429 * config/i386/sse.md (sseunpackmode): New mode attribute.
8430 (ssepackmode): Ditto.
8431 (vec_pack_trunc_<mode>): Macroize expander from
8432 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
8433 (vec_unpacks_lo_<mode>): Macroize expander from
8434 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8435 (vec_unpacks_hi_<mode>): Macroize expander from
8436 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8437 (vec_unpacku_lo_<mode>): Macroize expander from
8438 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8439 (vec_unpacku_hi_<mode>): Macroize expander from
8440 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
8441 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
8442 ix86_expand_sse4_unpack.
8443 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
8444
8445 2011-04-16 Jan Hubicka <jh@suse.cz>
8446
8447 * cgraphbuild.c: Include ipa-inline.h.
8448 (reset_inline_failed): Use initialize_inline_failed.
8449 * cgraph.c: Include ipa-inline.h.
8450 (cgraph_create_node_1): Do not initialize estimated_growth.
8451 (initialize_inline_failed): More to ipa-inline-analysis.c
8452 (dump_cgraph_node): Do not dump inline flags.
8453 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
8454 and disregard_inline_limits flags.
8455 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
8456 time, size, estimated_growth.
8457 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
8458 Update.
8459 * cgraphunit.c (cgraph_decide_is_function_needed): Use
8460 DECL_DISREGARD_INLINE_LIMITS.
8461 (cgraph_analyze_function): Do not initialize
8462 node->local.disregard_inline_limits.
8463 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
8464 inlinable, versionable and disregard_inline_limits.
8465 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8466 cgraph_check_inline_limits, cgraph_default_inline_p,
8467 cgraph_edge_badness, update_caller_keys, update_callee_keys,
8468 add_new_edges_to_heap): Update.
8469 (cgraph_decide_inlining_of_small_function): Update; set
8470 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
8471 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
8472 cgraph_decide_inlining_incrementally): Update.
8473 * ipa-inline.h (inline_summary): Add inlinable, versionable,
8474 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
8475 time, size and estimated_growth parameters.
8476 (estimate_edge_growth): Update.
8477 (initialize_inline_failed): Declare.
8478 * ipa-split.c: Include ipa-inline.h
8479 (execute_split_functions): Update.
8480 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
8481 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
8482 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
8483 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
8484 estimated_growth to INT_MIN.
8485 (inline_node_duplication_hook): Likewise.
8486 (dump_inline_summary): Dump new fields.
8487 (compute_inline_parameters): Update.
8488 (estimate_edge_time, estimate_time_after_inlining,
8489 estimate_size_after_inlining, estimate_growth, inline_read_summary,
8490 inline_write_summary):
8491 (initialize_inline_failed): Move here from cgraph.c.
8492 * tree-sra.c: Include ipa-inline.h.
8493 (ipa_sra_preliminary_function_checks): Update.
8494 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
8495 ipa-inline.h.
8496
8497 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
8498
8499 * config/i386/sse.md (V16): New mode iterator.
8500 (VI1, VI8): Ditto.
8501 (AVXMODEQI, AVXMODEDI): Remove.
8502 (sse2, sse3): New mode attribute.
8503 (mov<mode>): Use V16 mode iterator.
8504 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
8505 (push<mode>1): Use V16 mode iterator.
8506 (movmisalign<mode>): Ditto.
8507 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8508 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
8509 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
8510 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
8511 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
8512 avx_movdqu<avxmodesuffix>.
8513 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
8514 *avx_movdqu<avxmodesuffix>.
8515 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
8516 avx_lddqu<avxmodesuffix>.
8517 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
8518 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
8519 avx_movnt<AVXMODEDI:mode>.
8520 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
8521 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
8522
8523 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
8524
8525 PR target/48629
8526 * haifa-sched.c (prune_ready_list, schedule_block): Use
8527 sched_pressure_p rather than flag_sched_pressure.
8528
8529 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
8530
8531 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8532 cgraph_get_node instead of cgraph_get_create_node.
8533
8534 2011-04-15 Jakub Jelinek <jakub@redhat.com>
8535
8536 * cfgexpand.c (expand_debug_expr): Use
8537 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
8538
8539 2011-04-15 Michael Matz <matz@suse.de>
8540
8541 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
8542 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
8543 * function.c (gimplify_parameters): Ditto.
8544 * gimplify.c (gimplify_vla_decl): Ditto.
8545
8546 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
8547 (gimple_call_set_alloca_for_var): New inline function.
8548 (gimple_call_alloca_for_var_p): Ditto.
8549 * gimple.c (gimple_build_call_from_tree): Remember
8550 CALL_ALLOCA_FOR_VAR_P state.
8551 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
8552
8553 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
8554 calls if they were for VLA objects.
8555
8556 2011-04-15 Martin Jambor <mjambor@suse.cz>
8557
8558 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
8559 of ADR_EXPRs.
8560
8561 2011-04-15 Martin Jambor <mjambor@suse.cz>
8562
8563 PR middle-end/48601
8564 * tree-emutls.c (lower_emutls_function_body): Call
8565 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
8566 result is non-NULL.
8567
8568 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8569
8570 * c-decl.c (detect_field_duplicates): Call
8571 objc_detect_field_duplicates instead of objc_get_interface_ivars.
8572
8573 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
8574
8575 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
8576 * gimple.c (gimple_asm_clobbers_memory_p): Define.
8577 * ipa-pure-const.c (check_stmt): Call it.
8578 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
8579
8580 2011-04-15 Richard Guenther <rguenther@suse.de>
8581
8582 PR tree-optimization/48290
8583 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
8584 Properly decide inhibiting propagation based on the valueized
8585 operand. Do loop-closed SSA form preserving here ...
8586 (init_copy_prop): ... not here.
8587
8588 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
8589
8590 PR target/48612
8591 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
8592 (*ieee_smax<mode>3): Likewise.
8593
8594 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8595
8596 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
8597 Replace match_operand with match_dup for the third operand in
8598 these expanders.
8599
8600 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8601
8602 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
8603 to track processing of conditionals. Update all callers.
8604 (try_combine, simplify_if_then_else): Update.
8605
8606 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
8607
8608 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
8609 -fsched-pressure.
8610
8611 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
8612
8613 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
8614 instead of match_operand for operand 3.
8615
8616 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
8617
8618 * recog.h (insn_operand_data): Add an "allows_mem" field.
8619 * genoutput.c (output_operand_data): Initialize it.
8620 * optabs.c (maybe_legitimize_operand_same_code): New function.
8621 (maybe_legitimize_operand): Use it when matching the original
8622 op->value.
8623
8624 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8625
8626 * gimplify.c: Fix issues in comments throughout.
8627 (voidify_wrapper_expr): Fix long line.
8628 (build_stack_save_restore): Likewise.
8629 (gimplify_loop_expr): Likewise.
8630 (gimplify_compound_lval): Likewise.
8631 (gimplify_init_ctor_eval): Likewise.
8632 (gimplify_modify_expr_rhs): Likewise.
8633 (omp_notice_threadprivate_variable): Likewise.
8634
8635 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
8636
8637 * cfgexpand.c (expand_call_stmt): Convert the function type to the
8638 original one if this is not a builtin function.
8639
8640 2011-04-14 Jakub Jelinek <jakub@redhat.com>
8641
8642 PR target/48605
8643 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
8644 offset it as needed based on top 2 bits in operands[3], change
8645 MEM mode to SFmode and mask those 2 bits away from operands[3].
8646
8647 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8648
8649 * c-parser.c (c_parser_objc_protocol_definition): Updated for
8650 change from objc_declare_protocols() to objc_declare_protocol().
8651
8652 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
8653
8654 * config/i386/sse.md (sse4_1): New mode attribute.
8655 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
8656 avx_blend<ssemodesuffix><avxmodesuffix> and
8657 sse4_1_blend<ssemodesuffix> using VF mode iterator.
8658 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
8659 avx_blendv<ssemodesuffix><avxmodesuffix> and
8660 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
8661 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
8662 avx_dp<ssemodesuffix><avxmodesuffix> and
8663 sse4_1_dp<ssemodesuffix> using VF mode iterator.
8664 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
8665 (sse4_1_packusdw): Merge with *avx_packusdw.
8666 (sse4_1_pblendvb): Merge with *avx_pblendvb.
8667 (sse4_1_pblendw): Merge with *avx_pblendw.
8668 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
8669 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
8670 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
8671 VF mode iterator.
8672 (sse4_1_round<ssescalarmodesuffix>): Merge with
8673 *avx_round<ssescalarmodesuffix>.
8674 (aesenc): Merge with *avx_aesenc.
8675 (aesenclast): Merge with *avx_aesenclast.
8676 (aesdec): Merge with *avx_aesdec.
8677 (aesdeclast): Merge with *avx_aesdeclast.
8678 (pclmulqdq): Merge with *pclmulqdq.
8679 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
8680 New predicate.
8681 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
8682
8683 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
8684
8685 PR middle-end/48608
8686 * cfgexpand.c (get_decl_align_unit): Renamed to ...
8687 (align_local_variable): This. Update DECL_ALIGN.
8688 (add_stack_var): Updated.
8689 (expand_one_stack_var): Likewise.
8690
8691 2011-04-14 Richard Guenther <rguenther@suse.de>
8692
8693 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
8694 Remove.
8695 (dse_initialize_block_local_data, dse_leave_block,
8696 record_voperand_set, get_stmt_uid): Likewise.
8697 (dse_possible_dead_store_p): Allow any kind of killing stmt.
8698 (dse_optimize_stmt): Remove voperand set handling code.
8699 Simplify and improve to handle any kind of killing stmt.
8700 (dse_record_phi): Remove.
8701 (dse_enter_block): Simplify.
8702 (tree_ssa_dse): Likewise.
8703 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
8704
8705 2011-04-14 Jan Hubicka <jh@suse.cz>
8706
8707 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
8708 * cgraph.h (struct inline_summary): Move to ipa-inline.h
8709 (cgraph_local_info): Remove inline_summary.
8710 * ipa-cp.c: Include ipa-inline.h.
8711 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
8712 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
8713 accesor.
8714 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
8715 (input_overwrite_node): Do not set inline summary.
8716 (input_node): Do not stream inline summary.
8717 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
8718 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
8719 growth; we do not have inline parameters computed for that anyway.
8720 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
8721 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
8722 (inline_summary_t): New type and VECtor.
8723 (debug_inline_summary, dump_inline_summaries): Declare.
8724 (inline_summary): Use VOCtor.
8725 (estimate_edge_growth): Kill hack computing call stmt size directly.
8726 * lto-section-in.c (lto_section_name): Add inline section.
8727 * ipa-inline-analysis.c: Include lto-streamer.h
8728 (node_removal_hook_holder, node_duplication_hook_holder): New holders
8729 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
8730 (inline_summary_vec): Define.
8731 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
8732 dump_inline_summaries): New functions.
8733 (estimate_function_body_sizes): Properly compute size/time of outgoing
8734 calls.
8735 (compute_inline_parameters): Alloc inline_summary; do not compute
8736 size/time of incomming calls.
8737 (estimate_edge_time): Avoid missing time summary hack.
8738 (inline_read_summary): Read inline summary info.
8739 (inline_write_summary): Write inline summary info.
8740 (inline_free_summary): Free all hooks and inline summary vector.
8741 * lto-streamer.h: Add LTO_section_inline_summary section.
8742 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
8743 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
8744
8745 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8746
8747 * tree-vectorizer.h (vect_strided_store_supported): Add a
8748 HOST_WIDE_INT argument.
8749 (vect_strided_load_supported): Likewise.
8750 (vect_permute_store_chain): Return void.
8751 (vect_transform_strided_load): Likewise.
8752 (vect_permute_load_chain): Delete.
8753 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
8754 count argument. Check that the count is a power of two.
8755 (vect_strided_load_supported): Likewise.
8756 (vect_permute_store_chain): Return void. Update after above changes.
8757 Assert that the access is supported.
8758 (vect_permute_load_chain): Likewise.
8759 (vect_transform_strided_load): Return void.
8760 * tree-vect-stmts.c (vectorizable_store): Update calls after
8761 above interface changes.
8762 (vectorizable_load): Likewise.
8763 (vect_analyze_stmt): Don't check for strided powers of two here.
8764
8765 2011-04-14 Richard Guenther <rguenther@suse.de>
8766
8767 PR tree-optimization/48590
8768 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8769 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8770 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
8771 BUILT_IN_STACK_SAVE.
8772 * tree-ssa-dce.c (propagate_necessity): Handle
8773 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
8774
8775 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8776
8777 * c-parser.c (c_parser_objc_class_declaration): Updated call to
8778 objc_declare_class.
8779
8780 2011-04-14 Richard Guenther <rguenther@suse.de>
8781
8782 * tree.h (get_object_alignment_1): Declare.
8783 * builtins.c (get_object_alignment_1): Split out worker from ...
8784 (get_object_alignment): ... here.
8785 * fold-const.c (get_pointer_modulus_and_residue): Use
8786 get_object_alignment_1.
8787
8788 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8789
8790 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
8791 type parameter.
8792 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
8793 parameter. Generalise code to handle arrays as well as vectors.
8794 (vect_setup_realignment): Update accordingly.
8795 * tree-vect-stmts.c (vectorizable_store): Likewise.
8796 (vectorizable_load): Likewise.
8797
8798 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8799
8800 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
8801 within the per-copy loop.
8802
8803 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8804
8805 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
8806 in the dump file.
8807
8808 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
8809
8810 * doc/options.texi (Negative): Explicitly mention that the
8811 Negative chain must be circular.
8812
8813 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
8814
8815 * function.h (block_chainon): Declare.
8816 * function.c (block_chainon): Define.
8817
8818 2011-04-14 Anatoly Sokolov <aesok@post.ru>
8819 Eric Weddington <eric.weddington@atmel.com>
8820 Georg-Johann Lay <avr@gjlay.de>
8821
8822 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
8823 New Includes
8824 (avr_init_builtins, avr_expand_builtin,
8825 avr_expand_delay_cycles, avr_expand_unop_builtin,
8826 avr_expand_binop_builtin ): New functions.
8827 (avr_builtin_id): New enum
8828 (struct avr_builtin_description): New struct
8829 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
8830 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
8831
8832 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
8833 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
8834 UNSPECV_DELAY_CYCLES): new enumeration values
8835 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
8836 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
8837 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
8838 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
8839 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
8840 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
8841 "fmulsu"): New insns
8842
8843 * config/avr/avr-c.c: fix line endings
8844 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
8845 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
8846 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
8847 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
8848 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
8849
8850 * doc/extend.texi (AVR Built-in Functions): New node
8851 (Target Builtins): Add documentation of AVR
8852 built-in functions.
8853
8854 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
8855
8856 PR target/44643
8857 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
8858 alone. Error if non-const data has attribute progmem.
8859
8860 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8861
8862 * tree.h (struct tree_constructor): Include tree_typed instead of
8863 tree_common.
8864 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
8865 TS_TYPED instead of TS_COMMON.
8866
8867 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8868
8869 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
8870 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
8871 (sse2_psadbw): Merge with *avx_psadbw.
8872 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
8873 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
8874 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
8875 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
8876 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
8877 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
8878 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
8879 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
8880 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
8881 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
8882 (ssse3_palignrti): Merge with *avx_palignrti.
8883
8884 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8885
8886 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
8887 * tree-ssanames.c (fini_ssanames): VEC_free it.
8888 (make_ssa_name_fn): Update for VECness of free_ssanames.
8889 (release_ssa_name, release_dead_ssa_names): Likewise.
8890 * tree.h (struct tree_ssa_name): Include tree_typed instead of
8891 tree_common.
8892 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
8893 TS_TYPED instead of TS_COMMON.
8894
8895 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8896
8897 * postreload-gcse.c (gcse_after_reload_main): Add calls to
8898 statistics_counter_event.
8899 * tree-ssa-copyrename.c (stats): Define.
8900 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
8901 statistics_counter_event.
8902 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
8903 (bswap_stats, widen_mul_stats): Define.
8904 (insert_reciprocals): Increment rdivs_inserted.
8905 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
8906 rfuncs_inserted. Add calls to statistics_counter_event.
8907 (execute_cse_sincos_1): Increment inserted.
8908 (execute_cse_sincos): Zeroize sincos_stats. Add call to
8909 statistics_counter_event.
8910 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
8911 of bswap_stats. Add calls to statistics_counter_event.
8912 (convert_mult_to_widen): Increment widen_mults_inserted.
8913 (convert_plusminus_to_widen): Increment maccs_inserted.
8914 (convert_mult_to_fma): Increment fmas_inserted.
8915 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
8916 calls to statistics_counter_event.
8917
8918 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
8919
8920 PR rtl-optimization/48455
8921 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
8922 `temp_costs->mem_cost'.
8923
8924 2011-04-13 Jan Hubicka <jh@suse.cz>
8925
8926 * ipa-inline.h: New file.
8927 * ipa-inline-analysis.c: New file. Broken out of ...
8928 * ipa-inline.c: ... this file; update toplevel comment;
8929 include ipa-inline.h
8930 (inline_summary): Move to ipa-inline.h
8931 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
8932 ipa-inline-analysis.c.
8933 (cgraph_estimate_time_after_inlining): Rename to
8934 estiamte_time_after_inlining; move to ipa-inline-analysis.c
8935 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
8936 to estimate_edge_growth.
8937 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
8938 rename to estimate_size_after_inlining.
8939 (cgraph_mark_inline_edge): Update for new naming convention.
8940 (cgraph_check_inline_limits): Likewise.
8941 (cgraph_edge_badness): Likewise.
8942 (cgraph_decide_recursive_inlining): Likewise.
8943 (cgraph_decide_inlining_of_small_functions): Likewise.
8944 (cgraph_decide_inlining_incrementally): Likewise.
8945 (cgraph_estimate_growth): Rename to estimate_growth; move to
8946 ipa-inline-analysis.c.
8947 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
8948 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
8949 (compute_inline_parameters): Likewise.
8950 (compute_inline_parameters_for_current): Likewise.
8951 (pass_inline_parameters): Likewise.
8952 (inline_indirect_intraprocedural_analysis): Likewise.
8953 (analyze_function): Rename to inline_analyze_function; likewise.
8954 (add_new_function): Move to ipa-inline-analysis.c.
8955 (inline_generate_summary): Likewise.
8956 (inline_read_summary): Likewise.
8957 (inline_write_summary): Likewise.
8958 * Makefile.in (ipa-inline-analysis.c): New file.
8959
8960 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8961
8962 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
8963 * configure: Regenerate.
8964
8965 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
8966
8967 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
8968 instead of tree_common.
8969 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
8970 Likewise.
8971 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
8972 TS_TYPED rather than TS_COMMON.
8973 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
8974
8975 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
8976
8977 PR target/45263
8978 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
8979 r20 around calls of __tablejump_elpm__
8980
8981 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8982
8983 PR middle-end/48591
8984 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
8985 NULL.
8986 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
8987
8988 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
8989
8990 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
8991 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
8992 (cfi_vec): New typedef.
8993 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
8994 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
8995 (cie_cfi_vec): New static variable.
8996 (cie_cfi_head): Delete.
8997 (add_cfi): Accept a cfi_vec * as first argument. All callers and
8998 declaration changed. Use vector rather than list operations.
8999 (new_cfi): Don't initialize the dw_cfi_next field.
9000 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
9001 rather than list operations.
9002 (lookup_cfa): Use vector rather than list operations.
9003 (output_cfis): New argument upto. Accept a cfi_vec rather than
9004 a dw_cfi_ref list head as argument. All callers changed.
9005 Iterate over the vector using upto as a maximum index.
9006 (output_all_cfis): New static function.
9007 (output_fde): Use vector rather than list operations. Use the
9008 new upto argument for output_cfis rather than manipulating a
9009 list.
9010 (dwarf2out_begin_prologue): Change initializations to match
9011 new struct members.
9012 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
9013 from the vector length rather than searching for the end of a list.
9014 Use output_all_cfis.
9015 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
9016
9017 2011-04-13 Nick Clifton <nickc@redhat.com>
9018
9019 * config/rx/rx.md (movmemsi): Do not use this pattern when
9020 volatile pointers are involved.
9021
9022 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
9023
9024 * config/i386/sse.md (pinsrbits): Remove.
9025 (sse2_packsswb): Merge with *avx_packsswb.
9026 (sse2_packssdw): Merge with *avx_packssdw.
9027 (sse2_packuswb): Merge with *avx_packuswb.
9028 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
9029 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
9030 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
9031 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
9032 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
9033 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
9034 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
9035 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
9036 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
9037 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
9038 (sse2_loadld): Merge with *avx_loadld.
9039 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
9040 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
9041 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
9042 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
9043 (vec_concatv2di): Merge with *vec_concatv2di_avx.
9044
9045 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
9046
9047 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
9048 calling TREE_CHAIN.
9049 * print-tree.c (print_node): Likewise.
9050 * tree-inline.c (copy_tree_r): Likewise.
9051 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
9052 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
9053 instead of TS_COMMON.
9054 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
9055 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
9056 (copy_node_stat): Zero TREE_CHAIN only if necessary.
9057 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
9058 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
9059 ...and these...
9060 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
9061 * tree.h: ...here.
9062 (TREE_CHAIN): Check for a TS_COMMON structure.
9063 (TREE_TYPE): Check for a TS_TYPED structure.
9064
9065 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
9066
9067 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
9068 cgraph_get_create_node instead of cgraph_node.
9069
9070 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9071
9072 * c-parser.c (c_parser_initelt): Updated call to
9073 objc_build_message_expr.
9074 (c_parser_postfix_expression): Likewise.
9075
9076 2011-04-12 Kai Tietz <ktietz@redhat.com>
9077
9078 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
9079 MASK_MS_BITFIELD_LAYOUT bit.
9080
9081 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9082
9083 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
9084 assert it is always true.
9085 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
9086 moves.
9087
9088 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
9089
9090 * c-parser.c (c_lex_one_token): Rewritten conditional used when
9091 compiling Objective-C to be more efficient.
9092
9093 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
9094
9095 * opts-common.c (decode_cmdline_options_to_array): Remove variable
9096 argv_copied.
9097
9098 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9099
9100 * recog.h, genoutput.c, optabs.c: Revert last patch.
9101
9102 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9103
9104 PR target/48090
9105 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
9106
9107 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9108
9109 * recog.h (insn_operand_data): Add an "allows_mem" field.
9110 * genoutput.c (output_operand_data): Initialize it.
9111 * optabs.c (maybe_legitimize_operand_same_code): New function.
9112 (maybe_legitimize_operand): Use it when matching the original
9113 op->value.
9114
9115 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9116
9117 * genpreds.c (process_define_predicate): Move most processing
9118 to gensupport.c. Continue to validate the expression.
9119 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
9120 (process_define_predicate): Move processing to gensupport.c.
9121 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
9122 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
9123 (compute_predicate_codes): Moved from genrecog.c. Add lineno
9124 argument.
9125 (valid_predicate_name_p): New function, split out from old
9126 genpreds.c:process_define_predicate.
9127 (process_define_predicate): New function, combining code from
9128 old genpreds.c and genrecog.c functions.
9129 (process_rtx): Call it for DEFINE_PREDICATE and
9130 DEFINE_SPECIAL_PREDICATE.
9131
9132 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
9133
9134 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
9135 size of a '%A' memory reference.
9136 (T_DREG, T_QREG): New neon_builtin_type_bits.
9137 (arm_init_neon_builtins): Assert that the load and store operands
9138 are neon_struct_operands.
9139 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
9140 (NEON_ARG_MEMORY): New builtin_arg.
9141 (neon_dereference_pointer): New function.
9142 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
9143 Handle NEON_ARG_MEMORY.
9144 (arm_expand_neon_builtin): Update after above interface changes.
9145 Use NEON_ARG_MEMORY for loads and stores.
9146 * config/arm/predicates.md (neon_struct_operand): New predicate.
9147 * config/arm/iterators.md (V_two_elem): Tweak formatting.
9148 (V_three_elem): Use BLKmode for accesses that have no associated mode.
9149 (V_four_elem): Tweak formatting.
9150 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
9151 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
9152 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
9153 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
9154 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
9155 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
9156 (neon_vst4<mode>): Replace pointer operand with a memory operand.
9157 Use %A in the output template.
9158 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
9159 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
9160 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
9161 the width of the memory access. Remove post-increment.
9162 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
9163
9164 2011-04-12 Nick Clifton <nickc@redhat.com>
9165
9166 * config/v850/v850.c (expand_prologue): Do not use the CALLT
9167 instruction for interrupt handlers if the target is the basic V850
9168 architecture.
9169 (expand_epilogue): Likewise.
9170
9171 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9172
9173 PR rtl-optimization/48549
9174 * combine.c (propagate_for_debug): Also stop after BB_END of
9175 this_basic_block. Process LAST and just stop processing after it.
9176 (combine_instructions): If last_combined_insn has been deleted,
9177 set last_combined_insn to its PREV_INSN.
9178
9179 2011-04-12 Richard Guenther <rguenther@suse.de>
9180
9181 PR tree-optimization/46076
9182 * gimple.h (struct gimple_statement_call): Add fntype field.
9183 (gimple_call_fntype): Adjust.
9184 (gimple_call_set_fntype): New function.
9185 * gimple.c (gimple_build_call_1): Set the call function type.
9186 * gimplify.c (gimplify_call_expr): Preserve the function
9187 type the frontend used for the call.
9188 (gimplify_modify_expr): Likewise.
9189 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
9190 function type.
9191 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
9192 function type.
9193 * tree-ssa.c (useless_type_conversion_p): Function pointer
9194 conversions are useless.
9195
9196 2011-04-12 Martin Jambor <mjambor@suse.cz>
9197
9198 * cgraph.h (cgraph_node): Remove function declaration.
9199 (cgraph_create_node): Declare.
9200 (cgraph_get_create_node): Likewise.
9201 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
9202 Updated all callers.
9203 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
9204 the decl does not already exist. Call cgraph_get_create_node instead
9205 of cgraph_node.
9206 (cgraph_get_create_node): New function.
9207 (cgraph_same_body_alias): Update comment.
9208 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
9209 assert it does not return NULL.
9210 (cgraph_update_edges_for_call_stmt): Likewise.
9211 (cgraph_clone_edge): Likewise.
9212 (cgraph_create_virtual_clone): Likewise.
9213 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
9214 instead of cgraph_node.
9215 (cgraph_add_new_function): Call cgraph_create_node or
9216 cgraph_get_create_node instead of cgraph_node.
9217 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
9218 instead of cgraph_node.
9219 (record_eh_tables): Likewise.
9220 (mark_address): Likewise.
9221 (mark_load): Likewise.
9222 (build_cgraph_edges): Call cgraph_get_create_node instead
9223 of cgraph_node.
9224 (rebuild_cgraph_edges): Likewise.
9225 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
9226 instead of cgraph_node.
9227 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
9228 cgraph_node.
9229 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
9230 cgraph_create_node instead of cgraph_node.
9231 * c-decl.c (finish_function): Call cgraph_get_create_node instead
9232 of cgraph_node.
9233 * lto-cgraph.c (input_node): Likewise.
9234 * lto-streamer-in.c (input_function): Likewise.
9235 * varasm.c (mark_decl_referenced): Likewise.
9236 (assemble_alias): Likewise.
9237
9238 2011-04-12 Martin Jambor <mjambor@suse.cz>
9239
9240 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
9241 instead of cgraph_node and assert it does not return NULL.
9242 * lto-streamer-in.c (lto_read_body): Likewise.
9243 * omp-low.c (new_omp_context): Likewise.
9244 (create_task_copyfn): Likewise.
9245 * tree-emutls.c (lower_emutls_function_body): Likewise.
9246 * matrix-reorg.c (transform_allocation_sites): Likewise.
9247
9248 2011-04-12 Jakub Jelinek <jakub@redhat.com>
9249
9250 PR c/48552
9251 * c-typeck.c (build_asm_expr): Error out on attempts to use
9252 void type outputs or inputs for constraints that allow reg or
9253 don't allow memory.
9254
9255 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
9256 Richard Earnshaw <rearnsha@arm.com>
9257
9258 PR target/48250
9259 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
9260 to use sign-magnitude offsets. Reject unsupported unaligned
9261 cases. Add detailed description in comments.
9262 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
9263 condition from TARGET_32BIT to TARGET_ARM.
9264
9265 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
9266
9267 * tree.h (struct typed_tree): New.
9268 (struct tree_common): Include it instead of tree_base.
9269 (TREE_TYPE): Update for new location of type field.
9270 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
9271 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
9272 (union tree_node): Add typed field.
9273 * treestruct.def (TS_TYPED): New.
9274 * lto-streamer.c (check_handled_ts_structures): Handle it.
9275 * tree.c (MARK_TS_TYPED): New macro.
9276 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
9277
9278 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
9279
9280 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
9281 (force_nonfallthru): Do not alter the loop nest if no basic block
9282 was created.
9283
9284 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9285
9286 * config/i386/sse.md (VI): New mode iterator.
9287 (SSEMODEI): Remove.
9288 (AVX256MODEI): Ditto.
9289 (AVXMODEF4P): Ditto.
9290 (avxvecpsmode): Ditto.
9291 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
9292 (sse2_andnot<mode>3): New expander.
9293 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
9294 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
9295 (<any_logic:code><mode>3): Use VI mode iterator.
9296 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
9297 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
9298 (*andnottf3): Handle AVX three-operand constraints.
9299 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
9300
9301 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9302 Robert Millan <rmh@gnu.org>
9303
9304 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
9305 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
9306 GNU_USER_DYNAMIC_LINKER64): Define.
9307 (REG_NAME): Don't undefine.
9308 (MD_UNWIND_SUPPORT): Undefine.
9309 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
9310 (REG_NAME): Don't undefine.
9311 (MD_UNWIND_SUPPORT): Undefine.
9312 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
9313
9314 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9315
9316 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
9317 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
9318
9319 2011-04-11 Xinliang David Li <davidxl@google.com>
9320
9321 * value-profile.c (check_ic_target): New function.
9322 (gimple_ic_transform): Sanity check indirect call target.
9323 * gimple-low.c (gimple_check_call_args): Interface change.
9324 (gimple_check_call_matching_types): New function.
9325 * tree-inline.c (tree_can_inline_p): Call new function.
9326
9327 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
9328
9329 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
9330 tree-pretty-print.h & realmpfr.h.
9331
9332 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
9333
9334 PR middle-end/48464
9335 * ira.c (setup_pressure_classes): Fix typo in loop condition.
9336 (setup_allocno_and_important_classes): Ditto.
9337
9338 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9339
9340 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
9341 GNU_USER_DYNAMIC_LINKER.
9342 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
9343 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9344 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
9345 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9346 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9347 GNU_USER_TARGET_OS_CPP_BUILTINS.
9348 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
9349 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9350 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9351 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9352 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
9353 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9354 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9355 GNU_USER_TARGET_OS_CPP_BUILTINS.
9356 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9357 GNU_USER_DYNAMIC_LINKER.
9358 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9359 GNU_USER_TARGET_OS_CPP_BUILTINS.
9360 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
9361 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9362 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
9363 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9364 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
9365 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
9366 GNU_USER_DYNAMIC_LINKER64): Remove.
9367 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
9368 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9369 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9370 GNU_USER_DYNAMIC_LINKER.
9371 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9372 GNU_USER_TARGET_OS_CPP_BUILTINS.
9373 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9374 GNU_USER_TARGET_OS_CPP_BUILTINS.
9375 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
9376 to GNU_USER_TARGET_OS_CPP_BUILTINS.
9377 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
9378 GNU_USER_TARGET_OS_CPP_BUILTINS.
9379 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
9380 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
9381 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9382 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
9383 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9384 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9385 GNU_USER_DYNAMIC_LINKER.
9386 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
9387 GNU_USER_TARGET_OS_CPP_BUILTINS.
9388 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
9389 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9390 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9391 GNU_USER_DYNAMIC_LINKER.
9392 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9393 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9394 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
9395 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9396 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9397 GNU_USER_DYNAMIC_LINKER.
9398 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
9399 GNU_USER_DYNAMIC_LINKERN32.
9400 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
9401 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
9402 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
9403 GNU_USER_DYNAMIC_LINKER32.
9404 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
9405 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9406 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9407 GNU_USER_DYNAMIC_LINKER.
9408 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
9409 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9410 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
9411 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9412 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9413 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
9414 GNU_USER_DYNAMIC_LINKER32.
9415 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
9416 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
9417 GNU_USER_DYNAMIC_LINKER.
9418 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
9419 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9420 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9421 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
9422 GNU_USER_DYNAMIC_LINKER64.
9423 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
9424 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9425 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9426 GNU_USER_DYNAMIC_LINKER.
9427 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
9428 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9429 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
9430 GNU_USER_DYNAMIC_LINKER.
9431 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
9432 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9433 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
9434 GNU_USER_DYNAMIC_LINKER32.
9435 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9436 GNU_USER_DYNAMIC_LINKER64.
9437 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
9438 GNU_USER_DYNAMIC_LINKER64.
9439 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
9440 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9441 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
9442 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
9443 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
9444
9445 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9446
9447 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
9448 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
9449 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
9450 GNU_USER_DYNAMIC_LINKER.
9451 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9452 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
9453 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
9454 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
9455 GNU_USER_DYNAMIC_LINKER64.
9456 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
9457 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
9458 GNU_USER_LINK_EMULATION.
9459 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
9460 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
9461 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
9462 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
9463 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
9464 CPP_SPEC, CC1_SPEC): Remove.
9465 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
9466 (GNU_USER_DYNAMIC_LINKER): Define.
9467 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
9468 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
9469 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
9470 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
9471 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
9472 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
9473 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9474 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
9475 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
9476 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
9477 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
9478 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
9479 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
9480 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
9481 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
9482 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
9483 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9484 GNU_USER_DYNAMIC_LINKER.
9485 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9486 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9487 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9488 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9489 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
9490 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
9491 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
9492 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
9493 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
9494 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
9495
9496 2011-04-11 Kai Tietz <ktietz@redhat.com>
9497
9498 PR target/9601
9499 PR target/11772
9500 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
9501 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
9502 comment.
9503 (ix86_is_msabi_thiscall): Removed.
9504 (ix86_is_type_thiscall): Likewise.
9505 (ix86_get_callcvt): New function.
9506 (ix86_comp_type_attributes): Simplify check.
9507 (ix86_function_regparm): Use ix86_get_callcvt for calling
9508 convention attribute checks.
9509 (ix86_return_pops_args): Likewise.
9510 (ix86_static_chain): Likewise.
9511 (x86_this_parameter): Likewise.
9512 (x86_output_mi_thunk): Likewise.
9513 (ix86_function_type_abi): Optimize check for types without attributes.
9514 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
9515 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
9516 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
9517 by flag-values.
9518 (IX86_BASE_CALLCVT): Helper macro.
9519 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9520 Use ix86_get_callcvt for calling convention attribute checks and avoid
9521 symbol-decoration for stdcall in TARGET_RTD case.
9522 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
9523 Likewise.
9524 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
9525 for declaration.
9526
9527 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
9528
9529 * config/i386/sse.md (VI_128): New mode iterator.
9530 (VI12_128): Rename from SSEMODE12.
9531 (VI14_128): Rename from SSEMODE14.
9532 (VI124_128): New mode iterator.
9533 (VI24_128): Rename from SSEMODE248.
9534 (VI248_128): Rename from SSEMODE248.
9535 (SSEMODE124C8): Remove.
9536 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9537 (*sse2_<plusminus_insn><mode>3): Merge with
9538 *avx_<plusminus_insn><mode>3.
9539 (*mulv8hi3): Merge with *avx_mulv8hi3.
9540 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
9541 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
9542 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
9543 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
9544 (ashr<mode>3): Merge with *avx_ashr<mode>3.
9545 (lshr<mode>3): Merge with *avx_lshr<mode>3.
9546 (ashl<mode>3): Merge with *avx_ashl<mode>3.
9547 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
9548 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
9549 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9550 (*<smaxmin:code>v8hi3): Ditto.
9551 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
9552 (*<smaxmin:code>v16qi3): Ditto.
9553 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
9554 (*sse2_eq<mode>3): Ditto.
9555 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
9556 (*sse2_gt<mode>3): Ditto.
9557 (vcondv2di): Split out of vcond<mode>.
9558 (vconduv2di): Split out of vcondu<mode>.
9559
9560 2011-04-11 Richard Guenther <rguenther@suse.de>
9561
9562 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
9563 before calling tree_low_cst.
9564
9565 2011-04-11 Richard Guenther <rguenther@suse.de>
9566
9567 * stor-layout.c (layout_type): Compute all array index size operations
9568 in the original type.
9569 (initialize_sizetypes): Add comment.
9570 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
9571
9572 2011-04-11 Joseph Myers <joseph@codesourcery.com>
9573
9574 * common.opt (Tbss=, Tdata=, Ttext=): New options.
9575
9576 2011-04-11 Martin Jambor <mjambor@suse.cz>
9577
9578 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
9579 of cgraph_node, handle NULL return value.
9580 (cgraph_global_info): Likewise.
9581 (cgraph_rtl_info): Likewise.
9582 * tree-inline.c (estimate_num_insns): Likewise.
9583 * gimplify.c (unshare_body): Likewise.
9584 (unvisit_body): Likewise.
9585 (gimplify_body): Likewise.
9586 * predict.c (optimize_function_for_size_p): Likewise.
9587 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9588 (call_may_clobber_ref_p_1): Likewise.
9589 * varasm.c (function_section_1): Likewise.
9590 (assemble_start_function): Likewise.
9591
9592 2011-04-11 Martin Jambor <mjambor@suse.cz>
9593
9594 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
9595 of cgraph_node.
9596 * final.c (rest_of_clean_state): Likewise.
9597 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
9598 * passes.c (pass_init_dump_file): Likewise.
9599 (execute_all_ipa_transforms): Likewise.
9600 (function_called_by_processed_nodes_p): Likewise.
9601 * predict.c (maybe_hot_frequency_p): Likewise.
9602 (probably_never_executed_bb_p): Likewise.
9603 (compute_function_frequency): Likewise.
9604 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
9605 (unnest_nesting_tree_1): Likewise.
9606 (lower_nested_functions): Likewise.
9607 * tree-optimize.c (execute_fixup_cfg): Likewise.
9608 (tree_rest_of_compilation): Likewise.
9609 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
9610 * tree-sra.c (ipa_early_sra): Likewise.
9611 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
9612 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
9613 * ipa.c (record_cdtor_fn): Likewise.
9614 * ipa-inline.c (cgraph_early_inlining): Likewise.
9615 (compute_inline_parameters_for_current): Likewise.
9616 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9617 * ipa-pure-const.c (local_pure_const): Likewise.
9618 * ipa-split.c (split_function): Likewise.
9619 (execute_split_functions): Likewise.
9620 * cgraphbuild.c (build_cgraph_edges): Likewise.
9621 (rebuild_cgraph_edges): Likewise.
9622 (cgraph_rebuild_references): Likewise.
9623 (remove_cgraph_callee_edges): Likewise.
9624 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
9625 (verify_cgraph_node): Likewise.
9626 (cgraph_analyze_functions): Likewise.
9627 (cgraph_preserve_function_body_p): Likewise.
9628 (save_inline_function_body): Likewise.
9629 (save_inline_function_body): Likewise.
9630 * tree-inline.c (copy_bb): Likewise.
9631 (optimize_inline_calls): Likewise.
9632
9633 2011-04-11 Martin Jambor <mjambor@suse.cz>
9634
9635 PR tree-optimization/48195
9636 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
9637 ipa_check_create_edge_args.
9638 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
9639 ipa_check_create_edge_args.
9640 * ipa-inline.c (inline_generate_summary): Do not call
9641 ipa_check_create_node_params and ipa_check_create_edge_args.
9642 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
9643 ipa_check_create_edge_args.
9644
9645 2011-04-09 Anatoly Sokolov <aesok@post.ru>
9646
9647 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
9648 instead of loop.
9649 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
9650 * function.c (record_hard_reg_sets): Likewise.
9651 * ira.c (compute_regs_asm_clobbered): Likewise.
9652 * sched-deps.c (sched_analyze_1): Likewise.
9653 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
9654
9655 2011-04-09 Xinliang David Li <davidxl@google.com>
9656
9657 PR tree-optimization/PR48484
9658 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
9659 has_valid_pred lazily
9660
9661 2011-04-09 Duncan Sands <baldrick@free.fr>
9662
9663 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
9664
9665 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
9666
9667 * combine.c (combine_validate_cost): Adjust comments. Set registered
9668 cost of I0 to zero at the end, if any.
9669
9670 2011-04-08 Xinliang David Li <davidxl@google.com>
9671
9672 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
9673 to insane profile data.
9674
9675 2011-04-08 Xinliang David Li <davidxl@google.com>
9676
9677 * ipa-cp.c (ipcp_update_profiling): Correct
9678 negative scale factor due to insane profile data.
9679
9680 2011-04-08 Xinliang David Li <davidxl@google.com>
9681
9682 * final.c (dump_basic_block_info): New function.
9683 (final): Dump basic block.
9684 (final_scan_insn): Remove old dump.
9685
9686 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
9687
9688 PR target/47829
9689 * config.gcc (i386-*-freebsd): Disable unwind table generation for
9690 crtbegin/crtend.
9691
9692 2011-04-08 Michael Matz <matz@suse.de>
9693
9694 PR middle-end/48389
9695 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
9696 functions.
9697 (rebuild_jump_labels): Call rebuild_jump_labels_1.
9698 * rtl.h (rebuild_jump_labels_chain): Declare.
9699 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
9700 insns inserted on edges.
9701
9702 2011-04-08 Joseph Myers <joseph@codesourcery.com>
9703
9704 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
9705 * config/arm/arm-arches.def: New.
9706 * config/arm/arm-opts.h: New.
9707 * config/arm/genopt.sh: New.
9708 * config/arm/arm-tables.opt: New (generated).
9709 * config/arm/arm.c (arm_handle_option, arm_target_help,
9710 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
9711 (all_architectures): Get most table contents from arm-arches.def.
9712 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
9713 arm_selected_tune here.
9714 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
9715 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
9716 (march=, mcpu=, mtune=): Use Enum and Var.
9717 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
9718 (arm.o): Update dependencies.
9719
9720 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
9721
9722 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
9723 of header_file.
9724 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
9725 (write_typed_alloc_defns): Likewise.
9726 (main): Calls write_typed_alloc_defns with output_header.
9727
9728 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
9729
9730 PR inline-asm/48435
9731 * ira-color.c (setup_profitable_hard_regs): Add comments.
9732 Don't take prohibited hard regs into account.
9733 (setup_conflict_profitable_regs): Rename to
9734 get_conflict_profitable_regs.
9735 (check_hard_reg_p): Check prohibited hard regs.
9736
9737 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
9738
9739 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
9740 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
9741 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
9742
9743 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9744
9745 PR target/48366
9746 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
9747 move from floating point to shift amount register.
9748 (emit_move_sequence): Remove secondary reload support for floating
9749 point to shift amount amount register copies.
9750 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
9751 amount register copies.
9752 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
9753 register, return false if mode isn't a scalar integer mode.
9754 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
9755
9756 2011-04-08 Richard Guenther <rguenther@suse.de>
9757
9758 * gimple.c (gimple_call_flags): Remove kludge.
9759
9760 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9761
9762 * sel-sched.c (sel_region_init): Move call to
9763 sel_setup_region_sched_flags after setup_current_loop_nest.
9764
9765 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
9766
9767 PR rtl-optimization/48272
9768 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
9769 init_insn_reg_pressure_info. Adjust a caller.
9770 * sched-int.h (init_insn_reg_pressure_info): Declare.
9771 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
9772 when sched-pressure is enabled.
9773
9774 2011-04-08 Richard Guenther <rguenther@suse.de>
9775
9776 * gimple.c (gimple_set_modified): Do not queue calls to
9777 MODIFIED_NORETURN_CALLS here ...
9778 * tree-ssa-operands.c (update_stmt_operands): ... but here.
9779
9780 2011-04-08 Richard Guenther <rguenther@suse.de>
9781
9782 PR lto/48467
9783 * toplev.c (lang_dependent_init): Do not open asm_out_file
9784 in WPA mode, nor perform debug machinery initialization.
9785 (finalize): Do not unlink asm_out_file in WPA mode.
9786
9787 2011-04-08 Richard Guenther <rguenther@suse.de>
9788
9789 * gimple.h (gimple_call_fntype): New function.
9790 (gimple_call_return_type): Use it.
9791 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
9792 * gimple-low.c (gimple_check_call_args): Likewise.
9793 * gimple.c (gimple_call_flags): Likewise.
9794 (gimple_call_arg_flags): Likewise.
9795 (gimple_call_return_flags): Likewise.
9796 * tree-cfg.c (verify_gimple_call): Likewise.
9797 (do_warn_unused_result): Likewise.
9798 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
9799 * value-prof.c (gimple_ic_transform): Fix fndecl check.
9800
9801 2011-04-08 Dmitry Melnik <dm@ispras.ru>
9802
9803 PR rtl-optimization/48235
9804 * sel-sched.c (code_motion_process_successors): Recompute the last
9805 insn in basic block if control flow changed.
9806 (code_motion_path_driver): Ditto. Recompute the first insn as well.
9807 Update condition for ilist_remove.
9808
9809 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9810
9811 PR rtl-optimization/48302
9812 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
9813 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
9814 it to record added preheader blocks.
9815 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
9816 on to sel_add_loop_preheaders.
9817 (sel_region_init): Move call to setup_current_loop_nest after
9818 sel_init_bbs.
9819
9820 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9821
9822 PR target/48273
9823 * cfgloop.h (loop_has_exit_edges): New helper.
9824 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
9825 non-clonable.
9826 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
9827 that have no exit edges.
9828
9829 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
9830
9831 PR rtl-optimization/48442
9832 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
9833 all callers. Adjust assert.
9834
9835 2011-04-08 Jakub Jelinek <jakub@redhat.com>
9836
9837 PR tree-optimization/48377
9838 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
9839 is_packed to true even for types with smaller TYPE_ALIGN than
9840 TYPE_SIZE.
9841
9842 2011-04-08 Richard Guenther <rguenther@suse.de>
9843
9844 PR bootstrap/48513
9845 * doc/tm.texi: Re-generate.
9846
9847 2011-04-08 Wei Guozhi <carrot@google.com>
9848
9849 PR target/47855
9850 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
9851 * config/arm/arm.c (arm_attr_length_push_multi): New function.
9852 * config/arm/arm.md (*push_multi): Change the length computation to
9853 call a C function.
9854
9855 2011-04-08 Anatoly Sokolov <aesok@post.ru>
9856
9857 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
9858 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
9859 * doc/tm.texi: Regenerate.
9860 * system.h (ASM_OUTPUT_BSS): Poison.
9861 * varasm.c (asm_output_bss): Remove function.
9862 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
9863
9864 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
9865 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
9866 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
9867 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9868 Likewise.
9869 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9870 Likewise.
9871 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
9872 Likewise.
9873 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9874
9875 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9876
9877 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
9878 EnumValue lines.
9879
9880 2011-04-07 Joseph Myers <joseph@codesourcery.com>
9881
9882 * config/m68k/m68k.c (m68k_handle_option): Don't handle
9883 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
9884 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
9885 OPT_mcpu32.
9886 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9887 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
9888 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
9889 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
9890 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
9891 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
9892 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9893 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
9894 options. Don't map other m68k options manually. Don't handle
9895 old-style options as canonical.
9896 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
9897 * doc/install.texi (m68k-*-*): Document binutils version requirement.
9898
9899 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
9900
9901 * basic-block.h (force_nonfallthru): Move to...
9902 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
9903 (force_nonfallthru): ...here.
9904 * cfghooks.c (force_nonfallthru): New function.
9905 * cfgrtl.c (force_nonfallthru): Rename into...
9906 (rtl_force_nonfallthru): ...this.
9907 (commit_one_edge_insertion): Do not set AUX field.
9908 (commit_edge_insertions): Do not discover new basic blocks.
9909 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
9910 (cfg_layout_rtl_cfg_hooks): Likewise.
9911 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
9912 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
9913 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
9914
9915 2011-04-07 Anatoly Sokolov <aesok@post.ru>
9916
9917 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9918 Remove macros.
9919
9920 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
9921
9922 * config/i386/sse.md: Update copyright year.
9923 (avxcvtvecmode): Remove.
9924 (sse_movhlps): Merge with *avx_movhlps.
9925 (sse_movlhps): Merge with *avx_movlhps.
9926 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
9927 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
9928 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
9929 (sse_loadhps): Merge with *avx_loadhps.
9930 (sse_storelps): Merge with *avx_storelps.
9931 (sse_loadlps): Merge with *avx_loadlps.
9932 (sse_movss): Merge with *avx_movss.
9933 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
9934 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
9935 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
9936 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
9937 (vec_set<mode>_0): Ditto.
9938 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
9939 (sse4_1_insertps): Merge with *avx_insertps.
9940 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
9941 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
9942 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
9943 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
9944 (sse2_storehpd): Merge with *avx_storehpd.
9945 (sse2_loadhpd): Merge with *avx_loadhpd.
9946 (sse2_loadlpd): Merge with *avx_loadlpd.
9947 (sse2_movsd): Merge with *avx_movsd.
9948 (*vec_concatv2df): Merge with *vec_concatv2df.
9949
9950 2011-04-07 Jakub Jelinek <jakub@redhat.com>
9951
9952 PR debug/48343
9953 * combine.c (combine_instructions): Add last_combined_insn,
9954 update it if insn is after it, pass it to all try_combine calls.
9955 (try_combine): Add last_combined_insn parameter, pass it instead of
9956 i3 to propagate_for_debug.
9957
9958 2011-04-07 Nick Clifton <nickc@redhat.com>
9959
9960 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
9961 to handle MDR <-> data register transfers.
9962 (movhi_internal): Likewise.
9963
9964 2011-04-07 Alan Modra <amodra@gmail.com>
9965
9966 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
9967 previous stack info.
9968
9969 2011-04-07 Tom de Vries <tom@codesourcery.com>
9970
9971 PR target/43920
9972 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
9973 flow_find_cross_jump. Swap variables to implement backward replacement.
9974 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
9975
9976 2011-04-07 Tom de Vries <tom@codesourcery.com>
9977
9978 PR target/43920
9979 * cfgcleanup.c (walk_to_nondebug_insn): New function.
9980 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
9981 and bb2.
9982 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
9983 src1 or src2. Redirect edges to the last basic block. Update
9984 frequency and count on multiple basic blocks in case of fallthru.
9985
9986 2011-04-07 Tom de Vries <tom@codesourcery.com>
9987
9988 PR target/43920
9989 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
9990 function.
9991 (old_insns_match_p): Change return type. Replace return false/true
9992 with return dir_none/dir_both. Use can_replace_by.
9993 (flow_find_cross_jump): Add dir_p parameter. Init replacement
9994 direction from dir_p. Register replacement direction in dir, last_dir
9995 and afterlast_dir. Handle new return type of old_insns_match_p using
9996 merge_dir. Return replacement direction in dir_p.
9997 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
9998 return type of old_insns_match_p.
9999 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
10000 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
10001 flow_find_cross_jump.
10002 * basic-block.h (enum replace_direction): New type.
10003 (flow_find_cross_jump): Add parameter to declaration.
10004
10005 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10006
10007 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
10008 (AVXMODEDCVTPS2DQ): Ditto.
10009 (VEC_FLOAT_MODE): Ditto.
10010 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
10011 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10012 (<any_logic:code><mode>3): Use VF mode iterator.
10013 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
10014 Use VF mode iterator.
10015 (copysign<mode>3): Use VF mode iterator.
10016 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
10017 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
10018 (*<any_logic:code><MODEF:mode>3): Merge with
10019 *avx_<any_logic:code><MODEF:mode>3.
10020 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
10021 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
10022 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
10023 (avx_cvtdq2ps<avxmodesuffix>): Remove.
10024 (sse2_cvtdq2ps): Use %v modifier.
10025 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
10026 (avx_cvtps2dq<avxmodesuffix>): Remove.
10027 (sse2_cvtps2dq): Use %v modifier.
10028 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
10029 (avx_cvttps2dq<avxmodesuffix>): Remove.
10030 (sse2_cvttps2dq): Use %v modifier.
10031 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
10032 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
10033 (sse2_cvtsd2siq): Fix insn template.
10034 (sse2_cvtsd2siq_2): Ditto.
10035 (sse2_cvttsd2siq): Ditto.
10036 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
10037 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
10038
10039 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10040
10041 * gcov-io.c: Use GCC Runtime Library Exception.
10042
10043 2011-04-06 Jakub Jelinek <jakub@redhat.com>
10044
10045 PR debug/48466
10046 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
10047 as base_reg whatever register reg has been eliminated to, instead
10048 of hardcoding STACK_POINTER_REGNUM.
10049
10050 2011-04-06 Joseph Myers <joseph@codesourcery.com>
10051
10052 * doc/tm.texi.in: Document C target hooks as separate from general
10053 target hooks.
10054 * doc/tm.texi: Regenerate.
10055 * genhooks.c (struct hook_desc): Add docname field.
10056 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
10057 docname field.
10058 (hook_array): Include c-target.def.
10059 (emit_documentation): Use docname field in output.
10060 (emit_init_macros): Take docname argument. Only emit definitions
10061 for hooks matching docname.
10062 (main): Expect additional arguments in all cases. Pass argument
10063 to emit_init_macros.
10064 * target.def: Move initial macro definitions and comments to
10065 target-hooks-macros.h.
10066 (gcc_targetcm): Move to c-family/c-target.def.
10067 * target.h (targetcm): Move declaration to c-family/c-target.h.
10068 * targhooks.c (default_handle_c_option): Move to
10069 c-family/c-opts.c.
10070 * targhooks.h (default_handle_c_option): Move declaration to
10071 c-family/c-common.h.
10072 * target-hooks-macros.h: New file.
10073 * config.gcc (target_has_targetcm): Define and use to add to
10074 c_target_objs and cxx_target_objs.
10075 * config/default-c.c: New file.
10076 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
10077 of target.h and target-def.h.
10078 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
10079 (darwin_objc_construct_string, darwin_cfstring_ref_p,
10080 darwin_check_cfstring_format_arg): Make static.
10081 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10082 TARGET_STRING_OBJECT_REF_TYPE_P,
10083 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
10084 * config/darwin-protos.h (darwin_objc_construct_string,
10085 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
10086 declare.
10087 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
10088 TARGET_STRING_OBJECT_REF_TYPE_P,
10089 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
10090 * config/t-darwin (darwin-c.o): Update dependencies.
10091 * system.h (TARGET_HAS_TARGETCM): Poison.
10092 * Makefile.in (TARGET_H): Update.
10093 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
10094 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
10095 (default-c.o): New target.
10096 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
10097 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
10098 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
10099 c-target.def.
10100 (build/genhooks.o): Update dependencies.
10101
10102 2011-04-06 Richard Guenther <rguenther@suse.de>
10103
10104 * ipa-inline.c (enum inlining_mode): Remove.
10105 (cgraph_flatten): Use some other token.
10106 (cgraph_edge_early_inlinable_p): New function, split out from ...
10107 (cgraph_perform_always_inlining): New function, split out from ...
10108 (cgraph_decide_inlining_incrementally): ... here.
10109 (cgraph_mark_inline_edge): Adjust.
10110 (cgraph_early_inlining): Re-structure.
10111 (pass_early_inline): Require SSA form.
10112
10113 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
10114 Julian Brown <julian@codesourcery.com>
10115 Mark Shinwell <shinwell@codesourcery.com>
10116
10117 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
10118 LO_REGS only for Thumb-1.
10119 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
10120 be used in short instructions when optimising for size on Thumb-2.
10121
10122 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10123
10124 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
10125 associated with user returns to be preserved.
10126
10127 2011-04-06 Tristan Gingold <gingold@adacore.com>
10128
10129 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
10130 symbol_queue_size, DBXOUT_DECR_NESTING,
10131 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
10132 if XCOFF_DEBUGGING_INFO.
10133
10134 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
10135
10136 * config/i386/i386.md (attribute isa): New.
10137 (attribute enabled): New.
10138 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
10139 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
10140 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
10141 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
10142 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
10143 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10144 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
10145 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
10146
10147 * config/i386/sse.md (VF): New mode iterator.
10148 (VF1): Ditto.
10149 (VF2): Ditto.
10150 (VF_128): Ditto.
10151 (SSEMODEF4): Remove.
10152 (attribute sse): Handle V8SF and V4DF modes.
10153 (<absneg:code><mode>2): Use VF mode iterator.
10154 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
10155 mode iterator.
10156 (<plusminus_insn><mode>3): Use VF mode iterator.
10157 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
10158 Use VF mode iterator.
10159 (<sse>_vm<plusminus_insn><mode>3): Merge with
10160 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
10161 (mul<mode>3): Use VF mode iterator.
10162 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
10163 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
10164 mode iterator.
10165 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
10166 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
10167 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
10168 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
10169 mode iterator.
10170 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
10171 Use VF1 mode iterator.
10172 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
10173 (sqrt<VF2:mode>2): New expander.
10174 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
10175 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
10176 and sqrtv2df2. Use VF mode iterator.
10177 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
10178 mode iterator.
10179 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
10180 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
10181 Use VF1 mode iterator.
10182 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
10183 (<smaxmin:code><mode>3): Use VF mode iterator.
10184 (*<smaxmin:code><mode>3_finite): Merge with
10185 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
10186 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
10187 (<sse>_vm<smaxmin:code><mode>2): Merge with
10188 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
10189 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
10190 mode iterator.
10191 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
10192 mode iterator.
10193 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
10194 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
10195 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
10196 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
10197 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
10198 VF mode iterator.
10199 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
10200 Use VF_128 mode iterator.
10201 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
10202 mode iterator.
10203 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
10204 VF_128 mode iterator.
10205 (vcond<mode>): Use VF mode iterator.
10206 * config/i386/predicates.md (sse_comparison_operator): Merge with
10207 avx_comparison_float_operator. Do not declare as special_predicate.
10208 * config/i386/i386.c (struct builtin_description): Update for renamed
10209 compare patterns.
10210 (ix86_expand_args_builtin): Ditto.
10211 (ix86_expand_sse_compare_mask): Ditto.
10212
10213 2011-04-06 Richard Guenther <rguenther@suse.de>
10214
10215 * tree-inline.c (estimate_num_insns): For calls simply account
10216 for all passed arguments and a used return value.
10217
10218 2011-04-06 Richard Guenther <rguenther@suse.de>
10219
10220 PR tree-optimization/47663
10221 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
10222 call_stmt_time fields.
10223 (cgraph_edge_inlinable_p): Declare.
10224 (cgraph_edge_recursive_p): New inline function.
10225 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
10226 (cgraph_clone_edge): Copy it.
10227 * ipa-inline.c (cgraph_estimate_edge_time): New function.
10228 Account for call stmt time.
10229 (cgraph_estimate_time_after_inlining): Take edge argument.
10230 (cgraph_estimate_edge_growth): Account call stmt size.
10231 (cgraph_estimate_size_after_inlining): Take edge argument.
10232 (cgraph_mark_inline_edge): Adjust.
10233 (cgraph_check_inline_limits): Likewise.
10234 (cgraph_recursive_inlining_p): Remove.
10235 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
10236 (cgraph_decide_recursive_inlining): Take edge argument and
10237 adjust.
10238 (cgraph_decide_inlining_of_small_functions): Do not avoid
10239 diags for recursive inlining here.
10240 (cgraph_flatten): Adjust.
10241 (cgraph_decide_inlining_incrementally): Likewise.
10242 (estimate_function_body_sizes): Remove call cost handling.
10243 (compute_inline_parameters): Initialize caller edge call costs.
10244 (cgraph_estimate_edge_growth): New function.
10245 (cgraph_estimate_growth): Use it.
10246 (cgraph_edge_badness): Likewise.
10247 (cgraph_check_inline_limits): Take an edge argument.
10248 (cgraph_decide_inlining_of_small_functions): Adjust.
10249 (cgraph_decide_inlining): Likewise.
10250 * tree-inline.c (estimate_num_insns): Only account for call
10251 return value if it is used.
10252 (expand_call_inline): Avoid diagnostics on recursive inline
10253 functions here.
10254 * lto-cgraph.c (lto_output_edge): Output edge call costs.
10255 (input_edge): Input edge call costs.
10256
10257 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10258
10259 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
10260
10261 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
10262
10263 * doc/invoke.texi (Spec Files): Fix typo.
10264
10265 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
10266
10267 * profile.c (branch_prob): Move declaration of local variable. Remove
10268 obsolete ??? comment. Expand the location explicitly instead of using
10269 the LOCATION_FILE and LOCATION_LINE macros.
10270
10271 2011-04-06 Wei Guozhi <carrot@google.com>
10272
10273 PR target/47855
10274 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
10275 (arm_cond_branch): Likewise.
10276 (arm_cond_branch_reversed): Likewise.
10277 (arm_jump): Likewise.
10278 (push_multi): Likewise.
10279 * config/arm/constraints.md (Py): New constraint.
10280
10281 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10282
10283 PR bootstrap/48471
10284 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
10285 Move these...
10286 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
10287 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
10288 #ifdef DBX_DEBUGGING_INFO.
10289
10290 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
10291
10292 PR bootstrap/48403
10293 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
10294 if old and new states differ.
10295
10296 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10297
10298 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
10299 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
10300 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
10301 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
10302 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
10303 mcfv4e): Use Alias.
10304 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
10305 ColdFire options to -mcpu= options.
10306
10307 2011-04-05 Jeff Law <law@redhat.com>
10308
10309 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
10310 check if BB is a successor of LOOP->header and return
10311 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
10312
10313 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10314
10315 * cprop.c (struct reg_use): Remove.
10316 (reg_use_table): Make an array of RTX.
10317 (find_used_regs, constprop_register, local_cprop_pass,
10318 bypass_block): Simplify users of reg_use_table.
10319 (cprop_insn): Likewise. Iterate if copy propagation succeeded
10320 on one of the uses found by find_used_regs.
10321
10322 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10323
10324 PR bootstrap/48469
10325 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
10326 declaration.
10327
10328 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10329
10330 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
10331 as an rtx.
10332 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
10333
10334 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
10335
10336 PR middle-end/48441
10337 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
10338
10339 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10340
10341 * combine.c: Include obstack.h.
10342 (struct insn_link): Define.
10343 (uid_log_links): Adjust type.
10344 (FOR_EACH_LOG_LINK): New macro.
10345 (insn_link_obstack): Declare.
10346 (alloc_insn_link): Define.
10347 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
10348 type of link variables.
10349 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
10350 (try_combine, record_promoted_values, distribute_notes): Likewise.
10351 (distribute_links): Likewise. Tweak prototype.
10352 (clear_log_links): Delete.
10353 (adjust_for_new_dest): Call alloc_insn_link.
10354 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
10355
10356 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10357
10358 * gcse.c (modify_mem_list): Convert to an array of VECs.
10359 (canon_modify_mem_list, compute_transp): Tweak formatting.
10360 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
10361 (load_killed_in_block_p): Likewise.
10362 (record_last_mem_set_info): Likewise.
10363 (clear_modify_mem_tables): Likewise.
10364
10365 2011-04-05 Tom de Vries <tom@codesourcery.com>
10366
10367 PR middle-end/48461
10368 * function.c (emit_use_return_register_into_block): Only define if
10369 HAVE_return.
10370
10371 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
10372
10373 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
10374
10375 2011-04-05 Joseph Myers <joseph@codesourcery.com>
10376
10377 * config/rx/rx-opts.h: New.
10378 * config/rx/rx.c (rx_cpu_type): Remove.
10379 (rx_handle_option): Don't assert that global structures are in
10380 use. Access variables via opts pointer. Defer most handling of
10381 OPT_mint_register_. Use error_at.
10382 (rx_option_override): Handle deferred OPT_mint_register_ here.
10383 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
10384 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
10385 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
10386 (rx_cpu_types): New Enum and EnumValue entries.
10387 (mint-register=): Use Defer and use Var accordingly.
10388
10389 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10390
10391 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
10392 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
10393 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
10394 Move these...
10395 (debug_free_queue, debug_nesting, symbol_queue_index):
10396 ...and these...
10397 * dbxout.c: ...to here. Make static.
10398
10399 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
10400
10401 * gcse.c (modify_pair): Define. Define a VEC of it.
10402 (canon_modify_mem_list): Convert to an array of VECs.
10403 (free_insn_expr_list_list): Delete.
10404 (clear_modify_mem_tables): Call VEC_free instead.
10405 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
10406 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
10407 (canon_list_insert, compute_transp): Likewise.
10408
10409 2011-04-05 Tom de Vries <tom@codesourcery.com>
10410
10411 PR target/43920
10412 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
10413 for size.
10414
10415 2011-04-05 Tom de Vries <tom@codesourcery.com>
10416
10417 PR target/43920
10418 * function.c (emit_use_return_register_into_block): New function.
10419 (thread_prologue_and_epilogue_insns): Use
10420 emit_use_return_register_into_block.
10421
10422 2011-04-05 Tom de Vries <tom@codesourcery.com>
10423
10424 PR target/43920
10425 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
10426 insn.
10427
10428 2011-04-05 Tom de Vries <tom@codesourcery.com>
10429
10430 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
10431
10432 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
10433
10434 * config/arm/arm.md (define_constants for unspec): Replace with
10435 define_c_enum.
10436 (define_constants for unspecv): Replace with define_c_enum.
10437 * config/arm/neon.md (define_constants for unspec): Replace with
10438 define_c_enum.
10439
10440 2011-04-04 Richard Henderson <rth@redhat.com>
10441
10442 PR bootstrap/48400
10443 * dwarf2out.c (output_line_info): Always emit line info from
10444 at least one section.
10445 (dwarf2out_init): Create text_section_line_info here ...
10446 (set_cur_line_info_table): ... not here.
10447
10448 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
10449
10450 PR target/48380
10451 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
10452 not called.
10453
10454 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
10455
10456 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
10457
10458 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
10459 (expr_equiv_p): Remove.
10460 (insert_set_in_table): Look at <dest, src> pair instead of expr.
10461 (hash_scan_set): Update call to insert_set_in_table.
10462 (dump_hash_table): Dump <dest, src> pair.
10463 (lookup_set): Simplify. Lookup <dest, src> pair.
10464 (compute_transp): Remove, fold heavily simplified code into...
10465 (compute_local_properties): ...here. Expect COMP and TRANSP
10466 unconditionally.
10467 (find_avail_set): Take set directly from struct expr.
10468 (find_bypass-set): Likewise.
10469 (bypass_block): Likewise.
10470 (cprop_insn): Likewise. Remove redundant INSN_P test.
10471
10472 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
10473 checks on form of COND from find_implicit_sets to here.
10474 (find_implicit_sets): Cleanup control flow. Split critical edges
10475 if it exposes implicit sets. Allocate/resize implicit_sets as
10476 necessary.
10477 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
10478 changed something. Run df_analyze after find_implicit_sets if any
10479 edges were split. Do not allocate implicit_sets here.
10480
10481 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
10482 (gcse_obstack): Renamed to cprop_obstack.
10483 (GNEW, GNEWVEC, GNEWVAR): Remove.
10484 (gmalloc): Remove.
10485 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
10486 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
10487 (gcse_alloc): Likewise, and rename to cprop_alloc.
10488 (alloc_gcse_men, free_gcse_mem): Remove.
10489 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
10490 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
10491 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
10492
10493 * cprop.c (oprs_not_set_p): Remove.
10494 (mark_set, mark_clobber): Remove.
10495 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
10496 (reg_not_set_p): New function.
10497 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
10498 (cprop_insn): Likewise.
10499 (cprop_jump): Use FOR_EACH_EDGE.
10500
10501 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
10502
10503 PR bootstrap/48403
10504 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
10505 (rank_for_schedule): Use scheduled_insns vector instead of
10506 last_scheduled_insn.
10507 (ok_for_early_queue_removal): Likewise.
10508 (queue_to_ready): Search forward in nonscheduled_insns_begin if
10509 we have a dbg_cnt.
10510 (choose_ready): Likewise.
10511 (commit_schedule): Use VEC_iterate.
10512 (schedule_block): Initialize nonscheduled_insns_begin. If we have
10513 a dbg_cnt, use it and ensure the first insn is in the ready list.
10514 (haifa_sched_init): Allocate scheduled_insns.
10515 (sched_extend_ready_list): Don't allocate it; reserve space.
10516 (haifa_sched_finish): Free it.
10517
10518 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10519
10520 * optc-gen.awk: Always remove type from Variable entry before
10521 recording in var_seen.
10522
10523 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
10524
10525 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
10526 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
10527 call to tidy_fallthru_edges.
10528
10529 2011-04-04 Joseph Myers <joseph@codesourcery.com>
10530
10531 * doc/options.texi (ToLower): Document.
10532 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
10533 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
10534 * opts.h (cl_option): Add cl_tolower field.
10535 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
10536 arguments with lowercase strings.
10537 * config/rx/rx.opt (mcpu=): Add ToLower.
10538 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
10539 argument.
10540
10541 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10542
10543 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
10544
10545 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
10546
10547 * config/vax/vax.c: Include reload.h.
10548
10549 2011-04-04 Anatoly Sokolov <aesok@post.ru>
10550
10551 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
10552 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
10553 (sparc_preferred_reload_class): New function.
10554
10555 2011-04-04 Jakub Jelinek <jakub@redhat.com>
10556
10557 PR debug/48401
10558 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10559 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
10560
10561 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
10562
10563 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
10564 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
10565
10566 2011-04-03 Anatoly Sokolov <aesok@post.ru>
10567
10568 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
10569 (ASM_OUTPUT_ALIGNED_BSS): Define.
10570
10571 2011-04-03 Michael Matz <matz@suse.de>
10572
10573 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
10574 and next_slot members.
10575 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
10576 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
10577 (lto_streamer_cache_append): Declare.
10578 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
10579 unsigned index, remove offset parameter, ensure that we append
10580 or update existing entries.
10581 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
10582 parameter, update next_slot for append.
10583 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
10584 parameter.
10585 (lto_streamer_cache_insert_at): Likewise.
10586 (lto_streamer_cache_append): New function.
10587 (lto_streamer_cache_lookup): Use unsigned index.
10588 (lto_streamer_cache_get): Likewise.
10589 (lto_record_common_node): Don't test tree_node_can_be_shared.
10590 (preload_common_node): Adjust call to lto_streamer_cache_insert.
10591 (lto_streamer_cache_delete): Don't free offsets member.
10592 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
10593 (lto_output_string_with_length): Use lto_output_data_stream.
10594 (lto_output_tree_header): Remove ix parameter, don't write it.
10595 (lto_output_builtin_tree): Likewise.
10596 (lto_write_tree): Adjust callers to above, don't track and write
10597 offset, write unsigned index.
10598 (output_unreferenced_globals): Don't emit all global vars.
10599 (write_global_references): Use unsigned indices.
10600 (lto_output_decl_state_refs): Likewise.
10601 (write_symbol): Likewise.
10602 * lto-streamer-in.c (lto_input_chain): Move earlier.
10603 (input_function): Use unsigned index.
10604 (input_alias_pairs): Don't read and then ignore all global vars.
10605 (lto_materialize_tree): Remove ix_p parameter, don't read index,
10606 don't pass it back, use lto_streamer_cache_append.
10607 (lto_register_var_decl_in_symtab): Use unsigned index.
10608 (lto_register_function_decl_in_symtab): Likewise.
10609 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
10610 index.
10611 (lto_get_builtin_tree): Don't read index, use
10612 lto_streamer_cache_append.
10613 (lto_read_tree): Adjust call to lto_materialize_tree.
10614
10615 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
10616 don't use function calls in arguments to MIN.
10617
10618 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
10619 twice.
10620
10621 * gimple.c (gimple_type_leader_entry): Mark deletable.
10622
10623 2011-04-03 Alan Modra <amodra@gmail.com>
10624
10625 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
10626
10627 2011-04-03 Michael Matz <matz@suse.de>
10628
10629 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
10630 an integer.
10631 * tree.h (tree_decl_non_common.vindex): Adjust comment.
10632
10633 2011-04-03 Michael Matz <matz@suse.de>
10634
10635 * cgraphbuild.c (record_reference): Canonicalize constructor values.
10636 * gimple-fold.c (canonicalize_constructor_val): Accept being called
10637 without function context.
10638 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
10639 current_function_decl and cfun.
10640
10641 2011-04-03 Michael Matz <matz@suse.de>
10642
10643 * tree.c (decl_init_priority_insert): Don't create entry for
10644 default priority.
10645 (decl_fini_priority_insert): Ditto.
10646 (fields_compatible_p, find_compatible_field): Remove.
10647 * tree.h (fields_compatible_p, find_compatible_field): Remove.
10648 * gimple.c (gimple_compare_field_offset): Adjust block comment.
10649
10650 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
10651
10652 * combine.c (try_combine): Remove useless local variable.
10653
10654 2011-04-03 Richard Guenther <rguenther@suse.de>
10655 Ira Rosen <ira.rosen@linaro.org>
10656
10657 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
10658 non-variable offsets and compare the remaining bases of the two
10659 accesses instead of looking for exact same data-ref.
10660
10661 2011-04-02 Kai Tietz <ktietz@redhat.com>
10662
10663 PR target/48416
10664 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
10665
10666 * i386.c (ix86_is_msabi_thiscall): New helper function.
10667 (ix86_is_type_thiscall): New helper function.
10668 (ix86_comp_type_attributes): Handle thiscall for method-functions
10669 special.
10670 (init_cumulative_args): Likewise.
10671 (find_drap_reg): Likewise.
10672 (ix86_static_chain): Likewise.
10673 (x86_this_parameter): Likewise.
10674 (x86_output_mi_thunk): Likewise.
10675
10676 2011-04-01 Olivier Hainque <hainque@adacore.com>
10677 Nicolas Setton <setton@adacore.com>
10678 Eric Botcazou <ebotcazou@adacore.com>
10679
10680 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
10681 (add_gnat_descriptive_type_attribute): New function.
10682 (gen_array_type_die): Call it.
10683 (gen_enumeration_type_die): Likewise.
10684 (gen_struct_or_union_type_die): Likewise.
10685 (modified_type_die): Likewise.
10686 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
10687 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
10688 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
10689
10690 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10691
10692 PR bootstrap/48148
10693 * dwarf2out.c (resolve_addr): Don't call force_decl_die
10694 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
10695
10696 Revert:
10697 2011-03-17 Richard Guenther <rguenther@suse.de>
10698
10699 PR bootstrap/48148
10700 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10701 origin for decls in other ltrans units.
10702 (input_varpool_node): Likewise.
10703
10704 2011-04-01 Jakub Jelinek <jakub@redhat.com>
10705
10706 PR middle-end/48335
10707 * expr.c (expand_assignment): Handle all possibilities
10708 if TO_RTX is CONCAT.
10709 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
10710 (store_split_bit_field): If SUBREG_REG (op0) or
10711 op0 itself has smaller mode than word, return it
10712 for offset 0 and const0_rtx for out-of-bounds stores.
10713 If word is const0_rtx, skip it.
10714
10715 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
10716
10717 * config/h8300/h8300.c (print_operand_address): Rename to...
10718 (h8300_print_operand_address): ...this. Make static. Adjust comments.
10719 Call h8300_print_operand and h8300_print_operand_address instead of
10720 print_operand and print_operand_address. Declare.
10721 (print_operand): Renake to...
10722 (h8300_print_operand): ...this. Make static. Adjust comments.
10723 Call h8300_print_operand instead of print_operand. Declare.
10724 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
10725 (h8300_register_move_cost): Likewise.
10726 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
10727 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
10728 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
10729 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
10730 * config/h8300/h8300-protos.h (print_operand): Delete.
10731 (print_operand_address): Delete.
10732
10733 2011-04-01 Richard Henderson <rth@redhat.com>
10734
10735 PR 48400
10736 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
10737 in strict mode before dwarf4. Re-order tests to early out
10738 before switching sections.
10739
10740 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
10741
10742 * config/h8300/constraints.md: New file.
10743 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
10744 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
10745 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
10746 * config/h8300/predicates.md (bit_operand): Likewise.
10747 (incdec_operand): Use satisfies_constraint_M and
10748 satisfies_constraint_O. Don't use C code block.
10749 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
10750 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
10751 (compute_mov_length): Use satisfies_constraint_G.
10752 (fix_bit_operand): Use satisfies_constraint_U.
10753 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
10754 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
10755 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
10756 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
10757 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
10758 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
10759 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10760 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
10761 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
10762 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
10763 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
10764 (EXTRA_MEMORY_CONSTRAINT): Delete.
10765
10766 2011-04-01 Andrew Pinski <pinskia@gmail.com>
10767 Michael Meissner <meissner@linux.vnet.ibm.com>
10768
10769 PR target/48262
10770 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
10771 operands, as per the specifications.
10772
10773 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
10774 (vec_extract_evenv4sf): Ditto.
10775 (vec_extract_evenv8hi): Ditto.
10776 (vec_extract_evenv16qi): Ditto.
10777 (vec_extract_oddv4si): Ditto.
10778
10779 2011-03-31 Mark Wielaard <mjw@redhat.com>
10780
10781 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
10782 high_pc attribute if the CU has no associated code. Only output
10783 DW_AT_entry_pc for CU if not generating strict dwarf and
10784 dwarf_version < 4.
10785
10786 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
10787
10788 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
10789 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
10790 out of ...
10791 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
10792 * final.c (final_start_function): Call the new function rather
10793 than using a NULL argument for dwarf2out_frame_debug.
10794
10795 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
10796 that contains the prologue.
10797
10798 * haifa-sched.c (queue_insn): New arg REASON. All callers
10799 changed. Print it in debugging output.
10800
10801 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
10802
10803 * sched-ebb.c (begin_schedule_ready): Remove second argument.
10804 Split most of the code into...
10805 (begin_move_insn): ... here. New function.
10806 (ebb_sched_info): Add a pointer to it.
10807 * haifa-sched.c (scheduled_insns): New static variable.
10808 (sched_extend_ready_list): Allocate it.
10809 (schedule_block): Use it to record the order of scheduled insns.
10810 Perform RTL changes to move insns only after all scheduling
10811 decisions have been made.
10812 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
10813 begin_move_insn field.
10814 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
10815 * sched-int.h (struct haifa_sched_info): Remove second argument
10816 from begin_schedule_ready hook. Add new member begin_move_insn.
10817 * sched-rgn.c (begin_schedule_ready): Remove second argument.
10818 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
10819
10820 * haifa-sched.c (prune_ready_list): New function, broken out of
10821 schedule_block.
10822 (schedule_block): Use it.
10823
10824 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10825
10826 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
10827
10828 2011-04-01 Kai Tietz <ktietz@redhat.com>
10829
10830 * config.gcc (*-*-mingw*): Allow as option the
10831 posix threading model.
10832 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
10833 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
10834 definition.
10835 (CPP_SPEC): Add pthread/no-pthread handling.
10836 (LIB_SPEC): Likewise.
10837 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
10838 (LIB_SPEC): Likewise.
10839 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
10840 flag to pass -pthread option for shared libgcc build.
10841 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
10842 for shared libgcc build.
10843 * config/i386/t-mingw-pthread: New file.
10844 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
10845 New define to enable use of library pthread by default.
10846 * config/i386/mingw.opt (pthread): New driver option.
10847 (no-pthread): New driver option.
10848 * config/i386/cygming.opt: Make sure trailing empty line is retained.
10849 * config/i386/mingw-w64.opt: Likewise.
10850
10851 2011-04-01 Gary Funck <gary@intrepid.com>
10852
10853 * c-decl.c (grokdeclarator): Fix formatting.
10854
10855 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10856
10857 * expr.c (emit_block_move_via_movmem): Use n_generator_args
10858 instead of n_operands.
10859 (set_storage_via_setmem): Likewise.
10860 * optabs.c (maybe_gen_insn): Likewise.
10861 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
10862 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
10863 (mips_expand_builtin_direct): Likewise.
10864 * config/spu/spu.c (expand_builtin_args): Likewise.
10865
10866 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10867
10868 * recog.h (insn_data_d): Add n_generator_args.
10869 * genoutput.c (data): Likewise.
10870 (output_insn_data): Print it.
10871 (max_opno, num_dups): Delete.
10872 (scan_operands): Just fill in "d->operand[...]".
10873 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
10874
10875 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
10876
10877 * gensupport.h (pattern_stats): New structure.
10878 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
10879 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
10880 (max_operand_1, max_operand_vec): Delete.
10881 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
10882
10883 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
10884
10885 * emit-rtl.c (emit_pattern_after_setloc): New function.
10886 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
10887 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
10888 (emit_pattern_after): New function.
10889 (emit_insn_after, emit_jump_insn_after): Call it.
10890 (emit_call_insn_after, emit_debug_insn_after): Likewise.
10891 (emit_pattern_before_setloc): New function.
10892 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
10893 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
10894 Likewise.
10895 (emit_pattern_before): New function.
10896 (emit_insn_before, emit_jump_insn_before): Call it.
10897 (emit_call_insn_before, emit_debug_insn_before): Likewise.
10898
10899 2011-03-31 Richard Henderson <rth@redhat.com>
10900
10901 * dwarf2out.c (dw_separate_line_info_ref): Remove.
10902 (dw_separate_line_info_entry): Remove.
10903 (enum dw_line_info_opcode): New.
10904 (dw_line_info_entry): Use it.
10905 (dw_line_info_table, dw_line_info_table_p): New.
10906 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
10907 (line_info_table, line_info_label_num): Remove.
10908 (line_info_table_in_use): Remove.
10909 (separate_line_info_table): Remove.
10910 (separate_line_info_table_allocated): Remove.
10911 (separate_line_info_table_in_use): Remove.
10912 (LINE_INFO_TABLE_INCREMENT): Remove.
10913 (line_info_label_num): New.
10914 (cur_line_info_table): New.
10915 (text_section_line_info, cold_text_section_line_info): New.
10916 (separate_line_info): New.
10917 (SEPARATE_LINE_CODE_LABEL): Remove.
10918 (print_dwarf_line_table): Remove.
10919 (debug_dwarf): Don't dump it.
10920 (output_one_line_info_table): New.
10921 (output_line_info): Use it.
10922 (new_line_info_table): New.
10923 (set_cur_line_info_table): New.
10924 (dwarf2out_switch_text_section): Use it.
10925 (dwarf2out_begin_function): Likewise.
10926 (push_dw_line_info_entry): New.
10927 (dwarf2out_source_line): Rewrite for new line info tables.
10928 (dwarf2out_init): Remove dead initailizations.
10929
10930 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10931
10932 * opts.h (cl_option): Add comments to fields. Add bit-fields for
10933 various flags.
10934 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
10935 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
10936 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
10937 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
10938 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
10939 * opt-functions.awk (flag_init, switch_bit_fields): New.
10940 (switch_flags): Don't handle flags moved to bit-fields. Don't
10941 generate CL_MISSING_OK or CL_SAVE.
10942 * optc-gen.awk: Update to generate bit-field output as well as
10943 flags field.
10944 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
10945 bit-field instead of CL_REJECT_DRIVER flag.
10946 * opts-common.c (generate_canonical_option,
10947 decode_cmdline_option): Use bit-fields instead of CL_* flags.
10948 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
10949 instead of CL_REJECT_NEGATIVE flag.
10950 * toplev.c (print_switch_values): Use cl_report bit-field instead
10951 of CL_REPORT flag.
10952
10953 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10954
10955 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
10956 a zero minimum index only if it is redundant.
10957
10958 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
10959
10960 PR rtl-optimization/48381
10961 * ira-color.c (assign_hard_reg): Use hard reg set intersection
10962 instead of ira_class_hard_reg_index for calculating conflicting
10963 hard registers.
10964
10965 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
10966
10967 * cprop.c: Clean up hash table building.
10968 (reg_avail_info): Remove.
10969 (oprs_available_p): Remove.
10970 (record_last_reg_set_info): Remove.
10971 (record_last_set_info): Remove.
10972 (reg_available_p): New function.
10973 (gcse_constant_p): Do not treat unfolded conditions as constants.
10974 (make_set_regs_unavailable): New function.
10975 (hash_scan_set): Simplify with new reg_available_p.
10976 (compute_hash_table_work): Traverse insns stream only once.
10977 Do not compute reg_avail_info. Traverse insns in reverse order.
10978 Record implicit sets after recording explicit sets from the block.
10979
10980 2011-03-31 Michael Matz <matz@suse.de>
10981
10982 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
10983
10984 2011-03-31 Anatoly Sokolov <aesok@post.ru>
10985
10986 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
10987 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
10988 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10989 (h8300_mode_dependent_address_p): New function.
10990 (h8300_get_index): Make static.
10991
10992 2011-03-31 Jeff Law <law@redhat.com>
10993
10994 * reload1.c (elimination_effects): Fix typo in recent change.
10995
10996 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
10997 typo potentially leading to null pointer dereference.
10998
10999 * caller-save.c (new_saved_hard_reg): Eliminate return value.
11000 (setup_save_areas): Corresponding changes to avoid useless
11001 assignments.
11002
11003 * jump.c (reversed_comparison_code_parts): Avoid successive return
11004 statements when REVERSE_CONDITION is defined.
11005
11006 * expr.c (expand_assignment): Avoid useless assignments.
11007 (expand_expr_real_1): Likewise.
11008 (expand_expr_real_2): Avoid useless statements.
11009
11010 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
11011
11012 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
11013
11014 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
11015 statements.
11016
11017 * stmt.c (expand_expr_stmt): Avoid useless assignment.
11018
11019 2011-03-31 Joseph Myers <joseph@codesourcery.com>
11020
11021 PR target/47109
11022 * doc/tm.texi.in (TARGET_VERSION): Remove.
11023 * doc/tm.texi: Regenerate.
11024 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
11025 * collect2.c (main): Don't use TARGET_VERSION.
11026 * mips-tdump.c (main): Don't use TARGET_VERSION.
11027 * mips-tfile.c (main): Don't use TARGET_VERSION.
11028 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
11029 * config/rs6000/vxworksae.h: Remove.
11030 * config/alpha/alpha.h (TARGET_VERSION): Remove.
11031 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
11032 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
11033 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
11034 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11035 * config/arm/arm.h (TARGET_VERSION): Remove.
11036 * config/arm/coff.h (TARGET_VERSION): Remove.
11037 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
11038 * config/arm/elf.h (TARGET_VERSION): Remove.
11039 * config/arm/freebsd.h (TARGET_VERSION): Remove.
11040 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
11041 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
11042 * config/arm/pe.h (TARGET_VERSION): Remove.
11043 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
11044 * config/arm/semi.h (TARGET_VERSION): Remove.
11045 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
11046 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
11047 * config/arm/vxworks.h (TARGET_VERSION): Remove.
11048 * config/avr/avr.h (TARGET_VERSION): Remove.
11049 * config/bfin/bfin.h (TARGET_VERSION): Remove.
11050 * config/fr30/fr30.h (TARGET_VERSION): Remove.
11051 * config/frv/frv.h (TARGET_VERSION): Remove.
11052 * config/h8300/h8300.h (TARGET_VERSION): Remove.
11053 * config/i386/cygwin.h (TARGET_VERSION): Remove.
11054 * config/i386/darwin.h (TARGET_VERSION): Remove.
11055 * config/i386/darwin64.h (TARGET_VERSION): Remove.
11056 * config/i386/djgpp.h (TARGET_VERSION): Remove.
11057 * config/i386/freebsd.h (TARGET_VERSION): Remove.
11058 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
11059 * config/i386/gnu.h (TARGET_VERSION): Remove.
11060 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
11061 * config/i386/i386elf.h (TARGET_VERSION): Remove.
11062 * config/i386/linux.h (TARGET_VERSION): Remove.
11063 * config/i386/linux64.h (TARGET_VERSION): Remove.
11064 * config/i386/lynx.h (TARGET_VERSION): Remove.
11065 * config/i386/mingw32.h (TARGET_VERSION): Remove.
11066 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
11067 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
11068 * config/i386/netware.h (TARGET_VERSION): Remove.
11069 * config/i386/nto.h (TARGET_VERSION): Remove.
11070 * config/i386/openbsd.h (TARGET_VERSION): Remove.
11071 * config/i386/vxworks.h (TARGET_VERSION): Remove.
11072 * config/ia64/elf.h (TARGET_VERSION): Remove.
11073 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
11074 * config/ia64/hpux.h (TARGET_VERSION): Remove.
11075 * config/ia64/linux.h (TARGET_VERSION): Remove.
11076 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
11077 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
11078 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11079 * config/lm32/lm32.h (TARGET_VERSION): Remove.
11080 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
11081 * config/m32c/m32c.h (TARGET_VERSION): Remove.
11082 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
11083 * config/m32r/m32r.h (TARGET_VERSION): Remove.
11084 * config/m68k/linux.h (TARGET_VERSION): Remove.
11085 * config/m68k/m68k.h (TARGET_VERSION): Remove.
11086 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
11087 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
11088 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
11089 * config/mep/mep.h (TARGET_VERSION): Remove.
11090 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
11091 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
11092 * config/mips/iris6.h (MACHINE_TYPE): Remove.
11093 * config/mips/linux.h (TARGET_VERSION): Remove.
11094 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
11095 * config/mips/vxworks.h (TARGET_VERSION): Remove.
11096 * config/mmix/mmix.h (TARGET_VERSION): Remove.
11097 * config/mn10300/linux.h (TARGET_VERSION): Remove.
11098 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
11099 * config/pa/pa.h (TARGET_VERSION): Remove.
11100 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
11101 * config/picochip/picochip.h (TARGET_VERSION): Remove.
11102 * config/rs6000/aix.h (TARGET_VERSION): Remove.
11103 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
11104 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
11105 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
11106 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
11107 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
11108 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
11109 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
11110 * config/rs6000/linux.h (TARGET_VERSION): Remove.
11111 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
11112 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
11113 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
11114 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
11115 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
11116 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
11117 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
11118 * config/s390/linux.h (TARGET_VERSION): Remove.
11119 * config/s390/s390.h (TARGET_VERSION): Remove.
11120 * config/s390/tpf.h (TARGET_VERSION): Remove.
11121 * config/score/score.h (TARGET_VERSION): Remove.
11122 * config/sh/linux.h (TARGET_VERSION): Remove.
11123 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
11124 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
11125 * config/sh/sh.h (TARGET_VERSION): Remove.
11126 * config/sh/sh64.h (TARGET_VERSION): Remove.
11127 * config/sh/superh.h (TARGET_VERSION): Remove.
11128 * config/sh/vxworks.h (TARGET_VERSION): Remove.
11129 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
11130 * config/sparc/linux.h (TARGET_VERSION): Remove.
11131 * config/sparc/linux64.h (TARGET_VERSION): Remove.
11132 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
11133 TARGET_NAME32, TARGET_NAME): Remove.
11134 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
11135 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
11136 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
11137 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
11138 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
11139 * config/spu/spu.h (TARGET_VERSION): Remove.
11140 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
11141 * config/v850/v850.h (TARGET_VERSION): Remove.
11142 * config/vax/linux.h (TARGET_VERSION): Remove.
11143 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
11144 * config/xtensa/elf.h (TARGET_VERSION): Remove.
11145 * config/xtensa/linux.h (TARGET_VERSION): Remove.
11146
11147 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
11148
11149 PR target/48142
11150 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
11151 frame-related from frame-unrelated adjustments to the stack pointer.
11152
11153 2011-03-31 Jakub Jelinek <jakub@redhat.com>
11154
11155 * common.opt (fdebug-types-section): Move earlier.
11156 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
11157
11158 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
11159
11160 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
11161 var.
11162
11163 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
11164
11165 * tree.h (CASE_CHAIN): Define.
11166 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
11167 (gimple_redirect_edge_and_branch): Likewise.
11168
11169 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11170
11171 PR middle-end/48367
11172 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
11173 calculation.
11174
11175 2011-03-30 Jeff Law <law@redhat.com>
11176
11177 * PR bootstrap/48371
11178 * reload1.c (reload): Fix botch in last change.
11179
11180 * reload.h (struct reload): Fix typo introduced in last change.
11181
11182 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11183
11184 * config/arm/arm.opt (mhard-float, msoft-float): Mark
11185 Undocumented. Remove help text.
11186 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
11187 -mhard-float.
11188
11189 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11190
11191 * doc/options.texi (NegativeAlias): Document.
11192 (Alias): Mention NegativeAlias.
11193 * opt-functions.awk: Handle NegativeAlias.
11194 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
11195 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
11196 * opts.h (CL_NEGATIVE_ALIAS): Define.
11197 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
11198 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
11199 OPT_mspe_.
11200 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
11201 Alias entries.
11202 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11203 mno-spe and mno-isel instead of mspe=no and -misel=no.
11204
11205 2011-03-29 Mark Wielaard <mjw@redhat.com>
11206
11207 * common.opt (fdebug-types-section): New flag.
11208 * doc/invoke.texi: Document new -fno-debug-types-section flag.
11209 * dwarf2out.c (use_debug_types): New define.
11210 (struct die_struct): Mark die_id with GTY desc use_debug_types.
11211 (print_die): Guard output of type unit signatures using
11212 use_debug_types.
11213 (build_abbrev_table): Replace assert of dwarf_version >= 4
11214 with assert on use_debug_types.
11215 (size_of_die): Likewise.
11216 (unmark_dies): Likewise.
11217 (value_format): Decide AT_ref_external form on use_debug_types.
11218 (output_die): Replace dwarf_version version check guard with
11219 use_debug_types where appropriate.
11220 (modified_type_die): Likewise.
11221 (gen_reference_type_die): Likewise.
11222 (dwarf2out_start_source_file): Likewise.
11223 (dwarf2out_end_source_file): Likewise.
11224 (prune_unused_types_walk_attribs): Likewise.
11225 (dwarf2out_finish): Likewise.
11226
11227 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
11228
11229 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
11230
11231 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11232
11233 PR rtl-optimization/48332
11234 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
11235 mode of input operand N and modeN to its actual mode.
11236
11237 2011-03-30 Jeff Law <law@redhat.com>
11238
11239 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
11240 define accessor macro.
11241 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
11242 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
11243 (reg_equiv_init): Likewise.
11244 (reg_equivs_size): New variable.
11245 (reg_equiv_init_size): Remove.
11246 (allocate_initial_values): Move prototype to here from....
11247 * integrate.h (allocate_initial_values): Remove prototype.
11248 * integrate.c: Include reload.h.
11249 (allocate_initial_values): Corresponding changes.
11250 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
11251 (fix_reg_equiv_init, no_equiv): Corresponding changes.
11252 (update_equiv_regs): Corresponding changes.
11253 (ira): Corresponding changes.
11254 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
11255 (push_secondary_reload): Corresponding changes.
11256 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
11257 (make_memloc, find_reloads_address): Corresponding changes.
11258 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
11259 (find_reloads_address_1): Corresponding changes.
11260 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
11261 (refers_to_regno_for_reload_p): Corresponding changes.
11262 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
11263 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
11264 * reload1.c: Include ggc.h.
11265 (grow_reg_equivs): New function.
11266 (replace_pseudos_in, reload): Corresponding changes.
11267 (calculate_needs_all_insns, alter_regs): Corresponding changes.
11268 (eliminate_regs_1, elimination_effects): Corresponding changes.
11269 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
11270 (delete_output_reload): Likewise.
11271 * caller-save.c (mark_referenced_regs): Corresponding changes.
11272 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
11273 * frv/predicates.md (frv_load_operand): Corresponding changes.
11274 * microblaze/microblaze.c (double_memory_operand): Corresponding
11275 changes.
11276 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
11277 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
11278 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
11279 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
11280 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
11281 changes.
11282 * pa/pa.c (emit_move_sequence): Corresponding changes.
11283 * vax/vax.c (nonindexed_address_p): Corresponding changes.
11284
11285 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11286
11287 PR target/47551
11288 * config/arm/arm.c (coproc_secondary_reload_class): Handle
11289 structure modes. Don't check neon_vector_mem_operand for
11290 vector or structure modes.
11291
11292 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
11293 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11294
11295 PR target/43590
11296 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
11297 operand 1 and reshuffle the operands to match.
11298 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
11299
11300 2011-03-30 Christian Schüler <cschueler@gmx.de>
11301
11302 PR driver/48208
11303 * config/c.opt (F): Added 'Driver' to -F option.
11304
11305 PR driver/48260
11306 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
11307 handler function.
11308 * config/darwin.opt: Added '-arch' option.
11309
11310 2011-03-30 Nick Clifton <nickc@redhat.com>
11311
11312 * config/rx/rx.md: Add peepholes and patterns to combine
11313 extending loads and simple arithmetic instructions.
11314 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
11315 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
11316 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
11317 modes to use pre-decrement and post-increment addressing.
11318 (rx_is_restricted_memory_address): Add range checking of REG+INT
11319 addresses.
11320 (rx_print_operand): Add support for %Q. Fix handling of %Q.
11321 (rx_memory_move_cost): Adjust cost of stores.
11322 (rx_adjust_insn_length): New function.
11323
11324 2011-03-30 Jakub Jelinek <jakub@redhat.com>
11325
11326 PR c/48305
11327 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11328 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
11329 matching arg00/arg01 types.
11330
11331 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
11332
11333 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
11334 last_location to UNKNOWN_LOCATION.
11335
11336 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
11337
11338 PR target/48349
11339 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
11340 FLOAT_SSE_REGS.
11341
11342 2011-03-30 Joseph Myers <joseph@codesourcery.com>
11343 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11344
11345 PR bootstrap/48337
11346 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
11347 Init(PROCESSOR_V7).
11348 (sparc_cpu): Likewise.
11349 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
11350 PROCESSOR_V7.
11351
11352 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11353
11354 PR target/48336
11355 PR middle-end/48342
11356 PR rtl-optimization/48345
11357 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
11358 hard regs for given mode from profitable regs when doing secondary
11359 allocation.
11360
11361 2011-03-29 Jeff Law <law@redhat.com>
11362
11363 PR bootstrap/48327
11364 * tree-ssa-threadupdate.c (struct redirection_data): Remove
11365 do_not_duplicate field.
11366 (lookup_redirection_data): Corresponding changes.
11367 (create_duplicates): Always create a template block.
11368 (redirect_edges): Remove code which reused the original block
11369 when it was going to become unreachable code.
11370 (thread_block): Don't set do_not_duplicate field.
11371
11372 2011-03-29 Joseph Myers <joseph@codesourcery.com>
11373
11374 * lto-opts.c (register_user_option_p, lto_register_user_option):
11375 Make type argument unsigned.
11376 * lto-streamer.h (lto_register_user_option): Make type argument
11377 unsigned.
11378 * opth-gen.awk: Make CL_* macros unsigned.
11379 * opts-common.c (find_opt): Make lang_mask argument unsigned.
11380 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
11381 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
11382 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
11383 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
11384 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
11385 (find_opt): Make lang_mask argument unsigned.
11386
11387 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11388
11389 PR rtl-optimization/48331
11390 PR rtl-optimization/48334
11391 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
11392 for any used algorithm.
11393
11394 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
11395
11396 * ira-conflicts.c (build_object_conflicts): Add unused attribute
11397 to parent_max.
11398
11399 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
11400
11401 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
11402 (alpha_option_override): Don't set alpha_sr_alias_set.
11403 (emit_frame_store_1): Use gen_frame_mem rather than calling
11404 set_mem_alias_set.
11405 (alpha_expand_epilogue): Ditto.
11406
11407 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
11408
11409 PR tree-optimization/48290
11410 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
11411 vectorization, check that relevant phis in the basic block after
11412 the inner loop are really inner loop's exit phis.
11413
11414 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
11415
11416 PR debug/48190
11417 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
11418 (cached_dw_loc_list_def): New structure.
11419 (cached_dw_loc_list): New typedef.
11420 (cached_dw_loc_list_table): New variable.
11421 (cached_dw_loc_list_table_hash): New function.
11422 (cached_dw_loc_list_table_eq): Likewise.
11423 (add_location_or_const_value_attribute): Take a bool cache_p.
11424 Cache the list when the parameter is true.
11425 (gen_formal_parameter_die): Update caller.
11426 (gen_variable_die): Likewise.
11427 (dwarf2out_finish): Likewise.
11428 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
11429 while generating debug info for the decl.
11430 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
11431 (dwarf2out_init): Initialize cached_dw_loc_list_table.
11432 (resolve_addr): Cache the result of resolving a chain of
11433 location lists.
11434
11435 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
11436
11437 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
11438 conflict object hard regset nodes have intersecting hard reg sets.
11439
11440 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
11441 after regstat_init_n_sets_and_refs.
11442
11443 * ira.c: Add more comments at the top.
11444 (setup_stack_reg_pressure_class, setup_pressure_classes):
11445 Add comments how we compute the register pressure classes.
11446 (setup_allocno_and_important_classes): Add more comments.
11447 (setup_class_translate_array, reorder_important_classes)
11448 (setup_reg_class_relations): Add comments.
11449
11450 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
11451 start of the file.
11452
11453 * ira-color.c: Add 2011 to the Copyright line.
11454 (assign_hard_reg): Add more comments.
11455 (improve_allocation): Ditto.
11456
11457 * ira-costs.c: Add 2011 to the Copyright line.
11458 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
11459 comments.
11460 (setup_regno_cost_classes_by_mode): Ditto.
11461
11462 Initial patches from ira-improv branch:
11463
11464 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11465
11466 * ira-build.c (ira_create_object): Remove initialization of
11467 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
11468 (ira_create_allocno): Remove initialization of
11469 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
11470 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
11471 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11472 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
11473 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
11474 Initialize ALLOCNO_ADD_DATA.
11475 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
11476 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
11477 ALLOCNO_REG.
11478 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
11479 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
11480
11481 * ira.c (ira_reallocate): Remove.
11482 (setup_pressure_classes): Call
11483 ira_init_register_move_cost_if_necessary. Use
11484 ira_register_move_cost instead of ira_get_register_move_cost.
11485 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
11486 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
11487
11488 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
11489 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
11490 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
11491 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
11492 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
11493 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
11494 Fix formatting.
11495 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
11496 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11497 (struct allocno_color_data): New.
11498 (allocno_color_data_t): New typedef.
11499 (allocno_color_data): New definition.
11500 (ALLOCNO_COLOR_DATA): New macro.
11501 (struct object_color_data): New.
11502 (object_color_data_t): New typedef.
11503 (object_color_data): New definition.
11504 (OBJECT_COLOR_DATA): New macro.
11505 (update_copy_costs, calculate_allocno_spill_cost): Call
11506 ira_init_register_move_cost_if_necessary. Use
11507 ira_register_move_cost instead of ira_get_register_move_cost.
11508 (move_spill_restore, update_curr_costs): Ditto.
11509 (allocno_spill_priority): Make it inline.
11510 (color_pass): Allocate and free allocno_color_dat and object_color_data.
11511 (struct coalesce_data, coalesce_data_t): New.
11512 (allocno_coalesce_data): New definition.
11513 (ALLOCNO_COALESCE_DATA): New macro.
11514 (merge_allocnos, coalesced_allocno_conflict_p): Use
11515 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
11516 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
11517 (coalesce_allocnos): Ditto.
11518 (setup_coalesced_allocno_costs_and_nums): Ditto.
11519 (collect_spilled_coalesced_allocnos): Ditto.
11520 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
11521 (setup_slot_coalesced_allocno_live_ranges): Ditto.
11522 (coalesce_spill_slots): Ditto.
11523 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
11524 free allocno_coalesce_data.
11525
11526 * ira-conflicts.c: Fix formatting.
11527 (process_regs_for_copy): Call
11528 ira_init_register_move_cost_if_necessary. Use
11529 ira_register_move_cost instead of ira_get_register_move_cost.
11530 (build_object_conflicts): Optimize.
11531
11532 * ira-costs.c (record_reg_classes): Optimize. Call
11533 ira_init_register_move_cost_if_necessary. Use
11534 ira_register_move_cost, ira_may_move_in_cost, and
11535 ira_may_move_out_cost instead of ira_get_register_move_cost and
11536 ira_get_may_move_cost.
11537 (record_address_regs): Ditto.
11538 (scan_one_insn): Optimize.
11539 (find_costs_and_classes): Optimize.
11540 (process_bb_node_for_hard_reg_moves): Call
11541 ira_init_register_move_cost_if_necessary. Use
11542 ira_register_move_cost instead of ira_get_register_move_cost.
11543
11544 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
11545 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
11546 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
11547 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
11548 definitions.
11549 (ira_initiate_emit_data, ira_finish_emit_data)
11550 (create_new_allocno): New functions.
11551 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
11552 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
11553 Use ira_register_move_cost instead of ira_get_register_move_cost.
11554
11555 * ira-int.h: Fix some comments.
11556 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
11557 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
11558 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
11559 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
11560 add_data.
11561 (struct ira_allocno): Make mode and aclass a bitfield. Move other
11562 bitfield after mode. Make hard_regno a short int. Make
11563 hard_regno short. Remove first_coalesced_allocno and
11564 next_coalesced_allocno. Move mem_optimized_dest_p,
11565 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
11566 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
11567 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
11568 temp, colorable_p. Add new member add_data.
11569 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
11570 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
11571 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
11572 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
11573 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
11574 (ALLOCNO_ADD_DATA): New macro.
11575 (ira_emit_data_t): New typedef.
11576 (struct ira_emit_data): New. Move mem_optimized_dest_p,
11577 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
11578 from struct ira_allocno.
11579 (ALLOCNO_EMIT_DATA): New macro.
11580 (ira_allocno_emit_data, allocno_emit_reg): New.
11581 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
11582 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
11583 (OBJECT_ADD_DATA): New macro.
11584 (ira_reallocate): Remove.
11585 (ira_initiate_emit_data, ira_finish_emit_data): New.
11586 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
11587 (ira_init_register_move_cost_if_necessary): New.
11588 (ira_object_conflict_iter_next): Merge into
11589 ira_object_conflict_iter_cond.
11590 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
11591
11592 * ira-live.c (process_single_reg_class_operands): Call
11593 ira_init_register_move_cost_if_necessary. Use
11594 ira_register_move_cost instead of ira_get_register_move_cost.
11595
11596 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
11597
11598 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
11599
11600 * ira-costs.c: Fix formatting.
11601 (cost_classes, cost_classes_num): Remove.
11602 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
11603 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
11604 (cost_classes_del, cost_classes_htab): New.
11605 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
11606 (initiate_regno_cost_classes, setup_cost_classes): New.
11607 (setup_regno_cost_classes_by_aclass): New.
11608 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
11609 (record_reg_classes): Use regno_cost_classes instead of
11610 cost_classes. Move checking opposite operand up.
11611 (record_address_regs): Use regno_cost_classes
11612 instead of cost_classes.
11613 (scan_one_insn): Ditto. Use always general register.
11614 (print_allocno_costs): Use regno_cost_classes instead of
11615 cost_classes.
11616 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
11617 (find_costs_and_classes): Set up cost classes for each registers.
11618 Use also their mode for this. Use regno_cost_classes instead of
11619 cost_classes.
11620 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
11621 cost_classes.
11622 (free_ira_costs, ira_init_costs): Don't use cost_classes.
11623 (ira_costs, ira_set_pseudo_classes): Call
11624 initiate_regno_cost_classes and finish_regno_cost_classes.
11625
11626 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
11627
11628 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
11629
11630 * target.def (ira_cover_classes): Remove.
11631
11632 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
11633
11634 * doc/tm.texi.in: Ditto.
11635
11636 * ira-conflicts.c: Remove mentioning cover classes from the file.
11637 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
11638 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
11639
11640 * targhooks.c (default_ira_cover_classes): Remove.
11641
11642 * targhooks.h (default_ira_cover_classes): Ditto.
11643
11644 * haifa-sched.c: Remove mentioning cover classes from the file.
11645 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11646 ira_pressure_classes and ira_pressure_classes_num instead of
11647 ira_reg_class_cover_size and ira_reg_class_cover. Use
11648 sched_regno_pressure_class instead of sched_regno_cover_class.
11649 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
11650 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11651
11652 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
11653 classes from the file.
11654 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
11655 (struct object_hard_regs, struct object_hard_regs_node): New.
11656 (struct ira_object): New members profitable_hard_regs,
11657 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
11658 (struct ira_allocno): Rename cover_class to aclass. Rename
11659 cover_class_cost and updated_cover_class_cost to class_cost and
11660 updated_class_cost. Remove splay_removed_p and
11661 left_conflict_size. Add new members colorable_p.
11662 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
11663 (ALLOCNO_COLORABLE_P): New macro.
11664 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
11665 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
11666 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
11667 (OBJECT_...): Rename parameter C to O.
11668 (OBJECT_PROFITABLE_HARD_REGS): New macro.
11669 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
11670 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
11671 (struct target_ira_int): New members x_ira_max_memory_move_cost,
11672 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
11673 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
11674 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
11675 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
11676 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
11677 x_ira_reg_class_subunion.
11678 (ira_max_memory_move_cost, ira_max_register_move_cost)
11679 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
11680 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
11681 (ira_important_class_nums, ira_reg_class_superunion): New macros.
11682 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
11683 (ira_reg_class_union): Rename to ira_reg_class_subunion.
11684 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11685 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11686 (ira_tune_allocno_costs_and_cover_classes): Rename to
11687 ira_tune_allocno_costs.
11688 (ira_debug_hard_regs_forest): New.
11689 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
11690 (ira_object_conflict_iter_next): Fix comments.
11691 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
11692 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
11693 cover_class to aclass.
11694 (ira_allocate_and_accumulate_costs): Ditto.
11695 (ira_allocate_and_set_or_copy_costs): Ditto.
11696
11697 * opts.c (decode_options): Remove ira_cover_class check.
11698
11699 * ira-color.c: Remove mentioning cover classes from the file. Use
11700 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
11701 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
11702 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11703 (splay-tree.h): Remove include.
11704 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
11705 before copy_freq_compare_func.
11706 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
11707 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
11708 New definitions.
11709 (hard_regs_roots, hard_regs_node_vec): Ditto.
11710 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
11711 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
11712 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
11713 (create_new_object_hard_regs_node): Ditto.
11714 (add_new_object_hard_regs_node_to_forest): Ditto.
11715 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
11716 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
11717 Ditto.
11718 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
11719 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
11720 (remove_unused_object_hard_regs_nodes): Ditto.
11721 (enumerate_object_hard_regs_nodes): Ditto.
11722 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
11723 (object_hard_regs_subnode_t): Ditto.
11724 (struct object_hard_regs_subnode): Ditto.
11725 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
11726 (setup_object_hard_regs_subnode_index): Ditto.
11727 (get_object_hard_regs_subnodes_num): Ditto.
11728 (form_object_hard_regs_nodes_forest): Ditto.
11729 (finish_object_hard_regs_nodes_tree): Ditto.
11730 (finish_object_hard_regs_nodes_forest): Ditto.
11731 (allocnos_have_intersected_live_ranges_p): Rename to
11732 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11733 (pseudos_have_intersected_live_ranges_p): Rename to
11734 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
11735 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
11736 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
11737 (update_copy_costs): Remove assert. Skip cost update if the hard
11738 reg does not belong the class.
11739 (assign_hard_reg): Process only profitable hard regs.
11740 (uncolorable_allocnos_num): Make it scalar.
11741 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
11742 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
11743 and ira_reg_class_max_nregs.
11744 (bucket_allocno_compare_func): Check frequency first.
11745 (sort_bucket): Add compare function as a parameter.
11746 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
11747 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
11748 (push_allocno_to_stack): Rewrite for checking new allocno
11749 colorability.
11750 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
11751 (push_only_colorable): Pass new parameter to sort_bucket.
11752 (push_allocno_to_spill): Remove.
11753 (allocno_spill_priority_compare): Make it inline and rewrite.
11754 (splay_tree_allocate, splay_tree_free): Remove.
11755 (allocno_spill_sort_compare): New function.
11756 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
11757 build and use splay tree. Choose first allocno in uncolorable
11758 allocno bucket to spill. Remove setting spill cost.
11759 (all_conflicting_hard_regs): Remove.
11760 (setup_allocno_available_regs_num): Check only profitable hard
11761 regs. Print info about hard regs nodes.
11762 (setup_allocno_left_conflicts_size): Remove.
11763 (put_allocno_into_bucket): Don't call
11764 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
11765 (improve_allocation): New.
11766 (color_allocnos): Call setup_profitable_hard_regs,
11767 form_object_hard_regs_nodes_forest, improve_allocation,
11768 finish_object_hard_regs_nodes_forest. Setup spill cost.
11769 (print_loop_title): Use pressure classes.
11770 (color_allocnso): Ditto.
11771 (do_coloring): Remove allocation and freeing splay_tree_node_pool
11772 and allocnos_for_spilling.
11773 (ira_sort_regnos_for_alter_reg): Don't setup members
11774 {first,next}_coalesced_allocno.
11775 (color): Remove allocating and freeing removed_splay_allocno_vec.
11776 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
11777 prohibited_class_mode_regs.
11778
11779 * ira-lives.c: Remove mentioning cover classes from the file. Fix
11780 formatting.
11781 (update_allocno_pressure_excess_length): Use pressure classes.
11782 (inc_register_pressure, dec_register_pressure): Check for pressure
11783 class.
11784 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
11785 pressure class. Use ira_reg_class_nregs instead of
11786 ira_reg_class_max_nregs.
11787 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
11788 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
11789 (single_reg_class): Use ira_reg_class_nregs instead of
11790 ira_reg_class_max_nregs.
11791 (process_bb_node_lives): Use pressure classes.
11792
11793 * ira-emit.c: Remove mentioning cover classes from the file. Use
11794 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
11795 (change_loop): Use pressure classes.
11796 (modify_move_list): Call ira_set_allocno_class instead of
11797 ira_set_allocno_cover_class.
11798
11799 * ira-build.c: Remove mentioning cover classes from the file. Use
11800 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
11801 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
11802 ALLOCNO_UPDATED_CLASS_COST instead of
11803 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
11804 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
11805 (ira_create_allocno): Remove initialization of
11806 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
11807 ALLOCNO_COLORABLE_P.
11808 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
11809 Update conflict regs for the objects.
11810 (create_cap_allocno): Remove assert. Don't propagate
11811 ALLOCNO_AVAILABLE_REGS_NUM.
11812 (ira_free_allocno_costs): New function.
11813 (finish_allocno): Change a part of code into call of
11814 ira_free_allocno_costs.
11815 (low_pressure_loop_node_p): Use pressure classes.
11816 (object_range_compare_func): Don't compare classes.
11817 (setup_min_max_conflict_allocno_ids): Ditto.
11818
11819 * loop-invariant.c: Remove mentioning cover classes from the file.
11820 Use ira_pressure_classes and ira_pressure_classes_num instead of
11821 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
11822 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
11823 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11824 Use reg_allocno_class instead of reg_cover_class.
11825 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
11826 STACK_REG_COVER_CLASS.
11827 (get_regno_cover_class): Rename to get_regno_pressure_class.
11828 (move_loop_invariants): Initialize and finalize regstat.
11829
11830 * ira.c: Remove mentioning cover classes from the file. Add
11831 comments about coloring without cover classes. Use ALLOCNO_CLASS
11832 instead of ALLOCNO_COVER_CLASS. Fix formatting.
11833 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
11834 setup_class_subset_and_memory_move_costs.
11835 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
11836 (setup_cover_and_important_classes): Rename to
11837 setup_allocno_and_important_classes.
11838 (setup_class_translate_array): New.
11839 (setup_class_translate): Call it for allocno and pressure classes.
11840 (cover_class_order): Rename to allocno_class_order.
11841 (comp_reg_classes_func): Use ira_allocno_class_translate instead
11842 of ira_class_translate.
11843 (reorder_important_classes): Set up ira_important_class_nums.
11844 (setup_reg_class_relations): Set up ira_reg_class_superunion.
11845 (print_class_cover): Rename to print_classes. Add parameter.
11846 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
11847 Print pressure classes too.
11848 (find_reg_class_closure): Rename to find_reg_classes. Don't call
11849 setup_reg_subclasses.
11850 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11851 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11852 (setup_prohibited_class_mode_regs): Use
11853 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
11854 (clarify_prohibited_class_mode_regs): New function.
11855 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
11856 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
11857 (ira_init_once): Initialize them.
11858 (free_register_move_costs): Process them.
11859 (ira_init): Move calls of find_reg_classes and
11860 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
11861 Call clarify_prohibited_class_mode_regs.
11862 (ira_no_alloc_reg): Remove.
11863 (too_high_register_pressure_p): Use pressure classes.
11864
11865 * sched-deps.c: Remove mentioning cover classes from the file.
11866 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
11867 ira_pressure_classes and ira_pressure_classes_num instead of
11868 ira_reg_class_cover_size and ira_reg_class_cover.
11869 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
11870 sched_regno_pressure_class instead of sched_regno_cover_class.
11871 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
11872 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
11873
11874 * ira.h: Add 2010 to Copyright.
11875 (ira_no_alloc_reg): Remove external.
11876 (struct target_ira): Rename x_ira_hard_regno_cover_class,
11877 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
11878 x_ira_class_translate to x_ira_hard_regno_allocno_class,
11879 x_ira_allocno_classes_num, x_ira_allocno_classes, and
11880 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
11881 x_ira_pressure_classes, x_ira_pressure_class_translate, and
11882 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
11883 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
11884 x_ira_no_alloc_regs.
11885 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
11886 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
11887 ira_allocno_classes_num and ira_allocno_classes.
11888 (ira_class_translate): Rename to ira_allocno_class_translate.
11889 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
11890 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
11891 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
11892 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
11893 (ira_no_alloc_regs): New.
11894
11895 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
11896 classes from the file. Use ALLOCNO_CLASS instead of
11897 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
11898 ALLOCNO_COVER_CLASS_COST.
11899 (regno_cover_class): Rename to regno_aclass.
11900 (record_reg_classes): Use ira_reg_class_subunion instead of
11901 ira_reg_class_union.
11902 (record_address_regs): Check overflow.
11903 (scan_one_insn): Ditto.
11904 (print_allocno_costs): Print total mem cost fore regional allocation.
11905 (print_pseudo_costs): Use REG_N_REFS.
11906 (find_costs_and_classes): Use classes intersected with them on the
11907 1st pass. Check overflow. Use ira_reg_class_subunion instead of
11908 ira_reg_class_union. Use ira_allocno_class_translate and
11909 regno_aclass instead of ira_class_translate and regno_cover_class.
11910 Modify code for finding regno_aclass. Setup preferred classes for
11911 the next pass.
11912 (setup_allocno_cover_class_and_costs): Rename to
11913 setup_allocno_class_and_costs. Use regno_aclass instead of
11914 regno_cover_class. Use ira_set_allocno_class instead of
11915 ira_set_allocno_cover_class.
11916 (init_costs, finish_costs): Use regno_aclass instead of
11917 regno_cover_class.
11918 (ira_costs): Use setup_allocno_class_and_costs instead of
11919 setup_allocno_cover_class_and_costs.
11920 (ira_tune_allocno_costs_and_cover_classes): Rename to
11921 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
11922 by processing objects. Use ira_reg_class_max_nregs instead of
11923 ira_reg_class_nregs.
11924
11925 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
11926
11927 * sched-int.h: Remove mentioning cover classes from the file.
11928 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
11929
11930 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
11931 classes from the file.
11932 (struct reg_pref): Rename coverclass into allocnoclass.
11933 (reg_cover_class): Rename to reg_allocno_class.
11934
11935 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
11936
11937 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
11938
11939 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
11940
11941 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
11942
11943 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
11944
11945 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
11946
11947 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
11948
11949 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
11950
11951 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
11952
11953 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
11954
11955 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
11956 (i386_ira_cover_classes): Ditto.
11957
11958 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
11959
11960 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
11961
11962 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
11963
11964 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
11965
11966 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
11967
11968 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
11969
11970 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
11971 (mips_ira_cover_classes): Ditto.
11972
11973 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
11974
11975 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
11976
11977 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
11978
11979 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
11980
11981 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
11982
11983 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
11984 (IRA_COVER_CLASSES_VSX): Ditto.
11985
11986 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
11987 (rs6000_ira_cover_classes): Ditto.
11988
11989 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
11990
11991 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
11992
11993 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
11994
11995 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
11996
11997 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
11998
11999 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
12000
12001 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
12002
12003 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
12004
12005 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
12006
12007 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
12008
12009 2011-03-29 Jakub Jelinek <jakub@redhat.com>
12010
12011 PR debug/48253
12012 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
12013 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
12014 dw_fde_unlikely_section_end_label, cold_in_std_section,
12015 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
12016 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
12017 fields.
12018 (output_fde): Use dw_fde_second_{begin,end} if second is
12019 true, otherwise dw_fde_{begin,end}.
12020 (output_call_frame_info): Test dw_fde_second_begin != NULL
12021 instead of dw_fde_switched_sections.
12022 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
12023 fields, initialize new fields. Initialize in_std_section
12024 unconditionally from the first partition.
12025 (dwarf2out_end_epilogue): Don't override dw_fde_end when
12026 dw_fde_second_begin is non-NULL.
12027 (dwarf2out_switch_text_section): Stop initializing removed
12028 dw_fde_struct fields, initialize new fields, initialize
12029 also dw_fde_end here. Set dw_fde_switch_cfi even when
12030 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
12031 (struct var_loc_list_def): Add last_before_switch field.
12032 (arange_table, arange_table_allocated, arange_table_in_use,
12033 ARANGE_TABLE_INCREMENT, add_arange): Removed.
12034 (size_of_aranges): Count !in_std_section and !second_in_std_section
12035 hunks in fdes, instead of looking at arange_table_in_use.
12036 (output_aranges): Add aranges_length argument, don't call
12037 size_of_aranges here. Instead of using aranges_table*
12038 emit ranges for fdes when !in_std_section resp.
12039 !second_in_std_section.
12040 (dw_loc_list): Break ranges crossing section switch.
12041 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
12042 use dw_fde_second_end instead of dw_fde_end as end of last range.
12043 (gen_subprogram_die): Don't call add_arange. Use
12044 dw_fde_{begin,end} for first partition and if switched
12045 section dw_fde_second_{begin,end} for the second.
12046 (var_location_switch_text_section_1,
12047 var_location_switch_text_section): New functions.
12048 (dwarf2out_begin_function): Initialize cold_text_section even
12049 when function_section () isn't text_section.
12050 (prune_unused_types): Don't walk arange_table.
12051 (dwarf2out_finish): Don't needlessly test
12052 flag_reorder_blocks_and_partition when testing cold_text_section_used.
12053 If info_section_emitted, call size_of_aranges and if it indicates
12054 non-empty .debug_aranges, call output_aranges with the computed
12055 size. Stop using removed dw_fde_struct fields, use
12056 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
12057 for second.
12058
12059 PR debug/48203
12060 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
12061 create ENTRY_VALUE if incoming or address of incoming's MEM
12062 is a hard REG.
12063 * dwarf2out.c (mem_loc_descriptor): Don't emit
12064 DW_OP_GNU_entry_value of DW_OP_fbreg.
12065 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
12066 on ENTRY_VALUE is able to find the canonical parameter VALUE.
12067 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
12068 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
12069 ENTRY_VALUE_EXPs.
12070 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
12071 is a REG_P or MEM_P with REG_P address, compute hash directly
12072 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
12073 (preserve_only_constants): Don't clear VALUES forwaring
12074 ENTRY_VALUE to some other VALUE.
12075
12076 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
12077
12078 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
12079 instead of GEN_INT.
12080
12081 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12082
12083 * cfgexpand.c (expand_gimple_cond): Always set the source location and
12084 block before expanding the statement.
12085 (expand_gimple_stmt_1): Likewise. Set them here...
12086 (expand_gimple_stmt): ...and not here. Tidy.
12087 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
12088 unknown.
12089
12090 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12091
12092 * Makefile.in: New rule for cprop.o.
12093 * gcse.c: Move constant/copy propagation to cprop.c.
12094 (compute_local_properties): Only handle expression tables.
12095 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
12096 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
12097 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
12098 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
12099 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
12100 compute_cprop_data, find_used_regs, try_replace_reg,
12101 find_avail_set, cprop_jump, constprop_register, cprop_insn,
12102 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
12103 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
12104 find_bypass_set, reg_killed_on_edge, bypass_block,
12105 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
12106 execute_rtl_cprop, pass_rtl_cprop): Move to...
12107 * cprop.c: ...here. New file, constant/copy propagation for RTL
12108 moved from gcse.c to here with minor cleanups in duplicated code.
12109
12110 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
12111
12112 * config/i386/i386.c (flag_opts): Fix a typo in
12113 -mavx256-split-unaligned-store.
12114
12115 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12116
12117 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
12118 LIBCALL_VALUE): Remove macros.
12119 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12120 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12121 (h8300_function_value, h8300_libcall_value,
12122 h8300_function_value_regno_p): New functions.
12123
12124 2011-03-28 Anatoly Sokolov <aesok@post.ru>
12125
12126 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
12127
12128 2011-03-28 Jeff Law <law@redhat.com>
12129
12130 * tree-ssa-threadupdate.c (redirect_edges): Call
12131 create_edge_and_update_destination_phis as needed.
12132 (create_edge_and_update_destination_phis): Accept new BB argument.
12133 All callers updated.
12134 (thread_block): Do not update the profile when threading around
12135 intermediate blocks.
12136 (thread_single_edge): Likewise.
12137 (determine_bb_domination_status): If BB is not a successor of the
12138 loop header, return NONDOMINATING.
12139 (register_jump_thread): Note when we register a jump thread around
12140 an intermediate block.
12141 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
12142 (thread_across_edge): Use it.
12143
12144 2011-03-28 Tristan Gingold <gingold@adacore.com>
12145
12146 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
12147 when for_return is 2.
12148
12149 2011-03-28 Jeff Law <law@redhat.com>
12150
12151 * var-tracking.c (canonicalize_values_mark): Delete unused
12152 lhs assignment.
12153 (canonicalize_values_star, set_variable_part): Likewise.
12154 (clobber_variable_part, delete_variable_part): Likewise.
12155
12156 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
12157
12158 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
12159
12160 2011-03-28 Martin Jambor <mjambor@suse.cz>
12161
12162 * tree-inline.c (expand_call_inline): Do not check that destination
12163 node is analyzed.
12164 (optimize_inline_calls): Assert that destination node is analyzed.
12165 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
12166 not call tree_lowering_passes.
12167 * cgraph.h (cgraph_analyze_function): Declare.
12168 * cgraphunit.c (cgraph_analyze_function): Make public.
12169
12170 2011-03-28 Joseph Myers <joseph@codesourcery.com>
12171
12172 * config/sparc/sparc-opts.h: New.
12173 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
12174 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
12175 (sparc_option_override): Store processor_type enumeration rather
12176 than string in cpu_default. Remove name and enumeration from
12177 cpu_table. Directly default -mcpu then default -mtune from -mcpu
12178 without using sparc_select. Use target_flags_explicit instead of
12179 fpu_option_set.
12180 * config/sparc/sparc.h (enum processor_type): Move to
12181 sparc-opts.h.
12182 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
12183 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
12184 HeaderInclude entry.
12185 (mcpu=, mtune=): Use Var and Enum.
12186 (sparc_processor_type): New Enum and EnumValue entries.
12187
12188 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12189 Iain Sandoe <iains@gcc.gnu.org>
12190
12191 PR target/48245
12192 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
12193
12194 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
12195
12196 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
12197 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
12198 Insert new statements at it in lieu of STMT.
12199 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
12200 * tree-vect-stmts.c (vectorizable_store): Likewise.
12201 (vectorizable_load): Likewise.
12202
12203 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
12204
12205 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
12206 (divtf3): Ditto.
12207 (multf3): Ditto.
12208 (subtf3): Ditto.
12209
12210 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12211
12212 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
12213 unaligned 256bit load/store.
12214 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
12215 (*avx_movdqu<avxmodesuffix>): Likewise.
12216
12217 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12218
12219 PR target/48288
12220 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
12221 * config/pa/pa.md (iordi3): Use new predicate in expander.
12222 (iorsi3): Likewise.
12223
12224 2011-03-27 Anatoly Sokolov <aesok@post.ru>
12225
12226 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
12227 FUNCTION_VALUE_REGNO_P): Remove macros.
12228 * config/mips/mips-protos.h (mips_function_value): Remove.
12229 * config/mips/mips.c (mips_function_value): Rename to...
12230 (mips_function_value_1): ... this. Make static. Handle receiving
12231 the function type in 'fn_decl_or_type' argument.
12232 (mips_function_value, mips_libcall_value,
12233 mips_function_value_regno_p): New function.
12234 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12235 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12236
12237 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
12238
12239 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
12240 and -mavx256-split-unaligned-store.
12241 (ix86_option_override_internal): Split 32-byte AVX unaligned
12242 load/store by default.
12243 (ix86_avx256_split_vector_move_misalign): New.
12244 (ix86_expand_vector_move_misalign): Use it.
12245
12246 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
12247 -mavx256-split-unaligned-store.
12248
12249 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
12250 256bit load/store. Generate unaligned store on misaligned memory
12251 operand.
12252 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
12253 256bit load/store.
12254 (*avx_movdqu<avxmodesuffix>): Likewise.
12255
12256 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
12257 -mavx256-split-unaligned-store.
12258
12259 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12260
12261 PR target/38598
12262 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
12263 Update commentary.
12264
12265 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
12266
12267 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
12268 opno arguments with an expand_operand. Use create_input_operand.
12269 (mips_prepare_builtin_target): Delete.
12270 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
12271 functions.
12272 (mips_expand_builtin_direct): Use create_output_operand and
12273 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
12274 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
12275 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
12276
12277 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
12278
12279 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
12280 function.
12281 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
12282
12283 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
12284
12285 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
12286 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
12287 basic blocks and call commit_edge_insertions directly.
12288 (fixup_abnormal_edges): Move from here to...
12289 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
12290 on the edges and return whether some have actually been inserted.
12291 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
12292 compensation code.
12293
12294 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
12295
12296 PR rtl-optimization/48144
12297 * sel-sched-ir.c (merge_history_vect): Factor out from ...
12298 (merge_expr_data): ... here.
12299 (av_set_intersect): Rename to av_set_code_motion_filter.
12300 Update all callers. Call merge_history_vect when an expression
12301 is found in both sets.
12302 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
12303
12304 2011-03-26 Alan Modra <amodra@gmail.com>
12305
12306 * config/rs6000/predicates.md (word_offset_memref_op): Handle
12307 cmodel medium addresses.
12308 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
12309 64-bit gpr loads and stores.
12310 (rs6000_secondary_reload_ppc64): New function.
12311 * config/rs6000/rs6000-protos.h: Declare it.
12312 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
12313
12314 2011-03-26 Alan Modra <amodra@gmail.com>
12315
12316 PR target/47487
12317 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
12318 GNU Go in traceback table.
12319
12320 2011-03-25 Richard Henderson <rth@redhat.com>
12321
12322 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
12323 if there are exactly 6 operands.
12324 (set_storage_via_setmem): Similarly.
12325
12326 2011-03-25 Kai Tietz <ktietz@redhat.com>
12327
12328 * collect2.c (write_c_file_stat): Handle backslash
12329 as right-hand directory separator.
12330 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
12331 checking just for slash.
12332 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
12333 instead of checking for trailing slash.
12334 * gcc.c (record_temp_file): Use filename_cmp instead
12335 of strcmp.
12336 (do_spec_1): Likewise.
12337 (replace_outfile_spec_function): Likewise.
12338 (is_directory): Use filename_ncmp instead of strncmp.
12339 (print_multilib_info): Likewise.
12340 * gcov.c (find_source): Use filename_cmp instead
12341 instead of strcmp.
12342 (make_gcov_file_name): Fix order of slash/backslash
12343 checks.
12344 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
12345 (add_standard_paths): Likewise.
12346 * mips-tfile.c (saber_stop): Handle backslash.
12347 * prefix.c (update_path): Use filename_ncmp instead of
12348 strncmp.
12349 * profile.c (output_location): Use filename_cmp instead
12350 of strcmp.
12351 * read-md.c (handle_toplevel_file): Handle backslash.
12352 * tlink.c (frob_extension): Likewise.
12353 * tree-cfg.c (same_line_p): Use filename_cmp instead of
12354 strcmp.
12355 * tree-dump.c (dequeue_and_dump): Handle backslash.
12356 * tree.c (get_file_function_name): Likewise.
12357 * gengtype.c (read_input_list): Likewise.
12358 (get_file_realbasename): Likewise.
12359 (get_output_file_with_visibility): Use filename_cmp
12360 instead of strcmp.
12361
12362 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
12363
12364 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
12365 case to VFPv1.
12366
12367 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12368
12369 * fold-const.c (expr_location_or): New function.
12370 (fold_truth_not_expr): Call it.
12371
12372 2011-03-25 Jeff Law <law@redhat.com>
12373
12374 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
12375 va_end.
12376 * c-family/c-common.c (def_fn_type): Likewise.
12377 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
12378 * emit-rtl.c (gen_rtvec): Likewise.
12379 * lto/lto-lang.c (def_fn_type): Likewise.
12380
12381 2011-03-25 Richard Guenther <rguenther@suse.de>
12382
12383 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
12384 also generate copies.
12385 (fini_copy_prop): Handle constant values properly.
12386
12387 2011-03-25 Jakub Jelinek <jakub@redhat.com>
12388
12389 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
12390 mode size instead of bitsize with DWARF2_ADDR_SIZE.
12391 (hash_loc_operands, compare_loc_operands): Handle
12392 DW_OP_GNU_entry_value.
12393
12394 2011-03-25 Kai Tietz <ktietz@redhat.com>
12395
12396 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
12397 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
12398 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
12399 comment and use macro TARGET_64BIT_MS_ABI instead.
12400 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
12401 and change default behavior for 32-bit MS_ABI.
12402 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
12403 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
12404 32-bit, too.
12405 (ix86_cfun_abi): Likewise.
12406 (ix86_maybe_switch_abi): Adjust comment.
12407 (init_cumulative_args): Check for bit-ness in MS_ABI case.
12408 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
12409 instead of checking for SYSV_ABI.
12410 (ix86_nsaved_sseregs): Likewise.
12411 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
12412 to 16 bytes.
12413 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
12414 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
12415 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
12416 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
12417 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
12418
12419 2011-03-25 Richard Guenther <rguenther@suse.de>
12420
12421 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
12422 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12423 (verify_gimple): Remove.
12424 * tree-cfg.c (verify_gimple_call): Merge verification
12425 from verify_stmts.
12426 (verify_gimple_phi): Merge verification from verify_stmts.
12427 (verify_gimple_label): New function.
12428 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
12429 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
12430 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
12431 (verify_stmts): Rename to verify_gimple_in_cfg.
12432 (verify_gimple_in_cfg): New function.
12433 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
12434 * tree-ssa.c (verify_ssa): Likewise.
12435 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
12436
12437 2011-03-25 Richard Guenther <rguenther@suse.de>
12438
12439 * passes.c (init_optimization_passes): Add FRE pass after
12440 early SRA.
12441
12442 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
12443 Andrew Stubbs <ams@codesourcery.com>
12444
12445 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
12446 for Cortex-A8.
12447 (arm_movdi_vfp_cortexa8): New pattern.
12448 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
12449 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
12450 instructions when tuning for Cortex-A8. Set attribute "arch".
12451 * config/arm/arm.md: Move include arm-tune.md up a bit.
12452 (define_attr "arch"): Add "onlya8" and "nota8" values.
12453 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
12454
12455 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
12456
12457 PR bootstrap/48282
12458 Revert:
12459 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12460
12461 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12462 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12463 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12464 * passes.c (init_optimization_passes): Move
12465 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12466
12467 2011-03-25 Kai Tietz <ktietz@redhat.com>
12468
12469 * c-typeck.c (comptypes_internal): Replace target
12470 hook call of comp_type_attributes by version in tree.c file.
12471 * gimple.c (gimple_types_compatible_p_1): Likewise.
12472 * tree-ssa.c (useless_type_conversion_p): Likewise.
12473 * tree.c (build_type_attribute_qual_variant): Likewise.
12474 (attribute_value_equal): New static helper function.
12475 (comp_type_attributes): New function.
12476 (merge_attributes): Use attribute_value_equal for comparison.
12477 (attribute_list_contained): Likewise.
12478 * tree.h (comp_type_attributes): New prototype.
12479
12480 2011-03-25 Richard Guenther <rguenther@suse.de>
12481
12482 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
12483 of complex types at -O0.
12484 (verify_gimple_assign_binary): Likewise.
12485 (verify_gimple_assign_ternary): Likewise.
12486
12487 2011-03-24 Mark Wielaard <mjw@redhat.com>
12488
12489 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
12490 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
12491
12492 2011-03-24 Mark Wielaard <mjw@redhat.com>
12493
12494 PR debug/48041
12495 * dwarf2out.c (output_abbrev_section): Only write table when
12496 abbrev_die_table_in_use > 1.
12497
12498 2011-02-24 Richard Henderson <rth@redhat.com>
12499
12500 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
12501 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
12502 (alpha_expand_unaligned_load_words): Use extql.
12503 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
12504 (emit_insxl): Handle all modes for consistency.
12505
12506 2011-02-24 Richard Henderson <rth@redhat.com>
12507
12508 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
12509 (alpha_expand_unaligned_load): Likewise.
12510 (alpha_expand_unaligned_store): Likewise.
12511 (alpha_expand_unaligned_load_words): Likewise.
12512 (alpha_expand_unaligned_store_words): Likewise.
12513 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
12514 (alpha_split_lock_test_and_set_12): Likewise.
12515 (print_operand, alpha_fold_builtin_extxx): Likewise.
12516 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
12517 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
12518 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
12519 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
12520 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
12521 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
12522 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
12523 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
12524 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
12525 (extwl, extll, extql): Similarly.
12526 (inswh, inslh, insqh): Similarly.
12527 (mskbl, mskwl, mskll, mskql): Similarly.
12528 (mskwh, msklh, mskqh): Similarly.
12529
12530 2011-02-24 Richard Henderson <rth@redhat.com>
12531
12532 * config/alpha/alpha.md (attribute isa): Add er, ner.
12533 (attribute enabled): Handle them.
12534 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
12535
12536 2011-02-24 Richard Henderson <rth@redhat.com>
12537
12538 * config/alpha/alpha.md (attribute isa): Add vms.
12539 (attribute enabled): Handle it.
12540 (*movsf): Merge *movsf_{nofix,fix,nofp}.
12541 (*movdf): Merge *movdf_{nofix,fix,nofp}.
12542 (*movtf): Rename from *movtf_internal for consistency.
12543 (*movsi): Merge with *movsi_nt_vms.
12544 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
12545 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
12546 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
12547 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
12548
12549 2011-02-24 Richard Henderson <rth@redhat.com>
12550
12551 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
12552 (extendqisi2, extendhisi2): Likewise.
12553 (extendqidi2): Simplify BWX/non-BWX expansions.
12554 (extendhidi2): Similarly.
12555
12556 2011-02-24 Richard Henderson <rth@redhat.com>
12557
12558 * config/alpha/alpha.md (attribute isa): New.
12559 (attribute enabled): New.
12560 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
12561 (zero_extendqisi2, zero_extendqidi2): Similarly.
12562 (zero_extendhisi2, zero_extendhidi2): Similarly.
12563 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
12564
12565 2011-02-24 Richard Henderson <rth@redhat.com>
12566
12567 * config/alpha/predicates.md (input_operand): Revert last change;
12568 update comment to mention 32-bit VMS rather than Windows.
12569
12570 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12571
12572 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
12573 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
12574 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
12575 * passes.c (init_optimization_passes): Move
12576 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
12577
12578 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12579
12580 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
12581
12582 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12583
12584 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
12585 correctly.
12586
12587 2011-03-24 Jakub Jelinek <jakub@redhat.com>
12588
12589 PR debug/48204
12590 * simplify-rtx.c (simplify_const_unary_operation): Call
12591 real_convert when changing mode class with FLOAT_EXTEND.
12592
12593 2011-03-24 Nick Clifton <nickc@redhat.com>
12594
12595 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
12596 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
12597 * config/rx/rx.c (rx_option_override): Set align_jumps,
12598 align_loops and align_labels if not set by the user.
12599 (rx_align_for_label): New function.
12600 (rx_max_skip_for_label): New function.
12601 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
12602 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
12603 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
12604 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
12605 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
12606
12607 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12608
12609 PR rtl-optimization/48263
12610 * optabs.c (expand_binop_directly): Reinstate convert_modes code
12611 and original commutative_p handling. Use maybe_gen_insn.
12612
12613 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12614
12615 * reload.c (find_reloads_subreg_address): Add address_reloaded
12616 parameter and return true there if the full address has been
12617 reloaded.
12618 (find_reloads_toplev): Pass address_reloaded flag.
12619 (find_reloads_address_1): Don't use address_reloaded parameter.
12620
12621 2011-03-24 Jeff Law <law@redhat.com>
12622
12623 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
12624 unused variable "ann".
12625 (remove_unused_locals): Likewise.
12626
12627 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
12628 statement.
12629
12630 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
12631 after it is freed.
12632
12633 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12634
12635 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
12636 for invalid symbolic addresses.
12637 (s390_secondary_reload): Don't use s390_check_symref_alignment for
12638 larl operands.
12639
12640 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12641
12642 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
12643 the argument in calls to fold_truth_not_expr.
12644
12645 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12646
12647 * tree.c (record_node_allocation_statistics): New function.
12648 (make_node_stat, copy_node_stat, build_string): Call it.
12649 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
12650 (build1_stat, build_omp_clause): Likewise.
12651
12652 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12653
12654 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
12655 last commit.
12656
12657 2011-03-24 Richard Guenther <rguenther@suse.de>
12658
12659 PR tree-optimization/48271
12660 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
12661 blocks that still exist.
12662
12663 2011-03-24 Richard Guenther <rguenther@suse.de>
12664
12665 PR tree-optimization/48270
12666 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
12667 not free datarefs before ddrs.
12668
12669 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
12670
12671 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
12672 from the address built for a reference with variable offset.
12673
12674 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
12675
12676 PR target/48237
12677 * config/i386/i386.md (*movdf_internal_rex64): Do not split
12678 alternatives that can be handled with movq or movabsq insn.
12679 (*movdf_internal): Disable for !TARGET_64BIT.
12680 (*movdf_internal_nointeger): Ditto.
12681 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
12682
12683 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
12684
12685 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12686 (FUNCTION_ARG_ADVANCE): Likewise.
12687 * tm.texi.in: Change references to them to hook references.
12688 * tm.texi: Regenerate.
12689 * targhooks.c (default_function_arg): Eliminate check for target macro.
12690 (default_function_incoming_arg): Likewise.
12691 (default_function_arg_advance): Likewise.
12692 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12693 (function_arg_advance): Likewise.
12694 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12695
12696 2011-03-24 Richard Guenther <rguenther@suse.de>
12697
12698 PR middle-end/48269
12699 * tree-object-size.c (addr_object_size): Do not double-account
12700 for MEM_REF offsets.
12701
12702 2011-03-24 Diego Novillo <dnovillo@google.com>
12703
12704 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
12705 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
12706 (lto_input_data_block): Move from lto-opts.c. Make extern.
12707 Update all users.
12708 (lto_input_string): Rename from input_string. Make extern.
12709 Update all users.
12710 * lto-streamer-out.c (lto_output_string_with_length): Rename from
12711 output_string_with_length.
12712 Output 0 to indicate a non-NULL string. Update all callers to
12713 not emit 0.
12714 (lto_output_string): Rename from output_string. Make extern.
12715 Update all users.
12716 (lto_output_decl_state_streams): Make extern.
12717 (lto_output_decl_state_refs): Make extern.
12718 * lto-streamer.h (lto_input_string): Declare.
12719 (lto_input_data_block): Declare.
12720 (lto_output_string): Declare.
12721 (lto_output_string_with_length): Declare.
12722 (lto_output_decl_state_streams): Declare.
12723 (lto_output_decl_state_refs): Declare.
12724
12725 2011-03-24 Richard Guenther <rguenther@suse.de>
12726
12727 PR tree-optimization/46562
12728 * tree.c (build_invariant_address): New function.
12729 * tree.h (build_invariant_address): Declare.
12730 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
12731 a renamed function moved ...
12732 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
12733 Take valueization callback parameter.
12734 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
12735 * gimple-fold.h: New file.
12736 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
12737 (ccp_fold, fold_const_aggregate_ref,
12738 fold_ctor_reference, fold_nonarray_ctor_reference,
12739 fold_array_ctor_reference, fold_string_cst_ctor_reference,
12740 get_base_constructor): Move ...
12741 * gimple-fold.c: ... here.
12742 (gimple_fold_stmt_to_constant_1): New function
12743 split out from ccp_fold. Take a valueization callback parameter.
12744 Valueize all operands.
12745 (gimple_fold_stmt_to_constant): New wrapper function.
12746 (fold_const_aggregate_ref_1): New function split out from
12747 fold_const_aggregate_ref. Take a valueization callback parameter.
12748 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
12749 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
12750 invariant POINTER_PLUS_EXPRs to invariant form.
12751 (vn_valueize): New function.
12752 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
12753 * tree-vrp.c (vrp_valueize): New function.
12754 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
12755 to fold statements to constants.
12756 * tree-ssa-pre.c (eliminate): Properly guard propagation of
12757 function declarations.
12758 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
12759 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
12760
12761 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
12762
12763 * config/h8300/predicates.md (jump_address_operand): Fix register
12764 mode check.
12765
12766 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
12767
12768 * doc/invoke.texi (max-stores-to-sink): Document.
12769 * params.h (MAX_STORES_TO_SINK): Define.
12770 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
12771 if either vectorization or if-conversion is disabled.
12772 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
12773 tree-vect-data-refs.c vect_equal_offsets.
12774 (dr_equal_offsets_p): New function.
12775 (find_data_references_in_bb): Remove static.
12776 * tree-data-ref.h (find_data_references_in_bb): Declare.
12777 (dr_equal_offsets_p): Likewise.
12778 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
12779 (vect_drs_dependent_in_basic_block): Update calls to
12780 vect_equal_offsets.
12781 (vect_check_interleaving): Likewise.
12782 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
12783 (cond_if_else_store_replacement): Rename to...
12784 (cond_if_else_store_replacement_1): ... this. Change arguments and
12785 documentation.
12786 (cond_if_else_store_replacement): New function.
12787 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
12788 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
12789
12790 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
12791
12792 PR target/46934
12793 * config/arm/arm.md (casesi): Use the gen_int_mode() function
12794 to subtract lower bound instead of GEN_INT().
12795
12796 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
12797
12798 PR other/48179
12799 PR other/48221
12800 PR other/48234
12801 * doc/extend.texi (Alignment): Move section to match order in TOC.
12802 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
12803 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
12804
12805 2011-03-23 Jeff Law <law@redhat.com>
12806
12807 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
12808 before removing the edge.
12809
12810 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
12811 it may have been freed by redirect_branch_edge or
12812 redirect_edge_succ_nodup.
12813
12814 2011-03-23 Richard Guenther <rguenther@suse.de>
12815
12816 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
12817 (check_va_list_escapes): Likewise.
12818 (check_all_va_list_escapes): Likewise.
12819
12820 2011-03-23 Richard Guenther <rguenther@suse.de>
12821
12822 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
12823 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
12824 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
12825 (alias.o): Likewise.
12826 (ipa-type-escape.o): Remove.
12827 (ipa-struct-reorg.o): Likewise.
12828 (GTFILES): Remove ipa-struct-reorg.c.
12829 * alias.c: Do not include ipa-type-escape.h.
12830 * tree-ssa-alias.c: Likewise.
12831 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
12832 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
12833 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
12834 and ipa-type-escape passes.
12835 * tree-pass.h (pass_ipa_type_escape): Remove.
12836 (pass_ipa_struct_reorg): Likewise.
12837 * ipa-struct-reorg.h: Remove.
12838 * ipa-struct-reorg.c: Likewise.
12839 * ipa-type-escape.h: Likewise.
12840 * ipa-type-escape.c: Likewise.
12841 * doc/invoke.texi (-fipa-struct-reorg): Remove.
12842 (--param struct-reorg-cold-struct-ratio): Likewise.
12843 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12844 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
12845 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
12846
12847 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12848
12849 * config/s390/2084.md: Enable all insn reservations also for z9_ec
12850 cpu attribute value.
12851 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
12852 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
12853 * config/s390/s390.c (processor_flags_table): New constant array.
12854 (s390_handle_arch_option): Remove.
12855 (s390_handle_option): Remove s390_handle_arch_option invocations
12856 and OPT_mwarn_framesize_ handling.
12857 (s390_option_override): Remove s390_handle_arch_option invocation.
12858 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
12859 warnings.
12860 * config/s390/s390.md (cpu attribute): Add z9_ec value.
12861 * config/s390/s390.opt (s390_tune, s390_arch)
12862 (march=): Replace s390_arch_option enum and values with
12863 processor_type. Set variable name to s390_arch. Set
12864 initialization value.
12865 (mtune=): Replace s390_arch_option with processor_type. Set
12866 variable name to s390_tune. Set initialization value.
12867
12868 2011-03-23 Julian Brown <julian@codesourcery.com>
12869
12870 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
12871 accesses which are not naturally aligned.
12872
12873 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12874
12875 PR target/47553
12876 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
12877
12878 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
12879
12880 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
12881 parameter from "int" to "enum insn_code".
12882 (expand_operand_type): New enum.
12883 (expand_operand): New structure.
12884 (create_expand_operand): New function.
12885 (create_fixed_operand, create_output_operand): Likewise
12886 (create_input_operand, create_convert_operand_to): Likewise.
12887 (create_convert_operand_from, create_address_operand): Likewise.
12888 (create_integer_operand): Likewise.
12889 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
12890 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12891 (expand_insn, expand_jump_insn): Likewise.
12892 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
12893 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
12894 (expand_movstr, expand_builtin___clear_cache): Likewise.
12895 (expand_builtin_lock_release): Likewise.
12896 * explow.c (allocate_dynamic_stack_space): Likewise.
12897 (probe_stack_range): Likewise. Allow check_stack to FAIL,
12898 and use the default handling in that case.
12899 * expmed.c (check_predicate_volatile_ok): Delete.
12900 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
12901 (emit_cstore): Likewise.
12902 * expr.c (emit_block_move_via_movmem): Likewise.
12903 (set_storage_via_setmem, expand_assignment): Likewise.
12904 (emit_storent_insn, try_casesi): Likewise.
12905 (emit_single_push_insn): Likewise. Allow the expansion to fail.
12906 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
12907 (expand_vec_shift_expr, expand_binop_directly): Likewise.
12908 (expand_twoval_unop, expand_twoval_binop): Likewise.
12909 (expand_unop_direct, emit_indirect_jump): Likewise.
12910 (emit_conditional_move, vector_compare_rtx): Likewise.
12911 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
12912 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
12913 (expand_sync_lock_test_and_set): Likewise.
12914 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
12915 (emit_unop_insn): Likewise.
12916 (expand_copysign_absneg): Change icode to an insn_code.
12917 (create_convert_operand_from_type): New function.
12918 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
12919 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
12920 (expand_insn, expand_jump_insn): Likewise.
12921 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
12922 than const_int_operand for operand 2.
12923
12924 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12925
12926 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
12927 if possible.
12928
12929 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12930
12931 * emit-rtl.c (emit_pattern_before_noloc): New function.
12932 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
12933 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
12934 (emit_pattern_after_noloc): New function.
12935 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
12936 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
12937
12938 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12939
12940 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
12941 (__ffsDI2): Likewise.
12942
12943 2011-03-22 Richard Henderson <rth@redhat.com>
12944
12945 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
12946 of !TARGET_ABI_OPEN_VMS.
12947 (alpha_trampoline_init, alpha_start_function): Likewise.
12948 (alpha_expand_epilogue, alpha_file_start): Likewise.
12949 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
12950 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
12951 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
12952 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
12953 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
12954
12955 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12956
12957 * config/s390/s390-opts.h: New.
12958 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
12959 s390_arch_flags, s390_warn_framesize, s390_stack_size,
12960 s390_stack_guard): Remove.
12961 (s390_handle_arch_option): Return void. Take enum
12962 s390_arch_option value instead of string and searching array.
12963 (s390_handle_option): Don't assert that global structures are in
12964 use. Access variables via opts pointer. Use error_at. Don't use
12965 sscanf for -mstack-guard= or -mstack-size=. Update call to
12966 s390_handle_arch_option.
12967 (s390_option_override): Update call to s390_handle_arch_option.
12968 (s390_emit_prologue): Use %d format for s390_stack_size in
12969 diagnostic. Use %wd for HOST_WIDE_INT.
12970 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
12971 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
12972 * config/s390/s390.opt (config/s390/s390-opts.h): New
12973 HeaderInclude entry.
12974 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
12975 s390_arch_flags, s390_warn_framesize): New Variable entries.
12976 (s390_arch_option): New Enum and EnumValue entries.
12977 (march=): Use Enum instead of Var.
12978 (mstack-guard=, mstack-size=): Use UInteger and Var.
12979 (mtune=): Use Enum.
12980
12981 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12982
12983 * config/score/score.c (score_handle_option): Don't assert that
12984 global structures are in use. Access target_flags via opts
12985 pointer. Use value of -march= option to determine target_flags
12986 settings.
12987 * config/score/score.opt (march=): Use Enum.
12988 (score_arch): New Enum and EnumValue entries.
12989
12990 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12991
12992 * config/mep/mep.c (option_mtiny_specified): Remove.
12993 (mep_option_override): Move register handling for -mivc2 from
12994 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
12995 instead of option_mtiny_specified.
12996 (mep_handle_option): Access target_flags via opts pointer. Don't
12997 assert that global structures are in use. Defer part of -mivc2
12998 handling and move it to mep_option_override.
12999 * config/mep/mep.opt (IVC2): New Mask entry.
13000 (mivc2): Use Var and Defer instead of Mask.
13001
13002 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13003
13004 * config/v850/v850-opts.h: New.
13005 * config/v850/v850.c (small_memory): Replace with
13006 small_memory_physical_max array. Make that array static const.
13007 (v850_handle_memory_option): Take integer value of argument. Take
13008 gcc_options pointer, option text and location. Return void.
13009 Update for changes to small memory structures.
13010 (v850_handle_option): Access target_flags via opts pointer. Don't
13011 assert that global structures are in use. Update calls to
13012 v850_handle_memory_option.
13013 (v850_encode_data_area): Update references to small memory settings.
13014 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
13015 (enum small_memory_type): Move to v850-opts.h.
13016 * config/v850/v850.opt (config/v850/v850-opts.h): New
13017 HeaderInclude entry.
13018 (small_memory_max): New Variable entry.
13019 (msda): Replace by pair of options msda= and msda-. Use UInteger.
13020 (mtda, mzda): Likewise.
13021
13022 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13023
13024 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
13025 pointer. Don't assert that global structures are in use.
13026
13027 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13028
13029 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
13030 via opts pointer. Don't assert that global structures are in use.
13031
13032 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13033
13034 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
13035 (munix=93): Use Var.
13036 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
13037 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
13038 * config/pa/pa-opts.h: New.
13039 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
13040 (pa_handle_option): Don't assert that global structures are in
13041 use. Access target_flags via opts pointer. Don't handle
13042 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
13043 OPT_munix_98 here.
13044 (pa_option_override): Handle deferred OPT_mfixed_range_.
13045
13046 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13047
13048 * config/mn10300/mn10300-opts.h: New.
13049 * config/mn10300/mn10300.c (mn10300_processor,
13050 mn10300_tune_string): Remove.
13051 (mn10300_handle_option): Don't assert that global structures are
13052 in use. Access mn10300_processor via opts pointer. Don't handle
13053 OPT_mtune_ here.
13054 * config/mn10300/mn10300.h (enum processor_type): Move to
13055 mn10300-opts.h.
13056 (mn10300_processor): Remove.
13057 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
13058 HeaderInclude entry.
13059 (mn10300_processor): New Variable entry.
13060 (mtune=): Use Var.
13061
13062 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13063
13064 * config/microblaze/microblaze.c: Don't include opts.h.
13065 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
13066 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
13067 (mno-clearbss): Use Var and Warn.
13068
13069 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13070
13071 * config/m32r/m32r-opts.h: New.
13072 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
13073 (m32r_handle_option): Don't assert that global structures are in
13074 use. Access target_flags and m32r_cache_flush_func via opts
13075 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
13076 OPT_mno_flush_trap here.
13077 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
13078 include of m32r-opts.h.
13079 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
13080 HeaderInclude entry.
13081 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
13082 (mmodel=): Use Enum and Var.
13083 (m32r_model): New Enum and EnumValue entries.
13084 (mno-flush-trap): Use Var.
13085 (msdata=): Use Enum and Var.
13086 (m32r_sdata): New Enum and EnumValue entries.
13087
13088 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13089
13090 * config/m32c/m32c.c: Don't include opts.h.
13091 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
13092 m32c_handle_option): Remove.
13093 (m32c_option_override): Check global_options_set.x_target_memregs
13094 instead of target_memregs_set.
13095 * config/m32c/m32c.h (target_memregs): Remove.
13096 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
13097 variable.
13098
13099 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13100
13101 * config/iq2000/iq2000-opts.h: New.
13102 * config/iq2000/iq2000.c: Don't include opts.h.
13103 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
13104 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
13105 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
13106 HeaderInclude entry.
13107 (iq2000_tune): New Variable entry.
13108 (march=): Add comment. Use Enum.
13109 (iq2000_arch): New Enum and EnumValue entries.
13110 (mcpu=): Use Enum and Var.
13111 (iq2000_tune): New Enum and EnumValue entries.
13112
13113 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13114
13115 * config/ia64/ia64-opts.h: New.
13116 * config/ia64/ia64.c (ia64_tune): Remove.
13117 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
13118 here. Use error_at.
13119 (ia64_option_override): Handle deferred OPT_mfixed_range_.
13120 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
13121 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
13122 HeaderInclude entry.
13123 (ia64_tune): New Variable entry.
13124 (mfixed-range=): Use Defer and Var.
13125 (mtune=): Use Enum and Var.
13126 (ia64_tune): New Enum and EnumValue entries.
13127
13128 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13129
13130 * config/frv/frv-opts.h: New.
13131 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
13132 frv-opts.h.
13133 (frv_cpu_type): Remove.
13134 * config/frv/frv.c: Don't include opts.h.
13135 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
13136 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
13137 (frv_cpu_type): New Variable entry.
13138 (frv_cpu): New Enum and EnumValue entries.
13139
13140 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13141
13142 * config/cris/cris.c (cris_handle_option): Access target_flags via
13143 opts pointer. Don't assert that global structures are in use.
13144 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
13145 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
13146
13147 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13148
13149 * config/bfin/bfin-opts.h: New.
13150 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
13151 bfin_si_revision, bfin_workarounds): Remove.
13152 (bfin_cpus): Make static const.
13153 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
13154 not bfin_lib_id_given.
13155 (bfin_handle_option): Don't set bfin_lib_id_given. Access
13156 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
13157 pointer. Use error_at. Don't assert that global structures are in use.
13158 * config/bfin/bfin.h: Include bfin-opts.h.
13159 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
13160 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
13161 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
13162 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
13163 entries.
13164
13165 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13166
13167 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
13168 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
13169 or -msoft-float here.
13170 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
13171 -msoft-float and -mhard-float.
13172 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
13173 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13174 msoft-float.
13175 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
13176 -msoft-float.
13177 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
13178 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
13179 not mhard-float.
13180 (LIBGCC_SPEC): Don't handle -msoft-float.
13181 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
13182 -mhard-float.
13183 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
13184 msoft-float.
13185 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
13186 -mfloat-abi=*, not -msoft-float and -mhard-float.
13187 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
13188 -msoft-float.
13189 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
13190 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
13191 mhard-float and msoft-float.
13192 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
13193 mfloat-abi=soft in comments, not mhard-float and msoft-float.
13194 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13195 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
13196 mhard-float.
13197 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
13198 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
13199 msoft-float.
13200 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
13201 not mhard-float.
13202 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
13203 not msoft-float.
13204
13205 2011-03-22 Richard Henderson <rth@redhat.com>
13206
13207 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
13208 TARGET_ABI_WINDOWS_NT.
13209 (alpha_output_function_end_prologue): Likewise.
13210 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
13211 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
13212 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
13213 (trap, *movsi_nt_vms): Likewise.
13214 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
13215 (*tablejump_osf_nt_internal): Remove.
13216 * config/alpha/predicates.md (input_operand): Only test Pmode.
13217
13218 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13219
13220 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
13221 via opts pointer. Use error_at. Don't assert that global
13222 structures are in use.
13223
13224 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13225
13226 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
13227 (ix86_handle_option): Access ix86_isa_flags and
13228 ix86_isa_flags_explicit via opts pointer. Don't assert that
13229 global structures are in use.
13230 (ix86_function_specific_save, ix86_function_specific_restore):
13231 Update ix86_isa_flags_explicit field name.
13232 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
13233 (ix86_isa_flags_explicit): Rename TargetSave entry to
13234 x_ix86_isa_flags_explicit.
13235
13236 2011-03-22 Richard Henderson <rth@redhat.com>
13237
13238 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
13239 (alpha_option_override, direct_return): Likewise.
13240 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
13241 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
13242 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
13243 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13244 (alpha_expand_epilogue, alpha_end_function): Likewise.
13245 (alpha_init_libfuncs): Likewise.
13246 (struct machine_function): Remove unicosmk members.
13247 (print_operand) ['t']: Remove.
13248 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
13249 unicosmk_output_module_name, unicosmk_output_common,
13250 current_section_align, unicosmk_output_text_section_asm_op,
13251 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
13252 unicosmk_section_type_flags, unicosmk_unique_section,
13253 unicosmk_asm_named_section, unicosmk_insert_attributes,
13254 unicosmk_output_align, unicosmk_defer_case_vector,
13255 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
13256 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
13257 unicosmk_output_ssib, unicosmk_add_call_info_word,
13258 unicosmk_extern_head, unicosmk_output_default_externs,
13259 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
13260 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
13261 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
13262 * config/alpha/alpha-protos.h: Update.
13263 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
13264 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
13265 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
13266 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
13267 (*mulsi_se, mulvsi3): Likewise.
13268 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
13269 (*divmodsi_internal, call, call_value, realign): Likewise.
13270 (moddi3, umoddi3): Likewise; remove duplicate expander.
13271 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
13272 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
13273 (*movdi_nofix): Remove r/U alternative.
13274 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
13275 * config/alpha/constraints.md ("U"): Remove.
13276 * config/alpha/predicates.md (call_operand"): Don't test
13277 TARGET_ABI_UNICOSMK.
13278
13279 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13280
13281 * target.def (handle_option): Take gcc_options and
13282 cl_decoded_option pointers and location_t.
13283 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
13284 * doc/tm.texi: Regenerate.
13285 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
13286 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
13287 * lto-opts.c (lto_reissue_options): Generate option structure for
13288 targetm.handle_option call.
13289 * opts.c (target_handle_option): Update call to
13290 targetm.handle_option. Remove assertions about values now passed
13291 down to hook.
13292 * targhooks.c (default_target_handle_option): New.
13293 * targhooks.h (default_target_handle_option): Declare.
13294 * config/alpha/alpha.c: Include opts.h.
13295 (alpha_handle_option): Update to new hook interface.
13296 * config/arm/arm.c: Include opts.h.
13297 (arm_handle_option): Update to new hook interface.
13298 * config/arm/t-arm (arm.o): Update dependencies.
13299 * config/bfin/bfin.c: Include opts.h.
13300 (bfin_handle_option): Update to new hook interface.
13301 * config/cris/cris.c: Include opts.h.
13302 (cris_handle_option): Update to new hook interface.
13303 * config/frv/frv.c: Include opts.h.
13304 (frv_handle_option): Update to new hook interface.
13305 * config/i386/i386.c: Include opts.h.
13306 (ix86_handle_option): Update to new hook interface.
13307 (ix86_valid_target_attribute_inner_p): Generate option structure
13308 for call to ix86_handle_option.
13309 * config/i386/t-i386 (i386.o): Update dependencies.
13310 * config/ia64/ia64.c: Include opts.h.
13311 (ia64_handle_option): Update to new hook interface.
13312 * config/ia64/t-ia64 (ia64.o): Update dependencies.
13313 * config/iq2000/iq2000.c: Include opts.h.
13314 (iq2000_handle_option): Update to new hook interface.
13315 * config/m32c/m32c.c: Include opts.h.
13316 (m32c_handle_option): Update to new hook interface.
13317 * config/m32r/m32r.c: Include opts.h.
13318 (m32r_handle_option): Update to new hook interface.
13319 * config/m68k/m68k.c: Include opts.h.
13320 (m68k_handle_option): Update to new hook interface.
13321 * config/mep/mep.c: Include opts.h.
13322 (mep_handle_option): Update to new hook interface.
13323 * config/microblaze/microblaze.c: Include opts.h.
13324 (microblaze_handle_option): Update to new hook interface.
13325 * config/mips/mips.c: Include opts.h.
13326 (mips_handle_option): Update to new hook interface.
13327 * config/mn10300/mn10300.c: Include opts.h.
13328 (mn10300_handle_option): Update to new hook interface.
13329 * config/pa/pa.c: Include opts.h.
13330 (pa_handle_option): Update to new hook interface.
13331 * config/pdp11/pdp11.c: Include opts.h.
13332 (pdp11_handle_option): Update to new hook interface.
13333 * config/rs6000/rs6000.c: Include opts.h.
13334 (rs6000_handle_option): Update to new hook interface.
13335 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
13336 * config/rx/rx.c: Include opts.h.
13337 (rx_handle_option): Update to new hook interface.
13338 * config/s390/s390.c: Include opts.h.
13339 (s390_handle_option): Update to new hook interface.
13340 * config/score/score.c: Include opts.h.
13341 (score_handle_option): Update to new hook interface.
13342 * config/sh/sh.c: Include opts.h.
13343 (sh_handle_option): Update to new hook interface.
13344 * config/sparc/sparc.c: Include opts.h.
13345 (sparc_handle_option): Update to new hook interface.
13346 * config/v850/v850.c: Include opts.h.
13347 (v850_handle_option): Update to new hook interface.
13348
13349 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13350
13351 * gcc.c (driver_unknown_option_callback): Only permit and save
13352 unknown -Wno- options.
13353 (driver_wrong_lang_callback): Save options directly instead of via
13354 driver_unknown_option_callback.
13355
13356 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13357
13358 * combine.c (simplify_set): Try harder to find the best CC mode when
13359 simplifying a nested COMPARE on the RHS.
13360
13361 2011-03-22 Joseph Myers <joseph@codesourcery.com>
13362
13363 * config/alpha/gnu.h: Remove.
13364 * config/arc: Remove directory.
13365 * config/arm/netbsd.h: Remove.
13366 * config/arm/t-pe: Remove.
13367 * config/crx: Remove directory.
13368 * config/i386/netbsd.h: Remove.
13369 * config/m68hc11: Remove directory.
13370 * config/m68k/uclinux-oldabi.h: Remove.
13371 * config/mcore/mcore-pe.h: Remove.
13372 * config/mcore/t-mcore-pe: Remove.
13373 * config/netbsd-aout.h: Remove.
13374 * config/rs6000/gnu.h: Remove.
13375 * config/sh/sh-symbian.h: Remove.
13376 * config/sh/symbian-base.c: Remove.
13377 * config/sh/symbian-c.c: Remove.
13378 * config/sh/symbian-cxx.c: Remove.
13379 * config/sh/symbian-post.h: Remove.
13380 * config/sh/symbian-pre.h: Remove.
13381 * config/sh/t-symbian: Remove.
13382 * config/svr3.h: Remove.
13383 * config/vax/netbsd.h: Remove.
13384 * config.build: Don't handle i[34567]86-*-pe.
13385 * config.gcc: Remove handling of deprecations for most deprecated
13386 targets.
13387 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
13388 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
13389 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
13390 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
13391 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
13392 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
13393 Remove cases.
13394 * config.host: Don't handle i[34567]86-*-pe.
13395 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
13396 (ASM_SPEC32): Don't handle -mcall-gnu.
13397 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
13398 -mcall-gnu.
13399 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
13400 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
13401 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
13402 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
13403 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
13404 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
13405 conditional on SYMBIAN.
13406 * configure.ac: Don't handle powerpc*-*-gnu*.
13407 * configure: Regenerate.
13408 * doc/extend.texi (interrupt attribute): Don't mention CRX.
13409 * doc/install-old.texi (m6811, m6812): Don't mention.
13410 * doc/install.texi (arc-*-elf*): Don't document multilib option.
13411 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
13412 (m68k-uclinuxoldabi): Don't mention.
13413 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
13414 Remove.
13415 (-mcall-gnu): Remove.
13416 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
13417 families): Remove constraint documentation.
13418
13419 2011-03-22 Marius Strobl <marius@FreeBSD.org>
13420
13421 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
13422 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
13423 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
13424
13425 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13426
13427 PR target/48226
13428 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
13429 vector when peeking at the next token for vector, don't expand the
13430 keywords.
13431
13432 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
13433
13434 * config/avr/avr-protos.h (expand_epilogue): Change prototype
13435 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
13436 * config/avr/avr.c (init_cumulative_args)
13437 (avr_function_arg_advance): Use it.
13438 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
13439 sibcall epilogues.
13440 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
13441 (avr_function_ok_for_sibcall): ...this new function.
13442 (avr_lookup_function_attribute1): New static Function.
13443 (avr_naked_function_p, interrupt_function_p)
13444 (signal_function_p, avr_OS_task_function_p)
13445 (avr_OS_main_function_p): Use it.
13446 * config/avr/avr.md ("sibcall", "sibcall_value")
13447 ("sibcall_epilogue"): New expander.
13448 ("*call_insn", "*call_value_insn"): New insn.
13449 ("call_insn", "call_value_insn"): Remove
13450 ("call", "call_value", "epilogue"): Change expander to handle
13451 sibling calls.
13452
13453 2011-03-21 Nick Clifton <nickc@redhat.com>
13454
13455 * doc/invoke.texi (Overall Options): Move closing brace to end of
13456 options list.
13457 (Optimization Options): Add missing @gol.
13458 (Directory Options): Likewise.
13459 (i386 and x86-64 Options): Likewise.
13460 (RS6000 and PowerPC Options): Likewise.
13461 (i386 and x86-64 Windows Options): Likewise.
13462 (V850 Options): Add text missing from descriptions.
13463
13464 2011-03-22 Richard Henderson <rth@redhat.com>
13465
13466 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
13467 (avr_incoming_return_addr_rtx): New.
13468 (emit_push_byte): New.
13469 (expand_prologue): Use it. Remove incorrect dwarf annotation for
13470 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
13471 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
13472 (emit_pop_byte): New.
13473 (expand_epilogue): Use it. Pop frame pointer by bytes.
13474 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
13475 (INCOMING_RETURN_ADDR_RTX): New.
13476 (INCOMING_FRAME_SP_OFFSET): New.
13477 (ARG_POINTER_CFA_OFFSET): New.
13478 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
13479 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
13480 (pophi): Remove.
13481
13482 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
13483
13484 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13485
13486 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
13487 (FUNCTION_ARG_ADVANCE): Likewise.
13488 * tm.texi.in: Change references to them to hook references.
13489 * tm.texi: Regenerate.
13490 * targhooks.c (default_function_arg): Eliminate check for target
13491 macro.
13492 (default_function_incoming_arg): Likewise.
13493 (default_function_arg_advance): Likewise.
13494 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
13495 (function_arg_advance): Likewise.
13496 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
13497
13498 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
13499
13500 * tree.c (build_call_1): New function.
13501 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
13502
13503 2011-03-22 Richard Guenther <rguenther@suse.de>
13504
13505 PR tree-optimization/48228
13506 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
13507 for single-arg PHIs.
13508
13509 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
13510
13511 PR rtl-optimization/48143
13512 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
13513 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
13514 sse2_cvtps2pd): Likewise.
13515
13516 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13517
13518 * recog.c (canonicalize_change_group): Use validate_unshare_change.
13519
13520 2011-03-22 Richard Guenther <rguenther@suse.de>
13521
13522 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
13523 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
13524 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
13525 and REALIGN_LOAD_EXPR.
13526 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
13527 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
13528 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
13529 DOT_PROD_EXPR case ...
13530 (expand_expr_real_2): ... here.
13531 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
13532 and REALIGN_LOAD_EXPR.
13533 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
13534 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
13535 (vect_create_epilog_for_reduction): Likewise.
13536 (vectorizable_reduction): Likewise.
13537 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
13538 * tree-vect-stmts.c (vectorizable_load): Likewise.
13539
13540 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
13541
13542 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
13543
13544 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13545
13546 * config/s390/s390.c (s390_delegitimize_address): Fix offset
13547 handling for PLTOFF/GOTOFF.
13548
13549 2011-03-22 Nick Clifton <nickc@redhat.com>
13550
13551 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
13552 trailing backslash from the end of the macro definition.
13553
13554 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13555
13556 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
13557 and PLT unspecs.
13558
13559 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
13560
13561 * expr.h (prepare_operand): Move to...
13562 * optabs.h (prepare_operand): ...here and change the insn code
13563 parameter from "int" to "enum insn_code".
13564 (insn_operand_matches): Declare.
13565 * expr.c (init_expr_target): Use insn_operand_matches.
13566 (compress_float_constant): Likewise.
13567 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
13568 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
13569 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
13570 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
13571 Likewise.
13572 (gen_cond_trap): Likewise.
13573 (prepare_operand): Likewise. Change icode to an insn_code.
13574 (insn_operand_matches): New function.
13575 * reload.c (find_reloads_address_1): Use insn_operand_matches.
13576 * reload1.c (gen_reload): Likewise.
13577 * targhooks.c (default_secondary_reload): Likewise.
13578
13579 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13580
13581 * config/alpha/alpha.md (unspec): New define_c_enum.
13582 (unspecv): Ditto.
13583
13584 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
13585
13586 PR debug/48214
13587 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
13588 between a call and its CALL_ARG_LOCATION note.
13589
13590 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
13591
13592 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
13593
13594 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13595
13596 PR c/42544
13597 PR c/48197
13598 * c-common.c (shorten_compare): If primopN is first sign-extended
13599 to opN and then zero-extended to result type, set primopN to opN.
13600
13601 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
13602
13603 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
13604 for barrier handlers.
13605
13606 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13607
13608 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
13609 UNSPEC constants to be in the unspec enumeration, and redefine
13610 all UNSPECV constants to be in the unspecv enumeration, so that
13611 dumps print which unspec/unspec_volatile this is.
13612 * config/rs6000/vector.md (UNSPEC_*): Ditto.
13613 * config/rs6000/paired.md (UNSPEC_*): Ditto.
13614 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
13615 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
13616 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
13617
13618 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
13619 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
13620 UNSPECV_LWSYNC, since these are used as unspec_volatile.
13621 * config/rs6000/sync.md (isync, lwsync): Ditto.
13622
13623 2011-03-21 Richard Guenther <rguenther@suse.de>
13624
13625 * params.def (lto-min-partition): Fix typo.
13626
13627 2011-03-21 Richard Guenther <rguenther@suse.de>
13628
13629 PR c/47939
13630 * c-decl.c (grokdeclarator): Drop to the main variant only
13631 for array types. Drop flag_gen_aux_info check.
13632
13633 2011-03-21 Richard Guenther <rguenther@suse.de>
13634
13635 PR translation/47911
13636 * params.def (lto-partitions): Fix typo.
13637 (lto-min-partition): Fix wording.
13638
13639 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
13640
13641 * config/rs6000/t-freebsd: Remove duplication from file.
13642
13643 2011-03-21 Richard Guenther <rguenther@suse.de>
13644
13645 PR middle-end/47661
13646 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
13647
13648 2011-03-21 Richard Guenther <rguenther@suse.de>
13649
13650 PR lto/48210
13651 * params.def (lto-partitions): Require at least 1 partition.
13652
13653 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13654
13655 * gthr-solaris.h: Remove.
13656 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
13657 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
13658 (LIB_SPEC): Likewise.
13659 * config/sol2.opt (threads): Remove.
13660 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
13661 (sparc*-*-solaris2*): Likewise.
13662 * configure.ac (enable_threads): Enable solaris support.
13663 * configure: Regenerate.
13664 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
13665 * doc/install.texi (Configuration, --enable-threads=lib): Remove
13666 solaris.
13667
13668 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13669
13670 * config.gcc: Obsolete *-*-solaris2.8*.
13671 * doc/install.texi (Specific, *-*-solaris2*): Document it.
13672
13673 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13674
13675 PR bootstrap/48135
13676 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
13677 reference. Solaris 8 perl works.
13678
13679 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13680
13681 PR bootstrap/48135
13682 * doc/install.texi (Prerequisites): Move jar etc. up.
13683 Explain support library version requirements.
13684
13685 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13686
13687 PR bootstrap/48135
13688 * doc/install.texi (Prerequisites): Move Perl to build
13689 requirements. Always necessary on Solaris 2 with Sun ld.
13690
13691 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13692
13693 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
13694 binutils 2.21.
13695 (Specific, i?86-*-solaris2.[89]): Likewise.
13696 (Specific, i?86-*-solaris2.10): Likewise.
13697 (Specific, mips-sgi-irix6): Likewise.
13698 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
13699 Update for binutils 2.21.
13700
13701 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13702
13703 * configure.ac (gcc_cv_lto_plugin): Fix typo.
13704 Allow -fuse-linker-plugin for non-default plugin linker.
13705 * configure: Regenerate.
13706
13707 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
13708
13709 PR bootstrap/48167
13710 * gengtype.c (files_rules): Added rule for cp/parser.h.
13711
13712 2011-03-21 Jakub Jelinek <jakub@redhat.com>
13713
13714 PR target/48213
13715 * config/s390/s390.c (s390_delegitimize_address): Don't call
13716 lowpart_subreg if orig_x has BLKmode.
13717
13718 2011-03-21 Kai Tietz <ktietz@redhat.com>
13719
13720 PR target/12171
13721 * doc/plugins.texi: Adjust documentation for plugin register_callback.
13722 * tree.h (attribute_spec): Add new member affects_type_identity.
13723 * attribs.c (empty_attribute_table): Adjust attribute_spec
13724 initializers.
13725 * config/alpha/alpha.c: Likewise.
13726 * config/arc/arc.c: Likewise.
13727 * config/arm/arm.c: Likewise.
13728 * config/avr/avr.c: Likewise.
13729 * config/bfin/bfin.c: Likewise.
13730 * config/crx/crx.c: Likewise.
13731 * config/darwin.h: Likewise.
13732 * config/h8300/h8300.c: Likewise.
13733 * config/i386/cygming.h: Likewise.
13734 * config/i386/i386.c: Likewise.
13735 * config/ia64/ia64.c: Likewise.
13736 * config/m32c/m32c.c: Likewise.
13737 * config/m32r/m32r.c: Likewise.
13738 * config/m68hc11/m68hc11.c: Likewise.
13739 * config/m68k/m68k.c: Likewise.
13740 * config/mcore/mcore.c: Likewise.
13741 * config/mep/mep.c: Likewise.
13742 * config/microblaze/microblaze.c: Likewise.
13743 * config/mips/mips.c: Likewise.
13744 * config/rs6000/rs6000.c: Likewise.
13745 * config/rx/rx.c: Likewise.
13746 * config/sh/sh.c: Likewise.
13747 * config/sol2.h: Likewise.
13748 * config/sparc/sparc.c: Likewise.
13749 * config/spu/spu.c: Likewise.
13750 * config/stormy16/stormy16.c: Likewise.
13751 * config/v850/v850.c: Likewise.
13752
13753 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
13754
13755 * simplify-rtx.c (simplify_binary_operation_1): Handle
13756 (xor (and A B) C) case when B and C are both constants.
13757
13758 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
13759
13760 * tree-dfa.c (add_referenced_var): Fix typo in comment.
13761
13762 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
13763
13764 PR bootstrap/48168
13765 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
13766
13767 2011-03-20 Jakub Jelinek <jakub@redhat.com>
13768
13769 PR rtl-optimization/48156
13770 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
13771 assume df and df_lr are not NULL.
13772
13773 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13774
13775 PR debug/48023
13776 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
13777 between a call and its CALL_ARG_LOCATION note.
13778
13779 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
13780
13781 PR debug/48178
13782 * config/sh/sh.c (find_barrier): Don't emit a constant pool
13783 between a call and its corresponding CALL_ARG_LOCATION note.
13784
13785 2011-03-19 Anatoly Sokolov <aesok@post.ru>
13786
13787 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
13788 instead of loop. Use HARD_REGISTER_NUM_P predicate.
13789 * haifa-sched.c (setup_ref_regs): Ditto.
13790 * caller-save.c (add_used_regs_1): Ditto.
13791 * dse.c (look_for_hardregs): Ditto.
13792 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
13793 * sched-rgn.c (check_live_1): Ditto.
13794
13795 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13796
13797 * c-decl.c (diagnose_mismatched_decls): Give an error for
13798 redefining a typedef with variably modified type.
13799
13800 2011-03-18 Joseph Myers <joseph@codesourcery.com>
13801
13802 * c-decl.c (grokfield): Don't allow typedefs for structures or
13803 unions with no tag by default.
13804 * doc/extend.texi (Unnamed Fields): Update.
13805
13806 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
13807
13808 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
13809 Rewrite using indirect functions.
13810 (lwp_slwpcb): Ditto.
13811 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
13812 (avx_vinsertf128<mode>): Ditto.
13813
13814 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13815
13816 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
13817 unspecs.
13818
13819 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13820
13821 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
13822 splitting between a call and its corresponding CALL_ARG_LOCATION note.
13823
13824 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13825
13826 PR rtl-optimization/48170
13827 * gcse.c (hoist_code): Remove bogus asserts.
13828
13829 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
13830
13831 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
13832 computation for prologue/epilogue.
13833
13834 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13835
13836 * Makefile.in (check-consistency): Remove.
13837
13838 2011-03-18 Jakub Jelinek <jakub@redhat.com>
13839
13840 PR debug/48176
13841 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
13842 arange_table_in_use is 0, but either text_section_used or
13843 cold_text_section_used is true. Don't call it if
13844 !info_section_emitted.
13845
13846 2011-03-18 Anatoly Sokolov <aesok@post.ru>
13847
13848 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
13849 FUNCTION_VALUE_REGNO_P): Remove.
13850 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
13851 Remove.
13852 * config/avr/avr.c (avr_ret_register): Make static inline.
13853 (avr_function_value_regno_p): New function.
13854 (avr_libcall_value): Make static. Add 'func' argument.
13855 (avr_function_value): Make static. Rename 'func' argument to
13856 'fn_decl_or_type', forward it to avr_libcall_value. Call
13857 avr_ret_register function instead of RET_REGISTER macro.
13858 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13859
13860 2011-03-18 Jason Merrill <jason@redhat.com>
13861
13862 PR c++/23372
13863 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
13864
13865 2011-03-18 Richard Guenther <rguenther@suse.de>
13866
13867 * doc/install.texi (--enable-gold): Remove.
13868 (--with-plugin-ld): Document.
13869 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
13870
13871 2011-03-18 Andrew Pinski <pinskia@gmail.com>
13872
13873 PR middle-end/47790
13874 * expr.c (optimize_bitfield_assignment_op): Revamp to work
13875 again after expansion changes.
13876
13877 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
13878
13879 * combine.c (try_combine): Do simplification only call of
13880 subst() on i2 even when i1 is present. Update comments.
13881
13882 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
13883
13884 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
13885 and UNSPEC_PCREL_SYMOFF.
13886
13887 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13888
13889 * config/s390/s390.md: Use define_c_enum for the unspec constant
13890 definitions.
13891
13892 2011-03-18 Richard Henderson <rth@redhat.com>
13893 Jakub Jelinek <jakub@redhat.com>
13894
13895 PR bootstrap/48161
13896 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
13897 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
13898
13899 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13900
13901 PR middle-end/47725
13902 * combine.c (cant_combine_insn_p): Don't check zero/sign
13903 extended hard registers.
13904
13905 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13906
13907 PR middle-end/47725
13908 * combine.c (cant_combine_insn_p): Check zero/sign extended
13909 hard registers.
13910
13911 2011-03-17 Anatoly Sokolov <aesok@post.ru>
13912
13913 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13914 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
13915 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
13916 Change return type to bool.
13917 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13918
13919 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13920
13921 PR debug/48163
13922 * var-tracking.c (prepare_call_arguments): If CALL target
13923 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
13924 pc instead of looking it up using cselib_lookup and use
13925 Pmode for it if x has VOIDmode.
13926 * dwarf2out.c (gen_subprogram_die): If also both first and
13927 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
13928
13929 PR debug/48163
13930 * function.c (assign_parms): For data.passed_pointer parms
13931 use MEM of data.entry_parm instead of data.entry_parm itself
13932 as DECL_INCOMING_RTL.
13933 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
13934 also when passed and declared mode is the same, DECL_RTL
13935 is a MEM with pseudo as address and DECL_INCOMING_RTL is
13936 a MEM too.
13937
13938 2011-03-16 Jeff Law <law@redhat.com>
13939
13940 PR rtl-optimization/37273
13941 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13942 handle them like argument loads from stack slots. Do not double
13943 count memory for memory constants and argument loads from stack slots.
13944
13945 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13946
13947 PR debug/48160
13948 * var-tracking.c (prepare_call_arguments): Check SUBREG.
13949
13950 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
13951
13952 PR target/48171
13953 * config/i386/i386.opt: Add Save to -mavx and -mfma.
13954
13955 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13956
13957 PR bootstrap/48153
13958 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
13959 if dwarf_strict.
13960 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
13961 Clear call_arg_locations and call_arg_loc_last always.
13962
13963 PR middle-end/48152
13964 * var-tracking.c (prepare_call_arguments): If argument needs to be
13965 passed by reference, adjust argtype and mode.
13966
13967 2011-03-17 Richard Guenther <rguenther@suse.de>
13968
13969 PR middle-end/48134
13970 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
13971 a value make sure to fold the statement.
13972
13973 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
13974
13975 PR target/43872
13976 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
13977 return condition with !cfun->calls_alloca.
13978
13979 2011-03-17 Richard Guenther <rguenther@suse.de>
13980
13981 PR bootstrap/48148
13982 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13983 origin for decls in other ltrans units.
13984 (input_varpool_node): Likewise.
13985
13986 2011-03-17 Richard Guenther <rguenther@suse.de>
13987
13988 PR middle-end/48165
13989 * tree-object-size.c (compute_object_offset): Properly return
13990 the offset operand of MEM_REFs as sizetype.
13991
13992 2011-03-17 Jakub Jelinek <jakub@redhat.com>
13993
13994 PR rtl-optimization/48141
13995 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
13996 * dse.c: Include params.h.
13997 (active_local_stores_len): New variable.
13998 (add_wild_read, dse_step1): Clear it when setting active_local_stores
13999 to NULL.
14000 (record_store, check_mem_read_rtx): Decrease it when removing
14001 from the chain.
14002 (scan_insn): Likewise. Increase it when adding to chain, if it
14003 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
14004 set active_local_stores to NULL before the addition.
14005 * Makefile.in (dse.o): Depend on $(PARAMS_H).
14006
14007 PR rtl-optimization/48141
14008 * dse.c (record_store): If no positions are needed in an insn
14009 that cannot be deleted, at least unchain it from active_local_stores.
14010
14011 2011-03-16 Dodji Seketeli <dodji@redhat.com>
14012
14013 PR debug/47510
14014 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
14015 (lookup_type_die_strip_naming_typedef): ... here.
14016 (get_context_die): Use it.
14017 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
14018 the anonymous struct named by the naming typedef.
14019
14020 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
14021
14022 PR target/48154
14023 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
14024 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14025
14026 2011-03-16 Jeff Law <law@redhat.com>
14027
14028 * tree-vrp.c (identify_jump_threads): Slightly simplify type
14029 check for operands of conditional. Allow type to be a pointer.
14030
14031 2011-03-16 Richard Guenther <rguenther@suse.de>
14032
14033 PR tree-optimization/48149
14034 * fold-const.c (fold_binary_loc): Fold
14035 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
14036
14037 2011-03-16 Richard Guenther <rguenther@suse.de>
14038
14039 PR tree-optimization/26134
14040 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
14041 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
14042 (non_rewritable_mem_ref_base): Handle complex type component
14043 accesses, constrain offsets for vector and complex extracts
14044 more properly.
14045
14046 2011-03-16 Richard Guenther <rguenther@suse.de>
14047
14048 PR tree-optimization/48146
14049 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
14050 operands avoiding the need for renaming.
14051
14052 2011-03-16 Richard Guenther <rguenther@suse.de>
14053
14054 * gimple-fold.c (maybe_fold_reference): Open-code relevant
14055 constant folding. Move MEM_REF canonicalization first.
14056 Rely on fold_const_aggregate_ref for initializer folding.
14057 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
14058
14059 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14060
14061 PR middle-end/48136
14062 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14063 arg0/arg1 or their arguments are always fold converted to matching
14064 types.
14065
14066 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
14067 to nargs.
14068
14069 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14070
14071 PR lto/46944
14072 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
14073 Handle in-tree gold.
14074 (ld_vers): Extract binutils version for gold.
14075 (gcc_cv_ld_hidden): Handle gold here.
14076 (gcc_cv_lto_plugin): Determine level of linker plugin support.
14077 * configure: Regenerate.
14078 * config.in: Regenerate.
14079 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
14080 -fuse-linker-plugin otherwise.
14081 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
14082 (LINK_COMMAND_SPEC): Use it.
14083 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
14084
14085 2011-03-16 Jakub Jelinek <jakub@redhat.com>
14086
14087 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
14088 * calls.c: Remove debug.h include.
14089 (emit_call_1): Don't call virtual_call_token debug hook.
14090 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
14091 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
14092 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
14093 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
14094 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
14095 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
14096 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
14097 dwarf2out_virtual_call): Remove.
14098 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
14099 copy_call_info and virtual_call hooks.
14100 (dwarf2out_init): Don't initialize vcall_insn_table,
14101 debug_dcall_section and debug_vcall_section.
14102 (prune_unused_types): Don't mark nodes from dcall_table.
14103 (dwarf2out_finish): Don't output dcall or vcall tables.
14104 * final.c (final_scan_insn): Don't call direct_call or
14105 virtual_call debug hooks.
14106 * debug.h (struct gcc_debug_hooks): Remove direct_call,
14107 virtual_call_token, copy_call_info and virtual_call hooks.
14108 (debug_nothing_uid): Remove prototype.
14109 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
14110 copy_call_info and virtual_call hooks.
14111 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14112 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
14113 * debug.c (do_nothing_debug_hooks): Likewise.
14114 (debug_nothing_uid): Remove.
14115 * doc/invoke.texi (-fenable-icf-debug): Remove.
14116 * common.opt (-fenable-icf-debug): Likewise.
14117
14118 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
14119 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
14120 call's MEM. Handle functions returning aggregate through a hidden
14121 first pointer. For virtual calls add clobbered pc to call arguments
14122 chain.
14123 * dwarf2out.c (gen_subprogram_die): Emit
14124 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
14125 can't be emitted.
14126
14127 PR debug/45882
14128 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
14129 * rtl.h (ENTRY_VALUE_EXP): Define.
14130 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
14131 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14132 * print-rtl.c (print_rtx): Likewise.
14133 * gengtype.c (adjust_field_rtx_def): Likewise.
14134 * var-tracking.c (vt_add_function_parameter): Adjust
14135 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
14136 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
14137 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
14138 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
14139 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
14140
14141 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
14142 Call var_location debug hook even on CALL_INSNs.
14143 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
14144 * rtl.def (ENTRY_VALUE): New.
14145 * dwarf2out.c: Include cfglayout.h.
14146 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
14147 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
14148 (struct call_arg_loc_node): New type.
14149 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
14150 tail_call_site_count): New variables.
14151 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
14152 DW_TAG_GNU_call_site_parameter.
14153 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
14154 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
14155 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
14156 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
14157 and DW_AT_GNU_all_source_call_sites.
14158 (mem_loc_descriptor): Handle ENTRY_VALUE.
14159 (add_src_coords_attributes): Don't add enything if
14160 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
14161 (dwarf2out_abstract_function): Save and clear call_arg_location,
14162 call_site_count and tail_call_site_count around dwarf2out_decl call.
14163 (gen_call_site_die): New function.
14164 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
14165 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
14166 (dwarf2out_function_decl): Clear call_arg_locations,
14167 call_arg_loc_last, set call_site_count and tail_call_site_count
14168 to -1 and free block_map.
14169 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
14170 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
14171 followed by any real instructions.
14172 (dwarf2out_begin_function): Set call_site_count and
14173 tail_call_site_count to 0.
14174 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
14175 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
14176 attempt to force a DIE for it and worst case remove the attribute.
14177 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
14178 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
14179 the decl itself.
14180 * var-tracking.c: Include tm_p.h.
14181 (vt_stack_adjustments): For calls call note_register_arguments.
14182 (argument_reg_set): New variable.
14183 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
14184 ensure the VALUE is resolved.
14185 (call_arguments): New variable.
14186 (prepare_call_arguments): New function.
14187 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
14188 (struct expand_loc_callback_data): Add ignore_cur_loc field.
14189 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
14190 always use the best expression.
14191 (vt_expand_loc): Add ignore_cur_loc argument.
14192 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
14193 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
14194 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
14195 note for all calls.
14196 (vt_add_function_parameter): Use cselib_lookup_from_insn.
14197 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
14198 argument. Don't call cselib_preserve_only_values and
14199 cselib_reset_table.
14200 (note_register_arguments): New function.
14201 (vt_initialize): Compute argument_reg_set. Call
14202 vt_add_function_parameters before processing basic blocks instead of
14203 afterwards. For calls call prepare_call_arguments before calling
14204 cselib_process_insn.
14205 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
14206 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
14207 (var-tracking.o): Depend on $(TM_P_H).
14208 * cfglayout.h (insn_scope): New prototype.
14209 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
14210 * cfglayout.c (insn_scope): No longer static.
14211 * insn-notes.def (CALL_ARG_LOCATION): New.
14212 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
14213 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
14214 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
14215 nothing for DECL_EXTERNAL BLOCK_VARS.
14216
14217 2011-03-16 Alan Modra <amodra@gmail.com>
14218
14219 PR target/45844
14220 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
14221 create invalid offset address for vsx splat insn.
14222 * config/rs6000/predicates.md (splat_input_operand): New.
14223 * config/rs6000/vsx.md (vsx_splat_*): Use it.
14224
14225 2011-03-15 Xinliang David Li <davidxl@google.com>
14226
14227 PR c/47837
14228 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
14229 (normalize_preds): New function.
14230 (is_use_properly_guarded): Normalize def predicates.
14231
14232 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14233
14234 PR target/46788
14235 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
14236 in the output template.
14237
14238 2011-03-15 Richard Guenther <rguenther@suse.de>
14239
14240 PR middle-end/47650
14241 * tree-pretty-print.c (dump_function_declaration): Properly
14242 dump unprototyped and varargs function types.
14243
14244 2011-03-15 Richard Guenther <rguenther@suse.de>
14245
14246 PR tree-optimization/13954
14247 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
14248 and friends.
14249
14250 2011-03-15 Richard Guenther <rguenther@suse.de>
14251
14252 PR tree-optimization/48037
14253 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
14254 selects into BIT_FIELD_REFs.
14255 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
14256 vector select.
14257
14258 2011-03-15 Jakub Jelinek <jakub@redhat.com>
14259
14260 PR tree-optimization/48129
14261 * builtins.c (fold_builtin_snprintf): Convert to type of
14262 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
14263 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
14264
14265 2011-03-15 Richard Guenther <rguenther@suse.de>
14266
14267 PR tree-optimization/41490
14268 * tree-ssa-dce.c (propagate_necessity): Handle returns without
14269 value but with VUSE.
14270 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
14271 return statements.
14272 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
14273 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
14274 * tree-tailcall.c (find_tail_calls): Ignore returns.
14275
14276 2011-03-15 Richard Guenther <rguenther@suse.de>
14277
14278 PR middle-end/48031
14279 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
14280 or variable-indexed array accesses when in gimple form.
14281
14282 2011-03-15 Richard Guenther <rguenther@suse.de>
14283
14284 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
14285
14286 2011-03-15 Alan Modra <amodra@gmail.com>
14287
14288 PR target/48032
14289 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
14290 presume symbol_refs without a symbol_ref_decl are suitably
14291 aligned, nor other trees we may see here. Handle anchor symbols.
14292 (legitimate_constant_pool_address_p): Comment. Add mode param.
14293 Check cmodel=medium addresses. Adjust all calls.
14294 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
14295 creating cmodel=medium optimized access to locals.
14296 * config/rs6000/constraints.md (R): Pass QImode to
14297 legitimate_constant_pool_address_p.
14298 * config/rs6000/predicates.md (input_operand): Pass mode to
14299 legitimate_constant_pool_address_p.
14300 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
14301 Update prototype.
14302
14303 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14304
14305 PR target/48053
14306 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
14307 64-bit constants being loaded into registers other than GPRs such
14308 as loading 0 into a VSX register.
14309
14310 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14311
14312 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
14313
14314 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14315
14316 PR middle-end/47917
14317 * builtins.c (fold_builtin_snprintf): New function.
14318 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
14319 (fold_builtin_4): Likewise.
14320
14321 PR middle-end/38878
14322 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
14323 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
14324 and C - X == X also strip nops from +/-/p+ operand.
14325 When optimizing -X == C, fold C to arg0's type.
14326
14327 PR debug/47946
14328 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
14329 emit it as add_AT_int instead of add_AT_unsigned.
14330
14331 2011-03-14 Tom Tromey <tromey@redhat.com>
14332
14333 * unwind-dw2.c: Include sys/sdt.h if it exists.
14334 (_Unwind_DebugHook): Use STAP_PROBE2.
14335 * config.in, configure: Rebuild.
14336 * configure.ac: Check for sys/sdt.h.
14337
14338 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
14339
14340 * config/i386/i386.md (ROUND_FLOOR): New constant.
14341 (ROUND_CEIL): Ditto.
14342 (ROUND_TRUNC): Ditto.
14343 (ROUND_MXCSR): Ditto.
14344 (ROUND_NO_EXC): Ditto.
14345 (rint<mode>2): Use new defines instead of numerical constants.
14346 (floor<mode>2): Ditto.
14347 (ceil<mode>2): Ditto.
14348 (btrunc<mode>2): Ditto.
14349 * config/i386/i386-builtin-types.def: Define ROUND function type
14350 aliases.
14351 * config/i386/i386.c (enum ix86_builtins): Add
14352 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
14353 (struct builtin_description): Add
14354 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
14355 (ix86_expand_sse_round): New static function.
14356 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
14357 function types.
14358 (ix86_builtin_vectorized_function): Handle
14359 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
14360
14361 2011-03-14 Tom Tromey <tromey@redhat.com>
14362
14363 * c-parser.c (c_parser_asm_string_literal): Clear
14364 warn_overlength_strings.
14365
14366 2011-03-14 Tom Tromey <tromey@redhat.com>
14367
14368 * c-parser.c (disable_extension_diagnostics): Save
14369 warn_overlength_strings.
14370 (restore_extension_diagnostics): Restore warn_overlength_strings.
14371
14372 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14373
14374 * BASE-VER: Change to 4.7.0.
14375
14376 2011-03-14 Richard Guenther <rguenther@suse.de>
14377
14378 PR middle-end/48098
14379 * tree.c (build_vector_from_val): Adjust assert to requirements
14380 and reality.
14381
14382 2011-03-14 Jakub Jelinek <jakub@redhat.com>
14383
14384 PR bootstrap/48102
14385 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
14386
14387 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
14388
14389 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
14390 terms of target_flags_explicit. Adjust copyright year.
14391
14392 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
14393 * config/rs6000/t-freebsd: New file. Add override for
14394 LIB2FUNCS_EXTRA.
14395
14396 2011-03-13 Chris Demetriou <cgd@google.com>
14397
14398 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
14399 (-fno-diagnostics-show-option): this, to reflect current default.
14400 (-Werror=): Update text about -fno-diagnostics-show-option.
14401
14402 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
14403
14404 PR target/48053
14405 * config/rs6000/predicates.md (easy_vector_constant_add_self,
14406 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
14407 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
14408 mode is not V2DImode or V2DFmode.
14409 (vspltis_constant): Do not handle V2DImode and V2DFmode.
14410 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
14411 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
14412 registers to 0.
14413 (movdi_internal64): Likewise.
14414
14415 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
14416
14417 PR tree-optimization/47127
14418 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
14419 parameter.
14420 (set_cloog_options): Same.
14421 (scop_to_clast): Same.
14422 (print_clast_stmt): Do not call cloog_state_malloc and
14423 cloog_state_free.
14424 (print_generated_program): Same.
14425 (gloog): Same.
14426 * graphite-clast-to-gimple.h (cloog_state): Declared.
14427 (scop_to_clast): Adjust declaration.
14428 * graphite.c (cloog_state): Defined here.
14429 (graphite_initialize): Call cloog_state_malloc.
14430 (graphite_finalize): Call cloog_state_free.
14431
14432 2011-03-11 Jason Merrill <jason@redhat.com>
14433
14434 * attribs.c (lookup_attribute_spec): Take const_tree.
14435 * tree.h: Adjust.
14436
14437 2011-03-11 Joseph Myers <joseph@codesourcery.com>
14438
14439 * config/sparc/sparc.c (sparc_option_override): Use
14440 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
14441
14442 2011-03-11 Richard Guenther <rguenther@suse.de>
14443
14444 PR tree-optimization/48067
14445 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
14446 multiplication result will be only used once on the target
14447 stmt.
14448
14449 2011-03-11 Richard Guenther <rguenther@suse.de>
14450
14451 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
14452
14453 2011-03-11 Richard Guenther <rguenther@suse.de>
14454
14455 PR lto/48073
14456 * tree.c (find_decls_types_r): Do not walk types only reachable
14457 from IDENTIFIER_NODEs.
14458
14459 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14460
14461 PR middle-end/48044
14462 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
14463 all vnode->force_output nodes as needed.
14464
14465 2011-03-11 Jason Merrill <jason@redhat.com>
14466
14467 PR c++/48069
14468 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
14469 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
14470
14471 2011-03-11 Martin Jambor <mjambor@suse.cz>
14472
14473 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
14474 cgraph_node.
14475
14476 2011-03-11 Jakub Jelinek <jakub@redhat.com>
14477
14478 PR tree-optimization/48063
14479 * ipa-inline.c (cgraph_decide_inlining): Don't try to
14480 inline functions called once if !tree_can_inline_p (node->callers).
14481
14482 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
14483
14484 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
14485 extra_objs.
14486 * config/score/score3.c: Delete.
14487 * config/score/score3.h: Delete.
14488 * config/score/mul-div.S: Delete.
14489 * config/score/sfp-machine.h: Add new file.
14490 * config/score/constraints.md: Add new file.
14491 * config/score/t-score-softfp: Add new file.
14492 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
14493 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
14494 (score7_extra_constraint): Delete.
14495 (score7_option_override): Remove unused code.
14496 * config/score/score.c: Remove score3 and score5 define and code.
14497 * config/score/score.h: Remove score3 and score5 define and code.
14498 * config/score/score.md: Remove score3 template and unusual insn.
14499 * config/score/score.opt: Remove score3 and score5 options.
14500
14501 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14502
14503 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
14504 when _HPUX_SOURCE is defined.
14505 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
14506
14507 2011-03-10 Jason Merrill <jason@redhat.com>
14508
14509 PR c++/48029
14510 * stor-layout.c (layout_type): Don't set structural equality
14511 on arrays of incomplete type.
14512 * tree.c (type_hash_eq): Handle comparing them properly.
14513
14514 2011-03-10 Jakub Jelinek <jakub@redhat.com>
14515
14516 PR debug/48043
14517 * config/s390/s390.c (s390_delegitimize_address): Make sure the
14518 result mode matches original rtl mode.
14519
14520 2011-03-10 Nick Clifton <nickc@redhat.com>
14521
14522 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
14523 (andsi3, andsi3_flags): Fix timings for three operand alternative.
14524
14525 2011-03-09 Jakub Jelinek <jakub@redhat.com>
14526
14527 PR rtl-optimization/47866
14528 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
14529 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
14530 if target wasn't scalar.
14531 * function.c (assign_stack_temp_for_type): Assert that neither
14532 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
14533 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
14534 macro.
14535 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
14536
14537 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14538
14539 * config/s390/s390-protos.h (s390_label_align): New prototype.
14540 * config/s390/s390.c (s390_label_align): New function.
14541 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
14542
14543 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14544
14545 PR target/47755
14546 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
14547 V2DI/V2DF constants. Only all 0's or all 1's are easy.
14548 (output_vec_const_move): Ditto.
14549
14550 2011-03-08 Anatoly Sokolov <aesok@post.ru>
14551
14552 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
14553 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
14554 * config/mips/mips.c (mips_preferred_reload_class): Make static.
14555 Change 'rclass' argument and result type to reg_class_t.
14556 (TARGET_PREFERRED_RELOAD_CLASS): Define.
14557
14558 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
14559
14560 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14561 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
14562 (TARGET_MEMORY_MOVE_COST): Define.
14563 (avr_register_move_cost, avr_memory_move_cost): New Functions.
14564
14565 2011-03-08 Jakub Jelinek <jakub@redhat.com>
14566
14567 PR debug/47881
14568 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
14569 removed anything.
14570
14571 PR tree-optimization/48022
14572 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
14573 for EQ/NE_EXPR.
14574
14575 2011-03-07 Jakub Jelinek <jakub@redhat.com>
14576
14577 PR debug/47991
14578 * var-tracking.c (find_use_val): Return NULL for
14579 cui->sets && cui->store_p BLKmode MEMs.
14580
14581 2011-03-07 Anatoly Sokolov <aesok@post.ru>
14582
14583 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
14584 Remove.
14585 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
14586 xstormy16_print_operand_address): Remove.
14587 * config/stormy16/stormy16.c (xstormy16_print_operand,
14588 xstormy16_print_operand_address): Make static.
14589 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14590
14591 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
14592
14593 PR target/47862
14594 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
14595 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
14596 before definition.
14597
14598 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
14599
14600 PR bootstrap/48000
14601 * cfgloopmanip.c (fix_bb_placements): Return immediately
14602 if FROM is BASE_LOOP's header.
14603
14604 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
14605
14606 * gimplify.c (gimplify_function_tree): Fix building calls
14607 to __builtin_return_address.
14608
14609 2011-03-07 Alan Modra <amodra@gmail.com>
14610
14611 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
14612 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
14613 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
14614 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
14615 return_mode args.
14616 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
14617 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
14618 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
14619 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
14620 * config/rs6000/rs6000.c
14621 (rs6000_elf_end_indicate_exec_stack): Rename to..
14622 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
14623 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
14624 (rs6000_file_start): ..here.
14625 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
14626 file scope variables.
14627 (call_ABI_of_interest): New function.
14628 (init_cumulative_args): Set above vars when function return value
14629 is a float, vector, or small struct.
14630 (rs6000_function_arg_advance_1): Likewise for function args.
14631 (rs6000_va_start): Set rs6000_passes_float if variable arg function
14632 references float args.
14633
14634 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
14635
14636 * doc/cfg.texi: Remove "See" before @ref.
14637 * doc/invoke.texi: Likewise.
14638
14639 2011-03-05 Jason Merrill <jason@redhat.com>
14640
14641 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
14642
14643 2011-03-05 Anthony Green <green@moxielogic.com>
14644
14645 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
14646
14647 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
14648
14649 PR rtl-optimization/47899
14650 * cfgloopmanip.c (fix_bb_placements): Fix first argument
14651 to flow_loop_nested_p when moving the loop upward.
14652
14653 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
14654
14655 PR target/47719
14656 * arm.md (movhi_insn_arch4): Accept any immediate constant.
14657
14658 2011-03-05 Jakub Jelinek <jakub@redhat.com>
14659
14660 PR tree-optimization/47967
14661 * ipa-cp.c (build_const_val): Return NULL instead of creating
14662 VIEW_CONVERT_EXPR for mismatching sizes.
14663 (ipcp_create_replace_map): Return NULL if build_const_val failed.
14664 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
14665 give up on versioning.
14666
14667 2011-03-05 Alan Modra <amodra@gmail.com>
14668
14669 PR target/47986
14670 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14671 full cmodel medium/large lo_sum + high addresses.
14672
14673 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14674
14675 * config/s390/s390.c (s390_decompose_address): Reject non-literal
14676 pool references in UNSPEC_LTREL_OFFSET.
14677
14678 2011-03-04 Jan Hubicka <jh@suse.cz>
14679
14680 PR lto/47497
14681 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
14682 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
14683 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
14684 Add node pointers.
14685 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
14686 cgraph_add_thunk): Add node pointers.
14687 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
14688 associated to right node.
14689 (input_node): Update use of cgraph_same_body_alias
14690 and cgraph_add_thunk.
14691
14692 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
14693
14694 * config/i386/i386.opt (mprefer-avx128): New flag.
14695 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
14696 modes when the flag -mprefer-avx128 is on.
14697
14698 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
14699
14700 * dwarf2out.c (compare_loc_operands): Fix address handling.
14701
14702 2011-03-04 Alan Modra <amodra@gmail.com>
14703
14704 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
14705
14706 2011-03-04 Richard Guenther <rguenther@suse.de>
14707
14708 PR middle-end/47968
14709 * expmed.c (extract_bit_field_1): Prefer vector modes that
14710 vec_extract patterns can handle.
14711
14712 2011-03-04 Richard Guenther <rguenther@suse.de>
14713
14714 PR middle-end/47975
14715 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
14716
14717 2011-03-04 Richard Henderson <rth@redhat.com>
14718
14719 * explow.c (emit_stack_save): Remove 'after' parameter.
14720 (emit_stack_restore): Likewise.
14721 * expr.h: Update to match.
14722 * builtins.c, calls.c, stmt.c: Likewise.
14723 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
14724 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
14725 * function.c (expand_function_end): Insert the emit_stack_save
14726 sequence before parm_birth_insn instead of after.
14727
14728 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
14729
14730 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
14731 (ssse3_pmaddubsw128): Ditto.
14732 (ssse3_pmaddubsw): Ditto.
14733
14734 2011-03-03 Steve Ellcey <sje@cup.hp.com>
14735
14736 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
14737
14738 2011-03-03 Jakub Jelinek <jakub@redhat.com>
14739
14740 PR c/47963
14741 * gimplify.c (omp_add_variable): Only call omp_notice_variable
14742 on TYPE_SIZE_UNIT if it is a DECL.
14743
14744 PR debug/47283
14745 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
14746 first operand is not is_gimple_mem_ref_addr, try to fold it.
14747 If the operand still isn't is_gimple_mem_ref_addr, clear
14748 MEM_EXPR on op0.
14749
14750 2011-03-03 Richard Guenther <rguenther@suse.de>
14751
14752 PR middle-end/47283
14753 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
14754 match comment.
14755 (refs_may_alias_p_1): For release branches return true if
14756 we are confused by our input.
14757
14758 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14759
14760 * config/s390/s390.c (s390_function_value): Rename to ...
14761 (s390_function_and_libcall_value): ... this.
14762 (s390_function_value): New function.
14763 (s390_libcall_value): New function.
14764 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
14765 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
14766 target macro definitions.
14767 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
14768
14769 2011-03-02 Joseph Myers <joseph@codesourcery.com>
14770
14771 * config/i386/freebsd64.h (CC1_SPEC): Define.
14772 * config/i386/linux64.h (CC1_SPEC): Define.
14773 * config/i386/x86-64.h (CC1_SPEC): Don't define.
14774
14775 2011-03-02 Anatoly Sokolov <aesok@post.ru>
14776
14777 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14778 Remove.
14779 * config/stormy16/stormy16.c: Include reload.h.
14780 (xstormy16_memory_move_cost): New function.
14781 (TARGET_MEMORY_MOVE_COST): Define.
14782
14783 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
14784
14785 PR rtl-optimization/47925
14786 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
14787 with side effects. Remove the more-specific check for volatile asms.
14788
14789 2011-03-02 Alan Modra <amodra@gmail.com>
14790
14791 PR target/47935
14792 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
14793 toc relative addresses for valid offsets.
14794
14795 2011-03-01 Richard Guenther <rguenther@suse.de>
14796
14797 PR tree-optimization/47890
14798 * tree-vect-loop.c (get_initial_def_for_induction): Set
14799 related stmt properly.
14800
14801 2011-03-01 Richard Guenther <rguenther@suse.de>
14802
14803 PR lto/47924
14804 * lto-streamer.c (lto_record_common_node): Also register
14805 the canonical type.
14806
14807 2011-03-01 Richard Guenther <rguenther@suse.de>
14808
14809 PR lto/46911
14810 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14811 Do not stream DECL_ABSTRACT_ORIGIN.
14812 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14813 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14814 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14815 Do not stream DECL_ABSTRACT_ORIGIN.
14816 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
14817 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
14818
14819 2011-02-28 Anatoly Sokolov <aesok@post.ru>
14820
14821 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
14822 FUNCTION_VALUE_REGNO_P): Remove.
14823 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
14824 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
14825 Add 'outgoing' argument.
14826 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
14827 function.
14828 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14829 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14830
14831 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
14832
14833 PR debug/28047
14834 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
14835 (lookup_filename): Likewise.
14836 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
14837
14838 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
14839 Jakub Jelinek <jakub@redhat.com>
14840
14841 PR middle-end/47893
14842 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
14843 (assign_stack_local_1): Change last argument type to int.
14844 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
14845 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
14846 don't record padding space into frame_space_list nor use those areas.
14847 (assign_stack_local): Adjust caller.
14848 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
14849 of assign_stack_local, pass 0 as last argument.
14850 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
14851 callers.
14852
14853 2011-02-28 Jakub Jelinek <jakub@redhat.com>
14854
14855 PR debug/47283
14856 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
14857 Use target address_mode and pointer_mode hooks instead of hardcoded
14858 Pmode and ptr_mode. Handle some simple cases of extending if
14859 POINTERS_EXTEND_UNSIGNED < 0.
14860 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
14861 Call convert_debug_memory_address.
14862 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
14863 convert_debug_memory_address.
14864
14865 PR middle-end/46790
14866 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
14867 * configure: Regenerated.
14868 * config.in: Regenerated.
14869 * varasm.c (default_function_section): Return NULL
14870 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
14871
14872 2011-02-28 Martin Jambor <mjambor@suse.cz>
14873
14874 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
14875 the description to match the printed values.
14876
14877 2011-02-28 Richard Guenther <rguenther@suse.de>
14878
14879 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
14880 of the copied scope tree.
14881
14882 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14883
14884 * doc/extend.texi (Function Attributes): Avoid deeply (and
14885 wrongly) nested tables.
14886
14887 2011-02-27 Jakub Jelinek <jakub@redhat.com>
14888
14889 PR middle-end/47903
14890 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
14891 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
14892 r isn't op0 nor op1.
14893
14894 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14895
14896 * config/avr/avr.md: Remove magic comment for emacs.
14897
14898 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
14899
14900 PR target/45261
14901 * config/avr/avr.c (avr_option_override): Use error on bad options.
14902 (avr_help): New function.
14903 (TARGET_HELP): Define.
14904
14905 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
14906
14907 PR target/42240
14908 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
14909 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
14910
14911 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
14912
14913 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
14914 (ARM Options): Ditto.
14915 (i386 and x86-64 Options): Ditto.
14916 (RX Options): Ditto.
14917 (SPARC Options): Ditto.
14918
14919 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
14920
14921 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
14922 FreeBSD 6 and later. Generally use cpu generic.
14923
14924 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
14925
14926 * doc/cpp.texi: Update copyright years.
14927
14928 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
14929
14930 PR target/46898
14931 * config/lm32/lm32.md (ashrsi3): Added needed variable.
14932
14933 2011-02-25 Jon Beniston <jon@beniston.com>
14934
14935 PR target/46898
14936 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14937 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
14938 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
14939 (lm32_block_move_inline): Add type cast to remove warning.
14940 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
14941 (gen_int_relational): Move declarations to start of function.
14942
14943 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
14944
14945 PR tree-optimization/45470
14946 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14947 can throw internally only.
14948 * tree-vect-stmts.c (vectorizable_call): Likewise.
14949
14950 2011-02-24 Anatoly Sokolov <aesok@post.ru>
14951
14952 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
14953 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14954 * config/stormy16/stormy16-protos.h
14955 (xstormy16_preferred_reload_class): Remove.
14956 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
14957 static. Change 'rclass' argument and return type to reg_class_t.
14958 (TARGET_PREFERRED_RELOAD_CLASS,
14959 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14960
14961 2011-02-24 Richard Guenther <rguenther@suse.de>
14962
14963 * lto-streamer-in.c (input_bb): Do not find referenced vars
14964 in debug statements.
14965
14966 2011-02-23 Jason Merrill <jason@redhat.com>
14967
14968 * common.opt (fabi-version): Document v5 and v6.
14969
14970 2011-02-23 Richard Guenther <rguenther@suse.de>
14971
14972 PR tree-optimization/47849
14973 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
14974
14975 2011-02-23 Jie Zhang <jie@codesourcery.com>
14976
14977 * opts-common.c (decode_cmdline_option): Print empty string
14978 argument as "" in decoded->orig_option_with_args_text.
14979 * gcc.c (execute): Print empty string argument as ""
14980 in the verbose output.
14981 (do_spec_1): Keep empty string argument.
14982
14983 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
14984
14985 * config.gcc: Declare score-* and crx-* obsolete.
14986
14987 2011-02-23 Jie Zhang <jie@codesourcery.com>
14988
14989 PR rtl-optimization/47763
14990 * web.c (web_main): Ignore naked clobber when replacing register.
14991
14992 2011-02-22 Anatoly Sokolov <aesok@post.ru>
14993
14994 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14995 Remove.
14996
14997 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
14998
14999 PR doc/47848
15000 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
15001
15002 2011-02-22 Mike Stump <mikestump@comcast.net>
15003
15004 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
15005 assembler.
15006 * configure: Regenerate.
15007
15008 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
15009
15010 PR rtl-optimization/46002
15011 * ira-color.c (update_copy_costs): Change class intersection
15012 test to reg_class_contents[] test of 'hard_regno'.
15013
15014 2011-02-21 Joseph Myers <joseph@codesourcery.com>
15015
15016 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
15017 than Driver option.
15018 * config/hpux11.opt (mt): Likewise.
15019 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
15020 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
15021 * config/vax/elf.opt (mno-asm-pic): Likewise.
15022 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
15023
15024 2011-02-21 Mike Stump <mikestump@comcast.net>
15025
15026 PR target/47822
15027 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
15028 tree so we can get save the type.
15029 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
15030 for CFString instead of trying to use past the end of the builtins.
15031 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
15032 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
15033 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
15034 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
15035 Rename to darwin_builtin_cfstring.
15036 (darwin_init_cfstring_builtins): Return the built type.
15037
15038 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
15039
15040 PR target/47840
15041 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
15042 (_mm256_insert_epi64): Use _mm_insert_epi64.
15043
15044 2011-02-21 Anatoly Sokolov <aesok@post.ru>
15045
15046 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15047 * config/stormy16/stormy16-protos.h
15048 (xstormy16_mode_dependent_address_p): Remove.
15049 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
15050 Make static. Change return type to bool. Change argument type to
15051 const_rtx. Remove dead code.
15052 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15053
15054 2011-02-21 Richard Guenther <rguenther@suse.de>
15055
15056 PR lto/47820
15057 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
15058 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15059 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
15060 TUs context.
15061 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15062 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
15063
15064 2011-02-20 Richard Guenther <rguenther@suse.de>
15065
15066 PR lto/47822
15067 * tree.c (free_lang_data_in_decl): Clean builtins from
15068 the TU decl BLOCK_VARS.
15069
15070 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
15071
15072 PR debug/47620
15073 PR debug/47630
15074 * haifa-sched.c (fix_tick_ready): Skip tick computation
15075 for debug insns.
15076
15077 2011-02-19 Richard Guenther <rguenther@suse.de>
15078
15079 PR lto/47647
15080 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
15081 Remove lazy BLOCK_VARS streaming.
15082 (lto_input_ts_block_tree_pointers): Likewise.
15083 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
15084
15085 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15086
15087 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
15088
15089 2011-02-19 Joseph Myers <joseph@codesourcery.com>
15090
15091 * config/i386/biarch32.h, config/i386/mach.h,
15092 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
15093
15094 2011-02-19 Jakub Jelinek <jakub@redhat.com>
15095
15096 PR target/47800
15097 * config/i386/i386.md (peephole2 for shift and plus): Use
15098 operands[1] original mode in the first insn.
15099
15100 2011-02-18 Mike Stump <mikestump@comcast.net>
15101
15102 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
15103
15104 2011-02-18 Jan Hubicka <jh@suse.cz>
15105
15106 PR middle-end/47788
15107 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
15108 to zero when the function is not inlinable at all.
15109
15110 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15111
15112 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
15113 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15114 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
15115 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
15116 * config/pa/t-pa64: Likewise.
15117 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
15118
15119 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15120
15121 PR driver/47787
15122 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
15123
15124 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15125
15126 PR target/47792
15127 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
15128
15129 2011-02-18 Anatoly Sokolov <aesok@post.ru>
15130
15131 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15132 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
15133 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
15134 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15135 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
15136 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
15137 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
15138 m32r_load_postinc_p, m32r_store_preinc_predec_p,
15139 m32r_legitimate_address_p): New functions.
15140 * config/m32r/constraints.md (constraint "S"): Don't use
15141 STORE_PREINC_PREDEC_P.
15142 (constraint "U"): Don't use LOAD_POSTINC_P.
15143
15144 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
15145
15146 PR rtl-optimization/46178
15147 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
15148 compute ira_hard_regno_cover_class[].
15149
15150 2011-02-18 Richard Guenther <rguenther@suse.de>
15151
15152 PR lto/47798
15153 * lto-streamer.h (lto_global_var_decls): Declare.
15154 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
15155 statics for global var processing.
15156
15157 2011-02-18 Richard Guenther <rguenther@suse.de>
15158
15159 PR tree-optimization/47737
15160 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
15161 edge dominance check.
15162
15163 2011-02-18 Jakub Jelinek <jakub@redhat.com>
15164
15165 PR debug/47780
15166 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
15167 avoid invalid rtx sharing.
15168
15169 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
15170
15171 * doc/cpp.texi (Obsolete Features): Add background on the
15172 origin of assertions.
15173
15174 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
15175
15176 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
15177 objc_abi == 2.
15178 * config/darwin.c (output_objc_section_asm_op): Added support for
15179 ABI v1 and v2.
15180 (is_objc_metadata): New.
15181 (darwin_objc2_section): New.
15182 (darwin_objc1_section): New.
15183 (machopic_select_section): Added support for ABI v1 and v2.
15184 (darwin_emit_objc_zeroed): New.
15185 (darwin_output_aligned_bss): Detect objc metadata and treat it
15186 appropriately.
15187 (darwin_asm_output_aligned_decl_common): Same.
15188 (darwin_asm_output_aligned_decl_local): Same.
15189 * config/darwin-sections.def: Updated for ABI v1 and v2.
15190 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
15191 compiling Objective-C code for the NeXT runtime, default to using
15192 ABI version 0 for 32-bit, and version 2 for 64-bit.
15193
15194 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15195
15196 * common.opt (optimize_fast): New Variable.
15197 * opts.c (default_options_optimization): Use opts->x_optimize_fast
15198 instead of local variable ofast.
15199
15200 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
15201
15202 * doc/invoke.texi (fobjc-abi-version): Documented.
15203 (fobjc-nilcheck): Documented.
15204 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
15205 version.
15206
15207 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15208
15209 PR driver/47390
15210 * common.opt (export-dynamic): New Driver option.
15211 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
15212
15213 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15214
15215 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
15216
15217 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
15218 Jan Hubicka <jh@suse.cz>
15219
15220 PR debug/47106
15221 PR debug/47402
15222 * cfgexpand.c (account_used_vars_for_block): Remove.
15223 (estimated_stack_frame_size): Use referenced vars.
15224 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
15225 that were referenced in the original function. Test src_fn
15226 rather than cfun. Drop redundant get_var_ann.
15227 (setup_one_parameter): Drop redundant get_var_ann.
15228 (declare_return_variable): Likewise.
15229 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
15230 (copy_arguments_for_versioning): Drop redundant get_var_ann.
15231 * ipa-inline.c (compute_inline_parameters): Do not compute
15232 disregard_inline_limits here.
15233 (compute_inlinable_for_current, pass_inlinable): New.
15234 (pass_inline_parameters): Require PROP_referenced_vars.
15235 * cgraphunit.c (cgraph_process_new_functions): Don't run
15236 compute_inline_parameters explicitly unless function is in SSA form.
15237 (cgraph_analyze_function): Set .disregard_inline_limits.
15238 * tree-sra.c (convert_callers): Compute inliner parameters
15239 only for functions already in SSA form.
15240
15241 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15242
15243 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
15244 -mlittle-endian-data.
15245
15246 2011-02-17 Joseph Myers <joseph@codesourcery.com>
15247
15248 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
15249 -mno-fpu, not -fpu and -no-fpu.
15250 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
15251 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
15252
15253 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
15254
15255 PR target/43653
15256 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
15257 input reload with PLUS RTX.
15258
15259 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15260
15261 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
15262 of InverseVar(MDMX).
15263
15264 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15265
15266 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
15267 --m4-340.
15268
15269 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15270
15271 * config/mn10300/mn10300.opt (mno-crt0): New.
15272
15273 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15274
15275 * config/m68k/uclinux.opt (static-libc): New Driver option.
15276
15277 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15278
15279 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
15280
15281 2011-02-16 Joseph Myers <joseph@codesourcery.com>
15282
15283 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
15284 %{muser-extend-enabled}.
15285
15286 2011-02-16 Richard Guenther <rguenther@suse.de>
15287
15288 PR tree-optimization/47738
15289 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
15290 the TODO from tree_predictive_commoning.
15291
15292 2011-02-15 Jeff Law <law@redhat.com>
15293
15294 Revert
15295 2011-01-25 Jeff Law <law@redhat.com>
15296
15297 PR rtl-optimization/37273
15298 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15299 handle them like argument loads from stack slots. Do not double
15300 count memory for memory constants and argument loads from stack slots.
15301
15302 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15303
15304 PR middle-end/47725
15305 * combine.c (cant_combine_insn_p): Revert the last change.
15306
15307 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
15308
15309 PR target/47755
15310 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
15311 mode for vector constants. Remove code that checks for TImode.
15312
15313 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15314
15315 PR debug/47106
15316 PR debug/47402
15317 * cgraph.h (compute_inline_parameters): Return void.
15318 * ipa-inline.c (compute_inline_parameters): Adjust.
15319
15320 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15321
15322 PR debug/47106
15323 PR debug/47402
15324 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
15325 rather than decl.
15326 * cfgexpand.c (estimated_stack_frame_size): Likewise.
15327 * ipa-inline.c (compute_inline_parameters): Adjust.
15328
15329 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15330
15331 PR debug/47106
15332 PR debug/47402
15333 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
15334 Adjust all users. Pass FN to...
15335 * tree-flow-inline.h (first_referenced_var): ... this. Add
15336 fn argument.
15337 * ipa-struct-reorg.c: Adjust.
15338 * tree-dfa.c: Adjust.
15339 * tree-into-ssa.c: Adjust.
15340 * tree-sra.c: Adjust.
15341 * tree-ssa-alias.c: Adjust.
15342 * tree-ssa-live.c: Adjust.
15343 * tree-ssa.c: Adjust.
15344 * tree-ssanames.c: Adjust.
15345 * tree-tailcall.c: Adjust.
15346
15347 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
15348
15349 PR debug/47106
15350 PR debug/47402
15351 * tree-flow.h (referenced_var_lookup): Add fn parameter.
15352 Adjust all callers.
15353 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
15354 * tree-flow-inline.h: Adjust.
15355 * gimple-pretty-print.c: Adjust.
15356 * tree-into-ssa.c: Adjust.
15357 * tree-ssa.c: Adjust.
15358 * cfgexpand.c: Adjust.
15359
15360 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15361
15362 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
15363 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15364 (EXTRA_CONSTRAINT): Delete.
15365 * config/iq2000/constraints.md: New file.
15366 * config/iq2000/iq2000.md: Include it.
15367 (define_insn ""): Delete.
15368 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
15369 unsupported constraint letters from patterns.
15370 (call_value, call_value_internal1): Likewise.
15371 (call_value_multiple_internal1): Likewise.
15372
15373 2011-02-15 Nick Clifton <nickc@redhat.com>
15374
15375 * config/mn10300/mn10300.c: Include tm-constrs.h.
15376 (struct liw_data): New data structure describing an LIW candidate
15377 instruction.
15378 (extract_bundle): Use struct liw_data. Allow small integer
15379 operands for some instructions.
15380 (check_liw_constraints): Use struct liw_data. Remove swapped
15381 parameter. Add comments describing the checks. Fix bug when
15382 assigning the source of liw1 to the source of liw2.
15383 (liw_candidate): Delete. Code moved into extract_bundle.
15384 (mn10300_bundle_liw): Use struct liw_data. Check constraints
15385 before swapping.
15386 * config/mn10300/predicates.md (liw_operand): New predicate.
15387 Allows registers and small integer constants.
15388 * config/mn10300/constraints.md (O): New constraint. Accetps
15389 integers in the range -8 to +7 inclusive.
15390 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
15391 for moving a small integer into a register. Give this alternative
15392 LIW attributes.
15393 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
15394 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
15395 using the J,K,L and M constraints,
15396 (liw): Remove SI mode on second operands to allow for HI and QI
15397 mode values.
15398 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
15399 instruction.
15400
15401 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
15402
15403 PR middle-end/47725
15404 * combine.c (cant_combine_insn_p): Check zero/sign extended
15405 hard registers.
15406
15407 2011-02-15 Richard Guenther <rguenther@suse.de>
15408
15409 PR tree-optimization/47743
15410 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
15411 for a non-type-compatible VN lookup bail out.
15412
15413 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15414
15415 * config/fr30/constraints.md: New file.
15416 * config/fr30/fr30.md: Include it.
15417 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
15418 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15419 (EXTRA_CONSTRAINT): Delete.
15420
15421 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15422
15423 * config/frv/constraints.md: New file.
15424 * config/frv/predicates.md: Include it.
15425 * config/frv/frv.c (reg_class_from_letter): Delete.
15426 (frv_option_override): Don't initialize it.
15427 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
15428 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
15429 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
15430 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15431 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
15432 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15433 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
15434 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
15435 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
15436 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
15437 (REG_CLASS_FROM_CONSTRAINT): Delete.
15438
15439 2011-02-15 Jakub Jelinek <jakub@redhat.com>
15440
15441 PR middle-end/47581
15442 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
15443 if frame size is 0 in a leaf function.
15444
15445 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15446
15447 PR pch/14940
15448 * config/alpha/host-osf.c: New file.
15449 * config/alpha/x-osf: New file.
15450 * config.host (alpha*-dec-osf*): Use it.
15451
15452 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15453
15454 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15455 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
15456 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
15457 (rx_mode_dependent_address_p): ...this. Make static. Change argument
15458 type to const_rtx.
15459 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15460
15461 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15462
15463 * config/stormy16/constraints.md: New file.
15464 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
15465 Use satisfies_constraint_Q and satisfies_constraint_R.
15466 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
15467 Delete.
15468 (xstormy16_legitiamte_address_p): Declare.
15469 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
15470 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15471 (EXTRA_CONSTRAINT): Delete.
15472 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15473 Un-staticize.
15474 (xstormy16_extra_constraint_p): Delete.
15475
15476 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
15477
15478 PR tree-optimization/46494
15479 * loop-unroll.c (split_edge_and_insert): Adjust comment.
15480 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
15481 (pass_rtl_loop_done): Add TODO_verify_flow.
15482 * fwprop.c (pass_rtl_fwprop): Likewise.
15483 * modulo-sched.c (pass_sms): Likewise.
15484 * tree-ssa-dom.c (pass_dominator): Likewise.
15485 * tree-ssa-loop-ch.c (pass_ch): Likewise.
15486 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
15487 (pass_tree_loop_done): Likewise.
15488 * tree-ssa-pre.c (execute_pre): Likewise.
15489 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15490 * tree-ssa-sink.c (pass_sink_code): Likewise.
15491 * tree-vrp.c (pass_vrp): Likewise.
15492
15493 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15494
15495 * config/v850/constraints.md: New file.
15496 * config/v850/v850.md: Include it.
15497 * config/v850/predicates.md (reg_or_0_operand): Use
15498 satisfies_constraint_G.
15499 (special_symbolref_operand): Use satisfies_constraint_K.
15500 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
15501 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
15502 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
15503 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
15504 (EXTRA_CONSTRAINT): Delete.
15505 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
15506 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
15507 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
15508
15509 2011-02-14 Anatoly Sokolov <aesok@post.ru>
15510
15511 PR target/47696
15512 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
15513 description.
15514
15515 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
15516
15517 * config/mcore/constraints.md: New file.
15518 * config/mcore/mcore.md: Include it.
15519 * config/mcore/mcore.c (reg_class_from_letter): Delete.
15520 * config/mcore/mcore.h (reg_class_from_letter): Delete.
15521 (REG_CLASS_FROM_LETTER): Delete.
15522 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
15523 insn_const_int_ok_for_constraint.
15524 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
15525 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
15526 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15527 (EXTRA_CONSTRAINT): Delete.
15528
15529 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15530
15531 PR ada/41929
15532 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
15533 (IS_SIGHANDLER): Define.
15534 (sparc64_is_sighandler): New function, split off from
15535 sparc64_fallback_frame_state.
15536 (sparc_is_sighandler): New function, split off from
15537 sparc_fallback_frame_state.
15538 (sparc64_fallback_frame_state): Merge with ...
15539 (sparc_fallback_frame_state): ... this into ...
15540 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
15541 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
15542 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
15543 stack instead of hardcoded offsets.
15544
15545 2011-02-14 Andriy Gapon <avg@freebsd.org>
15546
15547 PR target/45808
15548 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
15549
15550 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15551
15552 * configure: Regenerate.
15553
15554 2011-02-12 Joseph Myers <joseph@codesourcery.com>
15555
15556 PR driver/45731
15557 * gcc.c (asm_options): Correct spec matching --target-help.
15558
15559 2011-02-12 Martin Jambor <mjambor@suse.cz>
15560
15561 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
15562 to gimple call error.
15563
15564 2011-02-12 Mike Stump <mikestump@comcast.net>
15565
15566 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
15567 comments in backslash regions.
15568
15569 2011-02-12 Mike Stump <mikestump@comcast.net>
15570 Jakub Jelinek <jakub@redhat.com>
15571 Iain Sandoe <iains@gcc.gnu.org>
15572
15573 PR target/47324
15574 * dwarf2out.c (output_cfa_loc): When required, apply the
15575 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
15576 (output_loc_sequence): Likewise.
15577 (output_loc_operands_raw): Likewise.
15578 (output_loc_sequence_raw): Likewise.
15579 (output_cfa_loc): Likewise.
15580 (output_loc_list): Suppress register number adjustment when
15581 calling output_loc_sequence()
15582 (output_die): Likewise.
15583
15584 2011-02-12 Anatoly Sokolov <aesok@post.ru>
15585
15586 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15587 Remove macros.
15588 * config/xtensa/xtensa.c (xtensa_register_move_cost,
15589 xtensa_memory_move_cost): New functions.
15590 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
15591
15592 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
15593
15594 PR lto/47225
15595 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
15596 in the current directory.
15597 * configure: Rebuilt.
15598
15599 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15600
15601 * config/darwin.c (darwin_override_options): Add a hunk missed
15602 from the commit of r168571. Trim comment line lengths and
15603 correct indents of the preceding block.
15604
15605 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
15606
15607 * gcc.c (driver_handle_option): Concatenate the argument to -F with
15608 the switch.
15609
15610 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15611
15612 * common.opt (nostartfiles): New Driver option.
15613
15614 2011-02-11 Xinliang David Li <davidxl@google.com>
15615
15616 PR tree-optimization/47707
15617 * tree-chrec.c (convert_affine_scev): Keep type precision.
15618
15619 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
15620
15621 PR tree-optimization/47420
15622 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
15623
15624 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
15625
15626 PR rtl-optimization/47614
15627 * rtl.h (check_for_inc_dec): Declare.
15628 * dse.c (check_for_inc_dec): Externalize...
15629 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
15630 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
15631
15632 2011-02-11 Joseph Myers <joseph@codesourcery.com>
15633
15634 PR driver/47678
15635 * gcc.c (main): Do not compile inputs if there were errors in
15636 option handling.
15637 * opts-common.c (read_cmdline_option): Check for wrong language
15638 after other error checks.
15639
15640 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
15641
15642 * cgraph.c: Fix comment typos.
15643 * cgraph.h: Likewise.
15644 * cgraphunit.c: Likewise.
15645 * ipa-cp.c: Likewise.
15646 * ipa-inline.c: Likewise.
15647 * ipa-prop.c: Likewise.
15648 * ipa-pure-const.c: Likewise.
15649 * ipa-ref.c: Likewise.
15650 * ipa-reference.c: Likewise.
15651
15652 2011-02-11 Jakub Jelinek <jakub@redhat.com>
15653
15654 PR debug/47684
15655 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
15656
15657 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15658
15659 PR testsuite/47400
15660 * doc/sourcebuild.texi (Require Support): Document
15661 dg-require-ascii-locale.
15662
15663 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
15664
15665 * doc/lto.texi (Write summary): Fix missing parentheses.
15666
15667 2011-02-10 DJ Delorie <dj@redhat.com>
15668
15669 * config/m32c/m32c.c (m32c_option_override): Disable
15670 -fcombine-stack-adjustments until flag value tracking and compare
15671 optimization can be rewritten.
15672
15673 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
15674
15675 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
15676 PROCESSOR_POWER7.
15677 (PROCESSOR_DEFAULT64): Likewise.
15678
15679 2011-02-10 Richard Henderson <rth@redhat.com>
15680
15681 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
15682 change from 2011-02-03.
15683 * config/rx/rx.c (flags_from_code): Likewise.
15684 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
15685 is valid, n/pz otherwise.
15686 (rx_select_cc_mode): Return CCmode if Y is not zero.
15687
15688 2011-02-10 Richard Guenther <rguenther@suse.de>
15689
15690 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
15691
15692 2011-02-10 Richard Guenther <rguenther@suse.de>
15693
15694 PR tree-optimization/47677
15695 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
15696
15697 2011-02-10 Jakub Jelinek <jakub@redhat.com>
15698
15699 PR target/47665
15700 * combine.c (make_compound_operation): Only change shifts into
15701 multiplication for SCALAR_INT_MODE_P.
15702
15703 2011-02-10 Jie Zhang <jie@codesourcery.com>
15704
15705 PR testsuite/47622
15706 Revert
15707 2011-02-05 Jie Zhang <jie@codesourcery.com>
15708 PR debug/42631
15709 * web.c (entry_register): Don't clobber the number of the
15710 first uninitialized reference in used[].
15711
15712 2011-02-09 Richard Guenther <rguenther@suse.de>
15713
15714 PR tree-optimization/47664
15715 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
15716 all edges again.
15717
15718 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
15719
15720 PR target/46481
15721 PR target/47032
15722 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
15723 PROCESSOR_POWER7.
15724 (PROCESSOR_DEFAULT64): Same.
15725 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
15726
15727 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15728
15729 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
15730
15731 2011-02-09 Martin Jambor <mjambor@suse.cz>
15732
15733 PR middle-end/45505
15734 * tree-sra.c (struct access): New flags grp_scalar_read and
15735 grp_scalar_write. Changed description of assignment read and write
15736 flags.
15737 (dump_access): Dump new flags, reorder all of them.
15738 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
15739 to detect multiple scalar reads.
15740 (analyze_access_subtree): Use the new scalar read write flags instead
15741 of the old flags. Adjusted comments.
15742
15743 2011-02-08 DJ Delorie <dj@redhat.com>
15744
15745 PR target/47548
15746 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
15747 patterns.
15748
15749 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15750
15751 * config/m68k/uclinux.opt: New.
15752 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
15753
15754 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15755
15756 * config/cris/elf.opt (sim): New Driver option.
15757
15758 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15759
15760 * config/xtensa/elf.opt: New.
15761 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
15762
15763 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15764
15765 * config/vax/elf.opt: New.
15766 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
15767
15768 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15769
15770 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
15771
15772 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15773
15774 * config/gnu-user.opt: New.
15775 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
15776 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
15777 *-*-uclinux*): Use gnu-user.opt.
15778
15779 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
15780
15781 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
15782 * config/i386/gnu.h (CPP_SPEC): Likewise.
15783
15784 2011-02-08 Ian Lance Taylor <iant@google.com>
15785
15786 * common.opt (fcx-limited-range): Add SetByCombined flag.
15787 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
15788 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
15789 (fassociative-math, freciprocal-math): Likewise.
15790 (funsafe-math-optimizations): Likewise.
15791 * opth-gen.awk: Handle SetByCombined.
15792 * optc-gen.awk: Likewise.
15793 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
15794 (set_unsafe_math_optimizations_flags): Likewise.
15795 * doc/options.texi (Option properties): Document SetByCombined.
15796
15797 2011-02-08 Joseph Myers <joseph@codesourcery.com>
15798
15799 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
15800 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
15801 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
15802 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
15803 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
15804
15805 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
15806
15807 PR tree-optimization/46834
15808 PR tree-optimization/46994
15809 PR tree-optimization/46995
15810 * graphite-sese-to-poly.c (used_outside_reduction): New.
15811 (detect_commutative_reduction): Call used_outside_reduction.
15812 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
15813 translate_scalar_reduction_to_array only when at least one
15814 loop-phi/close-phi tuple has been detected.
15815
15816 2011-02-08 Richard Guenther <rguenther@suse.de>
15817
15818 PR middle-end/47639
15819 * tree-vect-generic.c (expand_vector_operations_1): Update
15820 stmts here ...
15821 (expand_vector_operations): ... not here. Cleanup EH info
15822 and the CFG if required.
15823
15824 2011-02-08 Richard Guenther <rguenther@suse.de>
15825
15826 PR tree-optimization/47641
15827 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
15828 require type compatibility.
15829
15830 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15831
15832 * gimple-low.c (lower_function_body): Don't remove the location of
15833 the return statement here.
15834 (lower_gimple_return): Do it here instead but only if the return
15835 statement is actually used twice.
15836
15837 2011-02-08 Richard Guenther <rguenther@suse.de>
15838
15839 PR tree-optimization/47632
15840 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
15841 unused up_to_stmt parameter, return whether cfg-cleanup is
15842 necessary, remove EH info properly.
15843 (forward_propagate_into_gimple_cond): Adjust caller.
15844 (forward_propagate_into_cond): Likewise.
15845 (forward_propagate_comparison): Likewise.
15846 (tree_ssa_forward_propagate_single_use_vars): Make
15847 forward_propagate_comparison case similar to the two others.
15848
15849 2011-02-08 Nick Clifton <nickc@redhat.com>
15850
15851 * config/mn10300/mn10300.opt (mliw): New command line option.
15852 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
15853 (liw_bundling): New automaton.
15854 (liw): New attribute.
15855 (liw_op): New attribute.
15856 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
15857 (movsi_internal): Add LIW attributes.
15858 (andsi3): Likewise.
15859 (iorsi3): Likewise.
15860 (xorsi3): Likewise.
15861 (addsi3): Separate register and immediate alternatives.
15862 Add LIW attributes.
15863 (subsi3): Likewise.
15864 (cmpsi): Likewise.
15865 (aslsi3): Likewise.
15866 (lshrsi3): Likewise.
15867 (ashrsi3): Likewise.
15868 (liw): New pattern.
15869 * config/mn10300/mn10300.c (liw_op_names): New
15870 (mn10300_print_operand): Handle 'W' operand descriptor.
15871 (extract_bundle): New function.
15872 (check_liw_constraints): New function.
15873 (liw_candidate): New function.
15874 (mn10300_bundle_liw): New function.
15875 (mn10300_reorg): New function.
15876 (TARGET_MACHINE_DEPENDENT_REORG): Define.
15877 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
15878 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
15879 __LIW__ or __NO_LIW__.
15880 * doc/invoke.texi: Describe the -mliw command line option.
15881
15882 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15883
15884 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
15885 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
15886 pthread_mutex_unlock): Remove.
15887 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
15888 * config/pa/t-pa64: Likewise.
15889 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
15890 shared libc if not linking against libpthread.
15891 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
15892
15893 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
15894
15895 PR target/47558
15896 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
15897 on 10.6 and later to ensure that we always use the unwinder from
15898 the system. Only add -no_compact_unwind when tarteting darwin
15899 10.6 or later.
15900
15901 2011-02-07 Steve Ellcey <sje@cup.hp.com>
15902
15903 PR target/46997
15904 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
15905 (vec_interleave_lowv2sf): Ditto.
15906 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
15907 (vec_extract_oddv2sf): Ditto.
15908
15909 2011-02-07 Mike Stump <mikestump@comcast.net>
15910
15911 PR target/42333
15912 Add __ieee_divdc3 entry point.
15913 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
15914 entry point.
15915 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
15916 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
15917 * config/darwin.c (darwin_rename_builtins): Add.
15918 * config/darwin-protos.h (darwin_rename_builtins): Add.
15919
15920 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15921
15922 PR target/47636
15923 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
15924 for the condition.
15925
15926 2011-02-07 Mike Stump <mikestump@comcast.net>
15927
15928 * config/darwin.opt (mmacosx-version-min): Update default OS version.
15929
15930 2011-02-07 Denis Chertykov <chertykov@gmail.com>
15931
15932 PR target/47534
15933 * config/avr/libgcc.S (exit): Move .endfunc
15934
15935 2011-02-07 Richard Guenther <rguenther@suse.de>
15936
15937 PR tree-optimization/47615
15938 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
15939 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
15940 (run_scc_vn): Initialize it.
15941 (visit_reference_op_load): Use it.
15942 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
15943
15944 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15945
15946 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
15947 DImode trapping arithmetic libfuncs.
15948
15949 2011-02-07 Richard Guenther <rguenther@suse.de>
15950
15951 PR tree-optimization/47621
15952 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
15953 two duplicates ...
15954 (execute_update_addresses_taken): ... here. Make it more
15955 conservative in what we accept.
15956
15957 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15958
15959 * config/sparc/freebsd.h (ASM_SPEC): Define.
15960 * config/sparc/vxworks.h (ASM_SPEC): Define.
15961
15962 2011-02-06 Joseph Myers <joseph@codesourcery.com>
15963
15964 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15965
15966 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
15967
15968 * doc/invoke.texi: Remove reference to compiler internals from
15969 user documentation.
15970
15971 * reg-notes.def: Remove REG_VALUE_PROFILE.
15972 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
15973
15974 2011-02-05 Jakub Jelinek <jakub@redhat.com>
15975
15976 PR middle-end/47610
15977 * varasm.c (default_section_type_flags): If decl is NULL,
15978 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
15979
15980 2011-02-05 Jie Zhang <jie@codesourcery.com>
15981
15982 PR debug/42631
15983 * web.c (entry_register): Don't clobber the number of the
15984 first uninitialized reference in used[].
15985
15986 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
15987
15988 PR tree-optimization/46194
15989 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
15990 (build_classic_dist_vector_1): Do not represent classic distance
15991 vectors when the access functions are variating in different loops.
15992
15993 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15994
15995 * config/mips/iris6.opt: New.
15996 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
15997
15998 2011-02-04 Richard Henderson <rth@redhat.com>
15999 Steve Ellcey <sje@cup.hp.com>
16000
16001 PR target/46997
16002 * config/ia64/predicates.md (mux1_brcst_element): New.
16003 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
16004 * config/ia64/ia64.c (ia64_unpack_assemble): New.
16005 (ia64_unpack_sign): New.
16006 (ia64_expand_unpack): Rewrite using new routines.
16007 (ia64_expand_widen_sum): Ditto.
16008 (ia64_expand_dot_prod_v8qi): Ditto.
16009 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
16010 routines, add endian check.
16011 (pmpy2_even): Rename from pmpy2_r, add endian check.
16012 (pmpy2_odd): Rename from pmpy2_l, add endian check.
16013 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
16014 (vec_widen_smult_hi_v4hi): Ditto.
16015 (vec_widen_umult_lo_v4hi): Ditto.
16016 (vec_widen_umult_hi_v4hi): Ditto.
16017 (mulv2si3): Change endian checks.
16018 (sdot_prodv4hi): Rewrite with new calls.
16019 (udot_prodv4hi): New.
16020 (vec_pack_ssat_v4hi): Add endian check.
16021 (vec_pack_usat_v4hi): Ditto.
16022 (vec_pack_ssat_v2si): Ditto.
16023 (max1_even): Rename from max1_r, add endian check.
16024 (max1_odd): Rename from max1_l, add endian check.
16025 (*mux1_rev): Format change.
16026 (*mux1_mix): Ditto.
16027 (*mux1_shuf): Ditto.
16028 (*mux1_alt): Ditto.
16029 (*mux1_brcst_v8qi): Use new predicate.
16030 (vec_extract_evenv8qi): Remove endian check.
16031 (vec_extract_oddv8qi): Ditto.
16032 (vec_interleave_lowv4hi): Format change.
16033 (vec_interleave_highv4hi): Ditto.
16034 (mix2_even): Rename from mix2_r, add endian check.
16035 (mix2_odd): Rename from mux2_l, add endian check.
16036 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
16037 (vec_extract_evenodd_helper): Format change.
16038 (vec_extract_evenv4hi): Remove endian check.
16039 (vec_extract_oddv4hi): Remove endian check.
16040 (vec_interleave_lowv2si): Format change.
16041 (vec_interleave_highv2si): Format change.
16042 (vec_initv2si): Remove endian check.
16043 (vecinit_v2si): Add endian check.
16044 (reduc_splus_v2sf): Add endian check.
16045 (reduc_smax_v2sf): Ditto.
16046 (reduc_smin_v2sf): Ditto.
16047 (vec_initv2sf): Remove endian check.
16048 (fpack): Add endian check.
16049 (fswap): Add endian check.
16050 (vec_interleave_highv2sf): Add endian check.
16051 (vec_interleave_lowv2sf): Add endian check.
16052 (fmix_lr): Add endian check.
16053 (vec_setv2sf): Format change.
16054 (*vec_extractv2sf_0_be): Use shift to extract operand.
16055 (*vec_extractv2sf_1_be): New.
16056 (vec_pack_trunc_v4hi): Add endian check.
16057 (vec_pack_trunc_v2si): Format change.
16058
16059 2011-02-04 Jakub Jelinek <jakub@redhat.com>
16060
16061 PR inline-asm/23200
16062 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
16063 do bb, locus and block comparison and disallow loads if it is not set.
16064 (stmt_is_replaceable_p): New function.
16065 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
16066 callers.
16067 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
16068 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
16069 SSA_NAME_DEF_STMT.
16070 * tree-flow.h (stmt_is_replaceable_p): New prototype.
16071
16072 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16073
16074 * config/rs6000/xilinx.opt: New.
16075 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
16076
16077 2011-02-04 Joseph Myers <joseph@codesourcery.com>
16078
16079 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
16080
16081 2011-02-03 Anatoly Sokolov <aesok@post.ru>
16082
16083 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
16084 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16085 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
16086 secondary_reload_info, xtensa_secondary_reload): Remove.
16087 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
16088 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16089 (xtensa_preferred_reload_class): Make static. Change return and
16090 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
16091 Use CONST_DOUBLE_P predicate.
16092 (xtensa_preferred_output_reload_class): New function.
16093 (xtensa_secondary_reload): Make static.
16094
16095 2011-02-03 Joseph Myers <joseph@codesourcery.com>
16096
16097 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
16098 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
16099 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
16100
16101 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16102
16103 PR middle-end/31490
16104 * output.h (SECTION_RELRO): Define.
16105 (SECTION_MACH_DEP): Adjust.
16106 (get_variable_section): New prototype.
16107 * varpool.c (varpool_finalize_named_section_flags): New function.
16108 (varpool_assemble_pending_decls): Call it.
16109 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
16110 * cgraphunit.c (cgraph_output_in_order): Call
16111 varpool_finalize_named_section_flags.
16112 * varasm.c (get_section): Allow section flags conflicts between
16113 relro and read-only sections if the section hasn't been declared yet.
16114 Set SECTION_OVERRIDE after diagnosing section type conflict.
16115 (get_variable_section): No longer static.
16116 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
16117 readonly sections that need relocations.
16118 (decl_readonly_section_1): New function.
16119 (decl_readonly_section): Use it.
16120
16121 Revert:
16122 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
16123 Steve Ellcey <sje@cup.hp.com>
16124
16125 PR middle-end/31490
16126 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
16127 if section attribute used.
16128
16129 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16130
16131 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
16132 * config/darwin.c (SECTION_NO_ANCHOR): Define.
16133 (darwin_init_sections): Remove assertion.
16134
16135 2011-02-03 Nick Clifton <nickc@redhat.com>
16136
16137 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
16138 lt and ge.
16139 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
16140 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
16141 instead of "n" and "pz".
16142 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
16143 CC_FLAG_S.
16144
16145 2011-02-03 Jakub Jelinek <jakub@redhat.com>
16146
16147 PR target/47312
16148 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
16149 fma, expand FMA_EXPR as fma{,f,l} call.
16150
16151 PR lto/47274
16152 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
16153 copy them into a unsigned char variable and pass address of it to
16154 lto_output_data_stream.
16155
16156 PR target/47564
16157 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
16158 around backend_init_target and lang_dependent_init_target calls.
16159 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
16160 (verify_cgraph_node): Don't call set_cfun here. Use
16161 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
16162 Set error_found for incorrectly represented calls to thunks.
16163
16164 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16165
16166 PR debug/43092
16167 PR rtl-optimization/43494
16168 * rtl.h (for_each_inc_dec_fn): New type.
16169 (for_each_inc_dec): Declare.
16170 * rtlanal.c (struct for_each_inc_dec_ops): New type.
16171 (for_each_inc_dec_find_inc_dec): New fn.
16172 (for_each_inc_dec_find_mem): New fn.
16173 (for_each_inc_dec): New fn.
16174 * dse.c (struct insn_size): Remove.
16175 (replace_inc_dec, replace_inc_dec_mem): Remove.
16176 (emit_inc_dec_insn_before): New fn.
16177 (check_for_inc_dec): Use it, along with for_each_inc_dec.
16178 (canon_address): Pass mem modes to cselib_lookup.
16179 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
16180 (cselib_lookup_from_insn): Likewise.
16181 (cselib_subst_to_values): Likewise.
16182 * cselib.c (find_slot_memmode): New var.
16183 (cselib_find_slot): New fn. Use it instead of
16184 htab_find_slot_with_hash everywhere.
16185 (entry_and_rtx_equal_p): Use find_slot_memmode.
16186 (autoinc_split): New fn.
16187 (rtx_equal_for_cselib_p): Rename and implement in terms of...
16188 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
16189 Deal with autoinc. Special-case recursion into MEMs.
16190 (cselib_hash_rtx): Likewise.
16191 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
16192 address and MEM modes.
16193 (cselib_subst_to_values): Add memmode, pass it on.
16194 Deal with autoinc.
16195 (cselib_lookup): Add memmode argument, pass it on.
16196 (cselib_lookup_from_insn): Add memmode.
16197 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
16198 (struct cselib_record_autoinc_data): New.
16199 (cselib_record_autoinc_cb): New fn.
16200 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
16201 mode to cselib_lookup. Reset autoinced REGs here instead of...
16202 (cselib_process_insn): ... here.
16203 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
16204 to cselib_lookup.
16205 (add_uses): Likewise, also to cselib_subst_to_values.
16206 (add_stores): Likewise.
16207 * sched-deps.c (add_insn_mem_dependence): Pass mode to
16208 cselib_subst_to_values.
16209 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
16210 * gcse.c (do_local_cprop): Adjusted.
16211 * postreload.c (reload_cse_simplify_set): Adjusted.
16212 (reload_cse_simplify_operands): Adjusted.
16213 * sel-sched-dump (debug_mem_addr_value): Pass mode.
16214
16215 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
16216
16217 PR tree-optimization/45122
16218 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
16219 unsafe assumptions when there's more than one loop exit.
16220
16221 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16222
16223 PR target/47272
16224 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
16225 Document using vector double with the load/store builtins, and
16226 that the load/store builtins always use Altivec instructions.
16227
16228 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
16229 to use altivec memory instructions, even on VSX.
16230 (vector_altivec_store_<mode>): Ditto.
16231
16232 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
16233 function.
16234
16235 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16236 V2DF, V2DI support to load/store overloaded builtins.
16237
16238 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
16239 altivec load/store builtins for V2DF/V2DI types.
16240
16241 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
16242 set avoid indexed addresses on power6 if -maltivec.
16243 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
16244 vector_altivec_load/vector_altivec_store builtins.
16245 (altivec_expand_st_builtin): Ditto.
16246 (altivec_expand_builtin): Add VSX memory builtins.
16247 (rs6000_init_builtins): Add V2DI types to internal types.
16248 (altivec_init_builtins): Add support for V2DF/V2DI altivec
16249 load/store builtins.
16250 (rs6000_address_for_altivec): Insure memory address is appropriate
16251 for Altivec.
16252
16253 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
16254 vec_vsx_ld and vec_vsx_st.
16255 (vsx_store_<mode>): Ditto.
16256
16257 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
16258 variables to hold long long types for VSX vector memory builtins.
16259 (RS6000_BTI_unsigned_long_long): Ditto.
16260 (long_long_integer_type_internal_node): Ditti.
16261 (long_long_unsigned_type_internal_node): Ditti.
16262
16263 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
16264 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
16265 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
16266
16267 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
16268 short cuts.
16269 (vec_vsx_st): Ditto.
16270
16271 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16272
16273 * config/pa/pa-hpux10.opt: New.
16274 * config/hpux11.opt (pthread): New Driver option.
16275 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
16276 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
16277
16278 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16279
16280 * config/ia64/vms.opt: New.
16281 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
16282
16283 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16284
16285 PR target/47580
16286 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
16287 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
16288 generator functions.
16289 (vsx_floatuns<VSi><mode>2): Ditto.
16290 (vsx_fix_trunc<mode><VSi>2): Ditto.
16291 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
16292
16293 2011-02-02 Joseph Myers <joseph@codesourcery.com>
16294
16295 * config/i386/djgpp.opt (posix): New Driver option.
16296
16297 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16298
16299 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
16300 Move to the unsupported targets list.
16301
16302 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
16303
16304 PR rtl-optimization/47525
16305 * df-scan.c: Update copyright years.
16306 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
16307 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
16308
16309 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16310
16311 * config/i386/sysv4.h (TARGET_VERSION): Remove.
16312 (SUBTARGET_RETURN_IN_MEMORY): Remove.
16313 (ASM_OUTPUT_ASCII): Remove.
16314 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
16315
16316 2011-02-02 Jeff Law <law@redhat.com>
16317
16318 PR middle-end/47543
16319 * reload.c (find_reloads_address): Handle reg+d address where both
16320 components are invalid by reloading the entire address.
16321
16322 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16323 Richard Guenther <rguenther@suse.de>
16324
16325 PR tree-optimization/40979
16326 PR bootstrap/47044
16327 * passes.c (init_optimization_passes): After LIM call copy_prop
16328 and DCE to clean up.
16329 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
16330
16331 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
16332
16333 PR tree-optimization/47576
16334 PR tree-optimization/47555
16335 * doc/invoke.texi (scev-max-expr-complexity): Documented.
16336 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16337 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
16338 * tree-scalar-evolution.c (follow_ssa_edge): Use
16339 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
16340
16341 2011-02-02 Richard Guenther <rguenther@suse.de>
16342
16343 PR tree-optimization/47566
16344 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
16345
16346 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16347
16348 PR debug/47106
16349 PR debug/47402
16350 * tree-inline.c (declare_return_variable): Remove unused caller
16351 variable.
16352
16353 PR debug/47106
16354 PR debug/47402
16355 * tree-flow-inline.h (clear_is_used, is_used_p): New.
16356 * cfgexpand.c (account_used_vars_for_block): Use them.
16357 * tree-nrv.c (tree_nrv): Likewise.
16358 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
16359 (dump_scope_block): Likewise.
16360 (remove_unused_locals): Likewise.
16361
16362 PR debug/47106
16363 PR debug/47402
16364 * tree-inline.c (declare_return_variable): Add result decl to
16365 local decls only once.
16366 * gimple-low.c (record_vars_into): Mark newly-created variables
16367 as referenced.
16368
16369 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
16370
16371 PR debug/47498
16372 PR debug/47501
16373 PR debug/45136
16374 PR debug/45130
16375 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16376 debug insns.
16377 (no_real_insns_p, schedule_block, set_priorities): Drop special
16378 treatment of boundary debug insns.
16379 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16380 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
16381 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16382 (BOUNDARY_DEBUG_INSN_P): Likewise.
16383 (SCHEDULE_DEBUG_INSN_P): Likewise.
16384 * sched-rgn.c (init_ready_list): Drop special treatment of
16385 boundary debug insns.
16386 * final.c (rest_of_clean_state): Clear notes' BB.
16387
16388 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16389
16390 * config/openbsd.opt (assert=): New Driver option.
16391
16392 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16393
16394 * config/i386/nto.opt: New.
16395 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
16396
16397 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16398
16399 * config/i386/netware.opt: New.
16400 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
16401
16402 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16403
16404 * config/interix.opt (posix): New Driver option.
16405
16406 2011-02-01 DJ Delorie <dj@redhat.com>
16407
16408 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
16409
16410 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
16411 class for A0/A1.
16412
16413 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
16414
16415 PR tree-optimization/47561
16416 * toplev.c (process_options): Print the Graphite flags. Add
16417 flag_loop_flatten to the list of options requiring Graphite.
16418
16419 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16420
16421 * config/i386/cygming.opt (posix): New Driver option.
16422
16423 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16424
16425 * config/arm/vxworks.opt: New.
16426 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
16427
16428 2011-02-01 Joseph Myers <joseph@codesourcery.com>
16429
16430 * config/alpha/elf.opt: New.
16431 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
16432 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
16433
16434 2011-02-01 Richard Guenther <rguenther@suse.de>
16435
16436 PR tree-optimization/47559
16437 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
16438 store-motion on references that can throw.
16439
16440 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
16441
16442 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
16443 * tree-pass.h (TDF_CSELIB): New macro.
16444 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
16445 cselib_lookup): Check for it rather than for TDF_DETAILS.
16446
16447 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
16448
16449 PR driver/47547
16450 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
16451 is HOST_BIT_BUCKET.
16452
16453 * opts.c (finish_options): Don't add x_aux_base_name if it is
16454 HOST_BIT_BUCKET.
16455
16456 2011-02-01 Richard Guenther <rguenther@suse.de>
16457
16458 PR tree-optimization/47555
16459 Revert
16460 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
16461
16462 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
16463
16464 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
16465
16466 PR gcc/46692
16467 * config/lm32/t-lm32: Add multilib for all CPU options.
16468
16469 2011-02-01 Richard Guenther <rguenther@suse.de>
16470
16471 PR tree-optimization/47541
16472 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
16473 sure to have a field at offset zero.
16474
16475 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16476
16477 * config/arc/arc.opt (EB, EL): New Driver options.
16478
16479 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16480
16481 * config/alpha/osf5.opt: New.
16482 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
16483
16484 2011-01-31 Joseph Myers <joseph@codesourcery.com>
16485
16486 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
16487
16488 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
16489
16490 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
16491 -floop-interchange.
16492 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
16493 is an alias of -floop-interchange and that it requires the
16494 Graphite infrastructure.
16495 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
16496 flag_loop_interchange based on the value of flag_tree_loop_linear.
16497
16498 2011-01-31 Jakub Jelinek <jakub@redhat.com>
16499 Richard Guenther <rguenther@suse.de>
16500
16501 PR tree-optimization/47538
16502 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
16503 type instead of r1type, except for comparisons. For right
16504 shifts and comparisons punt if there are mismatches in
16505 sizetype vs. non-sizetype types.
16506
16507 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16508
16509 * doc/sourcebuild.texi (Effective-Target Keywords): Document
16510 avx_runtime.
16511
16512 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16513
16514 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
16515 version number.
16516 * configure: Regenerate.
16517
16518 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16519
16520 * configure.ac (gcc_cv_ld_static_option): Define.
16521 (gcc_cv_ld_dynamic_option): Define.
16522 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
16523 instead.
16524 (HAVE_LD_STATIC_DYNAMIC): Update message.
16525 (LD_STATIC_OPTION): Define.
16526 (LD_DYNAMIC_OPTION): Define.
16527 * configure: Regenerate.
16528 * config.in: Regenerate.
16529 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
16530 HAVE_LD_STATIC_DYNAMIC]: Use them.
16531
16532 2011-01-31 Nick Clifton <nickc@redhat.com>
16533
16534 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
16535 registers inside interrupt handlers if the handler is not a leaf
16536 function.
16537
16538 2011-01-31 Nick Clifton <nickc@redhat.com>
16539
16540 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
16541 reg_renumber returning an INVALID_REGNUM.
16542
16543 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16544
16545 PR libgcj/44341
16546 * doc/install.texi: Document host options discarded when cross
16547 configuring target libraries.
16548
16549 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
16550
16551 Reverted:
16552 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16553 PR debug/45136
16554 PR debug/45130
16555 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16556 debug insns.
16557 (no_real_insns_p, schedule_block, set_priorities): Drop special
16558 treatment of boundary debug insns.
16559 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16560 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16561 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16562 (BOUNDARY_DEBUG_INSN_P): Likewise.
16563 (SCHEDULE_DEBUG_INSN_P): Likewise.
16564 * sched-rgn.c (init_ready_list): Drop special treatment of
16565 boundary debug insns.
16566 * final.c (rest_of_clean-state): Clear notes' BB.
16567
16568 2011-01-31 Alan Modra <amodra@gmail.com>
16569
16570 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
16571 toc relative expressions as we do in print_operand_address.
16572
16573 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
16574
16575 * doc/extend.texi: Follow spelling conventions.
16576 * doc/invoke.texi: Fix a typo.
16577
16578 2011-01-30 Joseph Myers <joseph@codesourcery.com>
16579
16580 * config/hpux11.opt: New.
16581 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
16582 ia64*-*-hpux*): Use hpux11.opt.
16583
16584 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
16585
16586 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
16587 to tmake_file.
16588
16589 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16590
16591 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
16592 support sites.
16593
16594 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16595
16596 * doc/install.texi (Binaries): Remove outdated reference for
16597 Motorola 68HC11/68HC12 downloads.
16598
16599 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
16600
16601 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
16602 Drepper's paper.
16603
16604 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
16605
16606 PR bootstrap/47147
16607 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
16608 used by NetBSD.
16609
16610 2011-01-28 Ahmad Sharif <asharif@google.com>
16611
16612 * value-prof.c (check_counter): Corrected error message.
16613
16614 2011-01-29 Jie Zhang <jie@codesourcery.com>
16615
16616 * config/arm/arm.c (arm_legitimize_reload_address): New.
16617 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
16618 arm_legitimize_reload_address.
16619 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
16620
16621 2011-01-28 Ian Lance Taylor <iant@google.com>
16622
16623 * godump.c (go_define): Ignore macros whose definitions include
16624 two adjacent operands.
16625
16626 2011-01-28 Jakub Jelinek <jakub@redhat.com>
16627
16628 PR target/42894
16629 * varasm.c (force_const_mem): Store copy of x in desc->constant
16630 instead of x itself.
16631 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
16632 itself into REG_EQUAL note.
16633
16634 2011-01-28 Joseph Myers <joseph@codesourcery.com>
16635
16636 * config/freebsd.opt (posix, rdynamic): New Driver options.
16637
16638 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16639
16640 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
16641 -Bstatic/-Bdynamic.
16642 * configure: Regenerate.
16643
16644 2011-01-27 Joseph Myers <joseph@codesourcery.com>
16645
16646 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
16647 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
16648
16649 2011-01-27 Anatoly Sokolov <aesok@post.ru>
16650
16651 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
16652 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
16653 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16654 (s390_preferred_reload_class): Make static. Change return and
16655 'rclass' argument type to reg_class_t.
16656
16657 2011-01-27 Jan Hubicka <jh@suse.cz>
16658
16659 PR middle-end/46949
16660 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
16661 (process_function_and_variable_attributes): Check defined weakrefs.
16662
16663 2011-01-27 Martin Jambor <mjambor@suse.cz>
16664
16665 PR tree-optimization/47228
16666 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
16667 build_ref_for_offset.
16668
16669 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16670
16671 * config/spu/spu-elf.h (ASM_SPEC): Remove.
16672
16673 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
16674
16675 PR rtl-optimization/46856
16676 * postreload.c (reload_combine_recognize_const_pattern): Do not
16677 separate cc0 setter and user on cc0 targets.
16678
16679 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
16680
16681 PR c/43082
16682 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
16683 passed a VOID_TYPE expression, immediately emit an error and
16684 return error_mark_node.
16685
16686 2011-01-26 Jeff Law <law@redhat.com>
16687
16688 PR rtl-optimization/47464
16689 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
16690 rather than may_trap_p as needed.
16691
16692 2011-01-26 DJ Delorie <dj@redhat.com>
16693
16694 PR rtl-optimization/46878
16695 * combine.c (insn_a_feeds_b): Check for the implicit cc0
16696 setter/user dependency as well.
16697
16698 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
16699
16700 PR rtl-optimization/44469
16701 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
16702 after removing trivially dead basic blocks.
16703
16704 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16705
16706 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
16707 * config/frv/frv.h (LINK_SPEC): Likewise.
16708 * config/i386/netware.h (LINK_SPEC): Likewise.
16709 * config/m68k/linux.h (ASM_SPEC): Likewise.
16710 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16711 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16712 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16713 * config/sparc/linux.h (ASM_SPEC): Likewise.
16714 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16715 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16716
16717 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16718
16719 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
16720 * config/frv/frv.h (ASM_SPEC): Likewise.
16721 * config/m68k/linux.h (ASM_SPEC): Likewise.
16722 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16723 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
16724 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16725 * config/sparc/linux.h (ASM_SPEC): Likewise.
16726 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16727 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16728
16729 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16730
16731 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
16732 * config/frv/frv.h (LINK_SPEC): Likewise.
16733 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
16734
16735 2011-01-26 Joseph Myers <joseph@codesourcery.com>
16736
16737 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
16738 * config/frv/frv.h (ASM_SPEC): Likewise.
16739 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
16740 * config/m68k/linux.h (ASM_SPEC): Likewise.
16741 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
16742 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
16743 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16744 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
16745 * config/sparc/linux.h (ASM_SPEC): Likewise.
16746 * config/sparc/linux64.h (ASM_SPEC): Likewise.
16747 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
16748 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
16749
16750 2011-01-26 Steve Ellcey <sje@cup.hp.com>
16751
16752 PR target/46997
16753 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
16754 (*mux2): Ditto.
16755 (vec_extract_evenodd_help): Ditto.
16756 (vec_extract_evenv4hi): Ditto.
16757 (vec_extract_oddv4hi): Ditto.
16758 (vec_interleave_lowv2si): Ditto.
16759 (vec_interleave_highv2si): Ditto.
16760 (vec_extract_evenv2si): Ditto.
16761 (vec_extract_oddv2si: Ditto.
16762 (vec_pack_trunc_v2si): Ditto.
16763
16764 2011-01-22 Jan Hubicka <jh@suse.cz>
16765
16766 PR target/47237
16767 * cgraph.h (cgraph_local_info): New field can_change_signature.
16768 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
16769 signature can change.
16770 (ipcp_estimate_growth): Call sequence simplify only if calle signature
16771 can change.
16772 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
16773 (cgraph_function_versioning): We can not change signature of functions
16774 that don't allow that.
16775 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
16776 (lto_input_node): Likewise.
16777 * ipa-inline.c (compute_inline_parameters): Compute
16778 local.can_change_signature.
16779 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
16780 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
16781 functions that can not change signature.
16782 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
16783 init_cumulative_args): Do not use local calling conventions
16784 for functions that can not change signature.
16785
16786 2011-01-22 Jan Hubicka <jh@suse.cz>
16787
16788 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
16789
16790 2011-01-26 Richard Guenther <rguenther@suse.de>
16791
16792 PR tree-optimization/47190
16793 * cgraphunit.c (process_common_attributes): New function.
16794 (process_function_and_variable_attributes): Use it.
16795
16796 2011-01-26 Richard Guenther <rguenther@suse.de>
16797
16798 PR lto/47423
16799 * cgraphbuild.c (record_eh_tables): Record reference to personality
16800 function.
16801
16802 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
16803
16804 PR debug/45454
16805 * sel-sched.c (moveup_expr): Don't let debug insns prevent
16806 non-debug insns from moving up.
16807
16808 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16809
16810 PR target/40125
16811 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
16812 t-dlldir{,-x} fragment for build and add it to tmake_file.
16813 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
16814 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
16815 * config/i386/t-dlldir: New file.
16816 (SHLIB_DLLDIR): Define.
16817 * config/i386/t-dlldir-x: New file.
16818 (SHLIB_DLLDIR): Define.
16819 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
16820 (SHLIB_INSTALL): Use it.
16821
16822 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
16823
16824 PR target/47246
16825 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
16826 lower bound of the allowed Thumb-2 coprocessor load/store
16827 index range to -256. Add explaining comment.
16828
16829 2011-01-25 Ian Lance Taylor <iant@google.com>
16830
16831 * godump.c (go_define): Improve lexing of macro expansion to only
16832 accept expressions which match Go spec.
16833
16834 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
16835
16836 PR c++/43601
16837 * tree.c (handle_dll_attribute): Handle it.
16838 * doc/extend.texi (@item dllexport): Mention it.
16839 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
16840
16841 2011-01-25 Ian Lance Taylor <iant@google.com>
16842
16843 PR tree-optimization/26854
16844 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
16845 (decl_jump_unsafe): Move higher in file, with no other change.
16846 (bind): Set has_jump_unsafe_decl if appropriate.
16847 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
16848 (check_earlier_gotos): Likewise.
16849 (c_check_switch_jump_warnings): Likewise.
16850
16851 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
16852
16853 * doc/invoke.texi (Warning Options): Add missing hyphen.
16854 (-fprofile-dir): Minor grammatical fixes.
16855 (-fbranch-probabilities): Likewise.
16856
16857 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
16858
16859 PR debug/45136
16860 PR debug/45130
16861 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
16862 debug insns.
16863 (no_real_insns_p, schedule_block, set_priorities): Drop special
16864 treatment of boundary debug insns.
16865 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
16866 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
16867 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
16868 (BOUNDARY_DEBUG_INSN_P): Likewise.
16869 (SCHEDULE_DEBUG_INSN_P): Likewise.
16870 * sched-rgn.c (init_ready_list): Drop special treatment of
16871 boundary debug insns.
16872 * final.c (rest_of_clean-state): Clear notes' BB.
16873
16874 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16875
16876 * Makefile.in (LAMBDA_H): Removed.
16877 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
16878 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
16879 lambda-trans.o, and tree-loop-linear.o.
16880 (lto-symtab.o): Remove dependence on LAMBDA_H.
16881 (tree-loop-linear.o): Remove rule.
16882 (lambda-mat.o): Same.
16883 (lambda-trans.o): Same.
16884 (lambda-code.o): Same.
16885 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
16886 (tree-vect-slp.o): Same.
16887 * hwint.h (gcd): Moved here.
16888 (least_common_multiple): Same.
16889 * lambda-code.c: Removed.
16890 * lambda-mat.c: Removed.
16891 * lambda-trans.c: Removed.
16892 * lambda.h: Removed.
16893 * tree-loop-linear.c: Removed.
16894 * lto-symtab.c: Do not include lambda.h.
16895 * omega.c (gcd): Removed.
16896 * passes.c (init_optimization_passes): Remove pass_linear_transform.
16897 * tree-data-ref.c (print_lambda_vector): Moved here.
16898 (lambda_vector_copy): Same.
16899 (lambda_matrix_copy): Same.
16900 (lambda_matrix_id): Same.
16901 (lambda_vector_first_nz): Same.
16902 (lambda_matrix_row_add): Same.
16903 (lambda_matrix_row_exchange): Same.
16904 (lambda_vector_mult_const): Same.
16905 (lambda_vector_negate): Same.
16906 (lambda_matrix_row_negate): Same.
16907 (lambda_vector_equal): Same.
16908 (lambda_matrix_right_hermite): Same.
16909 * tree-data-ref.h: Do not include lambda.h.
16910 (lambda_vector): Moved here.
16911 (lambda_matrix): Same.
16912 (dependence_level): Same.
16913 (lambda_transform_legal_p): Removed declaration.
16914 (lambda_collect_parameters): Same.
16915 (lambda_compute_access_matrices): Same.
16916 (lambda_vector_gcd): Same.
16917 (lambda_vector_new): Same.
16918 (lambda_vector_clear): Same.
16919 (lambda_vector_lexico_pos): Same.
16920 (lambda_vector_zerop): Same.
16921 (lambda_matrix_new): Same.
16922 * tree-flow.h (least_common_multiple): Removed declaration.
16923 * tree-parloops.c (lambda_trans_matrix): Moved here.
16924 (LTM_MATRIX): Same.
16925 (LTM_ROWSIZE): Same.
16926 (LTM_COLSIZE): Same.
16927 (LTM_DENOMINATOR): Same.
16928 (lambda_trans_matrix_new): Same.
16929 (lambda_matrix_vector_mult): Same.
16930 (lambda_transform_legal_p): Same.
16931 * tree-pass.h (pass_linear_transform): Removed declaration.
16932 * tree-ssa-loop.c (tree_linear_transform): Removed.
16933 (gate_tree_linear_transform): Removed.
16934 (pass_linear_transform): Removed.
16935 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
16936 flag_loop_interchange.
16937
16938 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16939
16940 PR tree-optimization/47265
16941 PR tree-optimization/47443
16942 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
16943 if name still has some uses.
16944
16945 2011-01-25 Martin Jambor <mjambor@suse.cz>
16946
16947 PR tree-optimization/47382
16948 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
16949 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
16950
16951 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
16952
16953 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
16954 sjlj_except_unwind_info.
16955
16956 2011-01-25 Richard Guenther <rguenther@suse.de>
16957
16958 PR tree-optimization/47426
16959 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
16960 visible functions results escape.
16961
16962 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16963
16964 PR target/45701
16965 * config/arm/arm.c (any_sibcall_uses_r3): New function.
16966 (arm_get_frame_offsets): Use it.
16967
16968 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16969 Jakub Jelinek <jakub@redhat.com>
16970
16971 PR tree-optimization/47271
16972 * tree-if-conv.c (bb_postdominates_preds): New.
16973 (if_convertible_bb_p): Call bb_postdominates_preds.
16974 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
16975 (predicate_scalar_phi): Call bb_postdominates_preds.
16976
16977 2011-01-25 Nick Clifton <nickc@redhat.com>
16978
16979 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
16980 * config/rx/rx.c (rx_function_value): Likewise.
16981 (rx_promote_function_mode): Likewise.
16982 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
16983 in order to make it legitimate.
16984 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
16985 make sure that the first operand is the same as the result register.
16986 (addsi3_unspec): Delete.
16987 (subdi3): Do not accept immediate operands.
16988 (subdi3_internal): Likewise.
16989
16990 2011-01-25 Jeff Law <law@redhat.com>
16991
16992 PR rtl-optimization/37273
16993 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16994 handle them like argument loads from stack slots. Do not double
16995 count memory for memory constants and argument loads from stack slots.
16996
16997 2011-01-25 Jakub Jelinek <jakub@redhat.com>
16998
16999 PR tree-optimization/47427
17000 PR tree-optimization/47428
17001 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17002 coalesce if the new root var would be TREE_READONLY.
17003
17004 2011-01-25 Richard Guenther <rguenther@suse.de>
17005
17006 PR middle-end/47414
17007 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
17008 correct type for TBAA.
17009
17010 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17011
17012 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
17013 (close_phi_written_to_memory): Call for_each_index with
17014 dr_indices_valid_in_loop.
17015
17016 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17017
17018 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
17019 when it is initialized.
17020
17021 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17022
17023 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
17024 call to graphite_find_data_references_in_stmt.
17025 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
17026 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
17027 call to graphite_find_data_references_in_stmt.
17028 (analyze_drs_in_stmts): Same.
17029 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
17030 in which the scalar analysis of indices is performed.
17031 (create_data_ref): Same. Update call to dr_analyze_indices.
17032 (find_data_references_in_stmt): Update call to create_data_ref.
17033 (graphite_find_data_references_in_stmt): Same.
17034 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
17035 declaration.
17036 (create_data_ref): Same.
17037 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
17038 call to create_data_ref.
17039
17040 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17041
17042 * graphite-sese-to-poly.c (build_poly_scop): Move
17043 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
17044
17045 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17046
17047 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
17048 VAR_DECL, PARM_DECL, and RESULT_DECL.
17049
17050 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17051
17052 * graphite-dependences.c (reduction_dr_1): Allow several reductions
17053 in a reduction PBB.
17054 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
17055 that have already been marked as PBB_IS_REDUCTION.
17056
17057 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17058
17059 * graphite-scop-detection.c (same_close_phi_node): New.
17060 (remove_duplicate_close_phi): New.
17061 (make_close_phi_nodes_unique): New.
17062 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
17063
17064 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17065
17066 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
17067 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
17068 of both data references to be the same.
17069
17070 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17071
17072 * graphite-dependences.c (build_lexicographical_constraint): Remove
17073 the gdim parameter.
17074 (build_lexicographical_constraint): Adjust call to
17075 ppl_powerset_is_empty.
17076 (dependence_polyhedron): Same.
17077 (graphite_legal_transform_dr): Same.
17078 (graphite_carried_dependence_level_k): Same.
17079 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
17080 parameter.
17081 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
17082
17083 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17084
17085 * graphite-sese-to-poly.c
17086 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
17087 (close_phi_written_to_memory): New.
17088 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
17089 and unshare_expr.
17090
17091 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17092
17093 * doc/install.texi: Update the expected version number of PPL to 0.11.
17094 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
17095 #if PPL_VERSION_MINOR < 11.
17096
17097 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17098
17099 * graphite-dependences.c: Include graphite-cloog-util.h.
17100 (new_poly_ddr): Inlined into dependence_polyhedron.
17101 (free_poly_ddr): Moved close by new_poly_ddr.
17102 (dependence_polyhedron_1): Renamed dependence_polyhedron.
17103 Early return NULL when ppl_powerset_is_empty returns true.
17104 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
17105 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
17106 (graphite_legal_transform_dr): Call new_poly_ddr.
17107 (graphite_carried_dependence_level_k): Same.
17108 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
17109 (dot_transformed_deps_stmt_1): Removed.
17110 (dot_deps_stmt_1): Call dot_deps_stmt_2.
17111 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
17112 (dot_deps_1): Call dot_deps_2.
17113 * Makefile.in (graphite-dependences.o): Add missing dependence on
17114 graphite-cloog-util.h.
17115
17116 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17117
17118 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
17119 (build_lexicographical_constraint): Same.
17120 (dependence_polyhedron_1): Same.
17121 (graphite_legal_transform_dr): Same.
17122 (graphite_carried_dependence_level_k): Same.
17123 * graphite-ppl.c (ppl_powerset_is_empty): New.
17124 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
17125 * tree-data-ref.c (dump_data_reference): Print the basic block index.
17126
17127 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17128
17129 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
17130 the "a followed by b" relation and document it.
17131
17132 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17133
17134 * graphite-dependences.c (build_lexicographical_constraint): Stop the
17135 iteration when the bag of constraints is empty.
17136
17137 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17138
17139 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
17140
17141 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17142
17143 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
17144 nest and two loop depths as parameters.
17145 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
17146 lst_perfect_nestify.
17147
17148 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17149
17150 * graphite-dependences.c (print_pddr): Call
17151 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
17152
17153 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
17154
17155 * graphite-ppl.c (debug_gmp_value): New.
17156 * graphite-ppl.h (debug_gmp_value): Declared.
17157
17158 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
17159
17160 * doc/install.texi: Document availability of cloog-0.16.
17161
17162 2011-01-25 Vladimir Kargov <kargov@gmail.com>
17163
17164 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
17165 invalid postdominance info.
17166
17167 2011-01-24 Jan Hubicka <jh@suse.cz>
17168
17169 PR c/21659
17170 * doc/extend.texi (weak pragma): Drop claim that it must
17171 appear before definition.
17172 * varasm.c (merge_weak, declare_weak): Only sanity check
17173 that DECL is not output at a time it is declared weak.
17174
17175 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
17176
17177 * machmode.def: Fixed comments.
17178
17179 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
17180
17181 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
17182
17183 2011-01-24 Paul Koning <ni1d@arrl.net>
17184
17185 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
17186 WORDS_BIG_ENDIAN.
17187
17188 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
17189
17190 PR target/46519
17191 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
17192 (block_info): Add scanned and prev.
17193 (move_or_delete_vzeroupper_2): Return if the basic block
17194 has been scanned and the upper 128bit state is unchanged
17195 from the last scan.
17196 (move_or_delete_vzeroupper_1): Return true if the exit
17197 state is changed.
17198 (move_or_delete_vzeroupper): Visit basic blocks using the
17199 work-list based algorithm based on vt_find_locations in
17200 var-tracking.c.
17201
17202 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
17203
17204 2011-01-24 Nick Clifton <nickc@redhat.com>
17205
17206 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
17207 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
17208 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
17209 then define __v850e1__.
17210 * doc/invoke.texi: Document -mv850es.
17211
17212 2011-01-24 Richard Henderson <rth@redhat.com>
17213
17214 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
17215 compound unordered comparisons.
17216 * config/rx/rx.c (rx_split_fp_compare): Remove.
17217 * config/rx/rx-protos.h: Update.
17218 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
17219 (cbranchsf4): Don't call rx_split_fp_compare.
17220 (*cbranchsf4): Use rx_split_cbranch.
17221 (*cmpsf): Don't accept "i" constraint.
17222 (*conditional_branch): Only valid after reload.
17223 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
17224
17225 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17226
17227 PR target/47385
17228 * config/rs6000/altivec.md (vector constant splitters): Add
17229 support for creating vector single precision constants if -mvsx is
17230 used and we would create the constant using Altivec primitives.
17231
17232 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
17233 Richard Sandiford <rdsandiford@googlemail.com>
17234
17235 PR rtl-optimization/47166
17236 * reload1.c (emit_reload_insns): Disable the spill_reg_store
17237 mechanism for PRE_MODIFY and POST_MODIFY.
17238 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
17239 reloadreg.
17240
17241 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
17242
17243 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
17244
17245 2011-01-22 Jan Hubicka <jh@suse.cz>
17246
17247 PR lto/47333
17248 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
17249
17250 2011-01-22 Jan Hubicka <jh@suse.cz>
17251
17252 PR tree-optimization/43884
17253 PR lto/44334
17254 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
17255 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
17256
17257 2011-01-22 Anatoly Sokolov <aesok@post.ru>
17258
17259 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17260 * config/s390/s390.c (s390_register_move_cost,
17261 s390_memory_move_cost): New.
17262 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17263
17264 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17265
17266 PR middle-end/47401
17267 * except.c (sjlj_assign_call_site_values): Move setting the
17268 crtl->uses_eh_lsda flag to ...
17269 (sjlj_mark_call_sites): ... here.
17270 (sjlj_emit_function_enter): Support NULL dispatch label.
17271 (sjlj_build_landing_pads): In a function with no landing pads
17272 that still has must-not-throw regions, generate code to register
17273 a personality function with empty LSDA.
17274
17275 2011-01-21 Richard Henderson <rth@redhat.com>
17276
17277 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
17278
17279 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
17280
17281 * compare-elim.c: New file.
17282 * Makefile.in (OBJS-common): Add it.
17283 (compare-elim.o): New.
17284 * common.opt (fcompare-elim): New.
17285 * opts.c (default_options_table): Add OPT_fcompare_elim.
17286 * tree-pass.h (pass_compare_elim_after_reload): New.
17287 * passes.c (init_optimization_passes): Add it.
17288 * recog.h: Protect against re-inclusion.
17289 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
17290 * doc/invoke.texi (-fcompare-elim): Document it.
17291 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
17292 * doc/tm.texi: Rebuild.
17293
17294 2011-01-22 Nick Clifton <nickc@redhat.com>
17295
17296 * config/rx/rx.md (cstoresf4): Pass comparison operator to
17297 rx_split_fp_compare.
17298
17299 2011-01-22 Nick Clifton <nickc@redhat.com>
17300
17301 * config/rx/rx.md (UNSPEC_CONST): New.
17302 (deallocate_and_return): Wrap the amount popped off the stack in
17303 an UNSPEC_CONST in order to stop it being rejected by
17304 -mmax-constant-size.
17305 (pop_and_return): Add a "(return)" rtx.
17306 (call): Drop the immediate operand.
17307 (call_internal): Likewise.
17308 (call_value): Likewise.
17309 (call_value_internal): Likewise.
17310 (sibcall_internal): Likewise.
17311 (sibcall_value_internal): Likewise.
17312 (sibcall): Likewise. Generate an explicit call using
17313 sibcall_internal.
17314 (sibcall_value): Likewise.
17315 (mov<>): FAIL if a constant operand is not legitimate.
17316 (addsi3_unpsec): New pattern.
17317
17318 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
17319 (ok_for_max_constant): New function.
17320 (gen_safe_add): New function.
17321 (rx_expand_prologue): Use gen_safe_add.
17322 (rx_expand_epilogue): Likewise.
17323 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
17324 UNSPEC CONSTs.
17325
17326 2011-01-21 Jeff Law <law@redhat.com>
17327
17328 PR tree-optimization/47053
17329 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
17330 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
17331 statements are deleted.
17332 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
17333 is nonempty, then purge dead edges and cleanup the CFG.
17334
17335 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17336
17337 PR debug/47402
17338 Temporarily revert:
17339 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17340 PR debug/47106
17341 * tree-dfa.c (create_var_ann): Mark variable as used.
17342
17343 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17344
17345 PR middle-end/45566
17346 * except.c (convert_to_eh_region_ranges): Emit queued no-region
17347 notes from other section in hot/cold partitioning even if
17348 last_action is -3. Increment call_site_base.
17349
17350 PR rtl-optimization/47366
17351 * fwprop.c (forward_propagate_into): Return bool. If
17352 any changes are made, -fnon-call-exceptions is used and
17353 REG_EH_REGION note is present, call purge_dead_edges
17354 and return true if it purged anything.
17355 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
17356 any EH edges were purged.
17357
17358 2011-01-21 Jeff Law <law@redhat.com>
17359
17360 PR rtl-optimization/41619
17361 * caller-save.c (setup_save_areas): Break out code to determine
17362 which hard regs are live across calls by examining the reload chains
17363 so that it is always used.
17364 Eliminate code which checked REG_N_CALLS_CROSSED.
17365
17366 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17367
17368 PR tree-optimization/47355
17369 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
17370 NOP has non-debug uses beyond PHIs in new_bb.
17371
17372 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
17373
17374 PR debug/47106
17375 * cfgexpand.c (account_used_vars_for_block): Only account vars
17376 that are annotated as used.
17377 (estimated_stack_frame_size): Don't set TREE_USED.
17378 * tree-dfa.c (create_var_ann): Mark variable as used.
17379
17380 2011-01-21 Richard Guenther <rguenther@suse.de>
17381
17382 PR middle-end/47395
17383 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
17384
17385 2011-01-21 Richard Guenther <rguenther@suse.de>
17386
17387 PR tree-optimization/47365
17388 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
17389 (vn_reference_lookup_pieces): Adjust.
17390 (vn_reference_lookup): Likewise.
17391 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
17392 (vn_reference_lookup_3): Only look through kills if in
17393 VN_WALKREWRITE mode.
17394 (vn_reference_lookup_pieces): Adjust.
17395 (vn_reference_lookup): Likewise.
17396 (visit_reference_op_load): Likewise.
17397 (visit_reference_op_store): Likewise.
17398 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
17399 (compute_avail): Likewise.
17400 (eliminate): Likewise.
17401
17402 2011-01-21 Jakub Jelinek <jakub@redhat.com>
17403
17404 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
17405 DECL_IGNORED_P non-reg vars if they are used.
17406
17407 PR tree-optimization/47391
17408 * varpool.c (const_value_known_p): Return false if
17409 decl is volatile.
17410
17411 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
17412
17413 PR bootstrap/47215
17414 * config/i386/i386.c (ix86_local_alignment): Handle
17415 case for va_list_type_node is nil.
17416 (ix86_canonical_va_list_type): Likewise.
17417
17418 2011-01-21 Alan Modra <amodra@gmail.com>
17419
17420 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
17421 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
17422
17423 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17424
17425 * config/arm/arm.md (define_attr type): Rename f_load
17426 and f_store to f_fpa_load and f_fpa_store. Update.
17427 (write_conflict): Deal with rename fallout.
17428 (*push_fp_multi): Likewise.
17429 * config/arm/fpa.md (f_load): Use f_fpa_load.
17430 (f_store): Use f_fpa_store.
17431 (*movsf_fpa): Likewise.
17432 (*movdf_fpa): Likewise.
17433 (*movxf_fpa): Likewise.
17434 (*thumb2_movsf_fpa): Likewise.
17435 (*thumb2_movdf_fpa): Likewise.
17436 (*thumb2_movxf_fpa): Likewise.
17437 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
17438 f_loadd and f_stored.
17439 (*thumb2_movdi_vfp): Likewise.
17440 (*thumb2_movsf_vfp): Fix attribute to f_loads.
17441 (*thumb2_movsi_vfp): Likewise.
17442 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
17443 Use f_loads instead of f_load.
17444 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
17445
17446 2011-01-20 Anatoly Sokolov <aesok@post.ru>
17447
17448 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17449 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
17450 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17451 (xtensa_mode_dependent_address_p): New function.
17452 (constantpool_address_p): Make static. Change return type to bool.
17453 Change argument type to const_rtx. Use CONST_INT_P predicate.
17454
17455 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
17456
17457 PR debug/46583
17458 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
17459
17460 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17461
17462 PR debug/47283
17463 * cfgexpand.c (expand_debug_expr): Instead of generating
17464 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
17465 etc. handling.
17466
17467 2011-01-20 Richard Guenther <rguenther@suse.de>
17468
17469 PR middle-end/47370
17470 * tree-inline.c (remap_gimple_op_r): Recurse manually for
17471 the pointer operand of MEM_REFs.
17472
17473 2011-01-20 Jakub Jelinek <jakub@redhat.com>
17474
17475 PR tree-optimization/46130
17476 * ipa-split.c (consider_split): If return_bb contains non-virtual
17477 PHIs other than for retval or if split_function would not adjust it,
17478 refuse to split.
17479
17480 2011-01-20 Richard Guenther <rguenther@suse.de>
17481
17482 PR tree-optimization/47167
17483 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17484 Revert previous change, only avoid enumeral type changes.
17485
17486 2011-01-19 Mike Stump <mikestump@comcast.net>
17487
17488 * doc/tm.texi.in (BRANCH_COST): Englishify.
17489 * doc/tm.texi (BRANCH_COST): Likewise.
17490
17491 2011-01-19 Dodji Seketeli <dodji@redhat.com>
17492
17493 PR c++/47291
17494 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
17495 (gen_scheduled_generic_parms_dies): New functions.
17496 (gen_struct_or_union_type_die): Schedule template parameters DIEs
17497 generation for the end of CU compilation.
17498 (dwarf2out_finish): Generate template parameters DIEs here.
17499
17500 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17501
17502 PR debug/46240
17503 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
17504 debug bind stmt on merge edges.
17505
17506 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17507
17508 PR debug/47079
17509 PR debug/46724
17510 * function.c (instantiate_expr): Instantiate incoming rtl of
17511 implicit arguments, and recurse on VALUE_EXPRs.
17512 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
17513 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
17514
17515 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
17516
17517 * c-parser.c (c_parser_for_statement): Initialize
17518 collection_expression.
17519
17520 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17521
17522 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
17523
17524 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17525
17526 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
17527 (LINK_SHLIB_SPEC): Don't use %(link_path).
17528 (SUBTARGET_EXTRA_SPECS): Remove link_path.
17529
17530 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17531
17532 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
17533 (NO_SHARED_LIB_SUPPORT): Remove.
17534 (LINK_SHLIB_SPEC): Remove one conditional definition.
17535
17536 2011-01-19 Joseph Myers <joseph@codesourcery.com>
17537
17538 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
17539 %{call_shared}.
17540 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
17541 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
17542 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
17543 %{call_shared} and conditionals on these options not being passed.
17544 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
17545 %{call_shared}.
17546
17547 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17548
17549 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
17550 simplify.
17551
17552 * ipa-split.c: Spelling fixes.
17553
17554 2011-01-19 Richard Henderson <rth@redhat.com>
17555
17556 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
17557 (*mulsi3): Likewise.
17558
17559 * longlong.h [__mn10300__] (count_leading_zeros): New.
17560 [__mn10300__] (umul_ppmm, smul_ppmm): New.
17561 [__mn10300__] (add_ssaaaa, subddmmss): New.
17562 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
17563 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
17564
17565 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17566
17567 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
17568
17569 2011-01-19 Richard Henderson <rth@redhat.com>
17570
17571 * config/mn10300/mn10300.md (addsi3_flags): New.
17572 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
17573 (subsi3_flags, subc_internal, subdi3): New.
17574 (subdi3_internal, *subdi3_degenerate): New.
17575 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
17576
17577 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
17578 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
17579 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
17580 * config/mn10300/mn10300-protos.h: Update.
17581 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
17582 (return_ret): Likewise. Rename from return_internal_regs.
17583 (return_internal): Remove.
17584
17585 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
17586 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
17587 (mn10300_legitimate_constant_p): Likewise.
17588 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
17589 (mn10300_frame_size): New.
17590 (mn10300_expand_prologue): Use it.
17591 (mn10300_expand_epilogue): Likewise.
17592 (mn10300_initial_offset): Likewise.
17593 * config/mn10300/mn10300-protos.h: Update.
17594 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
17595 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
17596 (prologue, epilogue, return_internal): Tidy output code.
17597 (mn10300_store_multiple_operation, return): Likewise.
17598 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
17599 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
17600 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
17601 (load_pic, am33_load_pic): New.
17602 (mn10300_load_pic0, mn10300_load_pic1): New.
17603
17604 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
17605 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
17606 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
17607 (cc_flags_for_mode, cc_flags_for_code): New.
17608 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
17609 overflow flag is not valid. Validate that the flags we need
17610 for the comparison are valid.
17611 (mn10300_output_cmp): Remove.
17612 (mn10300_output_add): New.
17613 (mn10300_select_cc_mode): Use cc_flags_for_code.
17614 (mn10300_split_cbranch): New.
17615 (mn10300_match_ccmode): New.
17616 (mn10300_split_and_operand_count): New.
17617 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
17618 to the function.
17619 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
17620 (addsi3): ... here. Use mn10300_output_add.
17621 (*addsi3_flags): New.
17622 (*am33_subsi3, *mn10300_subsi3): Merge...
17623 (subsi3): ... here. Use attribute isa.
17624 (*subsi3_flags): New.
17625 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
17626 when possible.
17627 (*am33_andsi3, *mn10300_andsi3): Merge...
17628 (andsi3): ... here.
17629 (*andsi3_flags): New.
17630 (andsi3 splitters): New.
17631 (*am33_iorsi3, *mn10300_iorsi3): Merge...
17632 (iorsi3): ... here.
17633 (*iorsi3_flags): New.
17634 (*am33_xorsi3, *mn10300_xorsi3): Merge...
17635 (xorsi3): ... here.
17636 (*xorsi3_flags): New.
17637 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
17638 (one_cmplsi2): ... here.
17639 (*one_cmplsi2_flags): New.
17640 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
17641 instead of "dax" in constraints. Use mn10300_split_cbranch.
17642 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
17643 use matching constraints to eliminate a self-comparison.
17644 (*integer_conditional_branch): Rename from integer_conditional_branch.
17645 Use int_mode_flags to match CC_REG.
17646 (*cbranchsi4_btst, *btstsi): New.
17647 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
17648 mn10300_split_cbranch.
17649 (*am33_cmpsf): Rename from am33_cmpsf.
17650 (*float_conditional_branch): Rename from float_conditional_branch.
17651 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
17652 (zero_extendqisi2): ... here.
17653 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
17654 (zero_extendhisi2): ... here.
17655 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
17656 (extendqisi2): ... here.
17657 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
17658 (extendhisi2): ... here.
17659 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
17660 (ashlsi3): ... here.
17661 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
17662 (lshrsi3): ... here.
17663 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
17664 (ashrsi3): ... here.
17665 (consecutive add peephole): Remove.
17666 * config/mn10300/predicates.md (label_ref_operand): New.
17667 (int_mode_flags): New.
17668 (CCZN_comparison_operator): New.
17669
17670 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
17671 (throughput_42_latency_43): New reservation.
17672 (mulsidi3, umulsidi3): New expanders.
17673 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
17674 the MDR register to allocation; separately allocate the low and
17675 high parts of the DImode result.
17676 (umulsidi3_internal): Similarly.
17677 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
17678 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
17679 (udivsi3, umodsi3): Remove.
17680 (udivmodsi4, divmodsi4): New expanders.
17681 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
17682 (*divmodsi4): Simiarly.
17683 (ext_internal): New.
17684
17685 * config/mn10300/constraints.md ("z"): New constraint.
17686 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
17687 (FIXED_REGISTERS): Don't fix MDR.
17688 (CALL_USED_REGSITERS): Reformat nicely.
17689 (REG_ALLOC_ORDER): Add MDR.
17690 (enum regclass): Add MDR_REGS.
17691 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
17692 (IRA_COVER_CLASSES): Add MDR_REGS.
17693 (REGNO_REG_CLASS): Handle MDR_REG.
17694 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
17695 (mn10300_register_move_cost): Likewise.
17696 * config/mn10300/mn10300.md (MDR_REG): New.
17697 (*movsi_internal): Handle moves to/from MDR_REGS.
17698
17699 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
17700 POST_MODIFY.
17701 (mn10300_secondary_reload): Tidy combination reload classes.
17702 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
17703 addresses for AM33. Allow symbolic offsets for reg+imm.
17704 (mn10300_regno_in_class_p): New.
17705 (mn10300_legitimize_reload_address): New.
17706 * config/mn10300/mn10300.h (enum reg_class): Remove
17707 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
17708 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
17709 SP_OR_GENERAL_REGS.
17710 (REG_CLASS_NAMES): Update to match.
17711 (REG_CLASS_CONTENTS): Likewise.
17712 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
17713 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
17714 (REGNO_IN_RANGE_P): Remove.
17715 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
17716 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
17717 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
17718 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
17719 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
17720 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
17721 (REGNO_GENERAL_P): New.
17722 (HAVE_POST_MODIFY_DISP): New.
17723 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
17724 (LEGITIMIZE_RELOAD_ADDRESS): New.
17725 * config/mn10300/mn10300-protos.h: Update.
17726
17727 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
17728 DATA_REGS for AM33 stack-pointer destination.
17729 (mn10300_preferred_output_reload_class): Likewise.
17730 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
17731 into a form appropriate for ...
17732 (TARGET_SECONDARY_RELOAD): New.
17733 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
17734 * config/mn10300/mn10300-protos.h: Update.
17735 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
17736 reload_insi; use the "A" constraint for the scratch; handle AM33
17737 moves of sp to non-address registers.
17738
17739 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
17740 (*movqi_internal): ... here.
17741 (*am33_movhi, *mn10300_movhi): Merge into...
17742 (*movhi_internal): ... here.
17743 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
17744 as the source/destination of moves from/to SP.
17745 (movsf): Only allow for AM33-2.
17746 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
17747 any integer constant constraint. Only allow for AM33-2. Tidy
17748 all of the alternative outputs.
17749 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
17750 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
17751 for MN103.
17752 (udivsi3, umodsi3): New patterns for MN103 only.
17753
17754 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
17755
17756 * doc/tm.texi.in: Spell out that a lack of register class unions
17757 can lead to ICEs.
17758 * doc/tm.texi: Regenerate.
17759
17760 2011-01-19 Jakub Jelinek <jakub@redhat.com>
17761
17762 PR rtl-optimization/47337
17763 * dce.c (check_argument_store): New function.
17764 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
17765
17766 PR tree-optimization/47290
17767 * tree-eh.c (infinite_empty_loop_p): New function.
17768 (cleanup_empty_eh): Use it.
17769
17770 2011-01-18 Steve Ellcey <sje@cup.hp.com>
17771
17772 PR target/46997
17773 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
17774 (a64_expand_widen_sum): Ditto.
17775 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
17776 (vec_extract_evenodd_help): Ditto.
17777 (vec_extract_evenv4hi): Ditto.
17778 (vec_extract_oddv4hi): Ditto.
17779 (vec_extract_evenv2si): Ditto.
17780 (vec_extract_oddv2si): Ditto.
17781 (vec_extract_evenv2sf): Ditto.
17782 (vec_extract_oddv2sf): Ditto.
17783 (vec_pack_trunc_v4hi: Ditto.
17784 (vec_pack_trunc_v2si): Ditto.
17785 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
17786 (vec_interleave_highv8qi): Ditto.
17787 (mix1_r): Ditto.
17788 (vec_extract_oddv8qi): Ditto.
17789 (vec_interleave_lowv4hi): Ditto.
17790 (vec_interleave_highv4hi): Ditto.
17791 (vec_interleave_lowv2si): Ditto.
17792 (vec_interleave_highv2si): Ditto.
17793
17794 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17795
17796 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
17797 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
17798 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
17799 (pa_c_mode_for_suffix): New.
17800 (TARGET_EXPAND_BUILTIN): Define.
17801 (TARGET_C_MODE_FOR_SUFFIX): Define.
17802 (pa_builtins): Define.
17803 (pa_init_builtins): Register __float128 type and init new support
17804 builtins.
17805 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
17806 * config/pa/quadlib.c (_U_Qfcopysign): New.
17807
17808 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
17809
17810 PR middle-end/46894
17811 * explow.c (allocate_dynamic_stack_space): Do not assume more than
17812 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
17813 are defined.
17814
17815 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17816
17817 PR tree-optimization/47179
17818 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
17819 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
17820
17821 2011-01-18 Richard Guenther <rguenther@suse.de>
17822
17823 PR rtl-optimization/47216
17824 * emit-rtl.c: Include tree-flow.h.
17825 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
17826 of replicating it with different semantics.
17827 * Makefile.in (emit-rtl.o): Adjust.
17828
17829 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17830
17831 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
17832 (cortex_a9_dp): Handle neon types correctly.
17833
17834 2011-01-18 Jakub Jelinek <jakub@redhat.com>
17835
17836 PR rtl-optimization/47299
17837 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
17838 subtarget. Use normal multiplication if both operands are constants.
17839 * expmed.c (expand_widening_mult): Don't try to optimize constant
17840 multiplication if op0 has VOIDmode. Convert op1 constant to mode
17841 before using it.
17842
17843 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17844
17845 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
17846 spacing after 'e.g.', typos, comma, hyphenation.
17847
17848 2011-01-17 Richard Henderson <rth@redhat.com>
17849
17850 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
17851 (rx_restricted_mem_operand): New.
17852 (rx_shift_operand): Use register_operand.
17853 (rx_source_operand, rx_compare_operand): Likewise.
17854 * config/rx/rx.md (addsi3_flags): New expander.
17855 (adddi3): Rewrite as expander.
17856 (adc_internal, *adc_flags, adddi3_internal): New patterns.
17857 (subsi3_flags): New expander.
17858 (subdi3): Rewrite as expander.
17859 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
17860
17861 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
17862 (rx_init_builtins): Remove sat builtin.
17863 (rx_expand_builtin): Likewise.
17864 * config/rx/rx.md (ssaddsi3): New.
17865 (*sat): Rename from sat. Represent the CC_REG input.
17866
17867 * config/rx/predicates.md (rshift_operator): New.
17868 * config/rx/rx.c (rx_expand_insv): Remove.
17869 * config/rx/rx-protos.h: Update.
17870 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
17871 operand to the canonical position.
17872 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
17873 (*bitclr, *bitclr_in_memory): Similarly.
17874 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
17875 (insv): Retain the zero_extract in the expansion.
17876
17877 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
17878 (bswaphi2, bitinvert, revw): Likewise.
17879
17880 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
17881 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
17882 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
17883 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
17884 (bitset, bitset_in_memory): Likewise.
17885 (bitinvert, bitinvert_in_memory): Likewise.
17886 (bitclr, bitclr_in_memory): Likewise.
17887 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
17888 (rx_strend, rx_cmpstrn): Likewise.
17889 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
17890 (bitop peep2 patterns): Remove.
17891
17892 * config/rx/rx.c (rx_match_ccmode): New.
17893 * config/rx/rx-protos.h: Update.
17894 * config/rx/rx.md (abssi2): Clobber, don't set flags.
17895 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
17896 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
17897 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
17898 (fix_truncsfsi2, floatsisf2): Likewise.
17899 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
17900 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
17901 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
17902 (*subsi3_flags, *xorsi3_flags): New.
17903
17904 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
17905
17906 * config/rx/rx.c (rx_print_operand): Remove workaround for
17907 unsplit comparison operations.
17908
17909 * config/rx/rx.md (movsicc): Split after reload.
17910 (*movsicc): Merge *movsieq and *movsine via match_operator.
17911 (*stcc): New pattern.
17912
17913 * config/rx/rx.c (rx_float_compare_mode): Remove.
17914 * config/rx/rx.h (rx_float_compare_mode): Remove.
17915 * config/rx/rx.md (cstoresi4): Split after reload.
17916 (*sccc): New pattern.
17917
17918 * config/rx/predicates.md (label_ref_operand): New.
17919 (rx_z_comparison_operator): New.
17920 (rx_zs_comparison_operator): New.
17921 (rx_fp_comparison_operator): New.
17922 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
17923 Validate that the flags are set properly for the comparison.
17924 (rx_gen_cond_branch_template): Remove.
17925 (rx_cc_modes_compatible): Remove.
17926 (mode_from_flags): New.
17927 (flags_from_code): Rename from flags_needed_for_conditional.
17928 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
17929 (rx_select_cc_mode): Likewise.
17930 (rx_split_fp_compare): New.
17931 (rx_split_cbranch): New.
17932 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
17933 (*cbranchsi4): Use match_operator and rx_split_cbranch.
17934 (*cbranchsf4): Similarly.
17935 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
17936 match_operator and rx_split_cbranch.
17937 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
17938 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
17939 (*cmpsi): Rename from cmpsi.
17940 (*tstsi): Rename from tstsi.
17941 (*cmpsf): Rename from cmpsf; use CC_Fmode.
17942 (*conditional_branch): Rename from conditional_branch.
17943 (*reveresed_conditional_branch): Remove.
17944 (b<code>): Remove expander.
17945 * config/rx/rx-protos.h: Update.
17946
17947 * config/rx/rx.c (rx_compare_redundant): Remove.
17948 * config/rx/rx.md (cmpsi): Don't use it.
17949 * config/rx/rx-protos.h: Update.
17950
17951 * config/rx/rx-modes.def (CC_F): New mode.
17952 * config/rx/rx.c (rx_select_cc_mode): New.
17953 * config/rx/rx.h (SELECT_CC_MODE): Use it.
17954 * config/rx/rx-protos.h: Update.
17955
17956 2011-01-17 Richard Henderson <rth@redhat.com>
17957
17958 * except.c (dump_eh_tree): Fix stray ; after for statement.
17959
17960 2011-01-17 Richard Guenther <rguenther@suse.de>
17961
17962 PR tree-optimization/47313
17963 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
17964 handling before copying the body. Properly deal with
17965 by-reference result in SSA form.
17966
17967 2011-01-17 Ian Lance Taylor <iant@google.com>
17968
17969 PR target/47219
17970 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
17971 (struct_value_alias_set): Don't define.
17972 (sparc_option_override): Don't set sparc_sr_alias_set and
17973 struct_value_alias_set.
17974 (save_or_restore_regs): Use gen_frame_mem rather than calling
17975 set_mem_alias_set.
17976 (sparc_struct_value_rtx): Likewise.
17977
17978 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
17979
17980 PR target/47318
17981 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
17982 (_mm_maskstore_pd): Likewise.
17983 (_mm_maskload_ps): Likewise.
17984 (_mm_maskstore_ps): Likewise.
17985 (_mm256_maskload_pd): Change mask to __m256i.
17986 (_mm256_maskstore_pd): Likewise.
17987 (_mm256_maskload_ps): Likewise.
17988 (_mm256_maskstore_ps): Likewise.
17989
17990 * config/i386/i386-builtin-types.def: Updated.
17991 (ix86_expand_special_args_builtin): Likewise.
17992
17993 * config/i386/i386.c (bdesc_special_args): Update
17994 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
17995 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
17996 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
17997 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
17998
17999 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
18000 Use <avxpermvecmode> on mask register.
18001 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
18002
18003 2011-01-17 Olivier Hainque <hainque@adacore.com>
18004 Michael Haubenwallner <michael.haubenwallner@salomon.at>
18005 Eric Botcazou <ebotcazou@adacore.com>
18006
18007 PR target/46655
18008 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
18009 if <= USHRT_MAX in 32-bit mode.
18010
18011 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18012
18013 * doc/install.texi (Configuration, Specific): Wrap long
18014 lines in examples. Allow line wrapping in long options
18015 and URLs where beneficial for PDF output.
18016
18017 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
18018
18019 * config/mips/mips.c (mips_classify_symbol): Don't return
18020 SYMBOL_PC_RELATIVE for nonlocal labels.
18021
18022 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
18023
18024 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
18025
18026 2011-01-15 Jan Hubicka <jh@suse.cz>
18027
18028 PR tree-optimization/47276
18029 * ipa.c (function_and_variable_visibility): Do not try to mark alias
18030 declarations as needed.
18031
18032 2011-01-15 Martin Jambor <mjambor@suse.cz>
18033
18034 * common.opt (fdevirtualize): New flag.
18035 * doc/invoke.texi (Option Summary): Document it.
18036 * opts.c (default_options_table): Add devirtualize flag.
18037 * ipa-prop.c (detect_type_change): Return immediately if
18038 devirtualize flag is not set.
18039 (detect_type_change_ssa): Likewise.
18040 (compute_known_type_jump_func): Likewise.
18041 (ipa_analyze_virtual_call_uses): Likewise.
18042
18043 2011-01-14 Martin Jambor <mjambor@suse.cz>
18044
18045 PR tree-optimization/45934
18046 PR tree-optimization/46302
18047 * ipa-prop.c (type_change_info): New type.
18048 (stmt_may_be_vtbl_ptr_store): New function.
18049 (check_stmt_for_type_change): Likewise.
18050 (detect_type_change): Likewise.
18051 (detect_type_change_ssa): Likewise.
18052 (compute_complex_assign_jump_func): Check for dynamic type change.
18053 (compute_complex_ancestor_jump_func): Likewise.
18054 (compute_known_type_jump_func): Likewise.
18055 (compute_scalar_jump_functions): Likewise.
18056 (ipa_analyze_virtual_call_uses): Likewise.
18057 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
18058
18059 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18060
18061 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
18062 * config/i386/i386.opt (msse5): New Alias.
18063
18064 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18065
18066 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18067 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18068 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18069 * config/sparc/sparc.h (CC1_SPEC): Likewise.
18070
18071 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18072
18073 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
18074 -mcpu options.
18075 * config/sparc/linux64.h (CC1_SPEC): Likewise.
18076 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
18077 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
18078 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
18079 Likewise.
18080 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
18081
18082 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18083
18084 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
18085
18086 2011-01-14 Mike Stump <mikestump@comcast.net>
18087
18088 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
18089 * config/fr30/fr30.md: Likweise
18090 (movsi_push): Likewise.
18091 (movsi_pop): Likewise.
18092 (enter_func): Likewise.
18093 * config/moxie/moxie.md (movsi_push): Likewise.
18094 (movsi_pop): Likewise.
18095
18096 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18097
18098 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
18099 %{no_archive} %{exact_version}.
18100 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
18101 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
18102 %{no_archive} %{exact_version}.
18103 * config/mips/openbsd.h (LINK_SPEC): Likewise.
18104 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
18105 * config/mips/vxworks.h: Likewise.
18106
18107 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18108
18109 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
18110
18111 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18112
18113 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
18114 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
18115
18116 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18117
18118 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
18119 -nodefaultlib.
18120
18121 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18122
18123 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
18124 for mcpu not cpu.
18125 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
18126 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
18127 not cpu.
18128 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
18129 Don't handle -shlib.
18130
18131 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18132
18133 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
18134 (CC1_SPEC): Don't handle -profile.
18135
18136 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18137
18138 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
18139 * config/mips/mips.h (CC1_SPEC): Likewise.
18140
18141 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18142
18143 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
18144 * config/mips/mips.h (CC1_SPEC): Likewise.
18145
18146 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18147
18148 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
18149 * config/m32r/linux.h (LINK_SPEC): Likewise.
18150 * config/mips/linux.h (LINK_SPEC): Likewise.
18151 * config/mips/linux64.h (LINK_SPEC): Likewise.
18152 * config/sparc/linux.h (LINK_SPEC): Likewise.
18153 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
18154 LINK_SPEC): Likewise.
18155 * config/xtensa/linux.h (LINK_SPEC): Likewise.
18156
18157 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18158
18159 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
18160 %{version:-v}.
18161 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
18162
18163 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18164
18165 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
18166 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
18167
18168 2011-01-14 Joseph Myers <joseph@codesourcery.com>
18169
18170 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
18171
18172 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18173
18174 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
18175 supports -Bstatic/-Bdynamic.
18176 * configure: Regenerate.
18177
18178 2011-01-14 Jan Hubicka <jh@suse.cz>
18179 Jack Howarth <howarth@bromo.med.uc.edu>
18180
18181 PR target/46037
18182 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
18183 when checking debug_info_level. Test write_symbols instead of
18184 debug_hooks->var_location when setting flag_var_tracking_uninit.
18185
18186 2011-01-14 Richard Guenther <rguenther@suse.de>
18187
18188 PR tree-optimization/47179
18189 * target.def (ref_may_alias_errno): New target hook.
18190 * targhooks.h (default_ref_may_alias_errno): Declare.
18191 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
18192 (default_ref_may_alias_errno): New function.
18193 * target.h (struct ao_ref_s): Declare.
18194 * tree-ssa-alias.c: Include target.h.
18195 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
18196 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
18197 (targhooks.o): Likewise.
18198 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
18199 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
18200
18201 2011-01-14 Richard Guenther <rguenther@suse.de>
18202
18203 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
18204
18205 2011-01-14 Richard Guenther <rguenther@suse.de>
18206
18207 PR tree-optimization/47280
18208 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
18209 return CFG changes.
18210 (tree_ssa_forward_propagate_single_use_vars): Deal with
18211 CFG changes from associate_plusminus.
18212
18213 2011-01-14 Richard Guenther <rguenther@suse.de>
18214
18215 PR middle-end/47281
18216 Revert
18217 2011-01-11 Richard Guenther <rguenther@suse.de>
18218
18219 PR tree-optimization/46076
18220 * tree-ssa.c (useless_type_conversion_p): Conversions from
18221 unprototyped to empty argument list function types are useless.
18222
18223 2011-01-14 Richard Guenther <rguenther@suse.de>
18224
18225 PR tree-optimization/47286
18226 * tree-ssa-structalias.c (new_var_info): Register variables are global.
18227
18228 2011-01-14 Martin Jambor <mjambor@suse.cz>
18229
18230 PR middle-end/46823
18231 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
18232
18233 2011-01-13 Anatoly Sokolov <aesok@post.ru>
18234
18235 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
18236 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18237 * config/xtensa/xtensa.c (xtensa_libcall_value,
18238 xtensa_function_value_regno_p): New functions.
18239 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18240
18241 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
18242
18243 PR c++/47213
18244 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
18245 PE specific hook.
18246 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
18247 New function prototype.
18248 * config/i386/winnt.c (i386_pe_assemble_visibility):
18249 Warn only if attribute was specified by user.
18250
18251 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18252
18253 PR target/47251
18254 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
18255 floating point.
18256 (floatunsdidf2_fcfidu): Ditto.
18257
18258 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18259
18260 * config/s390/s390.c (print_operand_address): Replace 'error' with
18261 'output_operand_lossage'.
18262 (print_operand): Likewise.
18263
18264 2011-01-13 Jeff Law <law@redhat.com>
18265
18266 PR rtl-optimization/39077
18267 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
18268 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
18269 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
18270 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
18271 * gcse.c (prune_insertions_deletions): New function.
18272 (compute_pre_data): Use it.
18273
18274 2011-01-13 Dodji Seketeli <dodji@redhat.com>
18275
18276 PR debug/PR46973
18277 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
18278 static function.
18279 (prune_unused_types_mark): Use it.
18280
18281 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
18282
18283 PR rtl-optimization/45352
18284 * sel-sched.c: Update copyright years.
18285 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
18286 in the advancing loop when we have issued issue_rate insns.
18287
18288 2011-01-12 Richard Henderson <rth@redhat.com>
18289
18290 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
18291 (TARGET_MD_ASM_CLOBBERS): New.
18292
18293 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
18294 (TARGET_DELEGITIMIZE_ADDRESS): New.
18295
18296 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
18297 (clzsi2, *bsch): New patterns.
18298
18299 * config/mn10300/mn10300.md (INT): New mode iterator.
18300 (*mov<INT>_clr): New pattern, and peep2 to generate it.
18301
18302 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
18303 flag_split_wide_types.
18304
18305 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
18306 (mn10300_trampoline_init): Rewrite without a template, an immediate
18307 load and a direct branch.
18308 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
18309
18310 2011-01-12 Anatoly Sokolov <aesok@post.ru>
18311
18312 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18313 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
18314 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
18315 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18316
18317 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
18318
18319 PR debug/47209
18320 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
18321 of type.
18322
18323 2011-01-12 Jan Hubicka <jh@suse.cz>
18324
18325 PR driver/47244
18326 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
18327 (PLUGIN_COND_CLOSE): New macro.
18328 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
18329
18330 2011-01-12 Richard Guenther <rguenther@suse.de>
18331
18332 PR lto/47259
18333 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
18334 register variables in a MEM_REF.
18335
18336 2011-01-12 Joseph Myers <joseph@codesourcery.com>
18337
18338 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
18339 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
18340 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
18341 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
18342 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
18343 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
18344 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
18345 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
18346 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
18347 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
18348 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
18349 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
18350 * config/gnu-user.h: New. Copied from linux.h.
18351 (LINUX_TARGET_STARTFILE_SPEC): Rename to
18352 GNU_USER_TARGET_STARTFILE_SPEC.
18353 (LINUX_TARGET_ENDFILE_SPEC): Rename to
18354 GNU_USER_TARGET_ENDFILE_SPEC.
18355 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
18356 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
18357 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
18358 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
18359 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
18360 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
18361 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
18362 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
18363 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
18364 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
18365 * config/arm/linux-eabi.h (CC1_SPEC): Use
18366 GNU_USER_TARGET_CC1_SPEC.
18367 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
18368 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
18369 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
18370 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
18371 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
18372 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
18373 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
18374 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
18375
18376 2011-01-12 Richard Guenther <rguenther@suse.de>
18377
18378 PR other/46946
18379 * doc/invoke.texi (ffast-math): Document it is turned on
18380 with -Ofast.
18381
18382 2011-01-12 Jan Hubicka <jh@suse.cz>
18383
18384 PR tree-optimization/47233
18385 * opts.c (common_handle_option): Disable ipa-reference with profile
18386 feedback.
18387
18388 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18389
18390 * c-parser.c (c_parser_objc_at_property_declaration): Improved
18391 error message.
18392
18393 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
18394
18395 * c-parser.c (c_lex_one_token): Updated and reindented some
18396 comments. No changes in code.
18397
18398 2011-01-11 Ian Lance Taylor <iant@google.com>
18399
18400 * godump.c (go_output_var): Don't output the variable if there is
18401 already a type with the same name.
18402
18403 2011-01-11 Ian Lance Taylor <iant@google.com>
18404
18405 * godump.c (go_format_type): Don't generate float80.
18406
18407 2011-01-11 Richard Henderson <rth@redhat.com>
18408
18409 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
18410 declaration. Rewrite for both speed and size.
18411 (mn10300_address_cost_1): Remove.
18412 (mn10300_register_move_cost): New.
18413 (mn10300_memory_move_cost): New.
18414 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
18415 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
18416 extensions, shifts, BSWAP, CLZ.
18417 (mn10300_wide_const_load_uses_clr): Remove.
18418 (TARGET_REGISTER_MOVE_COST): New.
18419 (TARGET_MEMORY_MOVE_COST): New.
18420 * config/mn10300/mn10300-protos.h: Update.
18421 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
18422
18423 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
18424 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
18425 * config/mn10300/mn10300-protos.h: Update.
18426 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
18427 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
18428 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
18429 (*test_int_bitfield, *test_byte_bitfield): Remove.
18430 (*bit_test, *subreg_bit_test): Remove.
18431 * config/mn10300/predicates.md (const_8bit_operand): Remove.
18432
18433 * config/mn10300/constraints.md ("c"): Rename from "A".
18434 ("A", "D"): New constraint letters.
18435 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
18436 (fmssf4, fnmasf4, fnmssf4): Likewise.
18437
18438 * config/mn10300/mn10300.md (isa): New attribute.
18439 (enabled): New attribute.
18440
18441 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
18442 (abssf2, negsf2): Define only for hardware fp.
18443 (sqrtsf2): Reformat.
18444 (addsf3, subsf3, mulsf3): Merge expander and insn.
18445
18446 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
18447 (DEBUGGER_AUTO_OFFSET): Remove.
18448 (DEBUGGER_ARG_OFFSET): Remove.
18449
18450 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
18451 Emit register stores with the same offsets as the hardware.
18452 (mn10300_store_multiple_operation): Don't check that the register
18453 save offsets are monotonic.
18454 * config/mn10300/mn10300-protos.h: Update.
18455
18456 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
18457
18458 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
18459 in terms of the value on the stack, not the MDR register.
18460
18461 2011-01-11 Jan Hubicka <jh@suse.cz>
18462
18463 PR lto/45721
18464 PR lto/45375
18465 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
18466 (symbol_alias_set_destroy, symbol_alias_set_contains,
18467 propagate_aliases_backward): Declare.
18468 * lto-streamer-out.c (struct sets): New sturcture.
18469 (trivally_defined_alias): New function.
18470 (output_alias_pair_p): Rewrite.
18471 (output_unreferenced_globals): Fix output of alias pairs.
18472 (produce_symtab): Likewise.
18473 * ipa.c (function_and_variable_visibility): Set weak alias destination
18474 as needed in lto.
18475 * varasm.c (symbol_alias_set_t): Remove.
18476 (symbol_alias_set_destroy): Export.
18477 (propagate_aliases_forward, propagate_aliases_backward): New functions
18478 based on ...
18479 (compute_visible_aliases): ... this one; remove.
18480 (trivially_visible_alias): New
18481 (trivially_defined_alias): New.
18482 (remove_unreachable_alias_pairs): Rewrite.
18483 (finish_aliases_1): Reorganize code checking if alias is defined.
18484 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
18485 in LTO mode.
18486
18487 2011-01-11 Richard Guenther <rguenther@suse.de>
18488
18489 PR tree-optimization/46076
18490 * tree-ssa.c (useless_type_conversion_p): Conversions from
18491 unprototyped to empty argument list function types are useless.
18492
18493 2011-01-11 Richard Guenther <rguenther@suse.de>
18494
18495 PR middle-end/45235
18496 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
18497 volatile MEMs as MEM_READONLY_P.
18498
18499 2011-01-11 Richard Guenther <rguenther@suse.de>
18500
18501 PR tree-optimization/47239
18502 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
18503
18504 2011-01-11 Jeff Law <law@redhat.com>
18505
18506 PR tree-optimization/47086
18507 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
18508 IVs from statements that might throw.
18509
18510 2011-01-10 Jan Hubicka <jh@suse.cz>
18511
18512 PR lto/45375
18513 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
18514
18515 2011-01-10 Jan Hubicka <jh@suse.cz>
18516
18517 PR lto/45375
18518 * profile.c (read_profile_edge_counts): Ignore profile inconistency
18519 when correcting profile.
18520
18521 2011-01-10 Jan Hubicka <jh@suse.cz>
18522
18523 PR lto/46083
18524 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
18525 DECL_FINI_PRIORITY.
18526 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
18527 Restore DECL_FINI_PRIORITY.
18528
18529 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18530
18531 * doc/gimple.texi: Fix quoting of multi-word return values in
18532 @deftypefn statements. Ensure presence of return value. Wrap
18533 overlong @deftypefn lines.
18534 (is_gimple_operand, is_gimple_min_invariant_address): Remove
18535 descriptions of removed functions.
18536 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
18537 of multi-word return value in @deftypefn statement.
18538
18539 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18540
18541 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
18542 (Conditional Expressions, Logical Operators)
18543 (Statement and operand traversals): Do not indent smallexample
18544 code. Fix duplicate function argument in example.
18545
18546 2011-01-10 Jeff Law <law@redhat.com>
18547
18548 PR tree-optimization/47141
18549 * ipa-split.c (split_function): Handle case where we are
18550 returning a value and the return block has a virtual operand phi.
18551
18552 2011-01-10 Jan Hubicka <jh@suse.cz>
18553
18554 PR tree-optimization/47234
18555 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
18556 (pass_feedback_split_functions): Declare.
18557 * passes.c (init_optimization_passes): Add ipa-split as subpass of
18558 tree-profile.
18559 * ipa-split.c (gate_split_functions): Update comments; disable
18560 split-functions for profile_arc_flag and branch_probabilities.
18561 (gate_feedback_split_functions): New function.
18562 (execute_feedback_split_functions): New function.
18563 (pass_feedback_split_functions): New global var.
18564
18565 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
18566
18567 PR lto/46760
18568 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
18569 calling gimple_call_set_cannot_inline.
18570
18571 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
18572
18573 * config/darwin-sections.def: Remove unused section.
18574
18575 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
18576
18577 PR c++/47218
18578 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
18579
18580 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
18581
18582 PR objc/47232
18583 * c-parser.c (c_parser_declaration_or_fndef): Improved
18584 error message.
18585
18586 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
18587
18588 * config/i386/winnt.c (i386_pe_start_function): Make sure
18589 to switch back to function's section.
18590
18591 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
18592
18593 PR gcc/46902
18594 PR testsuite/46912
18595 * plugin.c: Move include of dlfcn.h from here...
18596 * system.h: ... to here.
18597
18598 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18599
18600 * doc/cpp.texi (C++ Named Operators): Fix markup for header
18601 file name.
18602 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
18603 two extra empty pages in PDF output.
18604
18605 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
18606
18607 PR objc/47078
18608 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
18609 for error recovery purposes behave as if it was not specified so
18610 that the default type is usd.
18611
18612 2011-01-07 Jan Hubicka <jh@suse.cz>
18613
18614 PR tree-optmization/46469
18615 * ipa.c (function_and_variable_visibility): Clear needed flags on
18616 nodes with external decls; handle weakrefs merging correctly.
18617
18618 2011-01-07 Joseph Myers <joseph@codesourcery.com>
18619
18620 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
18621 not false.
18622
18623 2011-01-07 Jan Hubicka <jh@suse.cz>
18624
18625 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
18626 and no longer claim that gold is required for linker plugin.
18627 * configure: Regenerate.
18628 * gcc.c (PLUGIN_COND): New macro.
18629 (LINK_COMMAND_SPEC): Use it.
18630 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
18631 * config.in (HAVE_LTO_PLUGIN): New.
18632 * configure.ac (--with-lto-plugin): New parameter; autodetect
18633 HAVE_LTO_PLUGIN.
18634
18635 2011-01-07 Jan Hubicka <jh@suse.cz>
18636
18637 PR tree-optimization/46367
18638 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
18639 when we can update original.
18640 (cgraph_mark_inline_edge): Sanity check.
18641 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
18642
18643 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18644
18645 * config/spu/spu.h (ASM_COMMENT_START): Define.
18646
18647 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
18648
18649 PR driver/42445
18650 * gcc.c (%>S): New.
18651 (SWITCH_KEEP_FOR_GCC): Likewise.
18652 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
18653 (do_spec_1): Handle "%>".
18654
18655 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
18656
18657 2011-01-07 Jakub Jelinek <jakub@redhat.com>
18658
18659 PR target/47201
18660 * config/i386/i386.c (ix86_delegitimize_address): If
18661 simplify_gen_subreg fails, return orig_x.
18662
18663 PR bootstrap/47187
18664 * value-prof.c (gimple_stringop_fixed_value): Handle
18665 lhs of the call properly.
18666
18667 2011-01-07 Jan Hubicka <jh@suse.cz>
18668
18669 PR lto/45375
18670 * lto-opt.c (lto_reissue_options): Set flag_shlib.
18671
18672 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18673
18674 * target.def (function_switched_text_sections): New hook.
18675 * doc/tm.texi: Regenerated.
18676 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18677 * final.c (default_function_switched_text_sections): New.
18678 (final_scan_insn): Call function_switched_text_sections when a
18679 mid-function section change occurs.
18680 * output.h (default_function_switched_text_sections): Declare.
18681 * config/darwin-protos.h (darwin_function_switched_text_sections):
18682 Likewise.
18683 * config/darwin.c (darwin_function_switched_text_sections): New.
18684 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
18685
18686 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
18687
18688 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
18689 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
18690 the secondary code fragment when outputting for DWARF == 2.
18691
18692 2011-01-07 Anatoly Sokolov <aesok@post.ru>
18693
18694 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18695 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
18696 Remove.
18697 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
18698 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18699
18700 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
18701
18702 PR debug/46704
18703 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
18704 when it is not empty.
18705
18706 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
18707
18708 Bobcat Enablement
18709 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
18710 (case ${target}): Add btver1.
18711 * config/i386/driver-i386.c (host_detect_local_cpu): Let
18712 -march=native recognize btver1 processors.
18713 * config/i386/i386-c.c (ix86_target_macros_internal): Add
18714 btver1 def_and_undef
18715 * config/i386/i386.c (struct processor_costs btver1_cost): New
18716 btver1 cost table.
18717 (m_BTVER1): New definition.
18718 (m_AMD_MULTIPLE): Includes m_BTVER1.
18719 (initial_ix86_tune_features): Add btver1 tune.
18720 (processor_target_table): Add btver1 entry.
18721 (static const char *const cpu_names): Add btver1 entry.
18722 (software_prefetching_beneficial_p): Add btver1.
18723 (ix86_option_override_internal): Add btver1 instruction sets.
18724 (ix86_issue_rate): Add btver1.
18725 (ix86_adjust_cost): Add btver1.
18726 * config/i386/i386.h (TARGET_BTVER1): New definition.
18727 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
18728 (enum processor_type): Add PROCESSOR_BTVER1.
18729 * config/i386/i386.md (define_attr "cpu"): Add btver1.
18730
18731 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18732
18733 PR target/43309
18734 * config/i386/i386.c (legitimize_tls_address)
18735 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
18736 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
18737 (tls_initial_exec_64_sun): New pattern.
18738
18739 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
18740
18741 * doc/invoke.texi (Overall Options): Improve wording and markup
18742 of the description of -wrapper.
18743
18744 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18745
18746 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
18747 rdynamic, threads): New Driver options.
18748
18749 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18750
18751 PR target/38118
18752 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
18753 if coming from .tdata.
18754 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18755
18756 2011-01-06 Jan Hubicka <jh@suse.cz>
18757
18758 PR lto/47188
18759 * collect2.c (main): Do not enable LTOmode when plugin is active.
18760
18761 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18762
18763 PR other/45915
18764 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
18765 --version output if supported.
18766 * configure: Regenerate.
18767
18768 2011-01-06 Joseph Myers <joseph@codesourcery.com>
18769
18770 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
18771 Driver options.
18772
18773 2011-01-06 Jakub Jelinek <jakub@redhat.com>
18774
18775 PR c/47150
18776 * c-convert.c (convert): When converting a complex expression
18777 other than COMPLEX_EXPR to a different complex type, ensure
18778 c_save_expr is called instead of save_expr, unless in_late_binary_op.
18779 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
18780 when converting COMPLEX_TYPE.
18781
18782 2011-01-06 Ira Rosen <irar@il.ibm.com>
18783
18784 PR tree-optimization/47139
18785 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
18786 only the last reduction value is used outside the loop. Update
18787 documentation.
18788
18789 2011-01-05 Joseph Myers <joseph@codesourcery.com>
18790
18791 * config/rtems.opt: New.
18792 * config.gcc (*-*-rtems*): Use rtems.opt.
18793
18794 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
18795
18796 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
18797 processors do not support 3DNow instructions.
18798
18799 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18800
18801 * config/spu/spu.c (spu_option_override): Set parameter
18802 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
18803
18804 2011-01-05 Jan Hubicka <jh@suse.cz>
18805
18806 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
18807 at the command line.
18808
18809 2011-01-05 Martin Jambor <mjambor@suse.cz>
18810
18811 PR lto/47162
18812 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
18813 deltas on streamed outgoing edges.
18814 (output_node_opt_summary): Output info for outgoing edges only when
18815 the node is in new parameter set.
18816 (output_cgraph_opt_summary): New parameter set, passed to the two
18817 aforementioned functions. Update its forward declaration and its
18818 callee too.
18819
18820 2011-01-05 Tom Tromey <tromey@redhat.com>
18821
18822 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
18823 operator to c_finish_omp_atomic.
18824 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
18825 (build_unary_op): Update.
18826 (build_modify_expr): Update.
18827 (build_asm_expr): Update.
18828
18829 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18830
18831 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
18832 newly inserted insns.
18833 (pad_bb): Likewise.
18834 (spu_emit_branch_hint): Likewise.
18835 (insert_hbrp_for_ilb_runout): Likewise.
18836 (spu_machine_dependent_reorg): Call df_finish_pass after
18837 schedule_insns returns.
18838
18839 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18840
18841 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
18842
18843 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
18844
18845 PR tree-optimization/47005
18846 * tree-sra.c (struct access): Add 'non_addressable' bit.
18847 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
18848 (decide_one_param_reduction): Return 0 if the parameter is passed by
18849 reference and one of the accesses in the group is non_addressable.
18850
18851 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18852
18853 PR tree-optimization/47056
18854 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
18855 (mark_load): Likewise. Handle FUNCTION_DECL specially.
18856 (mark_store): Likewise. Pass STMT to ipa_record_reference.
18857
18858 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
18859
18860 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
18861 initializer. Skip view conversions from aggregate types.
18862
18863 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
18864
18865 PR bootstrap/47055
18866 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
18867
18868 2011-01-04 Philipp Thomas <pth@suse.de>
18869
18870 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
18871 obvious typo.
18872
18873 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18874
18875 * function.c (thread_prologue_and_epilogue_insns): Do not crash
18876 on empty epilogue sequences.
18877
18878 2011-01-04 Joseph Myers <joseph@codesourcery.com>
18879
18880 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
18881 non-static): New Driver options.
18882
18883 2011-01-04 Jie Zhang <jie@codesourcery.com>
18884
18885 PR driver/47137
18886 * gcc.c (default_compilers[]): Set combinable field to 0
18887 for all assembly languages.
18888
18889 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
18890
18891 * config/mips/loongson3a.md: New file.
18892 * config/mips/mips.md: Include loongson3a.md.
18893 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
18894 TUNE_LOONGSON_3A.
18895
18896 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
18897
18898 PR middle-end/47017
18899 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
18900 instead of convert_memory_address_addr_space on the base expression.
18901
18902 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18903
18904 * config/spu/spu.c (spu_option_override): Update error text
18905 for bad -march= / -mtune= values.
18906
18907 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18908
18909 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
18910 if branch-hint optimization will be performed.
18911
18912 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18913
18914 PR tree-optimization/47148
18915 * ipa-split.c (split_function): Convert arguments to
18916 DECL_ARG_TYPE if possible.
18917
18918 PR tree-optimization/47155
18919 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
18920 when computing uns.
18921
18922 PR rtl-optimization/47157
18923 * combine.c (try_combine): If undobuf.other_insn becomes
18924 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
18925 and set *new_direct_jump_p too.
18926
18927 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
18928
18929 PR tree-optimization/47021
18930 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
18931
18932 2011-01-03 Jakub Jelinek <jakub@redhat.com>
18933
18934 * gcc.c (process_command): Update copyright notice dates.
18935 * gcov.c (print_version): Likewise.
18936 * gcov-dump.c (print_version): Likewise.
18937 * mips-tfile.c (main): Likewise.
18938 * mips-tdump.c (main): Likewise.
18939
18940 2011-01-03 Martin Jambor <mjambor@suse.cz>
18941
18942 PR tree-optimization/46801
18943 * tree-sra.c (type_internals_preclude_sra_p): Check whether
18944 aggregate fields start at byte boundary instead of the bit-field flag.
18945
18946 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
18947
18948 PR driver/47137
18949 * gcc.c (main): Revert revision 168407.
18950
18951 2011-01-03 Martin Jambor <mjambor@suse.cz>
18952
18953 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
18954
18955 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18956
18957 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
18958 vector optab to expand vector/scalar shift, update gimple to vector.
18959
18960 2011-01-03 Martin Jambor <mjambor@suse.cz>
18961
18962 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
18963 a thunk.
18964
18965 2011-01-03 Martin Jambor <mjambor@suse.cz>
18966
18967 PR tree-optimization/46984
18968 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
18969 HOST_WIDE_INT.
18970 (cgraph_create_indirect_edge): Fixed line length.
18971 (cgraph_indirect_call_info): Declare.
18972 (cgraph_make_edge_direct) Update declaration.
18973 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
18974 (cgraph_create_indirect_edge): Use it.
18975 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
18976 callees.
18977 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
18978 the new thunk_delta representation.
18979 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
18980 HOST_WIDE_INT.
18981 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
18982 (ipa_read_indirect_edge_info): Likewise.
18983 * lto-cgraph.c (output_edge_opt_summary): New function.
18984 (output_node_opt_summary): Call it on all outgoing edges.
18985 (input_edge_opt_summary): New function.
18986 (input_node_opt_summary): Call it on all outgoing edges.
18987
18988 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
18989
18990 PR driver/47137
18991 * gcc.c (main): Don't check have_o when settting combine_inputs.
18992
18993 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
18994
18995 * regrename.c: Add general comment describing the pass.
18996 (struct du_head): Remove 'length' field.
18997 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
18998 (regrename_optimize): Do not sort chains. Rework comments, add others.
18999 Force renaming to the preferred class (if any) in the first pass and do
19000 not consider registers that belong to it in the second pass.
19001 (create_new_chain): Do not set 'length' field.
19002 (scan_rtx_reg): Likewise.
19003
19004 2011-01-02 Jakub Jelinek <jakub@redhat.com>
19005
19006 PR tree-optimization/47140
19007 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
19008 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
19009 to bit_value_binop.
19010
19011 PR rtl-optimization/47028
19012 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
19013 parm_birth_insn instead of at the beginning of first bb.
19014
19015 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
19016
19017 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
19018 Remove the word "see" before "@pxref".
19019 * doc/rtl.texi: Remove the word "see" before "@pxref".
19020
19021 2011-01-01 Jan Hubicka <jh@suse.cz>
19022
19023 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
19024 memory.
19025
19026 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
19027
19028 PR target/38662
19029 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
19030
19031 \f
19032 Copyright (C) 2011 Free Software Foundation, Inc.
19033
19034 Copying and distribution of this file, with or without modification,
19035 are permitted in any medium without royalty provided the copyright
19036 notice and this notice are preserved.