Remove -mfused-madd and add -mfma.
[gcc.git] / gcc / ChangeLog
1 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
2
3 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
4
5 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
6
7 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
8 overlap check.
9
10 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
11
12 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
13 (count_type_elements): Delete.
14 (complete_ctor_at_level_p): Declare.
15 * expr.c (flexible_array_member_p): New function, split out from...
16 (count_type_elements): ...here. Make static. Replace allow_flexarr
17 parameter with for_ctor_p. When for_ctor_p is true, return the
18 number of elements that should appear in the top-level constructor,
19 otherwise return an estimate of the number of scalars.
20 (categorize_ctor_elements): Replace p_must_clear with p_complete.
21 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
22 (complete_ctor_at_level_p): New function, borrowing union logic
23 from old categorize_ctor_elements_1.
24 (mostly_zeros_p): Return true if the constructor is not complete.
25 (all_zeros_p): Update call to categorize_ctor_elements.
26 * gimplify.c (gimplify_init_constructor): Update call to
27 categorize_ctor_elements. Don't call count_type_elements.
28 Unconditionally prevent clearing for variable-sized types,
29 otherwise rely on categorize_ctor_elements to detect
30 incomplete initializers.
31
32 2011-07-13 Richard Guenther <rguenther@suse.de>
33
34 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
35 the final type is integral.
36
37 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
38
39 * sched-int.h (struct _dep): Add member cost.
40 (DEP_COST, UNKNOWN_DEP_COST): New macros.
41 * sched-deps.c (init_dep_1): Initialize DEP_COST.
42 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
43 (sched_change_pattern): Reset it for dependent insns.
44
45 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
46
47 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
48 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
49 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
50 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
51 (CRT0_S, MCRT0_S): Remove.
52 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
53 Remove.
54 (s-crt0): Remove.
55 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
56
57 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
58
59 * cse.c (insert_with_costs): Put semi-colon after empty loop body
60 on the next line.
61 * emit-rtl.c (push_to_sequence): Likewise.
62 * haifa-sched.c (max_issue): Likewise.
63 * matrix-reorg.c (add_allocation_site): Likewise.
64 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
65 * reload.c (alternative_allows_const_pool_ref): Likewise.
66 * sched-rgn.c (rgn_add_block): Likewise.
67 (rgn_fix_recovery_cfg): Likewise.
68 * tree.c (attribute_list_contained): Likewise.
69
70 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
71
72 * config/i386/i386.c: Tidy processor feature bitmasks.
73 (m_P4_NOCONA): New.
74
75 2011-07-12 Andrew Pinski <pinskia@gmail.com>
76
77 PR rtl-opt/49474
78 * cprop.c (find_implicit_sets): Correct the condition.
79
80 2011-07-12 Richard Henderson <rth@redhat.com>
81
82 PR target/49713
83 * dwarf2out.h (dwarf_frame_regnum): Remove.
84 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
85 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
86 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
87 (execute_dwarf2_frame): Initialize them.
88 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
89 users of the macros with the variables.
90 (expand_builtin_dwarf_sp_column): Revert last change.
91 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
92 result of DWARF_FRAME_REGNUM into a local variable.
93
94 2011-07-12 Richard Henderson <rth@redhat.com>
95
96 PR target/49714
97 * config/i386/i386.c (x86_output_mi_thunk): Use
98 machopic_indirect_call_target instead of machopic_indirection_name
99 directly.
100
101 2011-07-12 Laurent GUERBY <laurent@guerby.net>
102 Eric Botcazou <ebotcazou@adacore.com>
103
104 * prefix.h: Wrap up in extern "C" block.
105
106 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
107
108 AMD bdver2 Enablement
109 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
110 (case ${target}): Add bdver2.
111 * config/i386/driver-i386.c (host_detect_local_cpu): Let
112 -march=native recognize bdver2 processors.
113 * config/i386/i386-c.c (ix86_target_macros_internal): Add
114 bdver2 def_and_undef
115 * config/i386/i386.c (struct processor_costs bdver2_cost): New
116 bdver2 cost table.
117 (m_BDVER2): New definition.
118 (m_AMD_MULTIPLE): Includes m_BDVER2.
119 (initial_ix86_tune_features): Add bdver2 tuning.
120 (processor_target_table): Add bdver2 entry.
121 (static const char *const cpu_names): Add bdver2 entry.
122 (ix86_option_override_internal): Add bdver2 instruction sets.
123 (ix86_issue_rate): Add bdver2.
124 (ix86_adjust_cost): Add bdver2.
125 (has_dispatch): Add bdver2.
126 * config/i386/i386.h (TARGET_BDVER2): New definition.
127 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
128 (enum processor_type): Add PROCESSOR_BDVER2.
129 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
130 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
131 description.
132
133 2011-07-12 Richard Henderson <rth@redhat.com>
134
135 PR target/49714
136 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
137 destination address in memory on some paths.
138
139 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
140
141 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
142 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
143 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
144 * function.c (locate_and_pad_parm): Take it into account.
145 * target.def (function_arg_round_boundary): New hook.
146 * targhooks.c (default_function_arg_round_boundary): New function.
147 * targhooks.h (default_function_arg_round_boundary): Declare.
148 * doc/tm.texi: Regenerate.
149
150 2011-07-12 Richard Guenther <rguenther@suse.de>
151
152 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
153 Do not perform no-op changes.
154
155 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
156
157 * config/arm/predicates.md (neon_struct_operand): Make a normal
158 predicate.
159 (neon_struct_or_register_operand): New predicate.
160 * config/arm/neon.md (movmisalign<mode>): Replace predicates
161 with neon_struct_or_register_operand.
162 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
163 neon_struct_operand instead of memory_operand.
164
165 2011-07-12 Martin Jambor <mjambor@suse.cz>
166
167 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
168 * cgraph.c (cgraph_get_node_or_alias): Removed.
169 (change_decl_assembler_name): Changed all calls to
170 cgraph_get_node_or_alias to a call to cgraph_get_node.
171 (cgraph_make_decl_local): Likewise.
172 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
173 * varasm.c (default_binds_local_p_1): Likewise.
174 (decl_binds_to_current_def_p): Likewise.
175
176 2011-07-12 Jakub Jelinek <jakub@redhat.com>
177
178 PR tree-optimization/49712
179 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
180
181 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
182
183 * genautomata.c (add_arc): Return void. All callers changed.
184 (make_automaton): Remove dead code.
185
186 2011-07-11 Richard Henderson <rth@redhat.com>
187
188 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
189 (DW_FRAME_POINTER_REGNUM): New.
190 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
191 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
192 (dwf_regno): New.
193 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
194 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
195 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
196 Use it.
197 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
198 * dwarf2out.h (dwarf_frame_regnum): New.
199 (struct cfa_loc): Document the domain of the reg member.
200
201 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
202
203 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
204 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
205
206 2011-07-11 Jakub Jelinek <jakub@redhat.com>
207
208 PR debug/49676
209 * dwarf2out.c (int_shift_loc_descriptor): New function.
210 (int_loc_descriptor): If shorter, emit i as
211 (i >> shift), shift, DW_OP_shl for suitable shift value.
212 Similarly, try to optimize large negative values using
213 DW_OP_neg of a positive value if shorter.
214 (size_of_int_shift_loc_descriptor): New function.
215 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
216 changes.
217 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
218 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
219 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
220 is shorter.
221 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
222 addend as added DW_OP_plus if it is shorter.
223
224 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
225
226 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
227 (DTORS_SECTION_ASM_OP): Define.
228
229 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
230
231 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
232 * config/t-dfprules: Move to ../libgcc/config.
233 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
234 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
235 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
236 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
237 Likewise.
238 (i[34567]86-*-cygwin*): Likewise.
239 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
240 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
241 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
242 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
243 D64PBIT_FUNCS, D128PBIT_FUNCS.
244
245 2011-07-11 Richard Guenther <rguenther@suse.de>
246
247 * tree-vrp.c (simplify_conversion_using_ranges): Manually
248 translate the source value-range through the conversion chain.
249
250 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
251
252 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
253
254 2011-07-11 Arthur Loiret <aloiret@debian.org>
255
256 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
257 a bi-arch compiler defaulting to 31-bit. In this case:
258 (tmake_file): Add s390/t-linux64.
259 * doc/install.texi: Add s390-linux to the list of targets supporting
260 --enable-targets=all.
261
262 2011-07-11 Arthur Loiret <aloiret@debian.org>
263 Matthias Klose <doko@debian.org>
264
265 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
266 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
267 (tm_file): Add mips/linux64.h.
268 (tmake_file): Add mips/t-linux64.
269 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
270 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
271 instead of hardcoded mabi=n32.
272 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
273 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
274 convention.
275
276 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
277
278 * passes.c (init_optimization_passes): Add invariant motion pass
279 after induction variable optimization.
280
281 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
282
283 PR target/39633
284 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
285 offsets 1..5 set cc0 in a usable way.
286
287 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
288
289 * tree.h (call_expr_arg): Remove.
290 (call_expr_argp): Likewise.
291
292 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
293
294 * config/sparc/sparc.md (save_register_window_1): Rename to...
295 (window_save): ...this.
296 * config/sparc/sparc.c (emit_save_register_window): Rename to...
297 (emit_window_save): ...this.
298 (sparc_expand_prologue): Adjust to above renaming.
299
300 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
301
302 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
303 of movabs for x32.
304
305 2011-07-10 Richard Henderson <rth@redhat.com>
306
307 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
308 run final, instead of emitting text directly.
309
310 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
311
312 * config/i386/i386.c (ix86_option_override_internal): Turn on
313 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
314 small PIC models for TARGET_X32.
315
316 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
317
318 PR target/49684
319 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
320 $(LIBGCC2_CFLAGS).
321
322 PR bootstrap/49680
323 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
324 stray notes and debug insns by using prev_nonnote_nondebug_insn
325 instead of PREV_INSN.
326
327 2011-07-09 Richard Henderson <rth@redhat.com>
328
329 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
330 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
331 * dwarf2out.c: ... here.
332 (output_all_cfis): Remove.
333 (dwarf2out_switch_text_section): Use output_cfis directly.
334 (size_of_locs): Export.
335 (output_loc_sequence, output_loc_sequence_raw): Export.
336 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
337 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
338 output_cfa_loc_raw): Move to ...
339 * dwarfcfi.c: ... here.
340 * dwarf2out.h: Update decls.
341
342 2011-07-09 Richard Henderson <rth@redhat.com>
343
344 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
345 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
346 * dwarf2cfi.c: ... here.
347 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
348 (DWARF_ROUND, DWARF_CIE_ID): Remove.
349 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
350 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
351 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
352
353 2011-07-09 Richard Henderson <rth@redhat.com>
354
355 * dwarf2cfi.c (cie_return_save): New.
356 (queue_reg_save): Use compare_reg_or_pc.
357 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
358 (dwarf2out_frame_debug_expr): Likewise.
359 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
360 (initial_return_save): Likewise.
361 (execute_dwarf2_frame): Save and restore initial return save from
362 the cie to the fde.
363 * config/mips/mips.c (mips_frame_set): Remove special case for
364 DWARF_FRAME_RETURN_COLUMN.
365
366 2011-07-09 Richard Henderson <rth@redhat.com>
367
368 * dwarf2cfi.c (lookup_cfa): Remove.
369 (execute_dwarf2_frame): Assert queues are empty on entry.
370 Setup initial cfa directly, not via lookup_cfa.
371 Don't clear args_size state here.
372
373 2011-07-09 Richard Henderson <rth@redhat.com>
374
375 * dwarf2cfi.c (add_cfi_vec): New.
376 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
377 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
378 (execute_dwarf2_frame): Set add_cfi_vec.
379
380 2011-07-09 Richard Henderson <rth@redhat.com>
381
382 * defaults.h (ASM_COMMENT_START): Move here...
383 * dwarf2asm.c: ... from here.
384 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
385 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
386 * varasm.c: Likewise.
387
388 2011-07-09 Richard Henderson <rth@redhat.com>
389
390 PR debug/49686
391 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
392 (create_cfi_notes): ... do it here instead.
393
394 2011-07-09 Jakub Jelinek <jakub@redhat.com>
395
396 PR debug/49676
397 * dwarf2out.c (size_of_int_loc_descriptor): New function.
398 (address_of_int_loc_descriptor): Use it.
399 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
400
401 2011-07-09 Richard Henderson <rth@redhat.com>
402
403 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
404 (prologue, epilogue): New.
405 (return, *rts): New.
406 (blockage, setd, seti): New.
407 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
408 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
409 (pdp11_saved_regno): New.
410 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
411 generate rtl instead of text.
412 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
413 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
414 * config/pdp11/pdp11-protos.h: Update.
415
416 2011-07-09 Richard Henderson <rth@redhat.com>
417
418 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
419 try to insert an rtl prologue here.
420 (rs6000_output_function_epilogue): Similarly.
421 * config/rs6000/rs6000.md (prologue): Emit a barrier to
422 satisfy !TARGET_SCHED_PROLOG.
423 (epilogue, sibcall_epilogue): Likewise.
424
425 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
426
427 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
428 (FP_REG_P): Delete.
429 (IN_OR_GLOBAL_P): Likewise.
430
431 2011-07-08 Jason Merrill <jason@redhat.com>
432
433 PR c++/45437
434 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
435 compound assignment.
436
437 * cgraph.c (cgraph_add_to_same_comdat_group): New.
438 * cgraph.h: Declare it.
439 * ipa.c (function_and_variable_visibility): Make sure thunks
440 have the right visibility.
441
442 2011-07-08 Richard Henderson <rth@redhat.com>
443
444 PR bootstrap/49680
445 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
446 any tablejump vector.
447
448 PR bootstrap/49680
449 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
450 end of the prologue.
451
452 2011-07-08 Jakub Jelinek <jakub@redhat.com>
453
454 PR target/49621
455 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
456 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
457 * config/rs6000/vector.md (vector_select_<mode>,
458 vector_select_<mode>_uns): Change second operand of NE to
459 CONST0_RTX (<MODE>mode) instead of const0_rtx.
460 * config/rs6000/altivec.md (*altivec_vsel<mode>,
461 *altivec_vsel<mode>_uns): Expect second operand of NE to be
462 zero_constant of the corresponding vector mode.
463 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
464 Likewise.
465
466 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
467
468 * graphite-dependences.c (build_alias_set_powerset): Remove
469 continue from loop, add one more assert.
470
471 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
472
473 PR target/46779
474 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
475 In particular, allow 8-bit values in r28 and r29.
476 (avr_hard_regno_scratch_ok): Disallow any register that might be
477 part of the frame pointer.
478 (avr_hard_regno_rename_ok): Same.
479 (avr_legitimate_address_p): Don't allow SUBREGs.
480
481 2011-07-08 Julian Brown <julian@codesourcery.com>
482
483 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
484 big-endian mode.
485 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
486 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
487 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
488 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
489 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
490 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
491 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
492 registers in big-endian mode.
493
494 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
495
496 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
497 in terms of another.
498 (write_attr_value): Write a cast if necessary.
499
500 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
501 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
502 (REG_WORDS_BIG_ENDIAN): Document.
503 * doc/tm.texi: Regenerate.
504 * reload.c (operands_match_p): Take it into account.
505 (reload_adjust_reg_for_mode): Likewise.
506 * rtlanal.c (subreg_get_info): Likewise.
507
508 2011-07-08 Richard Guenther <rguenther@suse.de>
509
510 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
511 folding.
512
513 2011-07-08 Kai Tietz <ktietz@redhat.com>
514
515 * fold-const.c (fold_truth_andor): Factored out truth_andor
516 label from fold_binary as function.
517 (fold_binary_loc): Replace truth_andor lable
518 by function fold_truth_andor.
519
520 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
521
522 PR middle-end/49519
523 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
524 check if address is stored in register. If so - give up.
525 (check_sibcall_argument_overlap_1): Do not perform check of
526 overlapping when it is call to address.
527
528 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
529
530 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
531 of magic '31'.
532
533 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
534
535 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
536 GET_MODE_BITSIZE where appropriate.
537 (widen_leading, expand_parity, expand_ctz, expand_ffs,
538 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
539 expand_float, expand_fix): Likewise.
540 * expr.c (convert_move, convert_modes, expand_expr_real_2,
541 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
542 * stor-layout.c (get_mode_bounds): Likewise.
543 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
544 Likewise.
545 * convert.c (convert_to_integer): Likewise.
546 * expmed.c (expand_shift_1): Likewise.
547
548 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
549 a bitsize.
550
551 * optabs.c (expand_binop): Tighten conditions for doubleword
552 expansions.
553 (widen_bswap): Assert that mode bitsize and precision are the same.
554 * stor-layout.c (get_best_mode): Skip modes that have lower
555 precision than bitsize.
556 * recog.c (simplify_while_replacing): Assert that bitsize and
557 precision are the same.
558
559 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
560
561 * Makefile.in (LIBGCOV): Remove.
562 (libgcc.mvars): Remove LIBGCOV.
563 * libgov.c: Move to ../libgcc.
564
565 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
566
567 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
568
569 2011-07-08 Martin Jambor <mjambor@suse.cz>
570
571 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
572 is too big for total scalarization.
573
574 2011-07-07 Richard Henderson <rth@redhat.com>
575
576 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
577 (DBX_DEBUGGING_INFO): Undef.
578
579 2011-07-07 Richard Henderson <rth@redhat.com>
580
581 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
582 Handle some opcodes specially for debugging.
583 * print-rtl.c: Include dwarf2out.h
584 (print_rtx): Handle NOTE_INSN_CFI.
585 * Makefile.in (print-rtl.o): Update.
586
587 2011-07-07 Richard Henderson <rth@redhat.com>
588
589 * tree-pass.h (pass_dwarf2_frame): Declare.
590 * passes.c (init_optimization_passes): Add it.
591 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
592 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
593 make static, do not call add_cfis_to_fde.
594 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
595 dwarf2out_frame_init): Merge into...
596 (execute_dwarf2_frame): ... here. New function.
597 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
598 saved_do_cfi_asm to a tri-state variable.
599 (gate_dwarf2_frame, pass_dwarf2_frame): New.
600 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
601 if it has yet to be done. Don't call dwarf2cfi_function_init.
602 * dwarf2out.h, debug.h: Update decls.
603 * final.c (final_start_function): Don't call
604 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
605 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
606 * toplev.c (lang_dependent_init): Likewise.
607
608 2011-07-07 Richard Henderson <rth@redhat.com>
609
610 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
611 FDE_TABLE_INCREMENT): Replace with...
612 (fde_vec): ... this, a new vector.
613 (current_fde): Remove. Replace all users with cfun->fde.
614 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
615 (size_of_aranges, dwarf2out_finish): Likewise.
616 (dwarf2out_alloc_current_fde): Break out from ...
617 (dwarf2out_begin_prologue): ... here.
618 (dwarf2out_frame_init): Remove.
619 * dwarf2cfi.c: Update all users of current_fde.
620 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
621 * dwarf2out.h: Update decls.
622 (dw_fde_node): Add fde_index member.
623 * function.h (struct function): Add fde member.
624
625 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
626 Richard Henderson <rth@redhat.com>
627
628 * dwarf2cfi.c (add_cfi): Remove.
629 (dwarf2out_cfi_label): Remove force argument. Only generate the
630 label name.
631 (add_fde_cfi): Simplify the different code paths.
632 (add_cie_cfi): New.
633 (old_cfa, old_cfa_remember): New.
634 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
635 (last_reg_save_label): Remove.
636 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
637 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
638 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
639 dwarf2out_frame_debug_cfa_expression,
640 dwarf2out_frame_debug_cfa_restore,
641 dwarf2out_frame_debug_cfa_window_save,
642 dwarf2out_frame_debug_expr): Remove label parameter.
643 (cfi_label_required_p, add_cfis_to_fde): New.
644 (dwarf2out_frame_debug_after_prologue): New.
645 (dwarf2cfi_frame_init): Initialize old_cfa.
646 (dwarf2out_frame_debug_restore_state): Likewise.
647 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
648 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
649 * final.c (final_start_function): Call
650 dwarf2out_frame_debug_after_prologue.
651
652 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
653 Richard Henderson <rth@redhat.com>
654
655 * dwarf2cfi.c (cfi_insn): New.
656 (dwarf2out_cfi_label): Don't emit cfi label here.
657 (add_fde_cfi): Create a NOTE_INSN_CFI.
658 (dwarf2out_frame_debug): Setup cfi_insn.
659 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
660 (dwarf2out_cfi_begin_epilogue): Make static.
661 (dwarf2out_frame_debug_restore_state): Make static.
662 * dwarf2out.c (output_cfi_directive): Make static.
663 (dwarf2out_emit_cfi): New.
664 * dwarf2out.h: Update.
665 * final.c (final): Remove CFI notes.
666 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
667 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
668 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
669 * insn-notes.def (NOTE_INSN_CFI): New.
670 (NOTE_INSN_CFI_LABEL): New.
671 * rtl.h (union rtunion_def): Add rt_cfi member.
672 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
673
674 2011-07-07 Richard Henderson <rth@redhat.com>
675
676 * dwarf2cfi.c: New file.
677 * Makefile.in (OBJS): Add it.
678 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
679 * gengtype.c (open_base_files): Include dwarf2out.h.
680 * coretypes.h (enum var_init_status): Move from ...
681 * rtl.h: ... here.
682 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
683 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
684 expand_builtin_dwarf_sp_column, init_return_column_size,
685 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
686 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
687 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
688 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
689 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
690 compute_barrier_args_size, dwarf2out_args_size,
691 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
692 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
693 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
694 queue_reg_save, dwarf2out_flush_queued_reg_saves,
695 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
696 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
697 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
698 dwarf2out_frame_debug_cfa_expression,
699 dwarf2out_frame_debug_cfa_restore,
700 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
701 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
702 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
703 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
704 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
705 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
706 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
707 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
708 dw_loc_descr_node): Move to dwarf2out.h.
709 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
710 mem_loc_descriptor): Export.
711 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
712 (dwarf2out_frame_init): Extract CIE generation code to
713 dwarf2cfi_frame_init.
714
715 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
716
717 PR target/49660
718 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
719 MASK_V8PLUS, remove commented out flag and reorder.
720
721 2011-07-07 Jakub Jelinek <jakub@redhat.com>
722
723 PR c/49644
724 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
725 one non-complex and one complex argument, call c_save_expr on both
726 operands.
727
728 2011-07-07 Martin Jambor <mjambor@suse.cz>
729
730 PR middle-end/49495
731 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
732 (verify_cgraph_node): Some functinality moved to
733 verify_edge_corresponds_to_fndecl, call it.
734
735 2011-07-07 Joseph Myers <joseph@codesourcery.com>
736
737 * config.gcc (*local*): Remove.
738 * doc/install-old.texi: Don't mention local configurations.
739
740 2011-07-07 Jakub Jelinek <jakub@redhat.com>
741
742 PR debug/49522
743 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
744 referencing debug insns that have been reset.
745 (dead_debug_insert_before): Don't assert reg is non-NULL,
746 instead return immediately if it is NULL.
747
748 2011-07-07 Joseph Myers <joseph@codesourcery.com>
749
750 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
751
752 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
753
754 * hw-doloop.c: New file.
755 * hw-doloop.h: New file.
756 * Makefile.in (OBJS): Add hw-doloop.o.
757 (hw-doloop.o): New rule.
758 ($(obj_out_file)): Add hw-doloop.h dependency.
759 * config/bfin/bfin.c: Include "hw-doloop.h".
760 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
761 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
762 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
763 type changed to hwloop_info. Return bool, true if the loop was
764 successfully optimized. Remove code that was moved to
765 hw-doloop.c, and adjust other parts.
766 (hwloop_fail): New static function, containing parts that used
767 to be in bfin_optimize_loop.
768 (bfin_discover_loop, bfin_discover_loops, free_loops,
769 bfin_reorder_loops): Remove.
770 (hwloop_pattern_reg): New static function.
771 (bfin_doloop_hooks): New variable.
772 (bfin_reorg_loops): Remove most code, call reorg_loops.
773 * config/bfin/bfin.md (doloop_end splitter): Also enable if
774 loop counter is a memory_operand.
775
776 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
777
778 * config.gcc: Support --with-multilib-list for x86 Linux targets.
779
780 * configure.ac: Mention x86-64 for --with-multilib-list.
781 * configure: Regenerated.
782
783 * config/i386/gnu-user64.h (SPEC_64): Support x32.
784 (SPEC_32): Likewise.
785 (ASM_SPEC): Likewise.
786 (LINK_SPEC): Likewise.
787 (TARGET_THREAD_SSP_OFFSET): Likewise.
788 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
789 (SPEC_X32): New.
790
791 * config/i386/i386.h (TARGET_X32): New.
792 (TARGET_LP64): New.
793 (LONG_TYPE_SIZE): Likewise.
794 (POINTER_SIZE): Likewise.
795 (POINTERS_EXTEND_UNSIGNED): Likewise.
796 (OPT_ARCH64): Support x32.
797 (OPT_ARCH32): Likewise.
798
799 * config/i386/i386.opt (mx32): New.
800
801 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
802 (GLIBC_DYNAMIC_LINKERX32): Likewise.
803 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
804 (GLIBC_DYNAMIC_LINKERX32): Likewise.
805
806 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
807 (BIONIC_DYNAMIC_LINKERX32): Likewise.
808 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
809
810 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
811
812 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
813
814 * doc/invoke.texi: Document -mx32.
815
816 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
817
818 * doc/invoke.texi (mwords-little-endian): Deprecate.
819 * config/arm/arm.opt (mwords-little-endian): Likewise.
820 * config/arm/arm.c (arm_option_override): Warn about the deprecation
821 of -mwords-little-endian.
822
823 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
824
825 * reload1.c (choose_reload_regs): Use mode sizes to check whether
826 an old reload register completely defines the required value.
827
828 2011-07-07 Richard Guenther <rguenther@suse.de>
829
830 * fold-const.c (fold_unary_loc): Do not strip sign-changes
831 for NEGATE_EXPR.
832
833 2011-07-07 Richard Guenther <rguenther@suse.de>
834
835 * tree-vrp.c (simplify_conversion_using_ranges): New function.
836 (simplify_stmt_using_ranges): Call it.
837
838 2011-07-07 Kai Tietz <ktietz@redhat.com>
839
840 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
841 (lookup_logical_inverted_value): Likewise.
842 (simplify_bitwise_binary_1): Likewise.
843 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
844
845 2011-07-07 Joseph Myers <joseph@codesourcery.com>
846
847 * gcc.c (%[Spec]): Don't document.
848 (struct spec_list): Update comment.
849 (do_spec_1): Don't handle %[Spec].
850 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
851
852 2011-07-07 Joseph Myers <joseph@codesourcery.com>
853
854 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
855 default based on TARGET_ASM_NAMED_SECTION.
856 * common/common-target.def (have_named_sections): Default to true.
857 * common/config/default-common.c: Don't include tm.h.
858 * common/config/picochip/picochip-common.c
859 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
860 * common/config/m32c/m32c-common.c: Remove.
861 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
862 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
863 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
864 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
865 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
866 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
867 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
868
869 2011-07-07 Jakub Jelinek <jakub@redhat.com>
870
871 PR middle-end/49640
872 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
873 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
874
875 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
876
877 PR libmudflap/49550
878 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
879
880 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
881
882 PR target/39150
883 * configure.ac (gcc_cv_as_hidden): Also accept
884 x86_64-*-solaris2.1[0-9]*.
885 (gcc_cv_as_cfi_directive): Likewise.
886 (gcc_cv_as_comdat_group_group): Likewise.
887 (set_have_as_tls): Likewise.
888 * configure: Regenerate.
889 * config.gcc (i[34567]86-*-solaris2*): Also handle
890 x86_64-*-solaris2.1[0-9]*.
891 * config.host (i[34567]86-*-solaris2*): Likewise.
892 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
893 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
894 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
895 (TARGET_LD_EMULATION): Use it.
896 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
897 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
898 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
899 (ASM_CPU64_DEFAULT_SPEC): Define.
900 (ASM_CPU_SPEC): Use %(asm_cpu_default).
901 (ASM_SPEC): Redefine.
902 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
903 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
904 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
905 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
906 configuration.
907 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
908
909 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
910
911 * config/sol2.h (ASM_SPEC): Split into ...
912 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
913 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
914 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
915 (ASM_SPEC): Use ASM_SPEC_BASE.
916 * config/sparc/sol2.h (ASM_SPEC): Redefine.
917
918 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
919
920 * config/avr/avr.md (*reload_insi): Change predicate #1 to
921 const_int_operand. Ditto for peep2 producing this insn.
922 Add argument to output_reload_insisf call.
923 (*movsi,*movsf): Add argument to output_movsisf call.
924 (*reload_insf): New insn and new peep2 to produce it.
925 * config/avr/avr-protos.h (output_movsisf): Change prototype.
926 (output_reload_insisf): Change prototype.
927 * config/avr/avr.c (avr_asm_len): New function.
928 (output_reload_insisf): Rewrite.
929 (output_movsisf): Change prototype. output_reload_insisf for
930 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
931 (adjust_insn_length): Add argument to output_movsisf and
932 output_reload_insisf call.
933
934 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
935
936 * emit-rtl.c (paradoxical_subreg_p): New function.
937 * rtl.h (paradoxical_subreg_p): Declare.
938 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
939 apply_distributive_law, simplify_comparison, simplify_set): Use it.
940 * cse.c (record_jump_cond, cse_insn): Likewise.
941 * expr.c (force_operand): Likewise.
942 * rtlanal.c (num_sign_bit_copies1): Likewise.
943 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
944 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
945 (push_reload): Use precision to check for paradoxical subregs.
946 * expmed.c (extract_bit_field_1): Likewise.
947
948 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
949 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
950 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
951 simplify_set, simplify_logical, expand_compound_operation,
952 make_extraction, force_to_mode, if_then_else_cond, extended_count,
953 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
954 record_value_for_reg): Likewise.
955 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
956 * simplify-rtx. c (simplify_unary_operation_1,
957 simplify_binary_operation_1, simplify_const_relational_operation):
958 Likewise.
959
960 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
961 instead of GET_MODE_BITSIZE where appropriate.
962 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
963 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
964 init_num_sign_bit_copies_in_rep): Likewise.
965 * cse.c (fold_rtx, cse_insn): Likewise.
966 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
967 * simplify-rtx.c (simplify_unary_operation_1,
968 simplify_const_unary_operation, simplify_binary_operation_1,
969 simplify_const_binary_operation, simplify_ternary_operation,
970 simplify_const_relational_operation, simplify_subreg): Likewise.
971 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
972 simplify_if_then_else, simplify_set, expand_compound_operation,
973 expand_field_assignment, make_extraction, if_then_else_cond,
974 make_compound_operation, force_to_mode, make_field_assignment,
975 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
976 extended_count, try_widen_shift_mode, simplify_shift_const_1,
977 simplify_comparison, record_promoted_value, simplify_compare_const,
978 record_dead_and_set_regs_1): Likewise.
979
980 Revert:
981 * simplify-rtx.c (simplify_const_binary_operation): Use the
982 shift_truncation_mask hook instead of performing modulo by width.
983 Compare against mode precision, not bitsize.
984 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
985 Use shift_truncation_mask instead of constructing the value manually.
986
987 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
988
989 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
990 declaration.
991 (rs6000_save_toc_in_prologue_p): Ditto.
992
993 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
994 up the static chain (r11) during indirect function calls.
995 (-msave-toc-indirect): New undocumented debug switch.
996
997 * config/rs6000/rs6000.c (struct machine_function): Add
998 save_toc_in_prologue field to note whether the prologue needs to
999 save the TOC value in the reserved stack location.
1000 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
1001 to save the TOC in the prologue, do so.
1002 (rs6000_trampoline_init): Don't allow creating AIX style
1003 trampolines if -mno-r11 is in effect.
1004 (rs6000_call_indirect_aix): New function to create AIX style
1005 indirect calls, adding support for -mno-r11 to suppress loading
1006 the static chain, and saving the TOC in the prologue instead of
1007 the call body.
1008 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
1009 TOC in the prologue.
1010
1011 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
1012 register numbers.
1013 (TOC_REGNUM): Ditto.
1014 (STATIC_CHAIN_REGNUM): Ditto.
1015 (ARG_POINTER_REGNUM): Ditto.
1016 (SFP_REGNO): Delete, unused.
1017 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
1018 function descriptor offsets.
1019 (TOC_SAVE_OFFSET_64BIT): Ditto.
1020 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
1021 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
1022 (AIX_FUNC_DESC_SC_32BIT): Ditto.
1023 (AIX_FUNC_DESC_SC_64BIT): Ditto.
1024 (ptrload): New mode attribute for the appropriate load of a pointer.
1025 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
1026 (call_indirect_aix64): Ditto.
1027 (call_value_indirect_aix32): Ditto.
1028 (call_value_indirect_aix64): Ditto.
1029 (call_indirect_nonlocal_aix32_internal): Ditto.
1030 (call_indirect_nonlocal_aix32): Ditto.
1031 (call_indirect_nonlocal_aix64_internal): Ditto.
1032 (call_indirect_nonlocal_aix64): Ditto.
1033 (call): Rewrite AIX indirect function calls. Add support for
1034 eliminating the static chain, and for moving the save of the TOC
1035 to the function prologue.
1036 (call_value): Ditto.
1037 (call_indirect_aix<ptrsize>): Ditto.
1038 (call_indirect_aix<ptrsize>_internal): Ditto.
1039 (call_indirect_aix<ptrsize>_internal2): Ditto.
1040 (call_indirect_aix<ptrsize>_nor11): Ditto.
1041 (call_value_indirect_aix<ptrsize>): Ditto.
1042 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1043 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1044 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1045 (call_nonlocal_aix32): Relocate in the rs6000.md file.
1046 (call_nonlocal_aix64): Ditto.
1047
1048 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
1049 -mno-r11 documentation.
1050
1051 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
1052
1053 PR other/49658
1054 * doc/extend.texi (Compound Literals): Fix typo.
1055
1056 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
1057
1058 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
1059
1060 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
1061
1062 * configure.ac (plugin-version.h): Generate
1063 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
1064 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
1065 macros.
1066
1067 * configure: Regenerate.
1068
1069 * doc/plugins.texi (Building GCC plugins): Mention
1070 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
1071
1072 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
1073
1074 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
1075 * combine.c (make_extraction, gen_lowpart_or_truncate,
1076 apply_distributive_law, simplify_comparison,
1077 reg_truncated_to_mode, record_truncated_value): Use it.
1078 * cse.c (notreg_cost): Likewise.
1079 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
1080 * expr.c (convert_move, convert_modes): Likewise.
1081 * optabs.c (expand_binop, expand_unop): Likewise.
1082 * postreload.c (move2add_last_label): Likewise.
1083 * regmove.c (optimize_reg_copy_3): Likewise.
1084 * rtlhooks.c (gen_lowpart_general): Likewise.
1085 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1086
1087 2011-07-06 Joseph Myers <joseph@codesourcery.com>
1088
1089 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
1090
1091 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
1092
1093 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
1094 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
1095 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
1096 (simplify_const_unary_operation, simplify_binary_operation_1,
1097 simplify_const_binary_operation, simplify_const_relational_operation):
1098 Use them. Use GET_MODE_MASK for masking and sign-extensions.
1099 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
1100 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
1101 simplify_shift_const_1, simplify_comparison): Likewise.
1102 * expr.c (convert_modes): Likewise.
1103 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
1104 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
1105 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
1106
1107 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
1108
1109 2011-07-06 Richard Guenther <rguenther@suse.de>
1110
1111 PR tree-optimization/49645
1112 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
1113 register variables.
1114 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
1115 in type qualification here ...
1116 (copy_reference_ops_from_ref): ... not here.
1117 (vn_reference_lookup_3): ... or here.
1118 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
1119 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
1120
1121 2011-07-06 Ian Lance Taylor <iant@google.com>
1122
1123 * doc/install.texi (Configuration): It's
1124 --enable-gnu-indirect-function, not --enable-indirect-function.
1125
1126 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
1127
1128 * simplify-rtx.c (simplify_const_binary_operation): Use the
1129 shift_truncation_mask hook instead of performing modulo by width.
1130 Compare against mode precision, not bitsize.
1131 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
1132 Use shift_truncation_mask instead of constructing the value manually.
1133
1134 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
1135
1136 PR middle-end/47383
1137 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
1138 address computation and convert to address_mode if needed.
1139
1140 2011-07-06 Richard Guenther <rguenther@suse.de>
1141
1142 * tree.c (build_common_tree_nodes_2): Merge with
1143 build_common_tree_nodes.
1144 * tree.h (build_common_tree_nodes): Adjust prototype.
1145 (build_common_tree_nodes_2): Remove.
1146 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
1147 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
1148
1149 2011-07-05 Jakub Jelinek <jakub@redhat.com>
1150
1151 PR tree-optimization/49618
1152 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
1153 t recurse on the decl.
1154 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
1155 return true if expr isn't known to be defined in current
1156 TU or some other LTO partition.
1157
1158 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1159
1160 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
1161 override CASE_VALUES_THRESHOLD.
1162
1163 * stmt.c (toplevel): Include params.h.
1164 (case_values_threshold): Use the --param case-values-threshold
1165 value if non-zero, otherwise use machine dependent value.
1166 (expand_case): Use case_values_threshold.
1167
1168 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
1169
1170 * doc/invoke.texi (--param case-values-threshold): Document.
1171
1172 2011-07-05 Richard Henderson <rth@redhat.com>
1173
1174 * dwarf2out.c (dwarf2out_cfi_label): Make static.
1175 (dwarf2out_flush_queued_reg_saves): Make static.
1176 (dwarf2out_reg_save): Remove.
1177 (dwarf2out_return_save): Remove.
1178 (dwarf2out_return_reg): Remove.
1179 (dwarf2out_reg_save_reg): Remove.
1180 (dwarf2out_def_cfa): Merge into ...
1181 (dwarf2out_frame_init): ... here.
1182 * dwarf2out.h, tree.h: Remove declarations as necessary.
1183
1184 2011-07-05 Richard Henderson <rth@redhat.com>
1185
1186 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
1187 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1188 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
1189 the alloc insn.
1190
1191 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
1192 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
1193 (process_epilogue): Don't call dwarf2out_def_cfa.
1194
1195 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
1196 indicate the return address save.
1197 (process_cfa_register): Likewise.
1198
1199 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
1200 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
1201
1202 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
1203 for ar.pfs save at alloc insn.
1204
1205 2011-07-05 Richard Henderson <rth@redhat.com>
1206
1207 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
1208 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1209 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
1210 stack pointer save.
1211 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
1212 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
1213 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
1214 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
1215
1216 2011-07-05 Richard Henderson <rth@redhat.com>
1217
1218 * config/vax/vax.md (define_c_enum unspecv): New. Define the
1219 VUNSPEC_* constants here instead of via define_constants.
1220 (VUNSPEC_PEM): New constant.
1221 (procedure_entry_mask): New insn.
1222 (prologue): New expander.
1223 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
1224 (vax_expand_prologue): Rename from vax_output_function_prologue;
1225 emit rtl instead of text.
1226 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1227 (print_operand): Add 'x' prefix.
1228
1229 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
1230
1231 PR middle-end/47715
1232 * calls.c (precompute_register_parameters): Promote the function
1233 argument before checking non-legitimate constant.
1234
1235 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
1236
1237 PR tree-optimization/47654
1238 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
1239 (lst_do_strip_mine_loop): Return an int.
1240 (lst_do_strip_mine): Same.
1241 (scop_do_strip_mine): Same.
1242 (scop_do_block): Loop blocking should strip-mine at least two loops.
1243 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
1244 (scop_do_interchange): Same.
1245 * graphite-poly.h (scop_do_interchange): Update declaration.
1246 (scop_do_strip_mine): Same.
1247
1248 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
1249
1250 * graphite-clast-to-gimple.c (precision_for_value): Removed.
1251 (precision_for_interval): Removed.
1252 (gcc_type_for_interval): Use mpz_sizeinbase.
1253
1254 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
1255
1256 * graphite-ppl.h (value_max): Correct computation of max.
1257
1258 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
1259
1260 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
1261
1262 2011-07-05 Richard Guenther <rguenther@suse.de>
1263
1264 * c-decl.c (c_init_decl_processing): Defer building common
1265 tree nodes to c_common_nodes_and_builtins.
1266
1267 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
1268
1269 PR tree-optimization/49580
1270 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
1271 the loop's number of iterations.
1272 * tree-parloops.c (transform_to_exit_first_loop): Add the
1273 handling of the loop's number of iterations before the call
1274 to gimple_duplicate_sese_tail.
1275 Insert the stmt caclculating the new rhs of the loop's
1276 condition stmt to the preheader instead of iters_bb.
1277
1278 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
1279
1280 PR rtl-optimization/47449
1281 * fwprop.c (forward_propagate_subreg): Don't propagate hard
1282 register nor zero/sign extended hard register.
1283
1284 2011-07-05 Richard Guenther <rguenther@suse.de>
1285
1286 PR tree-optimization/49518
1287 PR tree-optimization/49628
1288 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
1289 irrelevant and invariant data-references.
1290 (vect_analyze_data_ref_access): For invariant loads clear the
1291 group association.
1292
1293 2011-07-04 Jakub Jelinek <jakub@redhat.com>
1294
1295 PR rtl-optimization/49619
1296 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
1297 pass VOIDmode as op0_mode to recursive call, and return temp even
1298 when different from tor, just if it is not IOR of the original
1299 PLUS arguments.
1300
1301 PR rtl-optimization/49472
1302 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
1303 negating MULT, negate the second operand instead of first.
1304 (simplify_binary_operation_1) <case MULT>: If one operand is
1305 a NEG and the other is MULT, don't attempt to optimize by negation
1306 of the MULT operand if it only moves the NEG operation around.
1307
1308 PR debug/49602
1309 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
1310 get_current_def return value if it can't be trusted to be
1311 the current value of the variable in the current bb.
1312
1313 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
1314
1315 PR target/49600
1316 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
1317 general register to memory for !TARGET_INTER_UNIT_MOVES.
1318
1319 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
1320
1321 PR target/44643
1322 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
1323 instead of TREE_READONLY.
1324
1325 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
1326
1327 * doc/extend.texi (AVR Built-in Functions): Update documentation
1328 of __builtin_avr_fmul*.
1329 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
1330 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
1331 * config/avr/avr.md (fmul): Rename to fmul_insn.
1332 (fmuls): Rename to fmuls_insn.
1333 (fmulsu): Rename to fmulsu_insn.
1334 (fmul,fmuls,fmulsu): New expander.
1335 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
1336 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
1337 * config/avr/libgcc.S (__fmul): New function.
1338 (__fmuls): New function.
1339 (__fmulsu,__fmulsu_exit): New function.
1340
1341 2011-07-04 Richard Guenther <rguenther@suse.de>
1342
1343 PR tree-optimization/49615
1344 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
1345 basic-block index check.
1346
1347 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
1348
1349 * longlong.h (count_leading_zeros, count_trailing_zeros,
1350 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
1351 resp. 64.
1352
1353 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
1354
1355 PR tree-optimization/49610
1356 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
1357 a basic block.
1358
1359 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
1360 Olivier Hainque <hainque@adacore.com>
1361 Nicolas Setton <setton@adacore.com>
1362
1363 * tree.h (TYPE_ARTIFICIAL): New flag.
1364 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
1365 the DIE of the type if it is artificial.
1366 (gen_array_type_die): Likewise.
1367 (gen_enumeration_type_die): Likewise.
1368 (gen_struct_or_union_type_die): Likewise.
1369 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
1370 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
1371
1372 2011-07-01 Jakub Jelinek <jakub@redhat.com>
1373
1374 * tree-object-size.c (pass_through_call): Handle
1375 BUILT_IN_ASSUME_ALIGNED.
1376
1377 2011-07-01 Martin Jambor <mjambor@suse.cz>
1378
1379 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
1380
1381 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
1382
1383 PR middle-end/48016
1384 * explow.c (update_nonlocal_goto_save_area): Use proper mode
1385 for stack save area.
1386 * function.c (expand_function_start): Likewise.
1387
1388 2011-07-01 Richard Guenther <rguenther@suse.de>
1389
1390 PR middle-end/49596
1391 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
1392 may have unknown refs.
1393
1394 2011-07-01 Kai Tietz <ktietz@redhat.com>
1395
1396 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
1397
1398 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1399
1400 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
1401 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
1402 (Specific, mips-sgi-irix6): Likewise.
1403
1404 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1405
1406 PR libmudflap/49549
1407 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
1408
1409 2011-07-01 Jakub Jelinek <jakub@redhat.com>
1410
1411 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
1412 [idx]= and [idx1 ... idx2]= before initializers if needed for
1413 array initializers.
1414
1415 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
1416
1417 * config.gcc (score-*-elf): Remove score7.o.
1418 * config/score/t-score-elf: Likewise.
1419 * config/score/score.c: Merge score7 to score.c and
1420 remove forwarding functions.
1421 * config/score/score7.c: Deleted.
1422 * config/score/score7.h: Deleted.
1423
1424 2011-07-01 Richard Guenther <rguenther@suse.de>
1425
1426 PR tree-optimization/49603
1427 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
1428
1429 2011-06-30 Martin Jambor <mjambor@suse.cz>
1430
1431 * tree-sra.c (struct access): Rename total_scalarization to
1432 grp_total_scalarization
1433 (completely_scalarize_var): New function.
1434 (sort_and_splice_var_accesses): Set total_scalarization in the
1435 representative access.
1436 (analyze_access_subtree): Propagate total scalarization accross the
1437 tree, no holes in totally scalarized trees, simplify coverage
1438 computation.
1439 (analyze_all_variable_accesses): Call completely_scalarize_var instead
1440 of completely_scalarize_record.
1441
1442 2011-06-30 Richard Henderson <rth@redhat.com>
1443
1444 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
1445 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
1446 * config/i386/i386.c: Don't include dwarf2out.h.
1447 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
1448 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
1449 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
1450 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
1451 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
1452
1453 2011-06-30 Richard Henderson <rth@redhat.com>
1454
1455 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
1456 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1457 * final.c (final_scan_insn): Look for it, and invoke
1458 dwarf2out_frame_debug before the insn if found.
1459
1460 2011-06-30 Richard Henderson <rth@redhat.com>
1461
1462 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
1463 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
1464
1465 2011-06-30 Richard Henderson <rth@redhat.com>
1466
1467 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
1468 Define a vector of this type.
1469 (regs_saved_in_regs): Use a VEC.
1470 (num_regs_saved_in_regs): Remove.
1471 (compare_reg_or_pc): New.
1472 (record_reg_saved_in_reg): Split out from...
1473 (dwarf2out_flush_queued_reg_saves): ... here.
1474 (clobbers_queued_reg_save): Update for VEC.
1475 (reg_saved_in): Likewise.
1476 (dwarf2out_frame_debug_init): Likewise.
1477 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
1478 (dwarf2out_frame_debug_cfa_register): Likewise.
1479
1480 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
1481
1482 PR tree-optimization/49572
1483 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
1484 type of the RHS instead of that of the LHS for the expression type.
1485
1486 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
1487
1488 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
1489 unconditionally.
1490
1491 2011-06-30 Richard Guenther <rguenther@suse.de>
1492
1493 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
1494 * tree-ssa-structalias.c (create_variable_info_for): Do not
1495 add initial constraints for non-var-decls. Properly handle
1496 globals in other ltrans partitions.
1497 (intra_create_variable_infos): Manually create constraints for
1498 the fake no-alias parameter.
1499 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
1500 and assert there are no clones.
1501
1502 2011-06-30 Richard Guenther <rguenther@suse.de>
1503
1504 PR tree-optimization/46787
1505 * tree-data-ref.c (dr_address_invariant_p): Remove.
1506 (find_data_references_in_stmt): Invariant accesses are ok now.
1507 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
1508 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
1509 invariant loads.
1510
1511 2011-06-30 Martin Jambor <mjambor@suse.cz>
1512
1513 PR tree-optimization/49094
1514 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
1515 (build_accesses_from_assign): Use it.
1516
1517 2011-06-30 Jakub Jelinek <jakub@redhat.com>
1518
1519 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
1520 handling of BUILT_IN_ASSUME_ALIGNED.
1521
1522 PR debug/49364
1523 * dwarf2out.c (output_abbrev_section): Don't return early
1524 if abbrev_die_table_in_use is 1.
1525 (dwarf2out_finish): Instead don't call output_abbrev_section
1526 nor emit abbrev_section_label in that case.
1527
1528 2011-06-30 Nick Clifton <nickc@redhat.com>
1529
1530 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
1531 for the V850E.
1532
1533 2011-06-30 Jakub Jelinek <jakub@redhat.com>
1534
1535 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
1536 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
1537
1538 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
1539
1540 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1541 both pattern and original statements if necessary.
1542 (vect_transform_loop): Likewise.
1543 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
1544 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
1545 Mark the pattern statement only if the original statement doesn't
1546 have its own uses.
1547 (process_use): Call vect_mark_relevant with additional parameter.
1548 (vect_mark_stmts_to_be_vectorized): Likewise.
1549 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
1550 (vect_analyze_stmt): Handle both pattern and original statements
1551 if necessary.
1552 (vect_transform_stmt): Don't store vectorized pattern statement
1553 in the original statement.
1554 (vect_is_simple_use_1): Use related pattern statement only if the
1555 original statement is irrelevant.
1556 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1557
1558 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
1559
1560 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
1561 option.
1562 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
1563 entry.
1564 (TARGET_AVX128_OPTIMAL): New definition.
1565 * config/i386/i386.c (initial_ix86_tune_features): Initialize
1566 X86_TUNE_AVX128_OPTIMAL entry.
1567 (ix86_option_override_internal): Enable the generation
1568 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
1569 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
1570 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
1571
1572 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
1573
1574 PR tree-optimization/49539
1575 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
1576 names by means of stmt_references_abnormal_ssa_name.
1577 (associate_plusminus): Call can_propagate_from before propagating
1578 from definition statements.
1579 (ssa_forward_propagate_and_combine): Remove superfluous newline.
1580
1581 2011-06-29 Richard Guenther <rguenther@suse.de>
1582
1583 * doc/invoke.texi: Document -scev dump modifier.
1584 * tree-pass.h (TDF_SCEV): New dump flag.
1585 * tree-dump.c (dump_option_value_in): Add scev.
1586 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
1587 * tree-scalar-evolution.c: Likewise.
1588
1589 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
1590
1591 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
1592 (cxa_type_match): Correct declaration.
1593 (__gnu_unwind_pr_common): Reconstruct additional indirection
1594 when __cxa_type_match returns succeeded_with_ptr_to_base.
1595
1596 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1597
1598 PR rtl-optimization/49114
1599 * reload.c (struct replacement): Remove SUBREG_LOC member.
1600 (push_reload): Do not set it.
1601 (push_replacement): Likewise.
1602 (subst_reload): Remove dead code.
1603 (copy_replacements): Remove assertion.
1604 (copy_replacements_1): Do not handle SUBREG_LOC.
1605 (move_replacements): Likewise.
1606 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
1607 Detect subregs via recursive descent instead of via SUBREG_LOC.
1608
1609 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
1610
1611 * config/avr/avr.c (avr_encode_section_info): Dispatch to
1612 default_encode_section_info.
1613
1614 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
1615
1616 PR tree-optimization/49545
1617 * builtins.c (get_object_alignment_1): Update function comment.
1618 Do not use DECL_ALIGN for functions, but test
1619 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
1620 * fold-const.c (get_pointer_modulus_and_residue): Don't check
1621 for functions here.
1622 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
1623
1624 2011-06-29 Jakub Jelinek <jakub@redhat.com>
1625
1626 PR debug/49567
1627 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
1628 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
1629
1630 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
1631
1632 PR target/34734
1633 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
1634 about uninitialized data attributed 'progmem' from here...
1635 (avr_encode_section_info): ...to this new function.
1636 (TARGET_ENCODE_SECTION_INFO): New define.
1637 (avr_section_type_flags): For data in ".progmem.data", remove
1638 section flag SECTION_WRITE.
1639
1640 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
1641
1642 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
1643 _xmulhisi3_exit.
1644 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
1645 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
1646 (__umulhisi3): Ditto.
1647 * config/avr/avr.md (mulhisi3): New insn expender.
1648 (umulhisi3): New insn expender.
1649 (*mulhisi3_call): New insn.
1650 (*umulhisi3_call): New insn.
1651
1652 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1653
1654 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
1655
1656 2011-06-28 Richard Henderson <rth@redhat.com>
1657
1658 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
1659 all code and arguments that handled pushes. Update all callers.
1660
1661 2011-06-28 Richard Henderson <rth@redhat.com>
1662
1663 * config/arm/arm.c (arm_output_function_prologue): Don't call
1664 thumb1_output_function_prologue.
1665 (arm_expand_prologue): Avoid dead store.
1666 (number_of_first_bit_set): Use ctz_hwi.
1667 (thumb1_emit_multi_reg_push): New.
1668 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
1669 to emit the entire prologue as rtl.
1670 (thumb1_output_interwork): Split out from
1671 thumb1_output_function_prologue.
1672 (thumb1_output_function_prologue): Remove.
1673 (arm_attr_length_push_multi): Handle thumb1.
1674 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
1675 (prologue_thumb1_interwork): New.
1676 (*push_multi): Allow thumb1; use push_mult_memory_operand.
1677 * config/arm/predicates.md (push_mult_memory_operand): New.
1678
1679 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1680
1681 * config/sparc/sync.md (*stbar): Delete.
1682 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
1683
1684 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1685
1686 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
1687
1688 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1689
1690 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
1691 (TARGET_64BIT_DEFAULT): Define.
1692 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
1693 of tm_file.
1694 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
1695
1696 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1697
1698 * common.opt (in_lto_p): New Variable entry.
1699 * flags.h (in_lto_p): Move to common.opt.
1700 * gcc.c: Include params.h.
1701 (set_option_handlers): Also use common_handle_option and
1702 target_handle_option.
1703 (main): Call global_init_params, finish_params and init_options_struct.
1704 * opts.c (debug_type_names): Move from toplev.c.
1705 (print_filtered_help): Access quiet_flag through opts pointer.
1706 (common_handle_option): Return early in the driver for some options.
1707 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
1708 opts pointer.
1709 * toplev.c (in_lto_p): Move to common.opt.
1710 (debug_type_names): Move to opts.c.
1711 * Makefile.in (OBJS): Remove opts.o.
1712 (OBJS-libcommon-target): Add opts.o.
1713 (gcc.o): Update dependencies.
1714
1715 2011-06-28 Kai Tietz <ktietz@redhat.com>
1716
1717 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
1718
1719 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1720
1721 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
1722 with '=' constraint modifier.
1723 (*divdf3_vfp): Likewise.
1724 ("*mulsf3_vfp"): Likewise.
1725 ("*muldf3_vfp"): Likewise.
1726 ("*mulsf3negsf_vfp"): Likewise.
1727 ("*muldf3negdf_vfp"): Likewise.
1728
1729 2011-06-28 Nick Clifton <nickc@redhat.com>
1730
1731 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
1732 relaxation when performing an incremental link.
1733
1734 2011-06-28 Kai Tietz <ktietz@redhat.com>
1735
1736 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
1737 within BB from last to first.
1738
1739 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1740
1741 * genattr-common.c: New. Based on genattr.c.
1742 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
1743 (MOSTLYCLEANFILES): Add insn-attr-common.h.
1744 (opts.o): Update dependencies.
1745 (.PRECIOUS): Add insn-attr-common.h.
1746 (simple_rtl_generated_h): Add insn-attr-common.h.
1747 (build/genattr-common.o): New.
1748 (genprogrtl): Add attr-common.
1749 * genattr.c (main): Include insn-attr-common.h. Don't generate
1750 definitions of DELAY_SLOTS or INSN_SCHEDULING.
1751 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
1752
1753 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
1754
1755 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
1756 avr-*-* and avr-*-rtems* targets.
1757
1758 * config/avr/elf.h: New file.
1759 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
1760 (TARGET_ASM_SELECT_SECTION): Define.
1761 (INIT_SECTION_ASM_OP): Undefine.
1762 (FINI_SECTION_ASM_OP): Undefine.
1763 (READONLY_DATA_SECTION_ASM_OP): Undefine.
1764 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
1765 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
1766 * config/avr/avr.h:
1767 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
1768 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
1769 (MAX_OFILE_ALIGNMENT): Move to elf.h.
1770 (STRING_LIMIT): Move to elf.h.
1771 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
1772 (ASM_DECLARE_OBJECT_NAME): Remove.
1773 (ESCAPES): Remove.
1774 (ASM_OUTPUT_SKIP): Remove.
1775 (DWARF2_DEBUGGING_INFO): Remove.
1776 (OBJECT_FORMAT_ELF): Remove.
1777 (USER_LABEL_PREFIX): Remove.
1778 (ASM_OUTPUT_EXTERNAL): Remove.
1779 (ASM_OUTPUT_ASCII): Remove.
1780 (TYPE_ASM_OP): Remove.
1781 (SIZE_ASM_OP): Remove.
1782 (WEAK_ASM_OP): Remove.
1783 (STRING_ASM_OP): Remove.
1784 (SET_ASM_OP): Remove.
1785 (ASM_WEAKEN_LABEL): Remove.
1786 (TYPE_OPERAND_FMT): Remove.
1787 (ASM_DECLARE_FUNCTION_SIZE): Remove.
1788 (ASM_FINISH_DECLARE_OBJECT): Remove.
1789 (NO_DOLLAR_IN_LABEL): Remove.
1790 (ASM_GENERATE_INTERNAL_LABEL): Remove.
1791 (ASM_OUTPUT_CASE_LABEL): Remove.
1792 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
1793 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
1794 (gas_output_ascii): Remove.
1795 (gas_output_limited_string): Remove.
1796 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
1797 * config/avr/avr-protos.h
1798 (gas_output_ascii): Remove prototye.
1799 (gas_output_limited_string): Remove prototype.
1800
1801 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
1802
1803 PR target/48637
1804 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
1805 asm operands.
1806
1807 2011-06-27 Jan Hubicka <jh@suse.cz>
1808
1809 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
1810 node instead of references in node.
1811
1812 2011-06-27 Richard Henderson <rth@redhat.com>
1813
1814 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
1815 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
1816 inside ifdef.
1817
1818 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1819
1820 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
1821
1822 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
1823 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
1824 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
1825 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
1826 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
1827 (evaluate_stmt, execute_fold_all_builtins): Handle
1828 BUILT_IN_ASSUME_ALIGNED.
1829 * tree-ssa-dce.c (propagate_necessity): Likewise.
1830 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1831 call_may_clobber_ref_p_1): Likewise.
1832 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
1833 (expand_builtin_assume_aligned): New function.
1834 * doc/extend.texi (__builtin_assume_aligned): Document.
1835
1836 PR debug/49544
1837 * cselib.c (promote_debug_loc): If cselib_preserve_constants
1838 and l has two DEBUG_INSN owned locs instead of just one, adjust
1839 the second location's setting_insn too.
1840
1841 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1842
1843 PR libmudflap/38738
1844 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
1845
1846 2011-06-27 Nick Clifton <nickc@redhat.com>
1847
1848 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
1849 bit position of highest bit set into a count of the high zero bits.
1850
1851 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1852
1853 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
1854
1855 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1856
1857 PR lto/48492
1858 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
1859 to a NULL parent.
1860
1861 2011-06-27 Richard Guenther <rguenther@suse.de>
1862
1863 PR tree-optimization/49394
1864 * passes.c (execute_one_pass): Restore current_pass after
1865 applying IPA transforms.
1866
1867 2011-06-27 Kai Tietz <ktietz@redhat.com>
1868
1869 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
1870 out of type precision after operation.
1871 (find_bswap): Take for limit value the integer auto-promotion
1872 into account.
1873
1874 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1875
1876 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1877 forward scan as well.
1878
1879 2011-06-27 Tristan Gingold <gingold@adacore.com>
1880
1881 PR target/44241
1882 * config/vms/vms-protos.h: New file.
1883 * config/vms/vms-crtlmap.map: New file.
1884 * config/vms/vms.c: New file.
1885 * config/vms/make-crtlmap.awk: New file.
1886 * config/vms/vms-crtl.h: File removed.
1887 * config/vms/vms-crtl-64.h: File removed.
1888 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
1889 * config/alpha/vms64.h: Do not include vms-crtl-64.h
1890 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
1891 clear some builtins on VMS. Calls vms_patch_builtins.
1892 (avms_asm_output_external): Remove.
1893 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
1894 (struct crtl_name_spec): Remove
1895 (DO_CTRL_NAMES): Remove.
1896 * config/ia64/vms.h (struct crtl_name_spec): Remove
1897 (DO_CTRL_NAMES): Remove.
1898 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
1899 clear some builtins on VMS. Calls vms_patch_builtins.
1900 (ia64_asm_output_external): Remove DO_CRTL_NAME.
1901 * config/ia64/vms64.h: Do not include vms-crtl-64.h
1902 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
1903
1904 2011-06-27 Tristan Gingold <gingold@adacore.com>
1905
1906 * config/alpha/alpha.c (alpha_end_function): Always generate .end
1907 directive on VMS.
1908
1909 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1910
1911 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
1912 the function receives nonlocal gotos.
1913
1914 2011-06-27 Richard Guenther <rguenther@suse.de>
1915
1916 PR tree-optimization/49536
1917 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1918 For non-scalar inner types use a scalar type according to
1919 the scalar inner mode.
1920
1921 2011-06-27 Richard Guenther <rguenther@suse.de>
1922
1923 PR tree-optimization/49365
1924 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
1925
1926 2011-06-27 Richard Guenther <rguenther@suse.de>
1927
1928 PR tree-optimization/49169
1929 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
1930 the alignment of function decls.
1931
1932 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
1933
1934 PR target/47997
1935 * config/darwin.c (darwin_mergeable_string_section): Place string
1936 constants in '.cstring' rather than '.const' when CF/NSStrings are
1937 active.
1938
1939 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
1940
1941 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
1942 (emit_save_register_window): Likewise.
1943 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
1944 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
1945 Swap back %o7/%i7 in register naming.
1946
1947 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
1948
1949 PR driver/49371
1950 * config/darwin.c (darwin_override_options): Improve warning when
1951 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
1952 is given with fpie/fPIE.
1953 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
1954 * config/darwin9.h (PIE_SPEC): New.
1955
1956 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
1957
1958 * timevar.c (timevar_print): Increase width for display of timevar
1959 name.
1960
1961 2011-06-24 Jakub Jelinek <jakub@redhat.com>
1962
1963 PR c++/46400
1964 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
1965 instead of TYPE_CHAIN for chain_next for types.
1966
1967 2011-06-24 Richard Henderson <rth@redhat.com>
1968
1969 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
1970 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
1971 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
1972 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
1973 (sparc_flat_expand_prologue): Emit individual instructions
1974 instead of one of the above.
1975
1976 2011-06-24 Easwaran Raman <eraman@google.com>
1977
1978 PR rtl-optimization/49429
1979 PR target/49454
1980 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
1981 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
1982 used to copy y into x.
1983 * calls.c (initialize_argument_information): Mark
1984 an argument addressable if it is passed by invisible reference.
1985 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
1986 if it is passed by reference.
1987
1988 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 PR rtl-optimization/49504
1991 * rtlanal.c (nonzero_bits1): Properly handle addition or
1992 subtraction of a pointer in Pmode if pointers extend unsigned.
1993 (num_sign_bit_copies1): Likewise.
1994
1995 2011-06-24 Martin Jambor <mjambor@suse.cz>
1996
1997 PR tree-optimizations/49516
1998 * tree-sra.c (sra_modify_assign): Choose the safe path for
1999 aggregate copies if we also did scalar replacements.
2000
2001 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2002
2003 PR target/49335
2004 * config/arm/predicates.md (add_operator): New.
2005 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
2006
2007 2011-06-24 Andi Kleen <ak@linux.intel.com>
2008
2009 * tree-sra.c (type_internals_preclude_sra_p): Add msg
2010 parameter. Split up ifs and report reason in *msg.
2011 (reject): Add.
2012 (find_var_candiate): Add msg variable.
2013 Split up ifs and report reason to reject.
2014 (find_param_candidates): Add msg variable.
2015 Pass msg to type_internals_preclude_sra_p.
2016
2017 2011-06-23 Jeff Law <law@redhat.com>
2018
2019 PR middle-end/48770
2020 * reload.h (reload): Change to return a bool.
2021 * ira.c (ira): If requested by reload, run a fast DCE pass after
2022 reload has completed. Fix comment typo.
2023 * reload1.c (need_dce): New file scoped static.
2024 (reload): Set reload_completed here. Return whether or not a DCE
2025 pass after reload is needed.
2026 (delete_dead_insn): Set need_dce as needed.
2027
2028 PR middle-end/49465
2029 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
2030 to detect threading through joiner block. If there was already
2031 an edge to the new target, then do not change the PHI nodes.
2032
2033 2011-06-23 Jakub Jelinek <jakub@redhat.com>
2034
2035 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
2036 get_pointer_alignment to see if base isn't sufficiently aligned.
2037
2038 2011-06-23 Jan Hubicka <jh@suse.cz>
2039
2040 PR tree-optimize/49373
2041 * tree-pass.h (all_late_ipa_passes): Declare.
2042 * cgraphunit.c (init_lowered_empty_function): Fix properties.
2043 (cgraph_optimize): Execute late passes; remove unreachable funcions
2044 after materialization.
2045 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
2046 LTOing.
2047 * passes.c (all_late_ipa_passes): Declare.
2048 (dump_passes, register_pass): Handle late ipa passes.
2049 (init_optimization_passes): Move ipa_pta to late passes; schedule
2050 fixup_cfg at beggining of all_passes.
2051 (apply_ipa_transforms): New function.
2052 (execute_one_pass): When doing simple ipa pass, apply all transforms.
2053
2054 2011-06-23 Joseph Myers <joseph@codesourcery.com>
2055
2056 * params.c: Include common/common-target.h. Don't include tm.h.
2057 (lang_independent_params): Move from toplev.c.
2058 (global_init_params): New.
2059 * params.h (global_init_params): Declare.
2060 * target.def (default_params): Move to common-target.def.
2061 * toplev.c (lang_independent_options): Remove.
2062 (lang_independent_params): Move to params.c.
2063 (general_init): Use global_init_params.
2064 * common/common-target.def (option_default_params): Move from
2065 target.def.
2066 * common/config/ia64/ia64-common.c: Include params.h.
2067 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
2068 from ia64.c.
2069 * common/config/rs6000/rs6000-common.c: Include params.h.
2070 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
2071 from rs6000.c.
2072 * common/config/sh/sh-common.c: Include params.h.
2073 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
2074 from sh.c.
2075 * common/config/spu/spu-common.c: Include params.h.
2076 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
2077 from spu.c.
2078 * config/ia64/ia64.c (ia64_option_default_params,
2079 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
2080 * config/rs6000/rs6000.c (rs6000_option_default_params,
2081 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
2082 * config/sh/sh.c (sh_option_default_params,
2083 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
2084 * config/spu/spu.c (spu_option_default_params,
2085 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
2086 * Makefile.in (OBJS): Remove params.o.
2087 (OBJS-libcommon-target): Add params.o.
2088 (params.o, $(common_out_object_file)): Update dependencies.
2089 * doc/tm.texi: Regenerate.
2090
2091 2011-06-23 Alan Modra <amodra@gmail.com>
2092
2093 PR bootstrap/49383
2094 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
2095 invocation for 2011-06-09 changes.
2096
2097 2011-06-22 Jakub Jelinek <jakub@redhat.com>
2098
2099 PR libgomp/49490
2100 * omp-low.c (expand_omp_for_static_nochunk): Only
2101 use n ceil/ nthreads size for the first n % nthreads threads in the
2102 team instead of all threads except for the last few ones which
2103 get less work or none at all.
2104
2105 PR debug/49496
2106 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
2107 uses.
2108
2109 2011-06-22 Richard Guenther <rguenther@suse.de>
2110
2111 PR tree-optimization/49493
2112 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
2113 Refer to the alias target of variables.
2114 (associate_varinfo_to_alias_1): Remove.
2115 (ipa_pta_execute): Do not associate aliases with anything.
2116 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
2117 (cgraph_function_node): Likewise.
2118 (cgraph_function_or_thunk_node): Likewise.
2119 (varpool_variable_node): Likewise.
2120
2121 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
2122
2123 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
2124 * config.gcc (arm*-*-linux*): Default to gnu tls.
2125 (arm*-*-*): Add --with-tls option.
2126 (all_defaults): Add 'tls'.
2127
2128 2011-06-22 Richard Henderson <rth@redhat.com>
2129
2130 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
2131 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2132 (dwarf2out_frame_debug_cfa_window_save): Rename from
2133 dwarf2out_window_save; make static.
2134 * tree.h (dwarf2out_window_save): Don't declare.
2135
2136 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
2137 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2138 (emit_save_register_window): Rename from gen_save_register_window;
2139 emit the insn and add REG_CFA_* notes.
2140 (sparc_expand_prologue): Update to match.
2141 * config/sparc/sparc.md (save_register_window_1): Simplify from
2142 save_register_window<P:mode>.
2143
2144 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
2145
2146 PR target/49497
2147 * config/i386/i386.md (*lea_general_2): Always allow SImode.
2148 (*lea_general_2_zext): Likewise.
2149 (imul to lea peepholes): Use const359_operand and check
2150 TARGET_PARTIAL_REG_STALL.
2151
2152 * config/i386/predicates.md (const359_operand): New.
2153
2154 2011-06-22 Michael Matz <matz@suse.de>
2155
2156 * cgraphunit.c (assemble_thunk): Use correct return type.
2157
2158 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
2159 Dmitry Melnik <dm@ispras.ru>
2160
2161 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
2162 (neon_output_shift_immediate): Ditto.
2163 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
2164 prototype.
2165 (neon_output_shift_immediate): Ditto.
2166 * config/arm/neon.md (vashl<mode>3): Modified constraint.
2167 (vashr<mode>3_imm): New insn pattern.
2168 (vlshr<mode>3_imm): Ditto.
2169 (vashr<mode>3): Modified constraint.
2170 (vlshr<mode>3): Ditto.
2171 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
2172 predicate.
2173 (imm_for_neon_rshift_operand): Ditto.
2174 (imm_lshift_or_reg_neon): Ditto.
2175 (imm_rshift_or_reg_neon): Ditto.
2176
2177 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
2178
2179 2011-06-22 Jakub Jelinek <jakub@redhat.com>
2180
2181 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
2182 builtin calls even if likelyvalue is not CONSTANT.
2183 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
2184 Return get_value_for_expr of first operand
2185 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
2186 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
2187 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
2188 their non-checking counterparts.
2189 (call_may_clobber_ref_p_1): Likewise.
2190 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
2191 like their non-checking counterparts.
2192 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2193 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
2194 like their non-checking counterparts.
2195 (find_func_clobbers): Likewise.
2196 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
2197 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
2198
2199 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
2200 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
2201 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
2202 of base type reference as argument.
2203 (resolve_addr_in_expr): Likewise. Fix keep computation.
2204 (convert_descriptor_to_signed): Renamed to...
2205 (convert_descriptor_to_mode): ... this. For wider types convert to
2206 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
2207 (typed_binop): New function.
2208 (scompare_loc_descriptor, ucompare_loc_descriptor,
2209 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
2210 default to unsigned type instead of signed.
2211
2212 PR debug/47858
2213 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
2214 (gimple_build_debug_source_bind_stat): New prototype.
2215 (gimple_build_debug_source_bind): Define.
2216 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
2217 gimple_debug_source_bind_get_value,
2218 gimple_debug_source_bind_get_value_ptr,
2219 gimple_debug_source_bind_set_var,
2220 gimple_debug_source_bind_set_value): New inlines.
2221 * gimple.c (gimple_build_debug_source_bind_stat): New function.
2222 * gimple-pretty-print.c (dump_gimple_debug): Handle
2223 GIMPLE_DEBUG_SOURCE_BIND.
2224 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
2225 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2226 * tree-parloops.c (eliminate_local_variables,
2227 separate_decls_in_region): Likewise.
2228 (separate_decls_in_region_debug): Renamed from
2229 separate_decls_in_region_debug_bind. Handle
2230 gimple_debug_source_bind_p.
2231 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
2232 prototypes.
2233 (DECL_HAS_DEBUG_ARGS_P): Define.
2234 (struct tree_function_decl): Add has_debug_args_flag field.
2235 * tree.c (debug_args_for_decl): New variable.
2236 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
2237 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
2238 (rewrite_debug_stmt_uses): New function.
2239 (rewrite_stmt): Use it to rewrite debug stmt uses.
2240 * rtl.def (DEBUG_PARAMETER_REF): New.
2241 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
2242 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
2243 DEBUG_PARAMETER_REF.
2244 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
2245 * print-rtl.c (print_rtx): Likewise.
2246 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
2247 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
2248 debug stmts in the first bb.
2249 * tree-inline.c (remap_ssa_name): If remapping default def
2250 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
2251 a source bind debug stmt.
2252 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
2253 (maybe_move_debug_stmts_to_successors): Likewise.
2254 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
2255 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
2256 debug args vector from old_decl to new_decl.
2257 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
2258 or modified parameters, add debug bind stmts before call
2259 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
2260 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
2261 on DECL_DEBUG_EXPRs from debug args vector.
2262 (expand_debug_source_expr): New function.
2263 (expand_debug_locations): Use it for source bind insns.
2264 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
2265 * var-tracking.c (prepare_call_arguments): Add debug args
2266 to call_arguments if any.
2267 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
2268 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
2269 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
2270 (get_ref_die_offset, parameter_ref_descriptor): New functions.
2271 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
2272 (gen_subprogram_die): Handle parameters identified by
2273 DEBUG_PARAMETER_REF.
2274
2275 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
2276
2277 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
2278 * doc/install.texi (Configuration): Document --with-tls.
2279 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
2280 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
2281 (arm_tls_descseq_addr): New.
2282 (legitimize_tls_address): Add tlsdesc support.
2283 (arm_cannot_copy_insn_p): Check for tlscall.
2284 (arm_emit_tls_decoration): Likewise.
2285 * config/arm/arm.h (TARGET_GNU2_TLS): New.
2286 (OPTION_DEFAULT_SPECS): Add with-tls support.
2287 * config/arm/arm.md (R1_REGNUM): Define.
2288 (tlscall): New.
2289 * config/arm/arm.opt (tls_type): New enumeration type and values.
2290 (mtls-dialect): New switch.
2291 * config/arm/arm-opts.h (enum tls_type): New.
2292
2293 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
2294
2295 * attribs.c (register_attribute): Added assert to check that all
2296 attribute specs are registered with a name that is not empty and
2297 does not start with '_'.
2298 (decl_attributes): Avoid the lookup of the "naked" attribute spec
2299 if the function has no attributes.
2300 * tree.c (is_attribute_with_length_p): Removed.
2301 (is_attribute_p): Removed.
2302 (private_is_attribute_p): New.
2303 (private_lookup_attribute): New.
2304 (lookup_attribute): Removed.
2305 (lookup_ident_attribute): New.
2306 (remove_attribute): Require the first argument to be in the form
2307 'text', not '__text__'. Updated asserts.
2308 (merge_attributes): Use lookup_ident_attributes instead of
2309 lookup_attribute.
2310 (merge_dllimport_decl_attributes): Use remove_attribute.
2311 (attribute_list_contained): Likewise.
2312 (attribute_list_equal): Immediately return 1 if the arguments are
2313 identical pointers.
2314 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
2315 'int'. Require the first argument to be in the form 'text', not
2316 '__text__'. Require the second argument to be an identifier.
2317 (lookup_attribute): Made inline. Require the first argument to be
2318 in the form 'text', not '__text__'.
2319 (private_is_attribute_p, private_lookup_attribute): New.
2320 Updated comments.
2321
2322 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
2323
2324 * builtins.c: Add sync_ or SYNC__ to builtin names.
2325 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
2326 * omp-low.c: Add sync_ or SYNC__ to builtin names.
2327
2328 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
2329
2330 PR target/33049
2331 * config/avr/avr.md (extzv): New expander.
2332 (*extzv): New insn.
2333 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
2334 * config/avr/constraints.md (C04): New constraint.
2335 * doc/md.texi (Machine Constraints): Document it.
2336
2337 2011-06-21 Jakub Jelinek <jakub@redhat.com>
2338
2339 PR middle-end/49489
2340 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
2341 unsignedp argument instead of 1 for clrsb_optab.
2342 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
2343 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
2344 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
2345 * optabs.c (widen_leading): Call widen_operand and expand_unop
2346 with 0 as unsignedp argument instead of 1 for clrsb_optab.
2347 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
2348
2349 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
2350
2351 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
2352
2353 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
2354
2355 * gensupport.c (add_define_attr): New static function.
2356 (is_predicable): Allow multi-alternative lists for the "predicable"
2357 attribute.
2358 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
2359 (process_one_cond_exec): Call alter_attrs_for_insn.
2360 * doc/md.texi (Defining Attributes): Mention some standard names.
2361 (Conditional Execution): Update documentation for "predicable".
2362
2363 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
2364 __builtin_clrsbll): Document.
2365 * doc/rtl.texi (clrsb): New entry.
2366 * optabs.c (widen_leading): Renamed from widen_clz. New argument
2367 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
2368 (expand_unop): Handle clrsb_optab.
2369 (init_optabs): Initialize it.
2370 * optabs.h (enum optab_index): New entry OTI_clrsb.
2371 (clrsb_optab): Define.
2372 * genopinit.c (optabs): Add an entry for it.
2373 * builtins.c (expand_builtin): Handle clrsb builtin functions.
2374 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
2375 BUILT_IN_CLRSBLL): New.
2376 * rtl.def (CLRSB): New code.
2377 * dwarf2out.c (mem_loc_descriptor): Handle it.
2378 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2379 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
2380 and popcount.
2381 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
2382 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
2383 (__ctzDI2): Move declaration.
2384 * config/bfin/bfin.md (clrsbsi2): New expander.
2385 (signbitssi2): Use the CLRSB rtx.
2386 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
2387 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
2388
2389 2011-06-21 Richard Guenther <rguenther@suse.de>
2390
2391 * ipa-inline-transform.c (inline_transform): Fix previous change.
2392
2393 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
2394
2395 PR tree-optimization/49478
2396 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
2397 with constant operand.
2398
2399 2011-06-21 Richard Guenther <rguenther@suse.de>
2400
2401 * ipa-inline-transform.c (inline_transform): Fix typo.
2402
2403 2011-06-21 Richard Guenther <rguenther@suse.de>
2404
2405 PR tree-optimization/49483
2406 * tree-vect-stmts.c (vectorizable_assignment): Also handle
2407 VIEW_CONVERT_EXPR conversions.
2408
2409 2011-06-21 Joseph Myers <joseph@codesourcery.com>
2410
2411 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
2412 * config/avr/avr-tables.opt: New file (generated).
2413 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
2414 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
2415 avr-mcus.def.
2416 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
2417 (avr_option_override): Don't process -mmcu= argument here. Set
2418 avr_current_device using avr_mcu_index.
2419 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
2420 * config/avr/avr.opt (mmcu=): Use Enum.
2421 * config/avr/t-avr (avr-devices.o): Update dependencies.
2422 ($(srcdir)/config/avr/avr-tables.opt): New.
2423 * target.def (help): Remove.
2424 * doc/tm.texi.in (TARGET_HELP): Remove.
2425 * doc/tm.texi: Regenerate.
2426 * opts.c: Don't include target.h.
2427 (common_handle_option): Don't call targetm.help.
2428 * system.h (TARGET_HELP): Poison.
2429 * Makefile.in (opts.o): Update dependencies.
2430
2431 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2432
2433 * config/usegld.h: New file.
2434 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
2435 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
2436 (LIB_SPEC): Likewise. Search /lib.
2437 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
2438 (RDYNAMIC_SPEC): Handle GNU ld.
2439 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
2440 Define.
2441 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
2442 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
2443 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
2444 (STACK_CHECK_STATIC_BUILTIN): Define.
2445 * config/sol2.opt (compat-bsd): Remove.
2446 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
2447 * config/sol2-bi.h: New file.
2448 * config/sol2-gld.h: Remove.
2449 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
2450 (NO_DBX_BNSYM_ENSYM): Remove.
2451 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
2452 (STACK_CHECK_STATIC_BUILTIN): Remove.
2453 Test USE_GLD instead of TARGET_GNU_LD.
2454 * config/i386/sol2-10.h: Rename to ...
2455 * config/i386/sol2-bi.h .. this.
2456 (SUBTARGET_EXTRA_SPECS): Redefine.
2457 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
2458 (MULTILIB_DEFAULTS): Remove.
2459 (DEFAULT_ARCH32_P): Define.
2460 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
2461 (ARCH64_SUBDIR): Define.
2462 Test USE_GLD instead of TARGET_GNU_LD.
2463 (I386_EMULATION): Rename to ...
2464 (ARCH32_EMULATION): ... this.
2465 (X86_64_EMULATION): Rename to ...
2466 (ARCH64_EMULATION): ... this.
2467 (TARGET_LD_EMULATION): Remove.
2468 (LINK_ARCH_SPEC): Remove.
2469 * config/i386/sol2-gas.h: Remove.
2470 * config/i386/t-sol2-10: Rename to ...
2471 * config/i386/t-sol2-64: ... this.
2472 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
2473 (AS_SPARC64_FLAG): Define.
2474 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
2475 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
2476 depending on TARGET_CPU_DEFAULT.
2477 (CPP_CPU_SPEC): Redefine.
2478 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
2479 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
2480 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
2481 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
2482 ASM_ARCH_DEFAULT_SPEC): Redefine.
2483 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
2484 LINK_ARCH_DEFAULT_SPEC.
2485 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
2486 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
2487 (ARCH64_SUBDIR): Define.
2488 (LINK_ARCH64_SPEC): Redefine.
2489 (CC1_SPEC): Redefine.
2490 (OPTION_DEFAULT_SPECS): Redefine.
2491 (MULTILIB_DEFAULTS): Define.
2492 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
2493 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
2494 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
2495 (NO_DBX_BNSYM_ENSYM): Remove.
2496 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
2497 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
2498 (TARGET_ASM_NAMED_SECTION): Likewise.
2499 (STACK_CHECK_STATIC_BUILTIN): Remove.
2500 * config/sparc/sol2-bi.h: Remove.
2501 * config/sparc/sol2-gas-bi.h: Remove.
2502 * config/sparc/sol2-gas.h: Remove.
2503 * config/sparc/sol2-gld-bi.h: Remove.
2504 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
2505 common parts ...
2506 (*-*-solaris2*): ... here.
2507
2508 2011-06-21 Christian Bruel <christian.bruel@st.com>
2509
2510 PR other/43564
2511 * ipa-inline.c (can_inline_edge_p): Check
2512 !DECL_DISREGARD_INLINE_LIMITS.
2513
2514 2011-06-21 Christian Bruel <christian.bruel@st.com>
2515
2516 PR middle-end/49139
2517 * cgraphunit.c (process_function_and_variable_attributes): warn when
2518 always_inline functions that are not inline.
2519 * ipa-inline-transform.c (inline_transform): Always call
2520 optimize_inline.
2521 * tree-inline.c (tree_inlinable_function_p): Use error instead
2522 of sorry.
2523 (expand_call_inline): Likewise.
2524
2525 2011-06-21 Jakub Jelinek <jakub@redhat.com>
2526
2527 * Makefile.in (dg_target_exps): Set.
2528 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
2529 instead of 7, try to divide it more evenly.
2530
2531 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
2532
2533 PR target/49089
2534 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
2535 (avx256_split_unaligned_store): New definition.
2536 (ix86_option_override_internal): Enable avx256 unaligned load/store
2537 splitting only when avx256_split_unaligned_load/store is set.
2538
2539 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
2540
2541 * regrename.c (scan_rtx_reg): Handle the case where we write to an
2542 open chain in a smaller mode without failing the entire block.
2543
2544 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
2545
2546 PR middle-end/47725
2547 * combine.c (cant_combine_insn_p): Don't check zero/sign
2548 extended hard registers.
2549
2550 2011-06-21 Alan Modra <amodra@gmail.com>
2551
2552 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
2553 CONST high part large-toc address.
2554 (rs6000_tls_referenced_p): Make static.
2555 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
2556
2557 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
2558
2559 PR middle-end/47725
2560 * combine.c (cant_combine_insn_p): Check zero/sign extended
2561 hard registers.
2562
2563 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2564
2565 PR target/49385
2566 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
2567 one of the operands is a register.
2568
2569 2011-06-20 Kai Tietz <ktietz@redhat.com>
2570
2571 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
2572 operations in combination with binary and.
2573
2574 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
2575
2576 * regrename.c (do_replace): Don't update notes.
2577
2578 2011-06-20 Alan Modra <amodra@gmail.com>
2579
2580 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
2581 of toc-relative address in CONST.
2582 (rs6000_delegitimize_address): Recognize changed address.
2583 (rs6000_legitimize_reload_address): Likewise.
2584 (rs6000_emit_move): Don't force these constants to memory.
2585 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
2586 toc-relative address in CONST.
2587 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
2588 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
2589
2590 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
2591
2592 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
2593 (count_trailing_zeros): Likewise.
2594
2595 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
2596
2597 PR other/49325
2598 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
2599 .init_array can be used with .ctors on targets.
2600 * configure: Regenerated.
2601
2602 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
2603
2604 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
2605 if the element type is volatile.
2606
2607 2011-06-18 Jan Hubicka <jh@suse.cz>
2608
2609 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
2610 extra name aliases.
2611 (lto_symtab_resolve_can_prevail_p): Likewise.
2612 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
2613 * cgraphbuild.c (record_reference): Remove extra body alias code.
2614 (mark_load): Likewise.
2615 (mark_store): Likewise.
2616 * cgraph.h (varpool_node): Remove extra_name filed;
2617 add alias_of and extraname_alias.
2618 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
2619 (varpool_alias_aliased_node): New inline function.
2620 (varpool_variable_node): New function.
2621 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
2622 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
2623 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
2624 (input_varpool_node): Likewise.
2625 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
2626 (varpool_externally_visible_p): Remove extra body alias code.
2627 (function_and_variable_visibility): Likewise.
2628 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
2629 (ipa_pta_execute): Use it.
2630 * varpool.c (varpool_remove_node): Remove extra name alias code.
2631 (varpool_mark_needed_node): Likewise.
2632 (varpool_analyze_pending_decls): Analyze aliases.
2633 (assemble_aliases): New functoin.
2634 (varpool_assemble_decl): Use it.
2635 (varpool_create_variable_alias): New function.
2636 (varpool_extra_name_alias): Rewrite.
2637 (varpool_for_node_and_aliases): New function.
2638
2639 2011-06-18 Jakub Jelinek <jakub@redhat.com>
2640
2641 PR target/49411
2642 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
2643 last_arg_constant and last argument doesn't match its predicate,
2644 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
2645 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
2646 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
2647 spelling of error message.
2648 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
2649 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
2650 const_0_to_255_operand instead of const_int_operand.
2651
2652 Revert:
2653 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2654
2655 * config/i386/sse.md (blendbits): Remove mode attribute.
2656 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2657 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2658 Check integer value of operand 3 in insn constraint.
2659
2660 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
2661
2662 PR rtl-optimization/48542
2663 * reload.c (find_equiv_reg): Stop looking when finding a
2664 setjmp-type call.
2665 * reload1.c (reload_as_needed): Invalidate all reload
2666 registers when crossing a setjmp-type call.
2667
2668 2011-06-16 Jeff Law <law@redhat.com>
2669
2670 * tree-ssa-threadupdate.c (struct redirection_data): New field
2671 intermediate_edge.
2672 (THREAD_TARGET2): Define.
2673 (redirection_data_eq): Also check that the intermediate edge is equal.
2674 (lookup_redirection_data): Drop useless argument. Extract the
2675 outgoing_edge and intermediate edge from E. Callers updated.
2676 (copy_phi_args, update_destination_phis): New functions.
2677 (fix_duplicate_block_edges): Likewise.
2678 (create_edge_and_update_destination_phis): Duplicate all the edges
2679 hung off e->aux. Use copy_phi_args.
2680 (create_duplicates): Use fix_duplicate_block_edges.
2681 (fixup_template_block): Likewise.
2682 (redirect_edges): If necessary, redirect the joiner block's incoming
2683 edge to the duplicate of the joiner block.
2684 (thread_block): Don't muck up loops when threading through a joiner
2685 block.
2686 (thread_through_loop_header): Handle threading through a joiner block.
2687 (mark_threaded_blocks, register_jump_thread): Likewise.
2688 * tree-flow.h (register_jump_thread): Add new argument. Callers
2689 updated.
2690 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
2691 (thread_across_edge): Handle threading through a joiner block.
2692
2693 2011-06-16 Martin Jambor <mjambor@suse.cz>
2694
2695 PR tree-optimization/49343
2696 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
2697 calculate offset, provide 2nd operand for the new COMPONENT_REF.
2698
2699 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
2700
2701 * config/darwin-protos.h (machopic_select_rtx_section): Move to
2702 inside RTX_CODE ifdef.
2703
2704 2011-06-16 Tom de Vries <tom@codesourcery.com>
2705
2706 PR target/45098
2707 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
2708 Disallow NULL pointer for pointer arithmetic.
2709
2710 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2711
2712 PR target/49398
2713 Revert.
2714 2011-06-10 Wei Guozhi <carrot@google.com>
2715
2716 PR target/45335
2717 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2718 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2719 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2720 related peephole2.
2721 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2722 related peephole2.
2723 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2724 (arm_legitimate_ldrd_p): New prototype.
2725 (arm_output_ldrd): New prototype.
2726 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2727 (arm_legitimate_ldrd_p): New function.
2728 (arm_output_ldrd): New function.
2729
2730 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2731
2732 PR middle-end/46500
2733 * doc/tm.texi.in: Update Copyright date.
2734 * doc/tm.texi: Regenerate.
2735 * targhooks.c (default_setup_incoming_varargs): Replace
2736 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2737 (default_pretend_outgoing_varargs_named): Likewise.
2738 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2739 (hook_callee_copies_named): Likewise.
2740 (default_function_arg_advance): Likewise.
2741 (default_function_arg): Likewise.
2742 (default_function_incoming_arg): Likewise.
2743 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2744 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2745 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2746 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2747 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2748 * targhooks.h (default_setup_incoming_varargs): Likewise.
2749 (default_pretend_outgoing_varargs_named): Likewise.
2750 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2751 (hook_callee_copies_named): Likewise.
2752 (default_function_arg_advance): Likewise.
2753 (default_function_arg): Likewise.
2754 (default_function_incoming_arg): Likewise.
2755 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2756 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2757 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2758 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2759 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2760 * target.def (pass_by_reference): Likewise.
2761 (setup_incoming_varargs, strict_argument_naming): Likewise.
2762 (pretend_outgoing_varargs_named, callee_copies): Likewise.
2763 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
2764 (function_incoming_arg): Likewise.
2765 * target.h: Don't include "tm.h" .
2766 (cumulative_args_t): New typedef.
2767 [GCC_TM_H] (get_cumulative_args): New static inline function.
2768 [GCC_TM_H] (pack_cumulative_args): Likewise.
2769 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
2770 argument type with cumulative_args_t.
2771 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
2772 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
2773 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
2774 (frv_arg_partial_bytes, frv_function_arg): Likewise.
2775 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
2776 (frv_function_arg_1): Likewise.
2777 * config/s390/s390.c (s390_pass_by_reference): Likewise.
2778 (s390_function_arg_advance, s390_function_arg): Likewise.
2779 * config/m32c/m32c.c (m32c_function_arg): Likewise.
2780 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
2781 (m32c_strict_argument_naming): Likewise.
2782 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
2783 (spu_function_arg_advance): Likewise.
2784 (spu_setup_incoming_varargs): Likewise. Make static.
2785 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
2786 Remove prototype.
2787 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
2788 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2789 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
2790 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
2791 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
2792 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
2793 (mep_pass_by_reference, mep_function_arg): Likewise.
2794 (mep_function_arg_advance): Likewise.
2795 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2796 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
2797 (m32r_function_arg, m32r_function_arg_advance): Likewise.
2798 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
2799 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
2800 (ix86_function_arg, ix86_pass_by_reference): Likewise.
2801 (ix86_setup_incoming_varargs): Likewise.
2802 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
2803 (sh_strict_argument_naming): Likewise.
2804 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
2805 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
2806 (sh_function_arg_advance, sh_function_arg): Likewise.
2807 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
2808 (pdp11_function_arg_advance): Likewise.
2809 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
2810 Likewise.
2811 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
2812 * config/avr/avr.c (avr_function_arg): Likewise.
2813 (avr_function_arg_advance): Likewise.
2814 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
2815 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
2816 (xtensa_function_arg_1): Likewise.
2817 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
2818 Likewise.
2819 (xstormy16_function_arg): Likewise.
2820 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
2821 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
2822 (fr30_function_arg_advance): Likewise.
2823 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2824 (lm32_function_arg, lm32_function_arg_advance): Likewise.
2825 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
2826 (moxie_function_arg, moxie_function_arg_advance): Likewise.
2827 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
2828 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
2829 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
2830 (cris_function_arg, cris_function_incoming_arg): Likewise.
2831 (cris_function_arg_advance, cris_function_arg_1): Likewise.
2832 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
2833 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
2834 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
2835 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
2836 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
2837 (mn10300_arg_partial_bytes): Likewise.
2838 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
2839 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
2840 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
2841 (ia64_function_arg_1): Likewise.
2842 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
2843 (m68k_function_arg): Likewise.
2844 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
2845 (rs6000_function_arg, setup_incoming_varargs): Likewise.
2846 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
2847 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
2848 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
2849 (picochip_arg_advance): Likewise.
2850 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
2851 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
2852 (mcore_function_arg_advance): Likewise.
2853 * config/score/score.c (score_pass_by_reference): Likewise.
2854 (score_function_arg_advance): Likewise.
2855 (score_arg_partial_bytes): Likewise. Make static.
2856 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
2857 * config/arm/arm.c (arm_arg_partial_bytes): Replace
2858 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2859 (arm_function_arg, arm_function_arg_advance): Likewise.
2860 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
2861 * config/pa/pa.c (pa_pass_by_reference): Likewise.
2862 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
2863 (pa_function_arg): Likewise.
2864 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
2865 (mips_function_arg, mips_function_arg_advance): Likewise.
2866 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
2867 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
2868 * config/vax/vax.c (vax_function_arg): Likewise.
2869 (vax_function_arg_advance): Likewise.
2870 * config/h8300/h8300.c (h8300_function_arg): Likewise.
2871 (h8300_function_arg_advance): Likewise.
2872 * config/v850/v850.c (v850_pass_by_reference): Likewise.
2873 (v850_strict_argument_naming, v850_function_arg): Likewise.
2874 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
2875 (v850_setup_incoming_varargs): Likewise.
2876 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
2877 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
2878 (mmix_function_arg, mmix_pass_by_reference): Likewise.
2879 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
2880 with const void *.
2881 * config/bfin/bfin.c (setup_incoming_varargs): Replace
2882 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2883 (bfin_function_arg_advance, bfin_function_arg): Likewise.
2884 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
2885 * calls.c (emit_call_1): Change type of args_so_far to
2886 cumulative_args_t. Changed all callers.
2887 (initialize_argument_information): Likewise.
2888 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
2889 * dse.c (get_call_args): Likewise.
2890 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2891 * function.c (pass_by_reference, reference_callee_copied): Likewise.
2892 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
2893 New member args_so_far_v. Changed all users.
2894 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
2895 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2896 * config/mips/mips.c (mips_output_args_xfer): Likewise.
2897 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2898 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2899 * config/microblaze/microblaze.c (microblaze_expand_prologue):
2900 Likewise.
2901 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
2902 m32r_pass_by_reference.
2903
2904 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
2905
2906 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
2907 argument to be a VEC of statements.
2908 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
2909 assert that pattern statements have to have their vector type set.
2910 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
2911 Change the first argument to be a VEC of statements. Update
2912 documentation.
2913 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
2914 (vect_handle_widen_mult_by_const): New function.
2915 (vect_recog_widen_mult_pattern): Change the first argument to be a
2916 VEC of statements. Update documentation. Check that the constant is
2917 INTEGER_CST. Support multiplication by a constant that fits an
2918 intermediate type - call vect_handle_widen_mult_by_const.
2919 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
2920 call. Handle additional pattern statements if necessary.
2921
2922 2011-06-16 Nick Clifton <nickc@redhat.com>
2923
2924 PR target/49427
2925 * config.gcc: Set cpu_type to v850 for any V850 architecture.
2926 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
2927 md_file, extra_modes, out_file and extra_options are these are all
2928 deduced from cpu_type.
2929
2930 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
2931
2932 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
2933 truncation mask to 63.
2934
2935 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
2936
2937 PR target/49313
2938 PR target/29524
2939 * longlong.h: Add AVR support:
2940 (count_leading_zeros): New macro.
2941 (count_trailing_zeros): New macro.
2942 (COUNT_LEADING_ZEROS_0): New macro.
2943 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
2944 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
2945 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
2946 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
2947 (LIB2FUNCS_EXCLUDE): Add _clz.
2948 * config/avr/libgcc.S (XCALL): Move up in file.
2949 (XJMP): New C Macro.
2950 (DEFUN): New asm macro.
2951 (ENDF): New asm macro.
2952 (__ffssi2): New function.
2953 (__ffshi2): New function.
2954 (__loop_ffsqi2): New function.
2955 (__ctzsi2): New function.
2956 (__ctzhi2): New function.
2957 (__clzdi2): New function.
2958 (__clzsi2): New function.
2959 (__clzhi2): New function.
2960 (__paritydi2): New function.
2961 (__paritysi2): New function.
2962 (__parityhi2): New function.
2963 (__parityqi2): New function.
2964 (__popcounthi2): New function.
2965 (__popcountsi2): New function.
2966 (__popcountdi2): New function.
2967 (__popcountqi2): New function.
2968 (__bswapsi2): New function.
2969 (__bswapdi2): New function.
2970 (__ashldi3): New function.
2971 (__ashrdi3): New function.
2972 (__lshrdi3): New function.
2973 Fix suspicous lines.
2974
2975 2011-06-16 Richard Guenther <rguenther@suse.de>
2976
2977 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
2978 the same as x != 0.
2979 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
2980 to (bool) X & 1.
2981 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
2982 equality compares against zero for the lower bit.
2983
2984 2011-06-16 Jakub Jelinek <jakub@redhat.com>
2985
2986 PR tree-optimization/49419
2987 * tree-vrp.c (execute_vrp): Call init_range_assertions
2988 before estimate_numbers_of_iterations, call
2989 free_number_of_iterations_estimates before calling
2990 remove_range_assertions.
2991
2992 2011-06-16 Revital Eres <revital.eres@linaro.org>
2993
2994 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
2995 (struct partial_schedule): Add rows_length field.
2996 (verify_partial_schedule): Check rows_length.
2997 (ps_insert_empty_row): Handle rows_length.
2998 (create_partial_schedule): Likewise.
2999 (free_partial_schedule): Likewise.
3000 (reset_partial_schedule): Likewise.
3001 (create_ps_insn): Remove rest_count argument.
3002 (remove_node_from_ps): Update rows_length.
3003 (add_node_to_ps): Update rows_length and call create_ps_insn
3004 without passing row_rest_count.
3005 (rotate_partial_schedule): Update rows_length.
3006
3007 2011-06-16 Revital Eres <revital.eres@linaro.org>
3008
3009 * ddg.c (add_intra_loop_mem_dep): New function.
3010 (build_intra_loop_deps): Call it.
3011
3012 2011-06-13 Jeff Law <law@redhat.com>
3013
3014 * df-problems.c (df_lr_local_compute): Manually CSE
3015 PIC_OFFSET_TABLE_REGNUM.
3016 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
3017 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
3018
3019 2011-06-13 Jan Hubicka <jh@suse.cz>
3020
3021 * cgraphunit.c (handle_alias_pairs): New function.
3022 (cgraph_finalize_compilation_unit): Use it.
3023 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
3024 as externally visible.
3025
3026 2011-06-15 Richard Guenther <rguenther@suse.de>
3027
3028 * expr.c (expand_expr_real_2): Reduce all integral types to
3029 bitfield precision.
3030 (expand_expr_real_1): Likewise.
3031
3032 2011-06-15 Martin Jambor <mjambor@suse.cz>
3033
3034 PR tree-optimization/48613
3035 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
3036 ipa_node_params_vector is NULL.
3037
3038 2011-06-15 Jakub Jelinek <jakub@redhat.com>
3039
3040 PR debug/49382
3041 * dwarf2out.c (dw_loc_list_node): Add force field.
3042 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
3043 location in the list, even if it is modified before first real insn.
3044 (output_loc_list): Emit empty ranges with force flag set.
3045 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
3046
3047 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
3048
3049 PR target/49349
3050 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
3051 (fence_to_rewind). Use it to notice when bookkeeping will be placed
3052 above a fence. Update comments.
3053 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
3054 placed just above it. Do not allow NULL place_to_insert.
3055
3056 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
3057
3058 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
3059 (slpeel_tree_peel_loop_to_edge): Don't call
3060 remove_dead_stmts_from_loop.
3061 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3062 remove irrelevant pattern statements. For irrelevant statements
3063 check if it is the last statement of a detected pattern, use
3064 corresponding pattern statement instead.
3065 (destroy_loop_vec_info): No need to remove pattern statements,
3066 only free stmt_vec_info.
3067 (vect_transform_loop): For irrelevant statements check if it is
3068 the last statement of a detected pattern, use corresponding
3069 pattern statement instead.
3070 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
3071 pattern statements. Set basic block for the new statement.
3072 (vect_pattern_recog): Update documentation.
3073 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
3074 operands of pattern statements.
3075 (vectorizable_call): Fix printing. In case of a pattern statement
3076 use the lhs of the original statement when creating a dummy
3077 statement to replace the original call.
3078 (vect_analyze_stmt): For irrelevant statements check if it is
3079 the last statement of a detected pattern, use corresponding
3080 pattern statement instead.
3081 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
3082 statements use gsi of the original statement.
3083
3084 2011-06-14 Joseph Myers <joseph@codesourcery.com>
3085
3086 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
3087 common/common-target-def.h.
3088 * target.def (default_target_flags, handle_option,
3089 supports_split_stack, optimization_table, init_struct,
3090 except_unwind_info, unwind_tables_default, have_named_sections):
3091 Move to common/common-target.def.
3092 * target.h (enum opt_levels, struct default_options): Move to
3093 common/common-target.h.
3094 * targhooks.c (default_except_unwind_info,
3095 dwarf2_except_unwind_info, sjlj_except_unwind_info,
3096 default_target_handle_option, empty_optimization_table): Move to
3097 common/common-targhooks.c.
3098 * targhooks.h (default_except_unwind_info,
3099 dwarf2_except_unwind_info, sjlj_except_unwind_info,
3100 default_target_handle_option, empty_optimization_table): Move to
3101 common/common-targhooks.h.
3102 * common/common-target-def.h: Include common/common-targhooks.h.
3103 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
3104 defined.
3105 * common/common-target.def (handle_option, option_init_struct,
3106 option_optimization_table, default_target_flags,
3107 except_unwind_info, supports_split_stack, unwind_tables_default,
3108 have_named_sections): Move from target.def.
3109 (HOOK_PREFIX): Undefine at end of file.
3110 * common/common-target.h: Include input.h.
3111 (enum opt_levels, struct default_options): Move from target.h.
3112 * common/common-targhooks.c, common/common-targhooks.h: New.
3113 * config.gcc (target_has_targetm_common): Default to yes.
3114 (moxie*): Set target_has_targetm_common=no.
3115 (hppa*-*-*): Don't set target_has_targetm_common=yes.
3116 * doc/tm.texi: Regenerate.
3117 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
3118 (C_TARGET_DEF_H): Add common/common-targhooks.h.
3119 (GCC_OBJS): Remove vec.o.
3120 (OBJS): Remove hooks.o and vec.o.
3121 (OBJS-libcommon-target): Add vec.o, hooks.o and
3122 common/common-targhooks.o.
3123 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
3124 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
3125 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
3126 cfglayout.o, $(out_object_file), $(common_out_object_file)):
3127 Update dependencies.
3128 (common/common-targhooks.o): New.
3129 * common/config/default-common.c: Include tm.h. Add FIXME comment.
3130 * common/config/pa/pa-common.c: Include more headers. Take
3131 copyright dates from pa.c.
3132 (pa_option_optimization_table, pa_handle_option,
3133 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
3134 TARGET_HANDLE_OPTION): Move from pa.c.
3135 * common/config/alpha/alpha-common.c,
3136 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
3137 common/config/bfin/bfin-common.c,
3138 common/config/cris/cris-common.c,
3139 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
3140 common/config/h8300/h8300-common.c,
3141 common/config/i386/i386-common.c,
3142 common/config/ia64/ia64-common.c,
3143 common/config/iq2000/iq2000-common.c,
3144 common/config/lm32/lm32-common.c,
3145 common/config/m32c/m32c-common.c,
3146 common/config/m32r/m32r-common.c,
3147 common/config/m68k/m68k-common.c,
3148 common/config/mcore/mcore-common.c,
3149 common/config/mep/mep-common.c,
3150 common/config/microblaze/microblaze-common.c,
3151 common/config/mips/mips-common.c,
3152 common/config/mmix/mmix-common.c,
3153 common/config/mn10300/mn10300-common.c,
3154 common/config/pdp11/pdp11-common.c,
3155 common/config/picochip/picochip-common.c,
3156 common/config/rs6000/rs6000-common.c,
3157 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
3158 common/config/score/score-common.c, common/config/sh/sh-common.c,
3159 common/config/sparc/sparc-common.c,
3160 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
3161 common/config/vax/vax-common.c,
3162 common/config/xstormy16/xstormy16-common.c,
3163 common/config/xtensa/xtensa-common.c: New.
3164 * config/alpha/alpha.c: Include common/common-target.h.
3165 (alpha_option_optimization_table, alpha_handle_option,
3166 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3167 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
3168 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
3169 * config/arm/arm.c (arm_option_optimization_table,
3170 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
3171 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
3172 arm-common.c.
3173 * config/avr/avr.c (avr_option_optimization_table,
3174 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
3175 to avr-common.c.
3176 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
3177 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
3178 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
3179 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
3180 * config/cris/cris.c (cris_option_optimization_table,
3181 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3182 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
3183 cris-common.c.
3184 * config/fr30/fr30.c (fr30_option_optimization_table,
3185 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
3186 to fr30-common.c.
3187 * config/frv/frv.c (frv_option_optimization_table,
3188 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
3189 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
3190 * config/h8300/h8300.c (h8300_option_optimization_table,
3191 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
3192 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
3193 * config/i386/i386-protos.h (ix86_handle_option): Declare.
3194 * config/i386/i386.c: Include common/common-target.h.
3195 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
3196 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
3197 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
3198 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
3199 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
3200 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
3201 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
3202 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
3203 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
3204 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
3205 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
3206 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
3207 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
3208 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
3209 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
3210 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
3211 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
3212 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
3213 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
3214 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
3215 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
3216 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
3217 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
3218 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
3219 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
3220 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
3221 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
3222 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
3223 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
3224 ix86_option_optimization_table, ix86_option_init_struct,
3225 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
3226 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
3227 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
3228 i386-common.c.
3229 * config/i386/t-i386 (i386.o): Update dependencies.
3230 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
3231 * config/ia64/ia64.c (ia64_option_optimization_table,
3232 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
3233 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3234 ia64_handle_option): Move to ia64-common.c.
3235 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
3236 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
3237 * config/lm32/lm32.c (lm32_option_optimization_table,
3238 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
3239 to lm32-common.c.
3240 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
3241 m32c-common.c.
3242 * config/m32r/m32r.c (m32r_option_optimization_table,
3243 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3244 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
3245 m32r_handle_option): Move to m32r-common.c.
3246 (m32r_memory_move_cost): Remove comment referring to
3247 TARGET_HANDLE_OPTION.
3248 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
3249 Move to m68k-common.c.
3250 * config/mcore/mcore.c (mcore_option_optimization_table,
3251 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
3252 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
3253 * config/mep/mep.c (mep_option_optimization_table,
3254 mep_handle_option, TARGET_HANDLE_OPTION,
3255 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
3256 Move to mep-common.c.
3257 * config/microblaze/microblaze.c
3258 (microblaze_option_optimization_table,
3259 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
3260 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
3261 * config/mips/mips.c (mips_handle_option,
3262 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
3263 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
3264 mips-common.c.
3265 * config/mmix/mmix.c (mmix_option_optimization_table,
3266 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
3267 Move to mmix-common.c.
3268 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
3269 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
3270 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3271 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
3272 * config/pa/pa.c: Include common/common-target.h.
3273 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
3274 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3275 pa_handle_option): Move to pa-common.c.
3276 (pa_option_override): Use targetm_common.except_unwind_info.
3277 (pa_asm_output_mi_thunk, pa_function_section): Use
3278 targetm_common.have_named_sections.
3279 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
3280 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3281 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
3282 pdp11_handle_option, pdp11_option_init_struct): Move to
3283 pdp11-common.c.
3284 * config/picochip/picochip.c (picochip_option_optimization_table,
3285 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
3286 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
3287 * config/rs6000/rs6000.c: Include common/common-target.h.
3288 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
3289 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
3290 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
3291 rs6000_handle_option): Move to rs6000-common.c.
3292 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
3293 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
3294 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
3295 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
3296 * config/s390/s390.c (processor_flags_table,
3297 s390_option_optimization_table, s390_option_init_struct,
3298 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
3299 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
3300 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
3301 * config/s390/s390.h (processor_flags_table): Declare.
3302 * config/score/score.c (score_option_optimization_table,
3303 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3304 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
3305 score_handle_option): Move to score-common.c.
3306 * config/sh/sh.c (sh_option_optimization_table,
3307 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
3308 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3309 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
3310 * config/sparc/sparc.c: Include common/common-target.h.
3311 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
3312 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
3313 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
3314 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
3315 spu_option_init_struct): Move to spu-common.c.
3316 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
3317 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
3318 * config/v850/v850.c (small_memory_physical_max,
3319 v850_handle_memory_optionn v850_handle_option,
3320 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
3321 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
3322 v850-common.c.
3323 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
3324 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
3325 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
3326 Move to xtensa-common.c.
3327 * cfglayout.c: Include common/common-target.h.
3328 (fixup_reorder_chain): Use targetm_common.have_named_sections.
3329 * cfgrtl.c: Include common/common-target.h.
3330 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
3331 targetm_common.have_named_sections.
3332 * dbxout.c: Include common/common-target.h.
3333 (dbxout_function_end): Use targetm_common.have_named_sections.
3334 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
3335 targetm_common.except_unwind_info.
3336 * dwarf2out.c: Include common/common-target.h.
3337 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
3338 dwarf2out_begin_prologue, dwarf2out_frame_init,
3339 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
3340 targetm_common.except_unwind_info.
3341 * except.c: Include common/common-target.h.
3342 (init_eh, finish_eh_generation,
3343 output_one_function_exception_table): Use
3344 targetm_common.except_unwind_info.
3345 (switch_to_exception_section): Use targetm_common.have_named_sections.
3346 * explow.c: Include common/common-target.h.
3347 * expr.c: Include common/common-target.h.
3348 (build_personality_function): Use targetm_common.except_unwind_info.
3349 * function.c: Include common/common-target.h.
3350 (expand_function_end): Use targetm_common.except_unwind_info.
3351 * haifa-sched.c: Include common/common-target.h.
3352 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
3353 * lto-opts.c: Include common/common-target.h instead of target.h.
3354 (lto_reissue_options): Use targetm_common.handle_option.
3355 * opts.c: Include common/common-target.h.
3356 (target_handle_option): Use targetm_common.handle_option.
3357 (init_options_struct): Update comment referring to
3358 targetm.target_option.optimization. Use
3359 targetm_common.default_target_flags,
3360 targetm_common.unwind_tables_default and
3361 targetm_common.option_init_struct.
3362 (default_options_optimization): Use
3363 targetm_common.option_optimization_table.
3364 (finish_options): Use targetm_common.except_unwind_info,
3365 targetm_common.unwind_tables_default,
3366 targetm_common.have_named_sections and
3367 targetm_common.supports_split_stack.
3368 * toplev.c: Include common/common-target.h.
3369 (process_options): Use targetm_common.have_named_sections.
3370 * tree-tailcall.c: Include common/common-target.h.
3371 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
3372 * tree.c: Include common/common-target.h.
3373 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
3374 * varasm.c: Include common/common-target.h.
3375 (resolve_unique_section, hot_function_section,
3376 default_function_section): Use targetm_common.have_named_sections.
3377
3378 2011-06-14 Easwaran Raman <eraman@google.com>
3379
3380 PR rtl-optimization/44194
3381 * dse.c: Include tree-flow.h
3382 (insn_info): Add new field non_frame_wild_read.
3383 (group_info): Add new fields escaped_n and escaped_p.
3384 (kill_on_calls): New variable.
3385 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
3386 (dse_step0): Initialize kill_on_calls.
3387 (can_escape): New function.
3388 (set_usage_bits): Add additional parameter; record information
3389 about escaped locations.
3390 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
3391 (dse_step2_nospill): Set kill_on_calls based on
3392 group->escaped_n and group->escaped_n.
3393 (add_wild_read): Refactor into...
3394 (reset_active_stores): ... New function, and
3395 (free_read_records): ... New function.
3396 (add_non_frame_wild_read): New function.
3397 (scan_insn): Call add_non_frame_wild_read on non-const calls.
3398 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
3399 (dse_step5_nospill): Call scan_reads_nospill for instructions
3400 marked as non_frame_wild_read.
3401 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
3402
3403 2011-06-14 Joseph Myers <joseph@codesourcery.com>
3404
3405 * common/common-target-def.h, common/common-target.def,
3406 common/common-target.h, common/config/default-common.c,
3407 common/config/pa/pa-common.c: New files.
3408 * Makefile.in (common_out_file, common_out_object_file,
3409 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
3410 (OBJS-libcommon-target): Include $(common_out_object_file).
3411 (prefix.o): Update dependencies.
3412 ($(common_out_object_file), common/common-target-hooks-def.h,
3413 s-common-target-hooks-def-h): New.
3414 (s-tm-texi): Also check timestamp on common-target.def.
3415 (build/genhooks.o): Update dependencies.
3416 * config.gcc (common_out_file, target_has_targetm_common): Define.
3417 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
3418 TARGET_ALWAYS_STRIP_DOTDOT.
3419 * configure.ac (common_out_object_file): Define.
3420 (common_out_file, common_out_object_file): Substitute.
3421 (common): Create directory.
3422 * configure: Regenerate.
3423 * doc/tm.texi.in (targetm_common): Document.
3424 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
3425 * doc/tm.texi: Regenerate.
3426 * genhooks.c (hook_array): Also include common/common-target.def.
3427 * prefix.c (tm.h): Don't include.
3428 (common/common-target.h): Include.
3429 (ALWAYS_STRIP_DOTDOT): Don't define.
3430 (update_path): Use targetm_common.always_strip_dotdot instead of
3431 ALWAYS_STRIP_DOTDOT.
3432 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
3433
3434 2011-06-14 David Li <davidxl@google.com>
3435
3436 * passes.c (execute_function_todo): Remove TODO_dump_func.
3437 (execute_one_pass): Remove TODO_dump_func.
3438 (execute_function_dump): New function.
3439 * tree-vrp.c: Remove TODO_dump_func.
3440 * regrename.c: Remove TODO_dump_func.
3441 * fwprop.c: Remove TODO_dump_func.
3442 * tree-into-ssa.c: Remove TODO_dump_func.
3443 * tree-complex.c: Remove TODO_dump_func.
3444 * tracer.c: Remove TODO_dump_func.
3445 * tree-loop-distribution.c: Remove TODO_dump_func.
3446 * postreload-gcse.c: Remove TODO_dump_func.
3447 * postreload.c: Remove TODO_dump_func.
3448 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
3449 * tree-tailcall.c: Remove TODO_dump_func.
3450 * ipa-cp.c: Remove TODO_dump_func.
3451 * final.c: Remove TODO_dump_func.
3452 * tree-emutls.c: Remove TODO_dump_func.
3453 * omp-low.c: Remove TODO_dump_func.
3454 * tree-ssa-dse.c: Remove TODO_dump_func.
3455 * tree-ssa-uncprop.c: Remove TODO_dump_func.
3456 * auto-inc-dec.c: Remove TODO_dump_func.
3457 * reorg.c: Remove TODO_dump_func.
3458 * tree-ssa-copyrename.c: Remove TODO_dump_func.
3459 * tree-ssa-ccp.c: Remove TODO_dump_func.
3460 * compare-elim.c: Remove TODO_dump_func.
3461 * mode-switching.c: Remove TODO_dump_func.
3462 * modulo-sched.c: Remove TODO_dump_func.
3463 * tree-call-cdce.c: Remove TODO_dump_func.
3464 * cse.c: Remove TODO_dump_func.
3465 * web.c: Remove TODO_dump_func.
3466 * tree-stdarg.c: Remove TODO_dump_func.
3467 * lto-streamer-out.c: Remove TODO_dump_func.
3468 * tree-ssa-math-opts.c: Remove TODO_dump_func.
3469 * tree-ssa-dom.c: Remove TODO_dump_func.
3470 * tree-nrv.c: Remove TODO_dump_func.
3471 * loop-init.c: Remove TODO_dump_func.
3472 * gimple-low.c: Remove TODO_dump_func.
3473 * ipa-inline.c: Remove TODO_dump_func.
3474 * tree-ssa-sink.c: Remove TODO_dump_func.
3475 * jump.c: Remove TODO_dump_func.
3476 * ifcvt.c: Remove TODO_dump_func.
3477 * tree-ssa-loop.c: Remove TODO_dump_func.
3478 * recog.c: Remove TODO_dump_func.
3479 * dse.c: Remove TODO_dump_func.
3480 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
3481 * matrix-reorg.c: Remove TODO_dump_func.
3482 * tree-eh.c: Remove TODO_dump_func.
3483 * regmove.c: Remove TODO_dump_func.
3484 * function.c: Remove TODO_dump_func.
3485 * tree-vectorizer.c: Remove TODO_dump_func.
3486 * ipa-split.c: Remove TODO_dump_func.
3487 * gcse.c: Remove TODO_dump_func.
3488 * tree-if-conv.c: Remove TODO_dump_func.
3489 * init-regs.c: Remove TODO_dump_func.
3490 * tree-ssa-phiopt.c: Remove TODO_dump_func.
3491 * implicit-zee.c: Remove TODO_dump_func.
3492 * lower-subreg.c: Remove TODO_dump_func.
3493 * bt-load.c: Remove TODO_dump_func.
3494 * tree-dfa.c: Remove TODO_dump_func.
3495 * except.c: Remove TODO_dump_func.
3496 * emit-rtl.c: Remove TODO_dump_func.
3497 * store-motion.c: Remove TODO_dump_func.
3498 * cfgexpand.c: Remove TODO_dump_func.
3499 * tree-cfgcleanup.c: Remove TODO_dump_func.
3500 * cfgcleanup.c: Remove TODO_dump_func.
3501 * tree-ssa-pre.c: Remove TODO_dump_func.
3502 * tree-sra.c: Remove TODO_dump_func.
3503 * tree-mudflap.c: Remove TODO_dump_func.
3504 * tree-ssa-copy.c: Remove TODO_dump_func.
3505 * cfglayout.c: Remove TODO_dump_func.
3506 * tree-ssa-forwprop.c: Remove TODO_dump_func.
3507 * tree-ssa-dce.c: Remove TODO_dump_func.
3508 * ira.c: Remove TODO_dump_func.
3509 * tree-ssa.c: Remove TODO_dump_func.
3510 * integrate.c: Remove TODO_dump_func.
3511 * tree-optimize.c: Remove TODO_dump_func.
3512 * tree-ssa-phiprop.c: Remove TODO_dump_func.
3513 * tree-object-size.c: Remove TODO_dump_func.
3514 * combine.c: Remove TODO_dump_func.
3515 * bb-reorder.c: Remove TODO_dump_func.
3516 * cprop.c: Remove TODO_dump_func.
3517 * var-tracking.c: Remove TODO_dump_func.
3518 * tree-profile.c: Remove TODO_dump_func.
3519 * tree-vect-generic.c: Remove TODO_dump_func.
3520 * reg-stack.c: Remove TODO_dump_func.
3521 * sched-rgn.c: Remove TODO_dump_func.
3522 * tree-ssa-structalias.c: Remove TODO_dump_func.
3523 * tree-switch-conversion.c: Remove TODO_dump_func.
3524 * tree-cfg.c: Remove TODO_dump_func.
3525 * tree-ssa-reassoc.c: Remove TODO_dump_func.
3526 * combine-stack-adj.c: Remove TODO_dump_func.
3527 * dce.c: Remove TODO_dump_func.
3528 * tree-ssanames.c: Remove TODO_dump_func.
3529 * regcprop.c: Remove TODO_dump_func.
3530
3531 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
3532
3533 PR middle-end/47364
3534 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
3535 and properly handle result not in Pmode.
3536
3537 2011-06-14 Robert Millan <rmh@gnu.org>
3538
3539 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
3540 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
3541 `config/linux.h'.
3542
3543 * config/i386/kfreebsd-gnu64.h: New file.
3544 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
3545 with `i386/kfreebsd-gnu64.h'.
3546
3547 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
3548 (GNU_USER_LINK_EMULATION64): New macros.
3549 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
3550 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
3551 of hardcoding `elf_i386' and `elf_x86_64'.
3552
3553 2011-06-14 Nick Clifton <nickc@redhat.com>
3554
3555 PR target/49403
3556 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
3557
3558 PR target/49402
3559 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
3560
3561 2011-06-14 Jakub Jelinek <jakub@redhat.com>
3562
3563 PR fortran/49103
3564 * tree.h (DECL_NONSHAREABLE): Define.
3565 (struct tree_decl_common): Change decl_common_unused to
3566 decl_nonshareable_flag.
3567 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
3568 Ignore vars with DECL_NONSHAREABLE bit set.
3569 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
3570 on stores to automatic aggregate vars.
3571
3572 PR rtl-optimization/49390
3573 Revert:
3574 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
3575
3576 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3577 MEM_ALIAS_SET.
3578
3579 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
3580 Tom de Vries <tom@codesourcery.com>
3581
3582 PR target/45098
3583 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
3584 Document changed semantics.
3585 (max_stmt_executions, max_stmt_executions_int): Declare.
3586 * tree-data-ref.c (estimated_loop_iterations)
3587 (estimated_loop_iterations_int): Move functions...
3588 * tree-ssa-loop-niter.c (estimated_loop_iterations)
3589 (estimated_loop_iterations_int): here.
3590 (record_estimate): Change nb_iterations_upper_bound and
3591 nb_iterations_estimate semantics.
3592 (max_stmt_executions, max_stmt_executions_int): New function.
3593 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
3594 (max_stmt_executions_tree): this.
3595 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
3596 estimated_loop_iterations_tree.
3597 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
3598 max_stmt_executions_int instead of estimated_loop_iterations_int.
3599 * predict.c (predict_loops): Idem.
3600 * tree-parloops.c (parallelize_loops): Idem.
3601 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
3602 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
3603 (init_omega_for_ddr_1): Idem.
3604 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
3605 (loop_prefetch_arrays): Idem
3606 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
3607 max_stmt_executions instead of estimated_loop_iterations.
3608 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
3609 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
3610 instead of nb_iterations_upper_bound.
3611
3612 2011-06-13 Jan Hubicka <jh@suse.cz>
3613
3614 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
3615
3616 2011-06-14 Richard Henderson <rth@redhat.com>
3617
3618 PR debug/48459
3619 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
3620 (based_loc_descr): Assert it's true.
3621 (compute_frame_pointer_to_fb_displacement): Set it, rather than
3622 aborting immediately.
3623
3624 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
3625 Mingfeng Wu <mingfeng@faraday-tech.com>
3626
3627 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
3628
3629 2011-06-13 Jan Hubicka <jh@suse.cz>
3630
3631 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
3632
3633 2011-06-13 Jan Hubicka <jh@suse.cz>
3634
3635 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
3636 similarly to DECL_COMDAT.
3637 * cgraphunit.c (cgraph_analyze_function): Likewise.
3638 * ipa.c (function_and_variable_visibility): Likewise.
3639
3640 2011-06-13 Jan Hubicka <jh@suse.cz>
3641
3642 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
3643 BINFO_VIRTUALS when streaming for ltrans unit.
3644
3645 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
3646
3647 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
3648 (movdi_internal64): Same.
3649
3650 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
3651
3652 PR target/44618
3653 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
3654 a set of similar patterns, where the MATCH_OPERAND for the function
3655 argument is replaced with individual references to hardware registers.
3656 (save_fpregs_<mode>): Ditto
3657 (restore_gpregs_<mode>): Ditto
3658 (return_and_restore_gpregs_<mode>): Ditto
3659 (return_and_restore_fpregs_<mode>): Ditto
3660 (return_and_restore_fpregs_aix_<mode>): Ditto
3661
3662 2011-06-13 Jan Hubicka <jh@suse.cz>
3663
3664 * ipa-utils.c (postorder_stack): New structure.
3665 (ipa_reverse_postorder): Handle aliases.
3666
3667 2011-06-13 Jan Hubicka <jh@suse.cz>
3668
3669 * ipa-inline.c (reset_edge_caches): Walk aliases.
3670 (update_caller_keys): Do not test inlinability of aliases.
3671 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
3672 (do_estimate_growth): Fix typo.
3673
3674 2011-06-13 Jan Hubicka <jh@suse.cz>
3675
3676 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
3677 (can_remove_node_now_p): ... here; handle same comdat groups.
3678 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
3679 (inline_call): Update use of can_remove_node_now_p.
3680
3681 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3682
3683 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
3684 condition to disallow non-identical memory locations.
3685 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
3686 preference to bit manipulation instructions.
3687
3688 2011-06-13 Jan Hubicka <jh@suse.cz>
3689
3690 * cgraph.c (cgraph_for_node_thunks_and_aliases,
3691 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
3692 (nonremovable_p): New function.
3693 (cgraph_can_remove_if_no_direct_calls_p): New function.
3694 (used_from_object_file_p): New functoin.
3695 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
3696 references from aliases.
3697 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
3698 * ipa-inline.c (check_caller_edge): New function.
3699 (want_inline_function_called_once_p): Use it; accept aliases called
3700 once, too.
3701 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
3702
3703 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3704
3705 PR target/48454
3706 * config/arm/neon.md (vec_pack_trunc): Set the lengths
3707 correctly for the case with Quad vectors.
3708
3709 2011-06-13 Jakub Jelinek <jakub@redhat.com>
3710 Ira Rosen <ira.rosen@linaro.org>
3711
3712 PR tree-optimization/49352
3713 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
3714 all, make sure loop_use_stmt after the loop is a def stmt of a used
3715 SSA_NAME that is the only one defined inside of the loop. Don't
3716 check for COND_EXPR and GIMPLE_BINARY_RHS.
3717 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
3718 check_reduction is true.
3719
3720 2011-06-11 Jan Hubicka <jh@suse.cz>
3721
3722 PR middle-end/49373
3723 * ipa.c (cgraph_externally_visible_p): Check resolution info.
3724
3725 2011-06-11 Jan Hubicka <jh@suse.cz>
3726
3727 PR middle-end/48836
3728 * ipa-inline-transform.c: Include tree-pass.h
3729 (inline_transform): Set TODO_update_ssa_only_virtuals.
3730 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
3731
3732 2011-06-11 Jan Hubicka <jh@suse.cz>
3733
3734 PR middle-end/49378
3735 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
3736 aliases and thunks.
3737
3738 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
3739
3740 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
3741 Take number of iterations to peel into account for equally frequent
3742 misalignment values.
3743
3744 2011-06-11 Jan Hubicka <jh@suse.cz>
3745
3746 * lto-streamer-out.c (produce_symtab): Stream out the newly
3747 represented aliases.
3748
3749 2011-06-11 Jan Hubicka <jh@suse.cz>
3750
3751 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
3752 varying args.
3753 (ipa_update_after_lto_read): Likewise.
3754 (ipa_write_node_info): Do not sream call_with_var_arguments.
3755 (ipa_read_node_info): Likewise.
3756
3757 2011-06-11 Jan Hubicka <jh@suse.cz>
3758
3759 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
3760
3761 2011-06-11 Jan Hubicka <jh@suse.cz>
3762
3763 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
3764 (lto_symtab_resolve_can_prevail_p): Likewise.
3765 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
3766 * cgraph.c (same_body_aliases_done): New global var.
3767 (cgraph_same_body_alias_1): Rename to ...
3768 (cgraph_create_function_alias): ... this one; reorg to new
3769 representation.
3770 (cgraph_same_body_alias): Use cgraph_create_function_alias;
3771 record references when asked to.
3772 (cgraph_add_thunk): Fix formating.
3773 (cgraph_get_node): Kill same body alias code.
3774 (cgraph_node_for_asm): Likewise.
3775 (cgraph_remove_same_body_alias): Remove.
3776 (cgraph_remove_node): Kill same body alias code.
3777 (cgraph_mark_address_taken_node): Mark also the aliased function
3778 as having address taken.
3779 (dump_cgraph_node): Dump same body aliases.
3780 (cgraph_for_node_thunks_and_aliases): Update for new alias
3781 representation.
3782 (cgraph_for_node_and_aliases): Likewise.
3783 * cgraph.h (same_body): Kll pointer.
3784 (same_body_alias): Update comment.
3785 (same_body_aliases_done): Declare.
3786 (cgraph_remove_same_body_alias): Remove declaration.
3787 (cgraph_create_function_alias): Declare.
3788 (cgraph_process_same_body_aliases): Declare.
3789 (cgraph_function_with_gimple_body_p): Check for alias.
3790 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
3791 (cgraph_alias_aliased_node): New function.
3792 (cgraph_function_node): Update for new aliases.
3793 (cgraph_function_or_thunk_node): Likewise.
3794 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
3795 (inline_call): Remove dead aliases.
3796 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
3797 name hack for same body aliases.
3798 (clone_of_p): Look through aliases.
3799 (verify_cgraph_node): Verify aliases.
3800 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
3801 (cgraph_process_same_body_aliases): New function.
3802 (process_function_and_variable_attributes): Disable weakref warning on
3803 alias.
3804 (cgraph_analyze_functions): Handle aliases.
3805 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
3806 (assemble_thunks): Rename to ...
3807 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
3808 (cgraph_expand_function): Remove alias output code.
3809 (cgraph_output_in_order): Skip aliases.
3810 (cgraph_preserve_function_body_p): Aliases don't need preserving.
3811 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
3812 (ipa_record_reference): Do not assert on alias references.
3813 (ipa_ref_has_aliases_p): New function.
3814 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
3815 (ipa_ref_has_aliases_p): Declare.
3816 * lto-cgraph.c (lto_output_node): Handle aliases.
3817 (input_node): Likewise.
3818 * lto-streamer-out.c (lto_output): Skip aliases.
3819 (produce_symtab): Kill same_body_alias code.
3820 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
3821 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
3822 * ipa-inline.c (update_caller_keys): Walk aliases.
3823 (inline_small_functions): Fix thinko in previous patch.
3824 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
3825 (function_and_variable_visibility): Do not walk same body aliases.
3826 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
3827 (ipa_pta_execute): Use it.
3828
3829 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3830
3831 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
3832 (*vec_dupv2df): Rename from vec_dupv2df.
3833 (vec_dupv2df): New expander.
3834
3835 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3836
3837 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
3838
3839 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3840
3841 * config/i386/i386.md: Use default value in "isa" attribute.
3842 * config/i386/sse.md: Ditto.
3843 * config/i386/mmx.md: Ditto.
3844
3845 2011-06-10 Wei Guozhi <carrot@google.com>
3846
3847 PR target/45335
3848 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3849 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3850 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3851 related peephole2.
3852 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3853 related peephole2.
3854 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3855 (arm_legitimate_ldrd_p): New prototype.
3856 (arm_output_ldrd): New prototype.
3857 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3858 (arm_legitimate_ldrd_p): New function.
3859 (arm_output_ldrd): New function.
3860
3861 2011-06-10 David Li <davidxl@google.com>
3862
3863 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3864 * passes.c (passr_eq): New function.
3865 (create_pass_tab): New function.
3866 (pass_traverse): New function.
3867 (dump_one_pass): New function.
3868 (dump_pass_list): New function.
3869 (dump_passes): New function.
3870
3871 2011-06-10 Jan Hubicka <jh@suse.cz>
3872
3873 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
3874 setting the nothrow flag.
3875 * ipa-reference.c (propagate): Skip aliases.
3876 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
3877 (propagate_nothrow): Skip aliases; do not update cgraph.
3878 (local_pure_const): Do not update cgraph.
3879 * tree-profile.c (tree_profiling): Do fixup_cfg.
3880
3881 2011-06-10 Jan Hubicka <jh@suse.cz>
3882
3883 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
3884 (cgraph_local_node_p): ... here; handle aliases.
3885 (has_addr_references_p): Break out from ...;
3886 (cgraph_remove_unreachable_nodes) ... here.
3887
3888 2011-06-10 Jan Hubicka <jh@suse.cz>
3889
3890 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
3891 * common.opt (flag_inline_functions_called_once): Do not
3892 initialize to 1.
3893
3894 2011-06-10 Jan Hubicka <jh@suse.cz>
3895
3896 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
3897 (ipcp_initialize_node_lattices): Do not deal with aliases;
3898 Do not try to propagate through thunks.
3899 (ipcp_change_tops_to_bottom): Do not deal with aliases.
3900
3901 2011-06-10 Jan Hubicka <jh@suse.cz>
3902
3903 * ipa-prop.c (ipa_write_node_info): Stream jump functions
3904 for indirect calls.
3905 (ipa_read_node_info): Likewise.
3906
3907 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3908
3909 PR lto/49302
3910 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
3911 (build_and_insert_call): Likewise.
3912 (build_and_insert_ref): New.
3913 (gimple_expand_builtin_pow): Minor cleanup.
3914 (gimple_expand_builtin_cabs): New.
3915 (execute_cse_sincos): Add case for BUILT_IN_CABS.
3916
3917 2011-06-10 Jan Hubicka <jh@suse.cz>
3918
3919 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
3920 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
3921 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
3922 (ipcp_propagate_stage): Skip aliases when propagating.
3923 (ipcp_need_redirect_p): Skip aliases.
3924 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
3925 collect_callers_of_node.
3926 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
3927 for aliases.
3928 (ipa_compute_jump_functions): Look through aliases.
3929
3930 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3931
3932 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
3933
3934 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3935
3936 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
3937 Adjust comments.
3938 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
3939
3940 2011-06-10 Jan Hubicka <jh@suse.cz>
3941
3942 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
3943 Update call of gimple_get_virt_method_for_binfo.
3944 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
3945 refuse_thunks parameter.
3946 (gimple_fold_call): Update.
3947 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
3948
3949 2011-06-10 Jan Hubicka <jh@suse.cz>
3950
3951 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
3952 (not_all_callers_have_enough_arguments_p): ... this one; turn into
3953 worker for cgraph_for_node_and_aliases.
3954 (convert_callers_for_node): Break out from ...
3955 (convert_callers): ... here.
3956 (modify_function): Use collect_callers_of_node.
3957 (ipa_early_sra): Use cgraph_for_node_and_aliases.
3958
3959 2011-06-10 Richard Guenther <rguenther@suse.de>
3960
3961 PR tree-optimization/49361
3962 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
3963 when not already in gimple form.
3964
3965 2011-06-10 Richard Guenther <rguenther@suse.de>
3966
3967 PR bootstrap/49344
3968 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
3969 FOR_EACH_PHI_OR_STMT_USE.
3970
3971 2011-06-10 Jan Hubicka <jh@suse.cz>
3972
3973 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
3974 (clone_inlined_nodes): ... here.
3975 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
3976 to real destination prior inlining.
3977 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
3978 can_early_inline_edge_p, want_early_inline_function_p,
3979 want_early_inline_function_p, want_inline_small_function_p,
3980 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
3981 edge_badness, update_all_callee_keys, lookup_recursive_calls,
3982 add_new_edges_to_heap, inline_small_functions, flatten_function,
3983 inline_always_inline_functions, early_inline_small_functions): Use
3984 cgraph_function_or_thunk_node.
3985 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
3986 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
3987 (do_estimate_edge_growth_1): Break out from ...
3988 (do_estimate_growth) ... here; walk aliases.
3989 (inline_generate_summary): Skip aliases.
3990
3991 2011-06-10 Richard Guenther <rguenther@suse.de>
3992
3993 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
3994 forward when combining, visit inserted stmts when a stmt was changed.
3995
3996 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
3997
3998 * tree.h (error_operand_p): Add.
3999 * dbxout.c (dbxout_type_fields): Use the latter.
4000 * c-decl.c (add_stmt): Likewise.
4001 * gimplify.c (omp_add_variable, omp_notice_variable,
4002 gimplify_scan_omp_clauses): Likewise.
4003
4004 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
4005
4006 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
4007 when a value is actually passed in regs.
4008
4009 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
4010 Laurent Rougé <laurent.rouge@menta.fr>
4011
4012 * doc/invoke.texi (SPARC options): Add -mflat.
4013 * config/sparc/sparc.opt: Likewise.
4014 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
4015 (sparc_flat_expand_prologue): Declare.
4016 (sparc_flat_expand_epilogue): Likewise.
4017 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
4018 (CPP_ENDIAN_SPEC): Replace with...
4019 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
4020 (CPP_SPEC): Adjust to above change.
4021 (EXTRA_SPECS): Likewise.
4022 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
4023 (INCOMING_REGNO): Likewise.
4024 (OUTGOING_REGNO): Likewise.
4025 (LOCAL_REGNO): Likewise.
4026 (SETUP_FRAME_ADDRESSES): Likewise.
4027 (FIXED_REGISTERS): Set 0 for %fp.
4028 (CALL_USED_REGISTERS): Likewise.
4029 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
4030 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
4031 (RETURN_ADDR_REGNUM): Define.
4032 (RETURN_ADDR_RTX): Use it.
4033 (INCOMING_RETURN_ADDR_REGNUM): Define.
4034 (INCOMING_RETURN_ADDR_RTX): Use it.
4035 (DWARF_FRAME_RETURN_COLUMN): Likewise.
4036 (EH_RETURN_REGNUM): Define.
4037 (EH_RETURN_STACKADJ_RTX): Use it.
4038 (EH_RETURN_HANDLER_RTX): Delete.
4039 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
4040 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
4041 Delete.
4042 (struct machine_function): Add frame_size, apparent_frame_size,
4043 frame_base_reg, frame_base_offset, n_global_fp_regs and
4044 save_local_in_regs_p fields.
4045 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
4046 sparc_frame_base_offset, sparc_n_global_fp_regs,
4047 sparc_save_local_in_regs_p): New macros.
4048 (sparc_option_override): Error out if -fcall-saved-REG is specified
4049 for Out registers.
4050 (eligible_for_restore_insn): Fix formatting.
4051 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
4052 (eligible_for_sibcall_delay): Likewise.
4053 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
4054 (sparc_legitimate_address_p): Adjust to above change.
4055 (save_global_or_fp_reg_p): New predicate.
4056 (return_addr_reg_needed_p): Likewise.
4057 (save_local_or_in_reg_p): Likewise.
4058 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
4059 (SORR_SAVE, SORR_RESTORE): Delete.
4060 (sorr_pred_t): New typedef.
4061 (sorr_act_t): New enum.
4062 (save_or_restore_regs): Rename to...
4063 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
4064 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
4065 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
4066 mechanism. Add CFI information for double-word saves in 32-bit mode.
4067 (emit_adjust_base_to_offset): New function extracted from...
4068 (emit_save_or_restore_regs): ...this. Rename the rest to...
4069 (emit_save_or_restore_regs_global_fp_regs): ...this.
4070 (emit_save_or_restore_regs_local_in_regs): New function.
4071 (gen_create_flat_frame_[123]): New functions.
4072 (sparc_expand_prologue): Use SIZE local variable. Adjust.
4073 (sparc_flat_expand_prologue): New function.
4074 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
4075 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
4076 (sparc_flat_expand_epilogue): New function.
4077 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
4078 (output_return): Likewise.
4079 (output_sibcall): Likewise.
4080 (sparc_output_mi_thunk): Likewise.
4081 (sparc_frame_pointer_required): Likewise.
4082 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
4083 function optimization.
4084 * config/sparc/sparc.md (flat): New attribute.
4085 (prologue): Add TARGET_FLAT handling.
4086 (save_register_window): Disable if TARGET_FLAT.
4087 (create_flat_frame_[123]): New patterns.
4088 (epilogue): Add TARGET_FLAT handling.
4089 (sibcall_epilogue): Likewise.
4090 (eh_return): New expander.
4091 (eh_return_internal): New insn and splitter.
4092 (return_internal): Add TARGET_FLAT handling.
4093 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
4094 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
4095 (nonlocal_goto): Add TARGET_FLAT handling.
4096 * config/sparc/t-elf: Add -mflat multilib.
4097 * config/sparc/t-leon: Likewise.
4098
4099 2011-06-10 Jan Hubicka <jh@suse.cz>
4100
4101 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
4102 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
4103 (self_recursive_p): Use cgraph_function_node.
4104 (propagate_pure_const): Likewise.
4105 (propagate_nothrow): Likewise.
4106 * ipa-reference.c (ipa_reference_get_not_read_global): Use
4107 cgraph_function_node.
4108 (propagate_bits): Likewise.
4109 (propagate): Likewise.
4110
4111 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4112 Richard Earnshaw <rearnsha@arm.com>
4113
4114 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
4115 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
4116 (*thumb2_movdi_vfp): Delete.
4117 (*arm_movdi_vfp_cortexa8): Delete.
4118 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
4119 (*movdi_vfp_cortexa8): Likewise.
4120
4121 2011-06-10 Richard Guenther <rguenther@suse.de>
4122
4123 * stor-layout.c (initialize_sizetypes): Give names to all
4124 sizetype kinds.
4125
4126 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
4127
4128 PR tree-optimization/49318
4129 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
4130 irrelevant pattern statements.
4131
4132 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
4133
4134 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
4135
4136 PR bootstrap/49354
4137 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
4138 to last assignment.
4139
4140 2011-06-09 Jan Hubicka <jh@suse.cz>
4141
4142 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
4143 do not recompute reachable flag.
4144 (cgraph_finalize_function, cgraph_analyze_functions): Set
4145 redefined_extern_inline here.
4146
4147 2011-06-09 Jan Hubicka <jh@suse.cz>
4148
4149 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
4150 (cgraph_only_called_directly_p): ... this one; bring offline.
4151 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
4152 varpool_used_from_object_file_p): Drop names from the declaratoin.
4153 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
4154 collect_callers_of_node): New.
4155 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
4156 (cgraph_edge_recursive_p): Use cgraph_function_node.
4157 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
4158 (cgraph_node_cannot_be_local_p_1): Break out from ...
4159 (cgraph_node_can_be_local_p): ... here; walk aliases.
4160 (cgraph_for_node_thunks_and_aliases): New function.
4161 (cgraph_for_node_and_aliases): New function.
4162 (cgraph_make_node_local_1): Break out from ...
4163 (cgraph_make_node_local) ... here; use
4164 cgraph_for_node_thunks_and_aliases.
4165 (cgraph_set_nothrow_flag_1): Break out from ...
4166 (cgraph_set_nothrow_flag) ... here;
4167 use cgraph_for_node_thunks_and_aliases.
4168 (cgraph_set_const_flag_1): Break out from ...
4169 (cgraph_set_const_flag) ... here;
4170 use cgraph_for_node_thunks_and_aliases.
4171 (cgraph_set_pure_flag_1): Break out from ...
4172 (cgraph_set_pure_flag) ... here;
4173 use cgraph_for_node_thunks_and_aliases.
4174 (cgraph_propagate_frequency_1): Break out from ...
4175 (cgraph_propagate_frequency) ... here; use
4176 cgraph_for_node_thunks_and_aliases.
4177 (cgraph_used_from_object_file_p): Do not care about aliases.
4178 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
4179 New functions.
4180 (collect_callers_of_node_1, collect_callers_of_node): New functions.
4181
4182 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
4183
4184 PR rtl-optimization/49154
4185 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
4186 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
4187 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
4188 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
4189 * config/cris/cris.h (cris_register_move_cost): Remove
4190 !TARGET_V32 code. Tweak comments.
4191
4192 2011-06-09 Jan Hubicka <jh@suse.cz>
4193
4194 * cgraphbuild.c (record_eh_tables): Mark personality function as having
4195 address taken.
4196
4197 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
4198
4199 PR rtl-optimization/49154
4200 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
4201 is a matching slot in the hashtable, assign it to classes_ptr.
4202
4203 PR rtl-optimization/49154
4204 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
4205 register classes.
4206 * doc/tm.texi: Regenerate.
4207
4208 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
4209
4210 PR target/49307
4211 * config/sh/sh.md (UNSPEC_CHKADD): New.
4212 (chk_guard_add): New define_insn_and_split.
4213 (symGOT_load): Use chk_guard_add instead of blockage.
4214
4215 2011-06-09 Kai Tietz <ktietz@redhat.com>
4216
4217 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
4218
4219 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
4220
4221 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
4222
4223 2011-06-09 Wei Guozhi <carrot@google.com>
4224
4225 PR target/46975
4226 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
4227 (peephole2 for conditional move): Generate 16 bit instructions.
4228
4229 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
4230
4231 * config/i386/i386.md (*movdi_internal_rex64): Merge
4232 alternatives 6 and 8.
4233
4234 2011-06-09 David Li <davidxl@google.com>
4235
4236 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
4237 * passes.c (passr_eq): New function.
4238 (create_pass_tab): New function.
4239 (pass_traverse): New function.
4240 (dump_one_pass): New function.
4241 (dump_pass_list): New function.
4242 (dump_passes): New function.
4243
4244 2011-06-09 David Li <davidxl@google.com>
4245
4246 * tree-complex.c (tree_lower_complex): Gate cleanup.
4247 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
4248 (execute_optimize_stdarg): Ditto.
4249 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
4250 (execute_cleanup_eh_1): Ditto.
4251 (execute_cleanup_eh): Ditto.
4252 * gcse.c (gate_rtl_pre): Ditto.
4253 (execute_rtl_pre): Ditto.
4254 * except.c (finish_eh_generation): Ditto.
4255 (convert_to_eh_region_ranges): Ditto.
4256 * cprop.c (one_cprop_pass): Ditto.
4257
4258 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
4259
4260 PR target/48673
4261 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
4262 in all basic blocks.
4263
4264 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4265
4266 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
4267 (HAVE_ENABLE_EXECUTE_STACK): Define.
4268 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
4269 (HAVE_ENABLE_EXECUTE_STACK): Define.
4270 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
4271 (HAVE_ENABLE_EXECUTE_STACK): Define.
4272 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
4273 (ENABLE_EXECUTE_STACK): Remove.
4274 (HAVE_ENABLE_EXECUTE_STACK): Define.
4275 [IN_LIBGCC2]: Don't include <windows.h>.
4276 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
4277 (HAVE_ENABLE_EXECUTE_STACK): Define.
4278 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
4279 (HAVE_ENABLE_EXECUTE_STACK): Define.
4280 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
4281 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
4282 (HAVE_ENABLE_EXECUTE_STACK): Define.
4283 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
4284 (HAVE_ENABLE_EXECUTE_STACK): Define.
4285 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
4286 (HAVE_ENABLE_EXECUTE_STACK): Define.
4287 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
4288 (HAVE_ENABLE_EXECUTE_STACK): Define.
4289 * config/alpha/alpha.c (alpha_trampoline_init): Test
4290 HAVE_ENABLE_EXECUTE_STACK.
4291 * config/i386/i386.c (ix86_trampoline_init): Likewise.
4292 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4293 (sparc64_initialize_trampoline): Likewise.
4294 * libgcc2.c [L_enable_execute_stack]: Remove.
4295 * system.h (ENABLE_EXECUTE_STACK): Poison.
4296 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
4297 * doc/tm.texi: Regenerate.
4298 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
4299
4300 2011-06-09 Jakub Jelinek <jakub@redhat.com>
4301
4302 PR middle-end/49308
4303 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
4304 variable. After resetting and rescanning insn continue with previous
4305 statement.
4306
4307 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4308
4309 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
4310 (gcc_cv_ld_hidden): Likewise.
4311 * configure: Regenerate.
4312 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
4313 (ix86_stack_protect_fail): Mark unused.
4314 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
4315 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
4316 [TARGET_MACHO]: Don't define.
4317 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
4318 (TARGET_STACK_PROTECT_FAIL): Likewise.
4319 (rs6000_stack_protect_fail): Mark unused.
4320 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
4321 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
4322
4323 2011-06-08 Andi Kleen <ak@linux.intel.com>
4324
4325 * varasm.c (get_section): Print location of other conflict
4326 for section conflicts.
4327
4328 2011-06-08 Andi Kleen <ak@linux.intel.com>
4329
4330 * config/i386/driver-i386.c (host_detect_local_cpu):
4331 Add model 0x2d Intel CPU.
4332
4333 2011-06-08 Andi Kleen <ak@linux.intel.com>
4334
4335 * reginfo.c (global_regs_decl): Add.
4336 (globalize_reg): Add decl parameter. Compute location. Pass location
4337 to warnings and add inform. Store decl in global_regs_decl.
4338 * rtl.h (globalize_reg): Update prototype.
4339 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
4340
4341 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
4342
4343 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
4344
4345 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
4346
4347 PR target/49305
4348 * config/sh/predicates.md (general_movsrc_operand): Check
4349 mode for memory with indexed address for QI and HImode.
4350 (general_movdst_operand): Likewise.
4351
4352 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
4353
4354 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
4355
4356 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
4357
4358 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
4359 (num_ssa_operands): Likewise.
4360 (op_iter_init_phiuse): Forward-declare.
4361 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
4362
4363 2011-06-08 Nick Clifton <nickc@redhat.com>
4364
4365 * doc/invoke.texi (ARM Options): Update description of
4366 -mthumb-interwork.
4367
4368 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
4369
4370 * config/i386/driver-i386.c (host_detect_local_cpu): Support
4371 unknown Intel family 0x6 CPUs.
4372
4373 2011-06-08 Martin Jambor <mjambor@suse.cz>
4374
4375 * tree-sra.c (mark_rw_status): Removed.
4376 (analyze_access_subtree): New parameter parent instead of
4377 mark_read and mark_write, propagate from that.
4378
4379 2011-06-08 Julian Brown <julian@codesourcery.com>
4380
4381 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
4382 for double-precision helper functions in hard-float mode if only
4383 single-precision arithmetic is supported in hardware.
4384
4385 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
4386
4387 PR rtl-optimization/49303
4388 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
4389 code_motion_path_driver returned 0 or 1.
4390 (sel_region_finish): Clear h_d_i_d.
4391
4392 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
4393
4394 * config/sh/sh.c (prepare_move_operands): Set pic register
4395 appropriately for global and local dynamic tls models even
4396 if flag_pic is unset.
4397
4398 2011-06-07 Jason Merrill <jason@redhat.com>
4399
4400 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
4401
4402 2011-06-07 Xinliang David Li <davidxl@google.com>
4403 * passes.c (enable_disable_pass): Handle assembler name.
4404 (is_pass_explicitly_enabled_or_disabled): Ditto.
4405
4406 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4407
4408 PR tree-optimization/48497
4409 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
4410
4411 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4412
4413 PR tree-optimization/46728
4414 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
4415 to use gimple_val_nonnegative_real_p.
4416 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
4417 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
4418
4419 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
4420
4421 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
4422
4423 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
4424
4425 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
4426 constant vectors.
4427
4428 2011-06-07 Richard Guenther <rguenther@suse.de>
4429
4430 * stor-layout.c (initialize_sizetypes): Initialize all
4431 sizetypes based on target definitions.
4432 (set_sizetype): Remove.
4433 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
4434 * tree.h (set_sizetype): Remove.
4435
4436 2011-06-07 Nick Clifton <nickc@redhat.com>
4437
4438 * config.gcc: Unify V850 architecture options and add support for
4439 newer V850 architectures.
4440 * config/v850/t-v850e: Delete.
4441
4442 2011-06-07 Richard Guenther <rguenther@suse.de>
4443
4444 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
4445 Call set_sizetype from here.
4446
4447 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
4448
4449 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
4450 (*maddhisi4tb, *maddhisi4tt): New define_insns.
4451
4452 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
4453 Andrew Stubbs <ams@codesourcery.com>
4454
4455 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
4456 multiplies.
4457 * doc/md.texi (Canonicalization of Instructions): Document widening
4458 multiply canonicalization.
4459
4460 2011-06-07 Jakub Jelinek <jakub@redhat.com>
4461
4462 PR gcov-profile/49299
4463 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
4464
4465 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
4466
4467 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
4468 a pointer.
4469 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
4470 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
4471 vect_recog_pow_pattern): Likewise.
4472 (vect_pattern_recog_1): Remove declaration.
4473 (widened_name_p): Remove declaration. Add new argument to specify
4474 whether to check that both types are either signed or unsigned.
4475 (vect_recog_widen_mult_pattern): Update documentation. Handle
4476 unsigned patterns and multiplication by constants.
4477 (vect_pattern_recog_1): Update vect_recog_func references. Use
4478 statement information from the statement returned from pattern
4479 detection functions.
4480 (vect_pattern_recog): Update vect_recog_func reference.
4481 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
4482 multiplication by a constant use the type of the other operand.
4483
4484 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
4485
4486 PR rtl-optimization/49145
4487 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
4488
4489 2011-06-06 Jakub Jelinek <jakub@redhat.com>
4490
4491 PR debug/49262
4492 * dwarf2out.c (native_encode_initializer): Decrement count in each
4493 iteration.
4494
4495 PR debug/49294
4496 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
4497 non-MODE_INT modes.
4498
4499 PR c++/49264
4500 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
4501 if stmt folded into nothing.
4502 * tree-inline.c (fold_marked_statements): If a builtin at the end of
4503 a bb folded into nothing, just update cgraph edges and move to next bb.
4504 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
4505 to be NULL. Don't compute count and frequency if new_call is NULL.
4506
4507 2011-06-04 Diego Novillo <dnovillo@google.com>
4508
4509 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
4510 (cgraph.o): Likewise.
4511 (cgraphunit.o): Likewise.
4512 * cgraphunit.c: Include lto-streamer.h
4513 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
4514 if LTO is enabled.
4515 * lto-streamer-in.c (unpack_value_fields): Call
4516 streamer_hooks.unpack_value_fields if set.
4517 (lto_materialize_tree): For unhandled nodes, first try to
4518 call lto_streamer_hooks.alloc_tree, if it exists.
4519 (lto_input_ts_decl_common_tree_pointers): Move reading of
4520 DECL_INITIAL to lto_streamer_read_tree.
4521 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
4522 (lto_streamer_read_tree): New.
4523 (lto_reader_init): Rename from lto_init_reader.
4524 Move initialization code to lto/lto.c.
4525 * lto-streamer-out.c (pack_value_fields): Call
4526 streamer_hooks.pack_value_fields if set.
4527 (lto_output_tree_ref): For tree nodes that are not normally indexable,
4528 call streamer_hooks.indexable_with_decls_p before giving up.
4529 (lto_output_ts_decl_common_tree_pointers): Move handling
4530 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
4531 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
4532 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
4533 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
4534 (lto_streamer_write_tree): New.
4535 (lto_output): Call lto_streamer_init directly.
4536 (lto_writer_init): Remove.
4537 * lto-streamer.c (streamer_hooks): New.
4538 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
4539 instead of lto_preload_common_nodes.
4540 (lto_is_streamable): Move from lto-streamer.h
4541 (lto_streamer_hooks_init): New.
4542 (streamer_hooks): New.
4543 (streamer_hooks_init): New.
4544 * lto-streamer.h (struct output_block): Forward declare.
4545 (struct lto_input_block): Likewise.
4546 (struct data_in): Likewise.
4547 (struct bitpack_d): Likewise.
4548 (struct streamer_hooks): Declare.
4549 (streamer_hooks): Declare.
4550 (lto_streamer_hooks_init): Declare.
4551 (lto_streamer_write_tree): Declare.
4552 (lto_streamer_read_tree): Declare.
4553 (streamer_hooks_init): Declare.
4554 (lto_is_streamable): Move to lto-streamer.c
4555
4556 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4557
4558 * longlong.h (smul_ppmm): The resulting register pair contains the
4559 higher order word first.
4560
4561 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4562
4563 PR tree-optimization/46728
4564 * builtins.c (powi_table): Remove.
4565 (powi_lookup_cost): Remove.
4566 (powi_cost): Remove.
4567 (expand_powi_1): Remove.
4568 (expand_powi): Remove.
4569 (expand_builtin_pow_root): Remove.
4570 (expand_builtin_pow): Remove.
4571 (expand_builtin_powi): Eliminate handling of constant exponent.
4572 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
4573
4574 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4575
4576 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
4577
4578 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4579
4580 * dce.c (reset_unmarked_insns_debug_uses): New.
4581 (delete_unmarked_insns): Skip debug insns.
4582 (prescan_insns_for_dce): Likewise.
4583 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
4584 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
4585 active reg can be found.
4586 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
4587 (convert_regs_1): Use it.
4588
4589 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4590
4591 * tree-pretty-print.c (dump_function_header): Add flags.
4592 Don't dump decl_uid with nouid.
4593 * tree-pretty-print.h (dump_function_header): Adjust.
4594 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
4595 * passes.c (pass_init_dump_file): Pass dump_flags on.
4596 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
4597
4598 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
4599
4600 PR bootstrap/49270
4601 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
4602
4603 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
4604
4605 PR tree-optimization/49243
4606 * calls.c (setjmp_call_p): Also check if fndecl has the
4607 returns_twice attribute.
4608
4609 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4610
4611 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
4612 -ffast-math etc.
4613
4614 2011-06-06 Richard Henderson <rth@redhat.com>
4615 Georg-Johann Lay <avr@gjlay.de>
4616
4617 PR target/42210
4618 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
4619 New predicates.
4620 * config/avr/avr.md ("insv"): New insn expander.
4621 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
4622 "*insv.not.io", "*insv.reg"): New insns.
4623
4624 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
4625
4626 PR target/49285
4627 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
4628 to nonimmediate_operand from memory_operand for the operand that is to
4629 be forced to memory by the expander. Lose the constraints.
4630
4631 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
4632
4633 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
4634 EH return when delayed branches are disabled.
4635
4636 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
4637
4638 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
4639 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
4640 calculation.
4641 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
4642 Simplify MODE_V1DF and MODE_V2SF handling.
4643 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
4644 Simplify MODE_SF handling.
4645
4646 2011-06-04 Jan Hubicka <jh@suse.cz>
4647
4648 PR tree-optimization/48893
4649 PR tree-optimization/49091
4650 PR tree-optimization/49179
4651 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
4652 Bounds check.
4653
4654 2011-06-04 Jan Hubicka <jh@suse.cz>
4655
4656 PR lto/48954
4657 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
4658 bitmaps.
4659
4660 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
4661
4662 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
4663
4664 2011-06-04 Jakub Jelinek <jakub@redhat.com>
4665
4666 PR target/49281
4667 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
4668 to be strictly smaller than 1 << shiftcount.
4669
4670 2011-06-04 Jan Hubicka <jh@suse.cz>
4671
4672 PR tree-optimize/48929
4673 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
4674 of empty predicate.
4675
4676 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
4677
4678 PR debug/48333
4679 * calls.c (emit_call_1): Prefer the __builtin declaration of
4680 builtin functions.
4681
4682 2011-06-03 Diego Novillo <dnovillo@google.com>
4683
4684 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
4685 (lto_input_tree_pointers): Likewise.
4686 * lto-streamer-out.c (pack_value_fields): Likewise.
4687 (lto_output_tree_pointers): Likewise.
4688 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
4689 and OPTIMIZATION_NODE.
4690
4691 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4692
4693 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
4694 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
4695 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
4696 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
4697 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
4698 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
4699 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
4700 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
4701 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
4702 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
4703 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
4704 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
4705 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
4706 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
4707 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
4708 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
4709 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
4710 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
4711 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
4712 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
4713 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
4714 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
4715 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
4716 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
4717 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
4718 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
4719 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
4720 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
4721 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
4722 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
4723 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
4724 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
4725 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
4726 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
4727 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
4728 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
4729 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
4730 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
4731 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
4732 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
4733 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
4734 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
4735 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
4736 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
4737 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
4738 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
4739 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
4740 * system.h (MD_UNWIND_SUPPORT): Poison.
4741 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
4742 * doc/tm.texi: Regenerate.
4743 * unwind-dw2.c: Include md-unwind-support.h instead of
4744 MD_UNWIND_SUPPORT.
4745 * config/ia64/unwind-ia64.c: Likewise.
4746 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
4747
4748 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
4749
4750 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
4751
4752 2011-06-03 Richard Henderson <rth@redhat.com>
4753 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4754
4755 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
4756 (sigill_hdlr): Correct insn, insn size.
4757 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
4758
4759 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4760
4761 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
4762 t-slibgcc-dummy.
4763 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
4764 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
4765 * config/mips/t-iris: Remove.
4766 * config/mips/t-irix6: New file.
4767 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
4768
4769 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4770
4771 * Makefile.in (LIB2ADDEHDEP): Remove.
4772 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
4773 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
4774 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
4775 * config/t-darwin (LIB2ADDEHDEP): Remove.
4776 * config/t-freebsd (LIB2ADDEHDEP): Remove.
4777 * config/t-linux (LIB2ADDEHDEP): Remove.
4778
4779 2011-06-03 Diego Novillo <dnovillo@google.com>
4780
4781 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
4782 (lto_register_var_decl_in_symtab): Likewise.
4783 (lto_register_function_decl_in_symtab): Likewise.
4784 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
4785 logic to uniquify_nodes.
4786
4787 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4788
4789 * config/alpha/t-osf5: Remove.
4790 * config/alpha/t-osf-pthread: Remove.
4791 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
4792 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
4793
4794 2011-06-03 Julian Brown <julian@codesourcery.com>
4795
4796 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
4797 (strongarm1110): Use strongarm tuning.
4798 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
4799 * config/arm/arm.c (arm_strongarm_tune): New.
4800 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4801 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
4802 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
4803 setting, using previous defaults or 1 for Cortex-A5.
4804 (arm_option_override): Set max_insns_skipped from current tuning.
4805
4806 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
4807
4808 * doc/install.texi (Options specification): Document --with-specs.
4809
4810 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4811
4812 * config/arm/neon.md (orndi3_neon): Actually split it.
4813
4814 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
4815
4816 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
4817 * var-tracking.c (reverse_op): Limite recurse depth to 5.
4818
4819 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
4820
4821 PR debug/47590
4822 * target.def (delay_sched2, delay_vartrack): New.
4823 * doc/tm.texi.in: Update.
4824 * doc/tm.texi: Rebuild.
4825 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
4826 * var-tracking.c (gate_handle_var_tracking): Likewise.
4827 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
4828 (bfin_flag_var_tracking): Drop.
4829 (output_file_start): Don't save and override flag_var_tracking.
4830 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
4831 (bfin_reorg): Test original variables.
4832 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4833 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
4834 (ia64_flag_var_tracking): Drop.
4835 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4836 (ia64_file_start): Don't save and override flag_var_tracking.
4837 (ia64_override_options_after_change): Ditto
4838 flag_schedule_insns_after_reload.
4839 (ia64_reorg): Test original variables.
4840 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
4841 (picochip_flag_var_tracking): Drop.
4842 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4843 (picochip_option_override): Don't save and override
4844 flag_schedule_insns_after_reload.
4845 (picochip_asm_file_start): Ditto flag_var_tracking.
4846 (picochip_reorg): Test original variables.
4847 * config/spu/spu.c (spu_flag_var_tracking): Drop.
4848 (TARGET_DELAY_VARTRACK): Define.
4849 (spu_var_tracking): New.
4850 (spu_machine_dependent_reorg): Call it.
4851 (asm_file_start): Don't save and override flag_var_tracking.
4852
4853 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
4854
4855 PR target/49163
4856 * config/sh/predicates.md (general_movsrc_operand): Return 0
4857 for memory and memory subreg of which address is an invalid
4858 indexed address for QI and HImode.
4859 (general_movdst_operand): Likewise.
4860
4861 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4862
4863 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
4864 edges only, when there is a non-local label in the function.
4865 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
4866
4867 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
4868
4869 * config/i386/constraints.md (Y3): New register constraint.
4870 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
4871 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
4872 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
4873 *sse2_interleave_lowv2df.
4874
4875 2011-06-02 Julian Brown <julian@codesourcery.com>
4876
4877 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
4878 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
4879 (arm_cortex_a5_tune): New.
4880
4881 2011-06-02 Julian Brown <julian@codesourcery.com>
4882
4883 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
4884 * config/arm/arm.c (arm_default_branch_cost): New.
4885 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4886 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
4887 (arm_fa726_tune): Set branch_cost field using
4888 arm_default_branch_cost.
4889 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
4890 current_tune structure.
4891 * dojump.c (tm_p.h): Include file.
4892
4893 2011-06-02 Julian Brown <julian@codesourcery.com>
4894
4895 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
4896 tuning.
4897 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
4898 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
4899 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
4900 field.
4901 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
4902 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
4903 (arm_fa726te_tune): Add prefer_constant_pool setting.
4904 (arm_v6t2_tune, arm_cortex_tune): New.
4905 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
4906 prefer_constant_pool setting.
4907
4908 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
4909
4910 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
4911 switch statement.
4912 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
4913 (*movdf_internal) <case 6,7,8>: Ditto.
4914
4915 * config/i386/constraints.md (Y4): New register constraint.
4916 * config/i386/sse.md (vec_set<mode>_0): Merge with
4917 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
4918 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
4919 *vec_extractv2di_1_sse.
4920 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
4921 and *vec_concatv2di_rex64_sse.
4922
4923 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
4924
4925 PR target/48807
4926 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
4927 of cgraph_local_info for null before attempting to use it.
4928
4929 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4930
4931 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
4932 (current_function_dynamic_alloc_count): Delete.
4933 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
4934 (expand_builtin_nonlocal_goto): Remove obsolete comment.
4935 (expand_builtin_update_setjmp_buf): Remove dead code.
4936 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
4937 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
4938 support.
4939 * function.c (instantiate_virtual_regs): Likewise.
4940 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
4941 for a block with a single abnormal incoming edge.
4942 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
4943 (SETJMP_VIA_SAVE_AREA): Delete.
4944 * config/sparc/sparc-protos.h (load_got_register): Declare.
4945 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
4946 (load_got_register): Make global.
4947 (sparc_frame_pointer_required): Add 'static'.
4948 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
4949 (sparc_builtin_setjmp_frame_value): New function.
4950 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
4951 (save_stack_nonlocal): New expander.
4952 (restore_stack_nonlocal): Likewise.
4953 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
4954 (nonlocal_goto_internal): New insn.
4955 (goto_handler_and_restore): Delete.
4956 (builtin_setjmp_setup): Likewise.
4957 (do_builtin_setjmp_setup): Likewise.
4958 (setjmp): Likewise.
4959 (builtin_setjmp_receiver): New expander.
4960
4961 2011-06-01 David Li <davidxl@google.com>
4962
4963 PR middle-end/49261
4964 * tree-pretty-print.c (dump_function_header): Format cleanup.
4965
4966 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
4967
4968 PR target/49238
4969 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
4970 needed when original operands are used for msw_skip comparison.
4971
4972 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4973
4974 PR debug/49250
4975 * var-tracking.c (add_uses, add_stores): Don't call
4976 cselib_subst_to_values on ENTRY_VALUE.
4977
4978 2011-06-01 Diego Novillo <dnovillo@google.com>
4979
4980 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
4981 output_record_start with LTO_null instead of output_zero.
4982 (lto_output_ts_binfo_tree_pointers): Likewise.
4983 (lto_output_tree): Likewise.
4984 (output_eh_try_list): Likewise.
4985 (output_eh_region): Likewise.
4986 (output_eh_lp): Likewise.
4987 (output_eh_regions): Likewise.
4988 (output_bb): Likewise.
4989 (output_function): Likewise.
4990 (output_unreferenced_globals): Likewise.
4991 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
4992 instead of NUM_TREE_CODES.
4993 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
4994 (lto_output_int_in_range): Change << to >> when shifting VAL.
4995
4996 2011-06-01 Diego Novillo <dnovillo@google.com>
4997
4998 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
4999 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
5000
5001 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5002
5003 PR target/45074
5004 * optabs.h (valid_multiword_target_p): Declare.
5005 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
5006 doing multi-word operations.
5007 * optabs.c (expand_binop): Likewise.
5008 (expand_doubleword_bswap): Likewise.
5009 (expand_absneg_bit): Likewise.
5010 (expand_unop): Likewise.
5011 (expand_copysign_bit): Likewise.
5012 (multiword_target_p): New function.
5013
5014 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5015
5016 PR rtl-optimization/48830
5017 PR rtl-optimization/48808
5018 PR rtl-optimization/48792
5019 * reload.c (push_reload): Check contains_reg_of_mode.
5020 * reload1.c (strip_paradoxical_subreg): New function.
5021 (gen_reload_chain_without_interm_reg_p): Use it to handle
5022 paradoxical subregs.
5023 (emit_output_reload_insns, gen_reload): Likewise.
5024
5025 2011-06-01 David Li <davidxl@google.com>
5026
5027 * predict.c : Change pass name
5028 * ipa.c: Ditto.
5029 * dce.c: Ditto.
5030 * tree-profile.c: Ditto.
5031 * except.c: Ditto.
5032
5033 2011-06-01 David Li <davidxl@google.com>
5034
5035 * tree-pretty-print.c (dump_function_header): New function.
5036 * final.c (rest_of_clean_state): Use header dumper.
5037 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
5038 * passes.c (pass_init_dump_file): Use header dumper.
5039
5040 2011-06-01 Jakub Jelinek <jakub@redhat.com>
5041
5042 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
5043 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
5044 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
5045 New functions.
5046 (mem_loc_descriptor): Use them.
5047
5048 * var-tracking.c (create_entry_value): New function.
5049 (vt_add_function_parameter): Use it.
5050
5051 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5052
5053 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
5054 Include <signal.h>, <ucontext.h>.
5055 (sigill_caught): Define.
5056 (sigill_hdlr): New function.
5057 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
5058 insns can be executed.
5059 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
5060 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
5061
5062 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5063
5064 * config/t-slibgcc-darwin: Move to ...
5065 * config/t-slibgcc-dummy: ... this. Clarify comments.
5066 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
5067 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
5068 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
5069 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
5070 Remove i386/t-crtstuff from tmake_file.
5071 (i[34567]86-*-solaris2*): Remove t-svr4,
5072 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
5073 t-slibgcc-dummy.
5074 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
5075 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
5076 sparc/t-crtfm from tmake_file.
5077 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
5078 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
5079 Remove extra_parts.
5080 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
5081 * config/i386/t-nwld (SHLIB_LINK): Remove.
5082 * config/i386/t-rtems-i386: Rename to ...
5083 * config/i386/t-rtems: ... this.
5084 ($(T)crti.o, $(T)crtn.o): Remove.
5085 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
5086 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
5087 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
5088 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
5089 EXTRA_MULTILIB_PARTS): Remove.
5090 * config/sparc/t-sol2-64: Likewise.
5091 * config/sparc/t-sol2: Remove.
5092 * config/sparc/t-crtin: Remove.
5093 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
5094 * config/i386/gmon-sol2.c: Remove.
5095 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
5096 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
5097 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
5098 * config/i386/sol2-gc1.asm: Remove.
5099 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
5100 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
5101 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
5102 * config/t-slibgcc-sld: Remove.
5103
5104 2011-06-01 Jakub Jelinek <jakub@redhat.com>
5105
5106 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
5107 base_type_for_mode with op_mode instead of mode.
5108
5109 2011-06-01 Paul Brook <paul@cpodesourcery.com>
5110
5111 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
5112 Cortex-A15.
5113 * config/arm/arm-tune.md: Regenerate.
5114 * config/arm/arm-tables.opt: Regenerate.
5115 * config/arm/arm.c (FL_DIV): Rename...
5116 (FL_THUMB_DIV): ... to this.
5117 (FL_ARM_DIV): Define.
5118 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
5119 (arm_arch_hwdiv): Remove.
5120 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
5121 (arm_issue_rate): Add cortexr5.
5122 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
5123 __ARM_ARCH_EXT_IDIV__.
5124 (TARGET_IDIV): Define.
5125 (arm_arch_hwdiv): Remove.
5126 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
5127 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
5128 (divsi3, udivsi3): New patterns.
5129 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
5130 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
5131
5132 2011-06-01 Martin Jambor <mjambor@suse.cz>
5133
5134 * ipa-utils.c (ipa_dfs_info): New field scc_no.
5135 * ipa-utils.c (searchc): Set scc_no.
5136
5137 2011-06-01 Martin Jambor <mjambor@suse.cz>
5138
5139 * ipa-utils.c (searchc_env): New field allow_overwritable.
5140 (searchc): do not ignore edges to overwritable nodes if indicated
5141 by env->allow_overwritable.
5142 (ipa_reduced_postorder): Set env.allow_overwritable.
5143
5144 2011-06-01 Richard Guenther <rguenther@suse.de>
5145
5146 * tree.c (free_lang_data): Do not reset boolean_type_node nor
5147 char_type_node.
5148 * lto-streamer.c (lto_record_common_node): Take node pointer,
5149 do not register types.
5150 (lto_preload_common_nodes): Explicitly skip preloading nodes
5151 that differ between frontends.
5152
5153 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
5154
5155 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
5156 NON_FLOAT_REGS.
5157
5158 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
5159
5160 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
5161 parameter value for dump. Dump cost on outermost call only.
5162 (rs6000_memory_move_cost): Dump cost on outermost call only.
5163
5164 2011-05-31 Jakub Jelinek <jakub@redhat.com>
5165
5166 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
5167 DW_OP_GNU_convert ops.
5168
5169 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
5170 cselib_preserve_constants.
5171 (cselib_lookup_1): If cselib_preserve_constants,
5172 a new VALUE is being created for REG and there is a VALUE for the
5173 same register in wider mode, add another loc with lowpart SUBREG of
5174 the wider VALUE.
5175 (cselib_subst_to_values): Handle ENTRY_VALUE.
5176 * var-tracking.c (replace_expr_with_values): Return NULL for
5177 ENTRY_VALUE too.
5178 * dwarf2out.c (convert_descriptor_to_signed): New function.
5179 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
5180 instead of two shifts.
5181 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
5182 the right mode if needed.
5183 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
5184 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
5185 convert_descriptor_to_signed.
5186 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
5187 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
5188
5189 PR target/48688
5190 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
5191
5192 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
5193
5194 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
5195 of X87MODEI12 and SWI48x instead of SSEMODEI24.
5196 (SWI248x): New mode iterator, rename from X87MODEI.
5197 (X87MODEI): Remove mode iterator.
5198 (X87MODEI12): Ditto.
5199 (SSEMODEI24): Ditto.
5200
5201 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
5202
5203 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
5204 * doc/invoke.texi: Document max-vartrack-expr-depth.
5205 * var-tracking.c (EXPR_DEPTH): New.
5206 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
5207
5208 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
5209
5210 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
5211 * config/i386/sse.md: Add n to negated FMA pattern names.
5212
5213 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
5214
5215 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
5216
5217 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
5218
5219 * gengtype-state.c (read_state_params_structs): Initialize previous.
5220
5221 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
5222
5223 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
5224 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
5225
5226 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
5227
5228 * config/i386/i386.md (*movtf_internal): Avoid allocating general
5229 registers. Penalize F*r->o alternative to prevent partial memory
5230 stalls. Slightly penalize *roF->*r alternative. Generate SSE
5231 CONST_DOUBLE immediates when optimizing function for size. Do not move
5232 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
5233 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
5234 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
5235 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
5236 alternatives.
5237 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
5238
5239 (fp_register_operand splitters): Use fp_register_operand
5240 constraint. Do not use FP_REG_P in insn condition.
5241 (any_fp_register_operand splitters): Use any_fp_register_operand
5242 constraint. Do not use ANY_FP_REG_P in insn condition.
5243
5244 2011-05-31 Jan Hubicka <jh@suse.cz>
5245
5246 * cgraph.h (cgraph_inline_failed_t): Give enum a name
5247 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
5248 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
5249 (lto_output_edge): Use output_enum and var_len_unsigned.
5250 (lto_output_varpool_node): Likewise.
5251 (input_overwrite_node): Do not take resolution parameter;
5252 extract it from a bitpack.
5253 (input_node): Do not read resolution; use input_enum and
5254 var_len_unsigned.
5255 (input_varpool_node): Likewise.
5256 (input_edge): Likewise.
5257 (input_cgraph_1): Likewise.
5258
5259 2011-05-31 Richard Guenther <rguenther@suse.de>
5260
5261 * gimple.c (gimple_register_canonical_type): Do not register
5262 any types via gimple_register_type.
5263
5264 2011-05-31 Jan Hubicka <jh@suse.cz>
5265
5266 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
5267 of thunks.
5268
5269 2011-05-31 Jakub Jelinek <jakub@redhat.com>
5270
5271 PR rtl-optimization/49235
5272 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
5273 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
5274
5275 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
5276
5277 PR tree-optimization/49093
5278 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
5279 data references.
5280
5281 2011-05-31 Dodji Seketeli <dodji@redhat.com>
5282
5283 PR debug/49047
5284 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
5285 for concrete functions containing the code of cloned functions.
5286
5287 2011-05-31 Richard Guenther <rguenther@suse.de>
5288
5289 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
5290 to ...
5291 (forward_propagate_into_comparison_1): ... this.
5292 (forward_propagate_comparison): Rename to ...
5293 (forward_propagate_into_comparison): ... this. Split out
5294 real forward propagation code to ...
5295 (forward_propagate_comparison): ... this.
5296 (forward_propagate_into_gimple_cond): Remove looping.
5297 (forward_propagate_into_cond): Likewise.
5298 (simplify_not_neg_expr): Return whether we have done something.
5299 (simplify_gimple_switch): Likewise.
5300 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
5301 (ssa_forward_propagate_and_combine): ... this. Re-structure
5302 to do a forward forward-propagation walk on BBs and a backward
5303 stmt combining walk on BBs. Consistently re-scan changed statements.
5304 (pass_forwprop): Adjust.
5305
5306 2011-05-30 Ian Lance Taylor <iant@google.com>
5307
5308 * godump.c (go_format_type): Correct length of name added to
5309 obstack for anonymous field.
5310
5311 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
5312
5313 PR target/49186
5314 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
5315 part of the second operand is 0.
5316
5317 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
5318
5319 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
5320 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
5321 to memory for !TARGET_MEMORY_MISMATCH_STALL.
5322 (*movdf_internal_rex64): Do not penalize F->r alternative.
5323 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
5324 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
5325 when optimizing function for size. Do not move CONST_DOUBLEs
5326 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
5327 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
5328 SUBREGs. Do not check for MEM_P operands in the insn condition,
5329 check for ANY_FP_REGNO_P instead.
5330 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
5331 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
5332 function for speed.
5333 * config/i386/i386.c (ix86_option_override_internal): Do not
5334 set TARGET_INTEGER_DFMODE_MOVES here.
5335
5336 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
5337
5338 PR target/49168
5339 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
5340
5341 2011-05-30 Jakub Jelinek <jakub@redhat.com>
5342
5343 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
5344 DW_TAG_rvalue_reference_type even for
5345 -gdwarf-4 -fno-debug-types-section.
5346
5347 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5348
5349 PR tree-optimization/46728
5350 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
5351 (build_and_insert_binop): New.
5352 (gimple_expand_builtin_pow): Reorder args for
5353 build_and_insert_call; use build_and_insert_binop; add more
5354 optimizations for fractional exponents.
5355
5356 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5357
5358 PR bootstrap/49190
5359
5360 Revert:
5361 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5362
5363 * tree.h (struct tree_identifier): Inherit from tree_typed, not
5364 tree_common.
5365 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
5366 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
5367 TS_BASE instead of TS_COMMON.
5368 * varasm.c (assemble_name): Remove assert.
5369
5370 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
5371
5372 * config.gcc: Keep obselete list sorted.
5373
5374 2011-05-30 Jakub Jelinek <jakub@redhat.com>
5375 Eric Botcazou <ebotcazou@adacore.com>
5376
5377 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
5378 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
5379 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
5380 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
5381 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
5382
5383 2011-05-30 Richard Guenther <rguenther@suse.de>
5384
5385 * gimple.c (gimple_types_compatible_p_1): Compare record
5386 and union type members properly.
5387
5388 2011-05-30 Richard Guenther <rguenther@suse.de>
5389
5390 PR tree-optimization/49210
5391 * ipa-split.c (split_function): Care for the case where the call
5392 result is not trivially convertible to the result holding variable.
5393
5394 2011-05-30 Richard Guenther <rguenther@suse.de>
5395
5396 PR tree-optimization/49218
5397 * tree-vrp.c (adjust_range_with_scev): Properly check whether
5398 overflow occured.
5399
5400 2011-05-30 Richard Guenther <rguenther@suse.de>
5401
5402 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
5403 New function split out from ...
5404 (forward_propagate_into_gimple_cond): ... here. Adjust.
5405 (forward_propagate_into_cond): Likewise.
5406 (forward_propagate_comparison): Also propagate into
5407 comparisons on assignment RHS. Change return value to
5408 behave similar to forward_propagate_into_cond.
5409 (tree_ssa_forward_propagate_single_use_vars): Handle
5410 strict-overflow warnings properly for forward_propagate_comparison.
5411
5412 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5413
5414 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
5415 from plugin linker.
5416 * configure: Regenerate.
5417
5418 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
5419
5420 PR tree-optimization/49199
5421 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
5422 non-reduction operands are either defined in the loop or by induction.
5423
5424 2011-05-29 Xinliang David Li <davidxl@google.com>
5425
5426 * opts-global.c (handle_common_deferred_options): Handle new options.
5427 * passes.c (register_one_dump_file): Call register_pass_name.
5428 (execute_one_pass): Check explicit enable/disable flag.
5429 (passr_hash): New function.
5430 (passr_eq): Ditto.
5431 (register_pass_name): Ditto.
5432 (get_pass_by_name): Ditto.
5433 (pass_hash): Ditto.
5434 (pass_eq): Ditto.
5435 (enable_pass): Ditto.
5436 (disable_pass): Ditto.
5437 (is_pass_explicitly_enabled_or_disabled): Ditto.
5438
5439 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
5440
5441 * config/i386/i386.md (*movoi_internal_avx): Use
5442 standard_sse_constant_opcode for alternative 0.
5443 (*movti_internal_sse): Ditto.
5444 (*movti_internal_rex64): Use standard_sse_constant_opcode for
5445 alternative 2.
5446 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
5447 sselog1 type moves.
5448 (*movsi_internal): Ditto.
5449 (*movdi_internal): Ditto. Add ssecvt type moves.
5450
5451 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
5452
5453 PR target/48830
5454 * rtlanal.c (simplify_subreg_regno): Adjust comment.
5455
5456 2011-05-29 Jakub Jelinek <jakub@redhat.com>
5457
5458 PR rtl-optimization/49095
5459 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
5460 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
5461
5462 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
5463
5464 PR target/43995
5465 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
5466 recurse_p argument. Only follow register copies if it is set,
5467 and prevent mips_find_pic_call_symbol from recursing.
5468 (mips_find_pic_call_symbol): Add a recurse_p argument.
5469 Pass it to mips_pic_call_symbol_from_set.
5470 (mips_annotate_pic_calls): Update accordingly.
5471
5472 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
5473
5474 * emit-rtl.c (try_split): Use a loop to search for
5475 NOTE_INSN_CALL_ARG_LOCATIONs.
5476
5477 2011-05-29 Richard Guenther <rguenther@suse.de>
5478
5479 PR tree-optimization/49217
5480 * ipa-pure-const.c (propagate_pure_const): Fix typos.
5481
5482 2011-05-28 Jan Hubicka <jh@suse.cz>
5483
5484 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
5485 length.
5486 (string_slot_free): Remove
5487 (create_output_block): Initialize obstack.
5488 (destroy_output_block): Free obstack.
5489 (lto_string_index): Add PERSISTENT parameter; do not duplicate
5490 the string unless it needs to be added into the hash.
5491 (lto_output_string_with_length): Add persistent attribute;
5492 handle NULL strings.
5493 (lto_output_string): Add PERSISTENT parameter.
5494 (output_string_cst, output_identifier): Simplify.
5495 (lto_output_location_bitpack): Update.
5496 (lto_output_builtin_tree): Update.
5497 * lto-streamer.h (struct output_block): Add obstack.
5498 (lto_output_string, lto_output_string_with_length): Remove
5499 declarations; functions are static now.
5500
5501 2011-05-28 Jan Hubicka <jh@suse.cz>
5502
5503 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
5504 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
5505 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
5506 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
5507 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
5508 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
5509 unpack_ts_decl_with_vis_value_fields,
5510 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
5511 lto_get_builtin_tree): Use enum and variable length i/o.
5512 * basic-block.h (profile_status_d): Add PROFILE_LAST.
5513 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
5514 New functions.
5515 (bp_pack_enum, bp_unpack_enum): New macros.
5516
5517 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5518
5519 * genrecog.c: Remove redundant forward declarations.
5520
5521 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5522
5523 * config.gcc: Deprecate mips*-*-openbsd*.
5524
5525 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5526
5527 PR bootstrap/49195
5528 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
5529 for match_op_dup.
5530
5531 2011-05-27 Andrew Pinski <pinskia@gmail.com>
5532
5533 PR middle-end/48981
5534 * gengtype.c (vec_prefix_type): New function.
5535 (note_def_vec): Use vec_prefix_type and change the length
5536 attribute to be based on the prefix.
5537 * vec.c: Include coretypes.h before vec.h.
5538 (struct vec_prefix): Remove.
5539 (vec_gc_p_reserve): Change the offsetof to sizeof.
5540 (vec_gc_p_reserve_exact): Likewise.
5541 (vec_heap_p_reserve): Likewise.
5542 (vec_heap_p_reserve_exact): Likewise.
5543 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
5544 (vec_stack_p_reserve): Change the offsetof to sizeof.
5545 (vec_stack_p_reserve_exact): Likewise.
5546 * vec.h (struct vec_prefix): New struct definition.
5547 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
5548 (VEC_T_GTY(T,B)): Likewise.
5549 (DEF_VEC_FUNC_P(T)): Use prefix field.
5550 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
5551 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
5552
5553 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5554
5555 PR tree-optimization/46728
5556 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
5557 (powi_as_mults): Add gimple_set_location.
5558 (build_and_insert_call): New.
5559 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
5560 0.5, 0.25, 0.75, 1./3., or 1./6.
5561
5562 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
5563
5564 * doc/contrib.texi: Update copyright years.
5565 (Contributors): Add Zdenek Sojka.
5566
5567 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5568
5569 * c-decl.c (c_push_function_context): Copy the current statement
5570 list stack.
5571 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
5572 (finish_struct): Call building_stmt_list_p instead of checking
5573 cur_stmt_list.
5574 * c-parser.c (c_parser_postfix_expression): Likewise.
5575 * c-typeck.c (c_end_compound_stmt): Likewise.
5576 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
5577 * tree-iterator.c (stmt_list_cache): Change to a VEC.
5578 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
5579 (free_stmt_list): Likewise.
5580 * tree.h (struct tree_statement_list): Include typed_tree instead
5581 of tree_common.
5582 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
5583 as TS_TYPED instead of TS_COMMON.
5584
5585 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5586 Uros Bizjak <ubizjak@gmail.com>
5587
5588 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
5589 (HAVE_AS_IX86_TLSGDPTL): Define.
5590 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
5591 (HAVE_AS_IX86_TLSLDMPLT): Define.
5592 * configure: Regenerate.
5593 * config.in: Regenerate.
5594 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
5595 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
5596 TARGET_SUN_TLS, use @tlsgdplt or @plt.
5597 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
5598 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
5599 @tlsldmplt or @plt.
5600 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
5601
5602 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
5603
5604 * sched-int.h (struct _haifa_deps_insn_data): New members cond
5605 and reverse_cond.
5606 (INSN_COND, INSN_REVERSE_COND): New macros.
5607 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
5608 once.
5609 (sched_get_condition_with_rev): Cache the results, and look them up
5610 if possible.
5611 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
5612 are clobbered by the current insn.
5613 * target.def (exposed_pipline): New sched data hook.
5614 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
5615 * doc/tm.texi: Regenerate.
5616
5617 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5618
5619 PR tree-optimization/49170
5620 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
5621 sincos or cexp.
5622
5623 2011-05-27 Richard Guenther <rguenther@suse.de>
5624
5625 PR middle-end/49189
5626 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
5627 of comparisons.
5628
5629 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
5630
5631 * haifa-sched.c (sched_scan_info): Remove.
5632 (schedule_block): Call sched_extend_luids rather than sched_init_luids
5633 with NULL args.
5634 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
5635 Remove functions.
5636 (sched_scan): Remove.
5637 (sched_extend_luids): Renamed from luids_extend_insn and no longer
5638 static. All callers changed.
5639 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
5640 static. All callers changed.
5641 (sched_init_luids): Remove all arguments except the first. All
5642 callers changed. Don't use sched_scan.
5643 (haifa_init_h_i_d): Likewise.
5644 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
5645 manually rather than using sched_init_luids. Likewise with
5646 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
5647 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
5648 rather than sched_init_luids with NULL args.
5649 * sel-sched-ir.c (new_insns): Remove variable.
5650 (sched_scan): New static function, previously in haifa-sched.c. Remove
5651 all arguments but the first two; all callers changed.
5652 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
5653 rather than sched_init_luids.
5654 (sel_init_bbs): Remove second argument. All callers changed.
5655 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
5656 with NULL arguments.
5657 (create_insn_rtx_from_pattern): Likewise.
5658 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
5659 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
5660 (sched_init_insn_luid, sched_extend_luids): Declare.
5661 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
5662 declarations.
5663
5664 2011-05-27 Richard Guenther <rguenther@suse.de>
5665
5666 PR middle-end/49177
5667 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
5668 A CMP B ? (T) true : (T) false for non-integral types T again.
5669
5670 2011-05-27 Jan Hubicka <jh@suse.cz>
5671
5672 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
5673 so 0 means NULL string.
5674 (lto_output_string_with_length): ... here.
5675 (lto_output_string, output_string_cst, output_identifier): Update
5676 handling of NULL strings.
5677 (lto_output_location_bitpack): New function.
5678 (lto_output_location): Use it.
5679 (lto_output_tree_ref): Use output_record_start.
5680 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
5681 len values.
5682 * lto-streamer-in.c (string_for_index): Break out from ...; offset
5683 values by 1.
5684 (input_string_internal): ... here;
5685 (input_string_cst, input_identifier, lto_input_string): Update handling
5686 of NULL strings.
5687 (lto_input_location_bitpack): New function
5688 (lto_input_location): Use it.
5689 (unpack_ts_type_common_value_fields): Pack align & alias in var len
5690 values.
5691 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
5692 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
5693 (bp_pack_value): Sanity check the value range.
5694 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
5695 New functions.
5696 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
5697 New functions.
5698
5699 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
5700
5701 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
5702 call_arg_location instructions down the floor.
5703
5704 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
5705
5706 PR rtl-optimization/49154
5707 * ira.c (setup_pressure_classes): Process class without sublcasses
5708 as a candidate for pressure classes.
5709
5710 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
5711
5712 PR rtl-optimization/48575
5713 * genrecog.c (position_type): New enum.
5714 (position): New structure.
5715 (decision): Use position structure instead of a string.
5716 (root_pos, peep2_insn_pos_list): New variables.
5717 (next_position, compare_positions): New functions.
5718 (new_decision): Use position structures instead of strings.
5719 (maybe_both_true): Likewise.
5720 (change_state): Likewise.
5721 (write_tree): Likewise.
5722 (make_insn_sequence): Likewise.
5723
5724 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5725
5726 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
5727 TS_BASE instead of TS_COMMON.
5728 (find_decls_types_r): Check for TS_TYPED structure before looking at
5729 TREE_TYPE.
5730 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
5731 Add chain field.
5732 (BLOCK_CHAIN): Use new chain field.
5733
5734 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
5735
5736 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
5737 moves expensive on Power7 also.
5738
5739 2011-05-26 Richard Guenther <rguenther@suse.de>
5740
5741 * fold-const.c (fold_unary_loc): Remove bogus code.
5742
5743 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5744
5745 * tree.h (struct tree_identifier): Inherit from tree_typed, not
5746 tree_common.
5747 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
5748 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
5749 TS_BASE instead of TS_COMMON.
5750 * varasm.c (assemble_name): Remove assert.
5751
5752 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5753
5754 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
5755 substituted first.
5756 * libgcc-std.ver: Delete file.
5757
5758 2011-05-26 Richard Guenther <rguenther@suse.de>
5759
5760 PR tree-optimization/48702
5761 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
5762 only when we know the base address is within bounds.
5763 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
5764 assume the base address of TARGET_MEM_REFs is in bounds.
5765
5766 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5767
5768 PR target/49099
5769 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
5770 declaration in TARGET_SOLARIS.
5771
5772 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
5773
5774 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
5775 The instruction is then expanded explicitly.
5776 (supported_compare): Callable instruction.
5777 (compare): Likewise.
5778
5779 2011-05-26 Jakub Jelinek <jakub@redhat.com>
5780
5781 PR c++/49165
5782 * gimplify.c (shortcut_cond_r): Don't special case
5783 COND_EXPRs if they have void type on one of their arms.
5784
5785 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5786
5787 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
5788 to reduce duplication, and to achieve a slightly more logical order
5789 of operations.
5790
5791 2011-05-26 Jakub Jelinek <jakub@redhat.com>
5792
5793 PR tree-optimization/49161
5794 * tree-vrp.c (struct case_info): New type.
5795 (compare_case_labels): Sort case_info structs instead of
5796 trees, and not primarily by CASE_LABEL uids but by
5797 label_for_block indexes.
5798 (find_switch_asserts): Put case labels into struct case_info
5799 array instead of TREE_VEC, adjust sorting, compare label_for_block
5800 values instead of CASE_LABELs.
5801
5802 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5803
5804 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
5805 ("orndi3_neon"): Likewise.
5806 ("bic<mode>3_neon"): Likewise.
5807
5808 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
5809
5810 PR tree-optimization/49038
5811 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
5812 Ensure at least one epilogue iteration if required by data
5813 accesses with gaps.
5814 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5815 to mark loops that require peeling for gaps.
5816 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
5817 (vect_get_known_peeling_cost): Take peeling for gaps into
5818 account.
5819 (vect_transform_loop): Generate epilogue if required by data
5820 access with gaps.
5821 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
5822 loop as requiring an epilogue if there are gaps in the end of
5823 the strided group.
5824
5825 2011-05-25 Ian Lance Taylor <iant@google.com>
5826
5827 * godump.c (go_format_type): Output the first field with a usable
5828 Go type, if any.
5829
5830 2011-05-25 Ian Lance Taylor <iant@google.com>
5831
5832 * godump.c (go_format_type): Check for invalid type names, pointer
5833 target types, and struct field types.
5834
5835 2011-05-25 Jason Merrill <jason@redhat.com>
5836
5837 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
5838
5839 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
5840
5841 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
5842
5843 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5844
5845 * config/i386/i386.md (*movqi_extv_1)): Put back
5846 "register_operand" check in "type" calculation.
5847 (*movqi_extzv_2): Likewise.
5848
5849 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5850
5851 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
5852
5853 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5854
5855 PR bootstrap/49160
5856 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
5857 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
5858 __divxc3, __divtc3): Wrap definitions in #ifndef.
5859
5860 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5861
5862 PR target/49142
5863 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
5864 "register_operand" check and replace q_regs_operand with
5865 QIreg_operand in "type" calculation.
5866 (*movqi_extv_1): Likewise.
5867 (*movqi_extzv_2_rex64): Likewise.
5868 (*movqi_extzv_2): Likewise.
5869
5870 * config/i386/predicates.md (QIreg_operand): New.
5871
5872 2011-05-25 Richard Guenther <rguenther@suse.de>
5873
5874 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5875 type-based offset disambiguation, streamline MEM_REF and
5876 TARGET_MEM_REF handling.
5877
5878 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5879
5880 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
5881 (bdesc_special_args): Add pause intrinsic.
5882
5883 * config/i386/i386.md (UNSPEC_PAUSE): New.
5884 (pause): Likewise.
5885 (*pause): Likewise.
5886 * config/i386/ia32intrin.h (__pause): Likewise.
5887
5888 * doc/extend.texi (X86 Built-in Functions): Add documentation for
5889 pause intrinsic.
5890
5891 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5892
5893 PR tree-optimization/46728
5894 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
5895 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
5896
5897 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
5898
5899 * tree.h (struct tree_exp): Inherit from struct tree_typed.
5900 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
5901 instead of TS_COMMON.
5902
5903 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5904
5905 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
5906 LIBGCC2_GNU_PREFIX is defined.
5907 (__N): New macro.
5908 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
5909 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
5910 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
5911 __clz_tab): Define using __N.
5912 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
5913 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
5914 * target.def (libfunc_gnu_prefix): New hook.
5915 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
5916 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
5917 * doc/tm.texi: Regenerate.
5918 * system.h (LIBGCC2_GNU_PREFIX): Poison.
5919 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
5920 account.
5921 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
5922 (init_optabs): Likewise for the bswap libfuncs.
5923 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
5924 and divide.
5925 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
5926 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
5927 * libgcc-std.ver: Remove.
5928 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
5929 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
5930 libgcc-std.ver.
5931 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5932 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
5933 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
5934 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
5935 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
5936 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5937 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5938 * config/fixed-bit.h (FIXED_OP): Define differently depending on
5939 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
5940 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
5941
5942 2011-05-25 Jan Hubicka <jh@suse.cz>
5943
5944 * lto-streamer-out.c (output_record_start): Use lto_output_enum
5945 (lto_output_tree): Use output_record_start.
5946 * lto-streamer-in.c (input_record_start): Use lto_input_enum
5947 (lto_get_pickled_tree): Use input_record_start.
5948 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
5949 (lto_value_range_error): New function.
5950 * lto-streamer.h (lto_value_range_error): Declare.
5951 (lto_output_int_in_range, lto_input_int_in_range): New functions.
5952 (lto_output_enum, lto_input_enum): New macros.
5953
5954 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
5955
5956 * common.opt (flag_stack_usage_info): New variable.
5957 (-Wstack-usage): New option.
5958 * doc/invoke.texi (Warning options): Document -Wstack-usage.
5959 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
5960 <OPT_fstack_usage>: Likewise.
5961 * toplev.c (output_stack_usage): Handle -Wstack-usage.
5962 * calls.c (expand_call): Test flag_stack_usage_info variable instead
5963 of flag_stack_usage.
5964 (emit_library_call_value_1): Likewise.
5965 * explow.c (allocate_dynamic_stack_space): Likewise.
5966 * function.c (instantiate_virtual_regs ): Likewise.
5967 (prepare_function_start): Likewise.
5968 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
5969 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
5970 * config/arm/arm.c (arm_expand_prologue): Likewise.
5971 (thumb1_expand_prologue): Likewise.
5972 * config/avr/avr.c (expand_prologue): Likewise.
5973 * config/i386/i386.c (ix86_expand_prologue): Likewise.
5974 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5975 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
5976 * config/mips/mips.c (mips_expand_prologue): Likewise.
5977 * config/pa/pa.c (hppa_expand_prologue): Likewise.
5978 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5979 * config/s390/s390.c (s390_emit_prologue): Likewise.
5980 * config/sh/sh.c (sh_expand_prologue): Likewise.
5981 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5982 * config/spu/spu.c (spu_expand_prologue): Likewise.
5983
5984 2011-05-25 Richard Guenther <rguenther@suse.de>
5985
5986 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
5987 (gimple_canonical_types_compatible_p): Likewise.
5988
5989 2011-05-25 Jan Hubicka <jh@suse.cz>
5990
5991 PR middle-end/49062
5992 * ipa.c (function_and_variable_visibility): Only add to same
5993 comdat group list if DECL_ONE_ONLY.
5994
5995 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
5996
5997 PR rtl-optimization/49014
5998 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
5999
6000 2011-05-25 Jakub Jelinek <jakub@redhat.com>
6001
6002 PR target/49128
6003 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
6004
6005 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
6006
6007 PR rtl-optimization/48757
6008 * ira-build.c (loop_with_eh_edge_p): Rename to
6009 loop_with_complex_edge_p, check edges on complexity, make function
6010 conditional.
6011 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
6012 conditional.
6013
6014 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
6015
6016 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
6017 force flag_ira_share_save_slots to 0.
6018
6019 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
6020
6021 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
6022 (vt_initialize): Set PROLOGUE_BB unconditionally.
6023 Add block comment about CFA_BASE_RTX machinery.
6024 Reset FP_CFA_OFFSET to -1 on all invalid paths.
6025 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
6026
6027 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
6028
6029 PR objc/48187
6030 * c-parser.c (c_parser_objc_class_instance_variables): More robust
6031 parsing of syntax error in ObjC instance variable lists. In
6032 particular, avoid an infinite loop if there is a stray ']'.
6033 Updated error message.
6034
6035 2011-05-24 Ian Lance Taylor <iant@google.com>
6036
6037 * godump.c (go_define): Don't accept a string immediately after
6038 another operand.
6039
6040 2011-05-24 Ian Lance Taylor <iant@google.com>
6041
6042 * godump.c (struct godump_container): Add invalid_hash field.
6043 (go_format_type): Return false if type is found in invalid_hash.
6044 (go_output_typedef): Add invalid type to invalid_hash.
6045 (go_finish): Create and delete invalid_hash.
6046
6047 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6048
6049 PR tree-optimization/46728
6050 * tree-ssa-math-opts.c (powi_table): New.
6051 (powi_lookup_cost): New.
6052 (powi_cost): New.
6053 (powi_as_mults_1): New.
6054 (powi_as_mults): New.
6055 (gimple_expand_builtin_powi): New.
6056 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
6057 (gate_cse_sincos): Remove sincos/cexp restriction.
6058
6059 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6060
6061 PR target/3746
6062 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
6063 mips-tdump native.
6064 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
6065 * mips-tdump.c: Likewise.
6066
6067 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
6068
6069 PR target/49128
6070 * config/i386/driver-i386.c (host_detect_local_cpu): Always
6071 add -mno-XXX. Handle FMA.
6072
6073 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
6074
6075 PR rtl-optimization/48633
6076 * ira-build.c (loop_with_eh_edge_p): New function.
6077 (mark_loops_for_removal): Use it.
6078
6079 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
6080
6081 PR rtl-optimization/48971
6082 * ira.c (setup_pressure_classes): Don't check register move cost
6083 for classes with one registers. Don't add pressure class if there
6084 is a pressure class with the same available hard registers.
6085 Check contains_reg_of_mode. Fix a typo in collecting
6086 temp_hard_regset. Ignore hard registers not belonging to a class.
6087
6088 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
6089
6090 PR target/49133
6091 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
6092
6093 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
6094 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6095
6096 PR gcov-profile/48845
6097 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
6098
6099 2011-05-24 Richard Guenther <rguenther@suse.de>
6100
6101 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
6102 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
6103 (gimple_types_compatible_p_1): Adjust.
6104 (iterative_hash_canonical_type): Do not bother about complete vs.
6105 incomplete types.
6106 (gimple_canonical_types_compatible_p): Likewise.
6107
6108 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6109
6110 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
6111
6112 2011-05-24 Richard Guenther <rguenther@suse.de>
6113
6114 PR bootstrap/49078
6115 * gimple.c (gimple_register_canonical_type): Revert
6116 previous change.
6117 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
6118 does not for a tree for the case where it matters. Cache
6119 pointer-type alias-sets.
6120
6121 2011-05-24 Joseph Myers <joseph@codesourcery.com>
6122
6123 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
6124 (OBJS): Remove options.o, opts-common.o and prefix.o.
6125 (OBJS-libcommon-target): New.
6126 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
6127 (BACKEND): Include libcommon-target.a.
6128 (MOSTLYCLEANFILES): Include libcommon-target.a.
6129 (libcommon-target.a): New.
6130 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
6131 prefix.o.
6132
6133 2011-05-23 Joseph Myers <joseph@codesourcery.com>
6134
6135 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
6136 parts of output shared with the driver.
6137 * optc-gen.awk: Don't generate parts of output not shared with the
6138 driver.
6139 * opth-gen.awk: Remove GCC_DRIVER conditionals.
6140 * doc/options.texi (SourcerInclude): Mention options-save.c.
6141 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
6142 (OBJS): Add options-save.o.
6143 (options-save.c, options-save.o): New.
6144 (options.o): Update dependencies.
6145 (gcc-options.o): Remove.
6146 (mostlyclean): Remove options-save.c.
6147
6148 2011-05-23 Jakub Jelinek <jakub@redhat.com>
6149
6150 PR debug/49032
6151 * dbxout.c: Include cgraph.h.
6152 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
6153 and without value expr, return NULL if no varpool node exists for
6154 it or if it is not needed.
6155 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
6156
6157 PR c/49120
6158 * c-decl.c (start_decl): Convert expr to void_type_node.
6159
6160 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
6161
6162 PR rtl-optimization/48826
6163 * emit-rtl.c (try_split): When splitting a call that is followed
6164 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
6165
6166 2011-05-23 Jakub Jelinek <jakub@redhat.com>
6167
6168 * cfgexpand.c (expand_debug_expr): For unused non-addressable
6169 parameters passed in memory prefer using DECL_INCOMING_RTL over
6170 the pseudos it will be copied into.
6171
6172 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
6173
6174 PR target/47315
6175 * config/i386/i386.c (ix86_option_override_internal): Save the
6176 initial options after checking vzeroupper.
6177
6178 2011-05-23 David Li <davidxl@google.com>
6179
6180 PR tree-optimization/48988
6181 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
6182 Initialize has_valid_pred for each pred chain.
6183
6184 2011-05-23 Richard Guenther <rguenther@suse.de>
6185
6186 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
6187 (iterative_hash_gimple_type): Always hash type names.
6188
6189 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
6190
6191 * c-typeck.c (build_function_call_vec): Tweak call to
6192 check_function_arguments.
6193
6194 2011-05-23 Richard Guenther <rguenther@suse.de>
6195
6196 PR tree-optimization/49115
6197 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
6198 is not necessarily carried out, do not claim it kills the ref.
6199 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
6200
6201 2011-05-23 Richard Guenther <rguenther@suse.de>
6202
6203 PR middle-end/15419
6204 * builtins.c (fold_builtin_memory_op): Be less restrictive about
6205 what pointer types we accept for folding.
6206
6207 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6208
6209 * gthr-gnat.c: Remove.
6210 * gthr-gnat.h: Remove.
6211 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
6212 * config/t-freebsd (LIB2ADDEH): Likewise.
6213 * config/t-linux (LIB2ADDEH): Likewise.
6214 * config/t-sol2 (LIB2ADDEH): Likewise.
6215 * config/ia64/t-vms (LIB2ADDEH): Likewise.
6216 * configure.ac (target_thread_file): Remove gnat handling.
6217 * configure: Regenerate.
6218 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
6219
6220 2011-05-23 Tristan Gingold <gingold@adacore.com>
6221 Eric Botcazou <ebotcazou@adacore.com>
6222
6223 * gcov.c (create_file_names): If no object directory is specified,
6224 keep the directory of the file.
6225
6226 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6227
6228 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
6229 * configure: Regenerate.
6230
6231 2011-05-23 Jakub Jelinek <jakub@redhat.com>
6232
6233 PR middle-end/48973
6234 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
6235 failed and the comparison has a single bit signed type, use
6236 constm1_rtx instead of const1_rtx for true value.
6237 (do_store_flag): If ops->type is single bit signed type, disable
6238 signel bit test optimization and pass -1 instead of 1 as last
6239 parameter to emit_store_flag_force.
6240
6241 2011-05-23 Tom de Vries <tom@codesourcery.com>
6242
6243 PR target/45098
6244 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
6245 function.
6246 (infer_loop_bounds_from_undefined): Use new function.
6247
6248 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
6249
6250 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
6251 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
6252 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
6253 and -O0 otherwise.
6254 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
6255
6256 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
6257
6258 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
6259 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
6260 returns true.
6261
6262 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
6263
6264 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
6265
6266 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
6267
6268 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
6269 UNSPEC_MOVE_PIC pattern.
6270
6271 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
6272
6273 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
6274 (sparc-*-rtems*): Likewise.
6275 (sparc64-*-elf*): Likewise.
6276 (sparc64-*-rtems*): Likewise.
6277 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
6278 * config/sparc/t-crtin: New file.
6279 * config/sparc/t-sol2 (crti.o): Delete rule.
6280 (crtn.o): Likewise.
6281 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
6282 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
6283 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
6284 (ENDFILE_SPEC): Add crtn.o.
6285
6286 2011-05-22 Tom de Vries <tom@codesourcery.com>
6287
6288 PR middle-end/48689
6289 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
6290 CODE_CONTAINS_STRUCT (TS_COMMON).
6291
6292 2011-05-22 Jakub Jelinek <jakub@redhat.com>
6293
6294 PR middle-end/49029
6295 * expmed.c (extract_fixed_bit_field): Test whether target can be used
6296 only after deciding which mode to use.
6297
6298 2011-05-22 Tom de Vries <tom@codesourcery.com>
6299
6300 PR target/45098
6301 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
6302 for call to get_shiftadd_cost.
6303
6304 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
6305
6306 PR target/49104
6307 * config/i386/cpuid.h (bit_MMXEXT): New define.
6308
6309 2011-05-22 Nick Clifton <nickc@redhat.com>
6310
6311 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
6312 initialisation of non-existant args[2] element. Use args[] array
6313 not arg[] array to pass arguments to build_function_type_list.
6314
6315 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
6316
6317 PR tree-optimization/49087
6318 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
6319
6320 2011-05-21 Jason Merrill <jason@redhat.com>
6321
6322 PR c++/49092
6323 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
6324 static storage duration.
6325
6326 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
6327
6328 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
6329 frame pointer.
6330
6331 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
6332
6333 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
6334 false if there are call-saved registers here...
6335 (sparc_can_use_return_insn_p): ...but here instead.
6336 (save_or_restore_regs): Fix thinko.
6337 (sparc_expand_prologue): Use current_function_is_leaf.
6338 (sparc_frame_pointer_required): Likewise.
6339
6340 2011-05-21 Nick Clifton <nickc@redhat.com>
6341
6342 PR target/49098
6343 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
6344
6345 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
6346
6347 * gengtype.c (walk_type): Implemented "atomic" GTY option.
6348 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
6349
6350 2011-05-21 Joseph Myers <joseph@codesourcery.com>
6351
6352 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
6353 * optc-gen.awk: Move common code to opt-read.awk.
6354 * opth-gen.awk: Likewise.
6355 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
6356
6357 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
6358
6359 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
6360
6361 2011-05-20 Tom de Vries <tom@codesourcery.com>
6362
6363 PR target/45098
6364 * tree-ssa-loop-ivopts.c: Include expmed.h.
6365 (get_shiftadd_cost): New function.
6366 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
6367
6368 2011-05-20 Jakub Jelinek <jakub@redhat.com>
6369
6370 PR bootstrap/49086
6371 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
6372 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
6373
6374 2011-05-20 Joseph Myers <joseph@codesourcery.com>
6375
6376 * Makefile.in: Update comment referring to $(OBJS-common).
6377
6378 2011-05-20 Ian Lance Taylor <iant@google.com>
6379
6380 * godump.c (go_output_typedef): Put enum constants in the macro
6381 hash table to avoid duplicate Go const definitions.
6382
6383 2011-05-20 Joseph Myers <joseph@codesourcery.com>
6384
6385 * Makefile.in (LIBDEPS): Add libcommon.a.
6386 (LIBS): Likewise.
6387 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
6388 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
6389 pretty-print.o and version.o.
6390 (OBJS-libcommon): New.
6391 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
6392 (BACKEND): Add libcommon.a.
6393 (MOSTLYCLEANFILES): Likewise.
6394 (libcommon.a): New.
6395 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
6396 (cpp$(exeext)): Likewise.
6397 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
6398 pretty-print.o and input.o.
6399 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
6400 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
6401 (errors.o): Remove.
6402 (mips-tfile): Don't explicitly use version.o.
6403 (mips-tdump): Likewise.
6404 (gcov.o): Depend on $(DIAGNOSTIC_H).
6405 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
6406 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
6407 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
6408 * gcov-dump.c: Include intl.h and diagnostic.h.
6409 (main): Initialize diagnostics.
6410 * gcov.c: Include diagnostic.h.
6411 (fnotice): Remove.
6412 (main): Initialize diagnostics.
6413 * lto-wrapper.c: Include diagnostic.h.
6414 (main): Initialize diagnostics.
6415
6416 2011-05-20 Michael Matz <matz@suse.de>
6417
6418 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
6419
6420 2011-05-20 Michael Matz <matz@suse.de>
6421 Richard Guenther <rguenther@suse.de>
6422
6423 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
6424 use lto_streamer_cache_append directly instead of returning a VEC.
6425 (preload_common_node): Remove.
6426 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
6427 track seen nodes.
6428 (lto_streamer_cache_create): Call lto_preload_common_nodes.
6429
6430 2011-05-20 Richard Guenther <rguenther@suse.de>
6431
6432 PR tree-optimization/49079
6433 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
6434 MEM_REFs correctly for the trailing array access detection.
6435 Special case constants the same way as decls for overall size
6436 constraining.
6437
6438 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
6439
6440 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
6441 argument expansion.
6442
6443 2011-05-20 Jakub Jelinek <jakub@redhat.com>
6444
6445 PR tree-optimization/49073
6446 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
6447 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6448 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
6449
6450 2011-05-20 Richard Guenther <rguenther@suse.de>
6451
6452 PR middle-end/48849
6453 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
6454 of pointer types the same way the middle-end does.
6455
6456 2011-05-20 Richard Guenther <rguenther@suse.de>
6457
6458 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
6459 or pointer-to chains. Delay all fixup to uniquify_nodes.
6460
6461 2011-05-19 Quentin Neill <quentin.neill@amd.com>
6462
6463 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
6464 (fma4_fmaddsub): Likewise
6465
6466 2011-05-19 Jan Hubicka <jh@suse.cz>
6467
6468 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
6469 (GIMPLE_TYPE_PAIR_SIZE): New macro.
6470 (type_pair_cache): New static var.
6471 (lookup_type_pair): Use fixed sized custom hash; make inline.
6472 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
6473 calls of lookup_type_pair.
6474 (print_gimple_types_stats): Remove cache stats.
6475 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
6476 and gtc_ob.
6477
6478 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
6479
6480 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
6481 when TARGET_RDRND is active.
6482 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
6483 Generate dummy SImode target register when target is NULL.
6484
6485 2011-05-19 Joseph Myers <joseph@codesourcery.com>
6486
6487 * config/arm/arm-fpus.def: New.
6488 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
6489 arm-fpus.def.
6490 * config/arm/arm-tables.opt: Regenerate.
6491 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
6492 (arm_option_override): Don't decode FPU name to string here.
6493 * config/arm/arm.opt (mfpu=): Use Enum.
6494 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
6495 Update dependencies.
6496
6497 2011-05-19 Joseph Myers <joseph@codesourcery.com>
6498
6499 * collect2.c: Include diagnostic.h.
6500 (fatal_perror, fatal, error, fancy_abort): Remove.
6501 (main): Set progname. Call xmalloc_set_program_name and
6502 diagnostic_initialize.
6503 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
6504 scan_libraries, resolve_lib_name): Call fatal_error instead of
6505 fatal and fatal_perror.
6506 * collect2.h (error, fatal, fatal_perror): Don't declare.
6507 * tlink.c: Include diagnostic-core.h.
6508 (recompile_files): Call fatal_error instead of fatal_perror.
6509 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
6510 pretty-print.o and input.o.
6511 (collect2.o, tlink.o): Update dependencies.
6512
6513 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6514
6515 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
6516
6517 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6518
6519 PR target/40483
6520 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
6521 COMDAT group syntax, both SPARC and x86 variants.
6522 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
6523 * configure: Regenerate.
6524 * config/sol2.h (TARGET_SOLARIS): Define.
6525 (PUSHSECTION_FORMAT): Remove.
6526 (SECTION_NAME_FORMAT): Define.
6527 * config/sol2.c: Include hashtab.h.
6528 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
6529 expansion, using SECTION_NAME_FORMAT.
6530 (solaris_comdat_htab): New variable.
6531 (struct comdat_entry): Define.
6532 (comdat_hash): New function.
6533 (comdat_eq): New function.
6534 (solaris_elf_asm_comdat_section): New function.
6535 (solaris_define_comdat_signature): New function.
6536 (solaris_code_end): New function.
6537 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
6538 (solaris_code_end): Declare.
6539 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
6540 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
6541 solaris_code_end.
6542 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
6543 Remove ATTRIBUTE_UNUSED.
6544 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
6545 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
6546 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
6547 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
6548 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
6549 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
6550 (PUSHSECTION_FORMAT): Remove.
6551 (SECTION_NAME_FORMAT): Redefine.
6552
6553 2011-05-19 Kai Tietz <ktietz@redhat.com>
6554
6555 * tree-cfg.c (verify_gimple_assign_binary): Barf on
6556 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
6557 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
6558
6559 2011-05-19 Anatoly Sokolov <aesok@post.ru>
6560 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6561
6562 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
6563
6564 2011-05-19 Richard Guenther <rguenther@suse.de>
6565
6566 PR middle-end/48985
6567 * tree-object-size.c (addr_object_size): If the pointed-to
6568 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
6569
6570 2011-05-19 Richard Guenther <rguenther@suse.de>
6571
6572 * gimple.c (gimple_types_compatible_p_1): Compare names of
6573 the types themselves.
6574 (iterative_hash_gimple_type): And hash them that way.
6575 (gimple_register_type_1): If we register a main variant properly
6576 initialize the leader to ourselves.
6577
6578 2011-05-19 Tom de Vries <tom@codesourcery.com>
6579
6580 PR target/45098
6581 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
6582 get_loop_invariant_expr_id.
6583 (get_loop_invariant_expr_id): Use get_expr_id.
6584 (parm_decl_cost): New function.
6585 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
6586 Improve bound cost estimation. Use different inv_expr_id for elim and
6587 express cases.
6588
6589 2011-05-19 Tom de Vries <tom@codesourcery.com>
6590
6591 PR target/45098
6592 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
6593 cost_base.cost == 0.
6594
6595 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
6596
6597 PR target/49002
6598 * config/i386/sse.md
6599 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
6600 load cast.
6601
6602 2011-05-18 Jakub Jelinek <jakub@redhat.com>
6603
6604 PR tree-optimization/49039
6605 * tree-vrp.c (extract_range_from_binary_expr): For
6606 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
6607 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
6608
6609 2011-05-18 Tom de Vries <tom@codesourcery.com>
6610
6611 PR target/45098
6612 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
6613
6614 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
6615
6616 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
6617 (*tls_global_dynamic_64): Ditto.
6618 (*tls_local_dynamic_base_32_gnu): Ditto.
6619 (*tls_local_dynamic_base_64): Ditto.
6620 (tls_initial_exec_64_sun): Ditto.
6621
6622 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
6623
6624 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
6625 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6626 bf592-none.
6627 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6628 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6629 * config/bfin/bfin.c (bfin_cpus): Add bf592.
6630 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6631 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
6632 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
6633 * config/bfin/elf.h (LIB_SPEC): Add bf592.
6634
6635 2011-05-18 Joseph Myers <joseph@codesourcery.com>
6636
6637 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
6638 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
6639 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
6640 target_thread_pointer, arm_structure_size_boundary, struct
6641 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
6642 struct abi_name, arm_all_abis): Remove.
6643 (arm_option_override) Don't process most enumerated option values here.
6644 Don't process target_fpe_name here. Work with integer not string for
6645 structure size boundary; use separate diagnostics for each case.
6646 * config/arm/arm.h (enum float_abi_type, enum
6647 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
6648 to arm-opts.h.
6649 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
6650 arm_structure_size_boundary): Remove.
6651 * config/arm/arm.opt (mabi=): Use Enum and Init.
6652 (arm_abi_type): New Enum and EnumValue entries.
6653 (mfloat-abi=): Use Enum and Init.
6654 (float_abi_type): New Enum and EnumValue entries.
6655 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
6656 (mfp16-format=): Use Enum and Init.
6657 (arm_fp16_format_type): New Enum and EnumValue entries.
6658 (mstructure-size-boundary=): Use UInteger and Init.
6659 (mtp=): Use Enum and Init.
6660 (arm_tp_type): New Enum and EnumValue entries.
6661
6662 2011-05-18 Richard Guenther <rguenther@suse.de>
6663
6664 PR tree-optimization/49018
6665 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
6666 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
6667 gimple_has_side_effects.
6668
6669 2011-05-18 Richard Guenther <rguenther@suse.de>
6670
6671 * gimple.c (gimple_register_type_1): New function, split out from ...
6672 (gimple_register_type): ... here. Avoid infinite recursion.
6673
6674 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
6675
6676 PR tree-optimization/41881
6677 * tree-vectorizer.h (struct _loop_vec_info): Add new field
6678 reduction_chains along with a macro for its access.
6679 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
6680 (destroy_loop_vec_info): Free reduction chains.
6681 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
6682 (vect_is_slp_reduction): New function.
6683 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
6684 (vect_create_epilog_for_reduction): Support SLP reduction chains.
6685 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
6686 definition types for reduction chains.
6687 (vect_supported_load_permutation_p): Don't allow permutations for
6688 reduction chains.
6689 (vect_analyze_slp_instance): Support reduction chains.
6690 (vect_analyze_slp): Try to build SLP instance from reduction chains.
6691 (vect_get_constant_vectors): Handle reduction chains.
6692 (vect_schedule_slp_instance): Mark the first statement of the
6693 reduction chain as reduction.
6694
6695 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
6696
6697 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
6698 names for group elements access.
6699 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
6700 reduction chains as well. Remove data reference and interleaving
6701 related words from the fields names.
6702 * tree-vect-loop.c (vect_transform_loop): Use new names for group
6703 elements access.
6704 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
6705 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
6706 vect_update_interleaving_chain, vect_same_range_drs,
6707 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
6708 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
6709 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
6710 vect_analyze_group_access, vect_analyze_data_ref_access,
6711 vect_create_data_ref_ptr, vect_transform_strided_load,
6712 vect_record_strided_load_vectors): Likewise.
6713 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
6714 vect_model_load_cost, vectorizable_store, vectorizable_load,
6715 vect_remove_stores, new_stmt_vec_info): Likewise.
6716 * tree-vect-slp.c (vect_build_slp_tree,
6717 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
6718
6719 2011-05-18 Richard Guenther <rguenther@suse.de>
6720
6721 PR middle-end/48989
6722 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
6723 operand verification.
6724 (verify_gimple_assign_binary): Likewise.
6725 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
6726 to non-1-precision BOOLEAN_TYPEs.
6727
6728 2011-05-18 Tom de Vries <tom@codesourcery.com>
6729
6730 PR target/45098
6731 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
6732
6733 2011-05-18 Jakub Jelinek <jakub@redhat.com>
6734
6735 PR tree-optimization/49000
6736 * tree-ssa.c (execute_update_addresses_taken): Call
6737 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
6738 be rewritten and decl has been marked for renaming, reset
6739 the debug stmt.
6740
6741 2011-05-17 Joseph Myers <joseph@codesourcery.com>
6742
6743 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
6744 enum_opts_set when testing if attributes have set -mfpmath=.
6745
6746 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
6747
6748 * config/mips/mips.c (mips_handle_option): Remove unused variable.
6749
6750 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
6751
6752 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
6753 info->entry with 0
6754 * tree-inline.c (maybe_inline_call_in_expr): Initialize
6755 id.transform_lang_insert_block with NULL.
6756
6757 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
6758
6759 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
6760 (output_fp_compare): Change args 3 and 4 to bool.
6761 (ix86_expand_call): Change arg 6 to bool.
6762 (ix86_attr_length_immediate_default): Change arg 2 to bool.
6763 (ix86_attr_length_vex_default): Change arg 3 to bool.
6764 * config/i386/i386.md: Update all uses.
6765 * config/i386/i386.c: Ditto.
6766 (ix86_flags_dependent): Change return type to bool.
6767
6768 2011-05-17 Richard Guenther <rguenther@suse.de>
6769
6770 * gimple.c (type_hash_pair_compare): Fix comparison.
6771
6772 2011-05-17 Richard Guenther <rguenther@suse.de>
6773
6774 * gimple.c (iterative_hash_gimple_type): Simplify singleton
6775 case some more, fix final hash value of the non-singleton case.
6776
6777 2011-05-17 Richard Guenther <rguenther@suse.de>
6778
6779 PR bootstrap/49013
6780 Revert
6781 2011-05-16 Richard Guenther <rguenther@suse.de>
6782
6783 * gimple.c (gimple_types_compatible_p_1): Use names of the
6784 type itself, not its main variant.
6785 (iterative_hash_gimple_type): Likewise.
6786
6787 2011-05-17 Richard Guenther <rguenther@suse.de>
6788
6789 * gimple.c (gimple_register_canonical_type): Use the main-variant
6790 leader for computing the canonical type.
6791
6792 2011-05-17 Nick Clifton <nickc@redhat.com>
6793
6794 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
6795 moves.
6796
6797 * config/rx/rx.md: Add peephole to remove redundant extensions
6798 after loads.
6799 (bitset_in_memory): Use rx_restricted_mem_operand.
6800 (bitinvert_in_memory): Likewise.
6801 (bitclr_in_memory): Likewise.
6802
6803 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
6804 Nick Clifton <nickc@redhat.com>
6805
6806 * config/rx/rx.md: Add peepholes to match a register move followed
6807 by a comparison of the moved register. Replace these with an
6808 addition of zero that does both actions in one instruction.
6809
6810 2011-05-17 Jakub Jelinek <jakub@redhat.com>
6811
6812 PR target/48986
6813 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
6814 predicate to allow CONST_INT.
6815 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
6816
6817 2011-05-16 Joseph Myers <joseph@codesourcery.com>
6818
6819 * opts-common.c (opt_enum_arg_to_value): New.
6820 * opts.h (opt_enum_arg_to_value): Declare.
6821 * config/i386/i386.opt (fpmath): Remove.
6822 (mfpmath=): Use Enum, Init and Save.
6823 (fpmath_unit): New Enum and EnumValue entries.
6824 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
6825 name for function fpmath state.
6826 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
6827 * config/i386/i386.c: Include diagnostic.h.
6828 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
6829 (ix86_target_string): Take enum fpmath_unit value instead of string.
6830 (ix86_debug_options): Update call to ix86_target_string.
6831 (ix86_option_override_internal): Don't process fpmath strings here.
6832 (x86_function_specific_save, ix86_function_specific_restore):
6833 Don't handle fpmath state specially.
6834 (ix86_function_specific_print): Pass fpmath state to
6835 ix86_target_string instead of printing in this function.
6836 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
6837 Handle enum attributes.
6838 (IX86_ATTR_ENUM, ix86_opt_enum): New.
6839 (ix86_valid_target_attribute_tree): Update option_strings
6840 handling. Handle fpmath as enum option.
6841 (ix86_can_inline_p): Update field names for function fpmath state.
6842 (ix86_expand_builtin): Update call to ix86_target_string.
6843 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
6844 (ix86_fpmath): Remove.
6845 * config/i386/t-i386 (i386.o): Update dependencies.
6846
6847 2011-05-16 Joseph Myers <joseph@codesourcery.com>
6848
6849 PR preprocessor/48677
6850 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
6851 from decoded_options[0], not from itself.
6852
6853 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
6854
6855 * config/i386/constraints.md (z): New constraint.
6856 * config/i386/i386.c (c): New mode attribute.
6857 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
6858 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
6859 constraint for operand 0.
6860 (*call_vzeroupper): Ditto.
6861 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
6862 (*call_rex64_ms_sysv_vzeroupper): Ditto.
6863 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
6864 Use "lzm" constraint for operand 0.
6865 (*call_pop_vzeroupper): Ditto.
6866 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
6867 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
6868 constraint for operand 0.
6869 (*sibcall_vzeroupper): Ditto.
6870 (*sibcall_rex64_ms_sysv): Ditto.
6871 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
6872 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
6873 *sibcall_pop_1. Use "Uz" constraint for operand 0.
6874 (*sibcall_pop_vzeroupper): Ditto.
6875 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
6876 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
6877 mode iterator. Use "<c>zm" constraint for operand 1.
6878 (*call_value_vzeroupper): Ditto.
6879 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
6880 for operand 1.
6881 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
6882 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
6883 *call_value_pop_1. Use "lzm" constraint for operand 1.
6884 (*call_value_pop_vzeroupper): Ditto.
6885 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
6886 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
6887 mode iterator. Use "Uz" constraint for operand 1.
6888 (*sibcall_value_vzeroupper): Ditto.
6889 (*sibcall_value_rex64_ms_sysv): Ditto.
6890 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
6891 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
6892 constraint for operand 1.
6893 (*sibcall_value_pop_vzeroupper): Ditto.
6894 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
6895 and "z" constraint for operand 2.
6896 (*tls_global_dynamic_32_gnu): Ditto.
6897 (*tls_local_dynamic_base_32_gnu): Ditto.
6898 (*tls_local_dynamic_base_64): Ditto.
6899 (*tls_local_dynamic_32_once): Ditto.
6900 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
6901 Update all callers.
6902 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
6903
6904 2011-05-16 Richard Guenther <rguenther@suse.de>
6905
6906 * gimple.c (gimple_types_compatible_p_1): Use names of the
6907 type itself, not its main variant.
6908 (iterative_hash_gimple_type): Likewise.
6909
6910 2011-05-16 Richard Guenther <rguenther@suse.de>
6911
6912 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
6913 always visit pointer target and function result and argument types.
6914
6915 2011-05-16 Jason Merrill <jason@redhat.com>
6916
6917 PR c++/48999
6918 * tree-inline.c (copy_statement_list): Put back recursion.
6919
6920 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
6921
6922 PR target/27663
6923 PR target/41076
6924 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
6925 * config/avr/avr.md ("*ior<mode>qi.byte0",
6926 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
6927
6928 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
6929
6930 PR target/45099
6931 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
6932 register is needed for a function argument.
6933
6934 2011-05-16 Richard Guenther <rguenther@suse.de>
6935
6936 * gimple.c (struct type_hash_pair): New type.
6937 (type_hash_pair_compare): New function.
6938 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
6939
6940 2011-05-16 Revital Eres <revital.eres@linaro.org>
6941
6942 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
6943
6944 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
6945
6946 * config/i386/i386.md (floating point move splitters): Fix
6947 usage of standard_80387_constant_p.
6948 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
6949
6950 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
6951
6952 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
6953
6954 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
6955
6956 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
6957 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
6958 (tree_ssa_lim_finalize): Likewise.
6959
6960 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
6961
6962 * config/i386/constraint.md (Yd, Yx): New register constraints.
6963 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
6964 Yd conditional register constraint.
6965 (*movtf_internal): Use standard_sse_constant_opcode.
6966 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
6967 Yx conditional register constraint.
6968 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
6969 Yd conditional register constraint. Use standard_sse_constant_p to
6970 check for valid SSE constants and call standard_sse_constant_opcode to
6971 output SSE insn.
6972 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
6973 constants and call standard_sse_constant_opcode to output SSE insn.
6974 * config/i386/i386.c (ix86_option_ovverride_internal): Set
6975 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
6976 optimize_size is set.
6977 (standard_sse_constant_opcode): Output conditional AVX insn templates.
6978
6979 2011-05-14 Tobias Burnus <burnus@net-b.de>
6980
6981 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
6982
6983 2011-05-13 Martin Jambor <mjambor@suse.cz>
6984
6985 * ipa-prop.c (ipa_cst_from_jfunc): New function.
6986 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
6987 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
6988 (evaluate_conditions_for_ipcp_clone): Removed.
6989 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
6990 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
6991 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
6992
6993 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
6994
6995 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
6996 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
6997 lieu of MAY_HAVE_DEBUG_STMTS.
6998 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
6999 debug statements if !MAY_HAVE_DEBUG_STMTS.
7000
7001 2011-05-13 Martin Thuresson <martint@google.com>
7002
7003 PR gcov-profile/47793
7004 * libgcov.c (gcov_exit): Support relative profile paths.
7005 * doc/invoke.texi (-fprofile-dir): Update for above change.
7006
7007 2011-05-13 Richard Guenther <rguenther@suse.de>
7008
7009 * gimple.c (gimple_canonical_types_compatible_p): Do not use
7010 type-pair caching, do not compare hashes.
7011
7012 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
7013
7014 PR middle-end/48965
7015 * tree-cfg.c (edge_to_cases_cleanup): Return true.
7016 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
7017
7018 2011-05-13 Kai Tietz <ktietz@redhat.com>
7019
7020 * gimplify.c (gimplify_expr): Make sure operand is boolified.
7021 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
7022 compatible type for TRUTH_NOT_EXPR.
7023
7024 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
7025
7026 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
7027 (ix86_hard_regno_mode_ok): Change return value to bool. Use
7028 can_create_pseudo_p ().
7029
7030 2011-05-13 Richard Guenther <rguenther@suse.de>
7031
7032 PR lto/48978
7033 * gimple.c (iterative_hash_gimple_type): Revert change in
7034 pointer target and function result and argument hashing.
7035
7036 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
7037
7038 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
7039 (*movxf_internal_nointeger): Ditto.
7040 (*movdf_internal_rex64): Ditto.
7041 (*movdf_internal): Ditto.
7042 (*movdf_internal_nointeger): Ditto.
7043 (*movsf_internal): Ditto.
7044 (sincos splitters): Use can_create_pseudo ().
7045
7046 2011-05-13 Joseph Myers <joseph@codesourcery.com>
7047
7048 * config/i386/i386-opts.h: New.
7049 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
7050 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
7051 ix86_section_threshold): Remove.
7052 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
7053 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
7054 OPT_mbranch_cost_.
7055 (ix86_option_override_internal): Don't decode strings for options
7056 other than -march=, -mtune= and -mfpmath=. Don't allow for
7057 __attribute__ uses in remaining diagnostics for options with
7058 string arguments. Don't check for integer arguments being negative.
7059 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
7060 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7061 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
7062 ix86_branch_cost, ix86_section_threshold): Remove.
7063 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
7064 HeaderInclude.
7065 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
7066 but not Var.
7067 (masm=): Use Enum and Init.
7068 (asm_dialect): New Enum and EnumValue entries.
7069 (mbranch-cost=): Use UInteger.
7070 (mlarge-data-threshold=): Use UInteger and Init.
7071 (mcmodel=): Use Enum and Init.
7072 (cmodel): New Enum and EnumValue entries.
7073 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
7074 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
7075 mregparm=): Use UInteger.
7076 (mstringop-strategy=): Use Enum and Init.
7077 (stringop_alg): New Enum and EnumValue entries.
7078 (mtls-dialect=): Use Enum and Init.
7079 (tls_dialect): New Enum and EnumValue entries.
7080 (mabi=): Use Enum and Init.
7081 (calling_abi): New Enum and EnumValue entries.
7082 (mveclibabi=): Use Enum and Init.
7083 (ix86_veclibabi): New Enum and EnumValue entries.
7084
7085 2011-05-13 Nick Clifton <nickc@redhat.com>
7086
7087 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
7088 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
7089
7090 2011-05-13 Kai Tietz <ktietz@redhat.com>
7091
7092 PR middle-end/48984
7093 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
7094 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
7095 (gimple_boolify): Check for cast for boolean_type_node instead for
7096 BOOLEAN_TYPE.
7097
7098 2011-05-13 Richard Guenther <rguenther@suse.de>
7099
7100 PR tree-optimization/48172
7101 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
7102 multiplying by number of iterations for equal step.
7103 (vect_create_cond_for_alias_checks): Likewise.
7104
7105 2011-05-13 Andreas Schwab <schwab@redhat.com>
7106
7107 * configure.ac: Use AS_HELP_STRING throughout.
7108 * configure: Regenerate.
7109
7110 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
7111
7112 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
7113 (ix86_emit_restore_regs_using_mov): Likewise.
7114 (ix86_emit_restore_sse_regs_using_mov): Likewise.
7115
7116 2011-05-12 Anatoly Sokolov <aesok@post.ru>
7117
7118 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
7119 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
7120 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
7121 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
7122 RTX_OK_FOR_OLO10_P): ...here.
7123 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
7124 SYMBOLIC_CONST.
7125
7126 2011-05-12 Kai Tietz <ktietz@redhat.com>
7127
7128 * gimplify.c (gimple_boolify): Re-boolify expression
7129 arguments even if expression type is of kind BOOLEAN_TYPE.
7130 (gimplify_boolean_expr): Removed.
7131 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
7132 and XOR. Additional take care that we keep expression's type.
7133 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
7134 of TRUTH_AND|OR|XOR_EXPR.
7135
7136 2011-05-12 Jakub Jelinek <jakub@redhat.com>
7137
7138 PR tree-optimization/48975
7139 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
7140 on all bbs here and free and clear ifc_bbs at the end.
7141
7142 2011-05-12 Richard Guenther <rguenther@suse.de>
7143
7144 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
7145 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
7146 until after simple checks.
7147 (gimple_types_compatible_p): Likewise.
7148 (iterative_hash_gimple_type): Always hash pointer targets
7149 and function return and argument types.
7150 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
7151 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
7152 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
7153 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
7154 completely in the simple compare section.
7155 (gimple_register_canonical_type): Query the cache again after
7156 registering.
7157
7158 2011-05-12 Richard Guenther <rguenther@suse.de>
7159
7160 PR tree-optimization/48172
7161 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
7162 the number of iterations from the segment size calculation.
7163 (vect_create_cond_for_alias_checks): Adjust.
7164
7165 2011-05-12 Jakub Jelinek <jakub@redhat.com>
7166
7167 PR debug/48967
7168 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
7169 if validate_subreg fails.
7170
7171 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
7172
7173 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
7174 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
7175 early.
7176
7177 2011-05-12 DJ Delorie <dj@redhat.com>
7178
7179 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
7180 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
7181 created builtin into rx_builtins array.
7182 (rx_builtin_decl): New function.
7183 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
7184
7185 2011-05-12 DJ Delorie <dj@redhat.com>
7186 Nick Clifton <nickc@redhat.com>
7187
7188 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
7189 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
7190 (rx_is_legitimate_address): Add pre-decrement and post-increment
7191 addressing in HImode and QImode. Fix test for out of range
7192 REG+INT addressing.
7193 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
7194 (rx_align_for_label): Test label before extracting its usage count.
7195 (rx_adjust_insn_lengths): Fix selection of insn codes.
7196 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
7197
7198 2011-05-11 Jason Merrill <jason@redhat.com>
7199
7200 * tree.c (type_hash_canon): Use struct tree_type_non_common.
7201
7202 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
7203
7204 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
7205 reindent the subsequent block.
7206
7207 2011-05-11 Satoru Takabayashi <satorux@google.com>
7208 Paul Pluzhnikov <ppluzhnikov@google.com>
7209
7210 * doc/install.texi (Configuration): Document --with-linker-hash-style.
7211 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
7212 * config.in: Add LINKER_HASH_STYLE.
7213 * configure.ac: Add --with-linker-hash-style.
7214 * configure: Regenerate.
7215
7216 2011-05-11 Richard Guenther <rguenther@suse.de>
7217
7218 PR middle-end/48964
7219 * gimple.c (iterative_hash_canonical_type): Fix typo.
7220
7221 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
7222
7223 * config/i386/i386.c (legitimize_tls_address)
7224 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
7225 expanders directly for TARGET_GNU2_TLS. Determine pic and
7226 __tls_get_addr symbol reference here. Update call to
7227 gen_tls_global_dynamic_{32,64} for added arguments.
7228 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
7229 expanders directly for TARGET_GNU2_TLS. Determine
7230 __tls_get_addr symbol reference here. Update call to
7231 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
7232 unique UNSPEC REG_EQUIV to libcall block.
7233 (ix86_tls_get_addr): Declare static.
7234 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
7235 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
7236 Do not determine pic and __tls_get_addr symbol reference here. Do not
7237 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
7238 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
7239 (tls_global_dynamic_64): Add operand 2. Do not determine
7240 __tls_get_addr symbol reference here. Do not call
7241 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
7242 (tls_local_dynamic_base64): Ditto for operand 1.
7243
7244 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
7245
7246 * function.c (expand_function_start): Initialize stack_check_probe_note
7247 only if the generic stack checking mechanism is used.
7248
7249 2011-05-11 Richard Guenther <rguenther@suse.de>
7250
7251 PR tree-optimization/15256
7252 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
7253 (A & B) | C, combine (A op CST1) op CST2.
7254 (tree_ssa_forward_propagate_single_use_vars): Only bother to
7255 visit assigns that have uses.
7256
7257 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
7258
7259 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
7260 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
7261 (unpack_ts_type_common_value_fields): ...this. Update comment.
7262 (unpack_value_fields): Adjust for renaming.
7263 (lto_input_ts_type_tree_pointers): Split into...
7264 (lto_input_ts_type_common_tree_pointer): ...this and...
7265 (lto_input_ts_type_non_common_tree_pointers): ...this.
7266 (lto_input_tree_pointers): Adjust for above split.
7267 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
7268 (pack_ts_type_common_value_fields): ...this. Update comment.
7269 (lto_output_ts_type_tree_pointers): Split into...
7270 (lto_output_ts_type_common_tree_pointers): ...this and...
7271 (lto_output_ts_type_non_common_tree_pointers): ...this.
7272 (lto_output_tree_pointers): Adjust for above split.
7273 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
7274 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
7275 * stor-layout.c (vector_type_mode): Adjust location of mode field.
7276 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
7277 Define.
7278 (struct tree_type): Split into...
7279 (struct tree_type_common: ...this and...
7280 (struct tree_type_with_lang_specific): ...this and...
7281 (struct tree_type_non_common): ...this. Adjust accessor macros
7282 accordingly.
7283 (TYPE_VALUES_RAW): Define.
7284 (union tree_node): Update for above changes.
7285 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
7286 TS_TYPE_NON_COMMON.
7287 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
7288 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
7289 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
7290 * treestructu.def (TS_TYPE): Remove.
7291 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
7292 Define.
7293
7294 2011-05-11 Jakub Jelinek <jakub@redhat.com>
7295
7296 PR debug/48159
7297 * tree-ssa.c (reset_debug_uses): New function.
7298 * tree-flow.h (reset_debug_uses): New prototype.
7299 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
7300 * tree-loop-distribution.c (generate_loops_for_partition): Call
7301 reset_debug_uses on the stmts that will be removed. Keep around
7302 all debug stmts, don't count them as bits in partition bitmap.
7303 (generate_builtin): Don't count debug stmts or labels as bits in
7304 partition bitmap.
7305
7306 2011-05-11 Richard Guenther <rguenther@suse.de>
7307
7308 * gimple.c (gimple_type_hash_1): Merge with ...
7309 (gimple_type_hash): ... this.
7310 (gtc_visit): Remove mode parameter and simplify accordingly.
7311 (gimple_types_compatible_p_1): Likewise.
7312 (gimple_types_compatible_p): Likewise.
7313 (iterative_hash_gimple_type): Likewise.
7314 (visit): Likewise.
7315 (gimple_type_eq): Adjust.
7316
7317 2011-05-11 Revital Eres <revital.eres@linaro.org>
7318
7319 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
7320 enters the branch create an anti edge in the opposite direction
7321 to prevent the creation of reg-moves.
7322 * modulo-sched.c: Adjust comment to reflect the fact we are
7323 scheduling closing branch.
7324 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
7325 (stage_count): New field in struct partial_schedule.
7326 (calculate_stage_count): New function.
7327 (normalize_sched_times): Rename to reset_sched_times and handle
7328 incrementing the sched time of the nodes by a constant value
7329 passed as parameter.
7330 (duplicate_insns_of_cycles): Skip closing branch.
7331 (sms_schedule_by_order): Schedule closing branch.
7332 (ps_insn_find_column): Handle closing branch.
7333 (sms_schedule): Call reset_sched_times and adjust the code to
7334 support scheduling of the closing branch.
7335 (ps_insert_empty_row): Update calls to normalize_sched_times
7336 and rotate_partial_schedule functions.
7337
7338 2011-05-11 Richard Guenther <rguenther@suse.de>
7339
7340 PR middle-end/48953
7341 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
7342
7343 2011-05-11 Joseph Myers <joseph@codesourcery.com>
7344
7345 * opts.c (finish_options): Move warning settings from process_options.
7346 * toplev.c (process_options): Move warning settings to finish_options.
7347
7348 2011-05-11 Richard Guenther <rguenther@suse.de>
7349
7350 PR tree-optimization/18041
7351 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
7352 (simplify_bitwise_binary): ... this. Handle operand conversions
7353 by applying them to the result instead.
7354 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
7355
7356 2011-05-11 Richard Guenther <rguenther@suse.de>
7357
7358 * gimple.c (gimple_canonical_types_compatible_p): Split out
7359 from gimple_types_compatible_p and friends. Do not recurse
7360 to pointed-to types.
7361 (gimple_canonical_type_eq): Use it.
7362 (iterative_hash_canonical_type): Split out from
7363 iterative_hash_gimple_type and friends. Do not recurse
7364 to pointed-to types.
7365 (gimple_canonical_type_hash): Use it, allocate the hash here.
7366
7367 2011-05-11 Revital Eres <revital.eres@linaro.org>
7368
7369 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
7370 recognizing doloop.
7371
7372 2011-05-11 Revital Eres <revital.eres@linaro.org>
7373
7374 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
7375 instead of PREV_INSN.
7376
7377 2011-05-11 Revital Eres <revital.eres@linaro.org>
7378
7379 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
7380 * loop-doloop.c (doloop_condition_get): Likewise.
7381 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
7382 (doloop_end): New.
7383 * config/arm/arm.md (*addsi3_compare0): Remove "*".
7384
7385 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
7386
7387 * tree.def (CASE_LABEL_EXPR): Add an operand.
7388 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
7389
7390 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7391
7392 * c-decl.c (c_override_global_bindings_to_false): Remove.
7393 (global_bindings_p): Don't check
7394 c_override_global_bindings_to_false.
7395 * c-tree.h (c_override_global_bindings_to_false): Remove.
7396 * c-typeck.c (composite_type): Don't set
7397 c_override_global_bindings_to_false.
7398
7399 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
7400
7401 PR target/48857, 48495
7402 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
7403 (VSX_MODE): Ditto.
7404 (VSX_MOVE_MODE): Ditto.
7405 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
7406 VSX vector types. Add V2DImode.
7407 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
7408 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
7409 (MODES_TIEABLE_P): Ditto.
7410
7411 * config/rs6000/rs6000.c (rs6000_emit_move): Use
7412 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
7413 VSX_VECTOR_MODE.
7414 (init_cumulative_args): Ditto.
7415 (rs6000_function_arg_boundary): Ditto.
7416 (rs6000_function_arg_advance_1): Ditto.
7417 (rs6000_function_arg): Ditto.
7418 (rs6000_function_ok_for_sibcall): Ditto.
7419 (emit_frame_save): Ditto.
7420 (rs6000_function_value): Ditto.
7421 (rs6000_libcall_value): Ditto.
7422
7423 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7424
7425 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7426 i386/darwin-lib.h to $libgcc_tm_file.
7427 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
7428
7429 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7430
7431 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
7432
7433 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7434
7435 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
7436 * config/rs6000/rs6000-tables.opt: New file (generated).
7437 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
7438 rs6000/rs6000-tables.opt to extra_options.
7439 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
7440 * config/rs6000/rs6000.c (rs6000_select): Remove.
7441 (processor_target_table): Move contents to rs6000-cpus.def.
7442 (darwin_rs6000_override_options): Check
7443 global_options_set.x_rs6000_cpu_index instead of
7444 rs6000_select[1].string.
7445 (rs6000_option_override_internal): Likewise.
7446 (rs6000_handle_option): Don't assert that global structures are in
7447 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
7448 (rs6000_default_cpu): New variable.
7449 (rs6000_file_start): Set it instead of local default_cpu. Check
7450 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
7451 global_options_set.x_rs6000_tune_index instead of rs6000_select.
7452 (rs6000_darwin_file_start): Check rs6000_default_cpu and
7453 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
7454 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
7455 rs6000_select): Remove.
7456 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
7457 Remove.
7458 (mcpu=, mtune=): Use Var, Init, Enum and Save.
7459 * config/rs6000/t-rs6000
7460 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
7461 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
7462 global_options_set.x_rs6000_cpu_index instead of
7463 rs6000_select[1].string.
7464 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
7465 global_options_set.x_rs6000_cpu_index instead of
7466 rs6000_select[1].string.
7467
7468 2011-05-10 Joseph Myers <joseph@codesourcery.com>
7469
7470 * config.gcc (libgcc_tm_file): Define instead of including files
7471 from ../../libgcc/config/ in tm_file.
7472 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
7473 * configure: Regenerate.
7474 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
7475 libgcc_tm.h, cs-libgcc_tm.h): New.
7476 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
7477 (clean): Remove libgcc_tm.h.
7478 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
7479 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
7480 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
7481
7482 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
7483
7484 PR target/48896
7485 * config/avr/avr.c (avr_ret_register): Return unsigned int
7486 instead of int.
7487 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
7488 it to avr_libcall_value.
7489 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
7490 expand_expr.
7491 (avr_expand_binop_builtin): Ditto.
7492 (avr_expand_unop_builtin): Ditto.
7493
7494 2011-05-10 DJ Delorie <dj@redhat.com>
7495
7496 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
7497 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
7498 * config/rx/rx.c (rx_align_for_label): Add label and
7499 uses_threshold parameters. Do not align when the label is not
7500 used enough.
7501 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
7502
7503 2011-05-10 Richard Guenther <rguenther@suse.de>
7504
7505 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
7506 a series of conversions and apply foldings similar to what
7507 fold-const does.
7508 (tree_ssa_forward_propagate_single_use_vars): Call it.
7509
7510 2011-05-10 Jakub Jelinek <jakub@redhat.com>
7511
7512 PR tree-optimization/48611
7513 PR tree-optimization/48794
7514 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
7515 referenced from RESX or EH_DISPATCH arguments.
7516
7517 PR debug/48928
7518 * dfp.c (decimal_to_decnumber): Handle conversion from
7519 dconst{1,2,m1,half}.
7520
7521 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7522
7523 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
7524 for !flag_prefer_avx128.
7525 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
7526
7527 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
7528
7529 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
7530 (fold_ternary_loc): Use expr_location_or.
7531
7532 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
7533
7534 PR debug/48853
7535 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
7536 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
7537 Pmode and mem_mode is not VOIDmode.
7538
7539 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
7540
7541 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
7542 TYPE_QUAL_RESTRICT): Convert to enum.
7543
7544 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7545
7546 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
7547 (const_pow2_1_to_8_operand): Ditto.
7548 (const_pow2_1_to_128_operand): Ditto.
7549 (const_pow2_1_to_32768_operand): Ditto.
7550 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
7551 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
7552 in insn constraint to check integer value of operand 3.
7553 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
7554
7555 (PINSR_MODE): New mode iterator.
7556 (sse2p4_1): New mode attribute.
7557 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
7558 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
7559 iterator. Use const_int_operand instead of
7560 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
7561 exact_log2 in insn constraint to check integer value of operand 3.
7562
7563 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7564
7565 * config/i386/sse.md (blendbits): Remove mode attribute.
7566 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7567 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7568 Check integer value of operand 3 in insn constraint.
7569
7570 2011-05-09 Richard Guenther <rguenther@suse.de>
7571
7572 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
7573 for diagnostics.
7574 (lto_symtab_merge): Likewise. Do not register types here.
7575 (lto_symtab_merge_decls_2): Likewise.
7576 (lto_symtab_merge_decls_1): Likewise.
7577 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
7578 * gimple.c (enum gtc_mode): Declare.
7579 (gimple_types_compatible_p): Make static.
7580
7581 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7582
7583 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
7584 temporary register to match Pmode.
7585
7586 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7587
7588 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
7589 and *vec_concatv4si_1_avx.
7590
7591 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7592
7593 PR rtl-optimization/48927
7594 * ira-conflicts.c (commutative_constraint_p): Use
7595 recog_data.alternative_enabled_p to disable alternatives where
7596 "enabled" attribute is false.
7597 (get_dup_num): Ditto.
7598 * ira-lives.c (single_reg_class): Ditto.
7599 (ira_implicitly_set_insn_hard_regs): Ditto.
7600
7601 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
7602
7603 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
7604 (dataflow_set_preserve_mem_locs): Likewise.
7605
7606 2011-05-09 Philipp Thomas <pth@suse.de>
7607
7608 * config/mep/mep.c (mep_validate_vliw): Syntax description
7609 should not be translated.
7610
7611 2011-05-09 Joseph Myers <joseph@codesourcery.com>
7612
7613 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
7614 * config/mips/mips-tables.opt: New file (generated).
7615 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
7616 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
7617 MIPS_ARCH_OPTION_NATIVE): Define.
7618 * config/mips/mips.c (mips_cpu_info_table): Move contents to
7619 mips-cpus.def.
7620 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
7621 mips_parse_cpu): Remove.
7622 (mips_cpu_info_from_opt, mips_default_arch): New.
7623 (mips_handle_option): Don't assert that global structures are in
7624 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
7625 (mips_option_override): Use new variables and functions to set
7626 state of these options. Use strcmp to check for individual CPU names.
7627 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
7628 definition.
7629 * config/mips/mips.opt (march=): Use ToLower and Enum.
7630 (mips): Use ToLower, Enum and Var.
7631 (mtune=): Use ToLower and Enum.
7632 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
7633
7634 2011-05-08 Jan Hubicka <jh@suse.cz>
7635
7636 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
7637 Arrange type pairs to be UID ordered.
7638 (gimple_lookup_type_leader): Make inline.
7639
7640 2011-05-09 Nick Clifton <nickc@redhat.com>
7641
7642 PR target/48899
7643 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
7644 PROCESSOR_DEFAULT.
7645
7646 PR target/48897
7647 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
7648 variable 's'.
7649
7650 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
7651
7652 * combine.c (simplify_comparison): Abstract out parts into...
7653 (simplify_compare_const): ... new function.
7654 (try_combine): Generalize parallel arithmetic/compare combining
7655 to call simplify_compare_const() and CANONICALIZE_COMPARE().
7656
7657 2011-05-08 Jan Hubicka <jh@suse.cz>
7658
7659 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
7660 (cgraph_create_virtual_clone): Call hooks once virtual clone
7661 is finished.
7662 * cgraph.h (cgraph_clone_node): Update prototype.
7663 * ipa-cp.c (ipcp_estimate_growth): Use
7664 estimate_ipcp_clone_size_and_time.
7665 * ipa-inline-transform.c (clone_inlined_nodes): Update.
7666 * lto-cgraph.c (input_node): Update.
7667 * ipa-inline.c (recursive_inlining): Update.
7668 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
7669 (evaluate_conditions_for_known_args): Break out from ...
7670 (evaluate_conditions_for_edge): ... here.
7671 (evaluate_conditions_for_ipcp_clone): New function.
7672 (inline_node_duplication_hook): Update clone summary based
7673 on parameter map.
7674 (estimate_callee_size_and_time): Rename to ...
7675 (estimate_node_size_and_time): take NODE instead of EDGE;
7676 take POSSIBLE_TRUTHS as argument.
7677 (estimate_callee_size_and_time): Update.
7678 (estimate_ipcp_clone_size_and_time): New function.
7679 (do_estimate_edge_time): Update.
7680
7681 2011-05-08 Richard Guenther <rguenther@suse.de>
7682
7683 PR middle-end/48908
7684 PR middle-end/48905
7685 * expmed.c (expand_shift_1): Compute adjusted constant shift
7686 amount manually.
7687
7688 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
7689
7690 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
7691
7692 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
7693
7694 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
7695
7696 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
7697
7698 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
7699
7700 2011-05-07 Jan Hubicka <jh@suse.cz>
7701
7702 * ipa-inline-transform.c (inline_call): Account when program size
7703 decreases.
7704 * ipa-inline.c (relative_time_benefit): New function.
7705 (edge_badness): Reorganize to be power 2 based; fix thinko when
7706 computing badness for negative growth; update comments to match
7707 reality; better dumps.
7708
7709 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
7710
7711 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
7712 type to bool and adjust comment.
7713 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
7714 (fold_mathfn_compare): Remove calls to global_bindings_p.
7715 (fold_inf_compare): Likewise.
7716 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
7717 * c-tree.h (global_bindings_p): Adjust prototype.
7718 * c-decl.c (global_bindings_p): Return bool and simplify.
7719
7720 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
7721
7722 PR tree-optimization/48837
7723 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
7724 when accumulator transformation is performed.
7725
7726 2011-05-06 Jan Hubicka <jh@suse.cz>
7727
7728 * i386.h (ix86_tune_indices): Add
7729 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
7730 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
7731 * i386.c (initial_ix86_tune_features): Add
7732 X86_SOFTARE_PREFETCHING_BENEFICIAL.
7733 (software_prefetching_beneficial_p): Remove predicate.
7734 (ix86_option_override_internal): Use new macro.
7735
7736 2011-05-06 Jan Hubicka <jh@suse.cz>
7737
7738 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
7739
7740 2011-05-06 Jan Hubicka <jh@suse.cz>
7741
7742 * cgraph.c (cgraph_add_thunk): Create real function node instead
7743 of alias node; finalize it and mark needed/reachale; arrange visibility
7744 to be right and add it into the corresponding same comdat group list.
7745 (dump_cgraph_node): Dump thunks.
7746 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
7747 cgraph_function_with_gimple_body_p,
7748 cgraph_first_function_with_gimple_body,
7749 cgraph_next_function_with_gimple_body): New functions.
7750 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
7751 New macros.
7752 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
7753 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7754 * cgraphunit.c (cgraph_finalize_function): Only look into possible
7755 devirtualization when optimizing.
7756 (verify_cgraph_node): Verify thunks.
7757 (cgraph_analyze_function): Analyze thunks.
7758 (cgraph_mark_functions_to_output): Output thunks only in combination
7759 with function they are assigned to.
7760 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
7761 alias into normal node.
7762 (assemble_thunks): New functoin.
7763 (cgraph_expand_function): Use it.
7764 * lto-cgraph.c (lto_output_node): Stream thunks.
7765 (input_overwrite_node): Stream in thunks.
7766 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
7767 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
7768 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
7769 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
7770 (inline_analyze_function): Do not care about thunk jump functions.
7771 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
7772 * ipa-prop.c (ipa_prop_write_jump_functions): Use
7773 cgraph_function_with_gimple_body_p.
7774 * passes.c (do_per_function_toporder): Use
7775 cgraph_function_with_gimple_body_p.
7776 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7777 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
7778 (function_called_by_processed_nodes_p): Likewise.
7779
7780 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7781
7782 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
7783 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
7784 entries.
7785 (mabi=): Replace with separate entries for mabi=altivec,
7786 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
7787 mabi=ieeelongdouble and mabi=ibmlongdouble.
7788 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
7789 check for -mabi=spe without SPE ABI support here.
7790 (rs6000_handle_option): Replace OPT_mabi_ handling with
7791 OPT_mabi_altivec and OPT_mabi_spe handling.
7792
7793 2011-05-06 Cary Coutant <ccoutant@google.com>
7794
7795 * dwarf2out.c (contains_subprogram_definition): New function.
7796 (should_move_die_to_comdat): Call it.
7797
7798 2011-05-06 Jeff Law <law@redhat.com>
7799
7800 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
7801 remove_ctrl_stmt_and_useless_edges.
7802 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
7803 (fixup_template_block, thread_single_edge): Likewise.
7804 (mark_threaded_blocks): Use THREAD_TARGET.
7805
7806 2011-05-06 Alan Modra <amodra@gmail.com>
7807
7808 PR target/48900
7809 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7810 const0_rtx as the arg to the dummy __tls_get_addr libcall.
7811
7812 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
7813
7814 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
7815 constraint modifier to "r".
7816
7817 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7818
7819 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
7820 fall through for OPT_mcmodel_.
7821
7822 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7823
7824 * config/s390/s390.c (s390_asm_trampoline_template): Comment
7825 instruction sizes.
7826 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
7827
7828 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7829
7830 PR target/47930
7831 * config/arm/arm.opt (marm): Document it.
7832 (mthumb): Reject negative variant.
7833
7834 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
7835
7836 PR target/48898
7837 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7838 Fix typo in "ccvt" variable name.
7839
7840 2011-05-06 Tristan Gingold <gingold@adacore.com>
7841
7842 PR target/48895
7843 * config/vms/vms-ar.c (main): Remove cwd variable.
7844
7845 2011-05-06 Jakub Jelinek <jakub@redhat.com>
7846
7847 PR debug/48902
7848 * var-tracking.c (prepare_call_arguments): Move else before #endif.
7849
7850 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7851
7852 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
7853 * gimplify.c (gimplify_switch_expr): Likewise.
7854 * omp-low.c (expand_omp_sections): Likewise.
7855 * tree-eh.c (lower_try_finally_switch): Likewise.
7856 (lower_eh_dispatch): Likewise.
7857 * tree.h (build_case_label): Declare.
7858 * tree.c (build_case_label): Define.
7859
7860 2011-05-05 Jason Merrill <jason@redhat.com>
7861
7862 PR c++/40975
7863 * tree-inline.c (copy_tree_r): Use copy_statement_list.
7864 (copy_statement_list): Don't recurse.
7865 * stor-layout.c (copy_self_referential_tree_r): Don't allow
7866 STATEMENT_LIST.
7867
7868 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7869
7870 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
7871 through from -mfpu= handling.
7872 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
7873
7874 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
7875
7876 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
7877 POST_MODIFY.
7878
7879 2011-05-05 Steve Ellcey <sje@cup.hp.com>
7880
7881 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
7882 for 11.31.
7883 (hppa[12]*-*-hpux11*): Ditto.
7884 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
7885 * config/ia64/hpux-unix2003.h: New.
7886 * config/pa/pa-hpux1131.opt: New.
7887 * config/pa/pa-hpux1131.h: New.
7888 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
7889 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
7890 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
7891
7892 2011-05-05 Jakub Jelinek <jakub@redhat.com>
7893
7894 PR debug/48853
7895 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
7896 instead of mode as 3rd argument to recursive call.
7897 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
7898 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
7899 VOIDmode.
7900 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
7901 don't give up if mode is Pmode and mem_mode is not VOIDmode.
7902 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
7903 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
7904
7905 2011-05-05 Julian Brown <julian@codesourcery.com>
7906
7907 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
7908 parenthesis in D-register case.
7909
7910 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7911
7912 * opt-functions.awk (var_type_struct): Handle Enum options.
7913 * optc-gen.awk: Don't check range of variables of character type.
7914 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
7915 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
7916 rs6000_sdata_name, rs6000_explicit_options): Remove.
7917 (rs6000_option_override_internal): Check for -malign-power here.
7918 Use global_options_set instead of rs6000_explicit_options.
7919 (rs6000_parse_fpu_option): Remove.
7920 (rs6000_handle_option): Access variables via opts and opts_set
7921 pointers. Use error_at and warning_at. Add fall-through
7922 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
7923 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
7924 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
7925 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
7926 here. Don't use rs6000_parse_fpu_option.
7927 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
7928 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
7929 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
7930 (mrecip=): Use Var.
7931 (mspe): Use Var and Save.
7932 (mtraceback=): Use Enum and Var.
7933 (rs6000_traceback_type): New Enum and EnumValue entries.
7934 (mfloat-gprs=): Use Enum, Var and Save.
7935 (rs6000_float_gprs): New Enum and EnumValue entries.
7936 (mlong-double-): use Var and Save.
7937 (msched-costly-dep=, minsert-sched-nops=): Use Var.
7938 (malign-): Use Enum and Var.
7939 (rs6000_alignment_flags): New Enum and EnumValue entries.
7940 (mfpu=): Use Enum.
7941 (fpu_type_t): New Enum and EnumValue entries.
7942 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7943 global_options_set instead of rs6000_explicit_options.
7944 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7945 global_options_set instead of rs6000_explicit_options.
7946 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7947 global_options_set instead of rs6000_explicit_options.
7948 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7949 global_options_set instead of rs6000_explicit_options.
7950 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
7951 global_options_set instead of rs6000_explicit_options.
7952 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7953 global_options_set instead of rs6000_explicit_options.
7954 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
7955 definition.
7956 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7957 global_options_set instead of rs6000_explicit_options.
7958 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
7959 (rs6000_cmodel): New Enum and EnumValue entries.
7960 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7961 global_options_set instead of rs6000_explicit_options.
7962 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
7963 (mtls-size=): Use Enum and Var.
7964 (rs6000_tls_size): New Enum and EnumValue entries.
7965
7966 2011-05-05 Michael Matz <matz@suse.de>
7967
7968 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
7969 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
7970 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
7971 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
7972 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
7973 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
7974 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
7975 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
7976 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
7977 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
7978 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
7979 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
7980 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
7981 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
7982 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
7983 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
7984
7985 2011-05-05 Richard Guenther <rguenther@suse.de>
7986
7987 * expmed.c (expand_variable_shift): Rename to ...
7988 (expand_shift_1): ... this. Take an expanded shift amount.
7989 For rotates recurse directly not building trees for the shift amount.
7990 (expand_variable_shift): Wrap around expand_shift_1.
7991 (expand_shift): Adjust.
7992
7993 2011-05-05 Jakub Jelinek <jakub@redhat.com>
7994
7995 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
7996
7997 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
7998
7999 * tree.h (get_pending_sizes): Remove prototype.
8000 (put_pending_size): Likewise.
8001 (put_pending_sizes): Likewise.
8002 * stor-layout.c (pending_sizes): Delete.
8003 (get_pending_sizes): Likewise.
8004 (put_pending_size): Likewise.
8005 (put_pending_sizes): Likewise.
8006 (variable_size): Do not call put_pending_size and tidy up.
8007 * function.h (struct function): Remove dont_save_pending_sizes_p.
8008 * lto-streamer-in.c (input_function): Do not stream it.
8009 * lto-streamer-out.c (output_function): Likewise.
8010 * tree-inline.c (initialize_cfun): Do not copy it.
8011 * c-decl.c (store_parm_decls): Do not set it.
8012 * omp-low.c (create_task_copyfn): Likewise.
8013 * tree-optimize.c (tree_rest_of_compilation): Likewise.
8014
8015 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
8016
8017 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
8018 conditions.
8019 (*movdf_internal): Ditto.
8020 (*movdf_internal_nointeger): Ditto.
8021 (*movsf_internal): Ditto.
8022
8023 2011-05-05 Joseph Myers <joseph@codesourcery.com>
8024
8025 * c-decl.c (finish_decl): Don't call get_pending_sizes.
8026 (grokparm): Add parameter expr. Pass it to grokdeclarator.
8027 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
8028 (c_variable_size): Remove.
8029 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
8030 call put_pending_sizes.
8031 (get_parm_info): Add parameter expr. Use it to set
8032 arg_info->pending_sizes.
8033 (store_parm_decls): Use arg_info->pending_sizes instead or calling
8034 get_pending_sizes.
8035 * c-parser.c (c_parser_parms_declarator): Update call to
8036 c_parser_parms_list_declarator.
8037 (c_parser_parms_list_declarator): Take parameter expr. Update
8038 call to push_parm_decl. Update recursive call. Don't call
8039 get_pending_sizes. Update calls to get_parm_info.
8040 (c_parser_objc_method_definition): Update calls to
8041 c_parser_objc_method_decl and objc_start_method_definition.
8042 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
8043 (c_parser_objc_method_decl): Add parameter expr. Update call to
8044 grokparm.
8045 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
8046 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
8047 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
8048
8049 2011-05-05 Michael Hope <michael.hope@linaro.org>
8050
8051 PR pch/45979
8052 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
8053 __ARM_EABI__ hosts.
8054
8055 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8056
8057 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
8058 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
8059 (spu_output_mi_thunk): New function.
8060
8061 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8062
8063 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
8064 targetm.asm_out.print_operand.
8065 * config/sol2.c: Include target.h.
8066
8067 2011-05-04 Jan Hubicka <jh@suse.cz>
8068
8069 * ipa-inline.c (reset_edge_caches): New function.
8070 (update_caller_keys): Add check_inlinablity_for; do not
8071 reset edge caches; remove now unnecesary loop.
8072 (update_callee_keys): Add comments; reset node_growth_cache of callee.
8073 (update_all_callee_keys): Likewise.
8074 (inline_small_functions): Sanity check cache; update code
8075 recomputing it.
8076
8077 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
8078
8079 PR rtl-optimization/47612
8080 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
8081 as the last insn of the sequence to be moved.
8082
8083 2011-05-04 Tobias Burnus <burnus@net-b.de>
8084
8085 PR fortran/48864
8086 * doc/invoke.texi (Ofast): Document that it
8087 enables Fortran's -fno-protect-parens.
8088
8089 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
8090
8091 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
8092
8093 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
8094
8095 * stor-layout.c (variable_size): Do not issue errors.
8096
8097 2011-05-04 Richard Guenther <rguenther@suse.de>
8098
8099 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
8100 for array-ref indices.
8101 (tree_coverage_counter_addr): Likewise.
8102 (build_fn_info_type): Use size_int for index types.
8103 (build_gcov_info): Likewise.
8104
8105 2011-05-04 Richard Guenther <rguenther@suse.de>
8106
8107 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
8108 to build_int_cst.
8109 * c-typeck.c (really_start_incremental_init): Use bitsize_int
8110 for constructor indices.
8111 (push_init_level): Likewise.
8112
8113 2011-05-04 Richard Guenther <rguenther@suse.de>
8114
8115 * explow.c (promote_mode): Move variable declarations before code.
8116
8117 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
8118
8119 * tree.h (build_function_type_array): Declare.
8120 (build_varargs_function_type_array): Declare.
8121 (build_function_type_vec, build_varargs_function_type_vec): Define.
8122 * tree.c (build_function_type_array_1): New function.
8123 (build_function_type_array): New function.
8124 (build_varargs_function_type_array): New function.
8125
8126 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
8127
8128 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
8129 before setting STMT_VINFO_TYPE.
8130
8131 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8132
8133 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
8134 instead of spu_pass_by_reference.
8135
8136 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8137
8138 * calls.c (emit_library_call_value_1): Invoke
8139 promote_function_mode hook on libcall arguments.
8140 * explow.c (promote_function_mode, promote_mode): Handle TYPE
8141 argument being NULL.
8142 * targhooks.c (default_promote_function_mode): Lisewise.
8143 * config/s390/s390.c (s390_promote_function_mode): Likewise.
8144 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
8145
8146 * doc/tm.texi: Document that TYPE argument might be NULL.
8147
8148 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
8149
8150 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
8151
8152 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
8153
8154 From Bernd Schmidt
8155 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
8156
8157 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8158
8159 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
8160 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
8161 Move ...
8162 * mips-tfile.c: ... here.
8163 Don't include coretypes.h, tm.h, filenames.h.
8164 (saber_stop): Remove definition and all calls.
8165 [__SABER__]: Remove.
8166 (__LINE__): Remove default.
8167 (Size_t, Ptrdiff_t): Remove definitions.
8168 Replace by size_t, ptrdiff_t.
8169 [!MIPS_DEBUGGING_INFO]: Remove.
8170 (SHASH_SIZE, THASH_SIZE): Remove defaults.
8171 (progname): Add const.
8172 (STATIC): Remove.
8173 Replace all uses by static.
8174 (ALIGN_SYMTABLE_OFFSET): Remove default.
8175 * mips-tdump.c: Don't include coretypes.h, tm.h.
8176 Remove !MIPS_IS_STAB guard.
8177 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
8178 $(TM_H), filenames.h dependencies.
8179 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
8180
8181 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
8182
8183 From Jie Zhang
8184 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
8185 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
8186
8187 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
8188
8189 From Bernd Schmidt
8190 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
8191 account and save/restore RETS.
8192 (PROFILE_BEFORE_PROLOGUE): Define.
8193 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
8194 the push insn to use predecrement.
8195
8196 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
8197
8198 From Jie Zhang
8199 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
8200
8201 2011-05-04 Nick Clifton <nickc@redhat.com>
8202
8203 * config/mn10300/mn10300.c: Include cfgloop.h.
8204 (DUMP): New macro.
8205 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
8206 Lcc or a FLcc insn into the instruction stream.
8207 (mn10300_block_contains_call): New function. Returns true if the
8208 given basic block contains a CALL insn.
8209 (mn10300_loop_contains_call_insn): New function. Returns true if
8210 the given loop contains a CALL insn.
8211 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
8212 to use the SETLB and Lcc or FLcc insns.
8213 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
8214 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
8215 * config/mn10300/mn10300.opt (msetlb): New option. Used to
8216 disable the SETLB optimization.
8217 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
8218 __SETLB__ or __NO_SETLB__.
8219 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
8220 (movsf_internal): Handle MDR register.
8221 (cmpsi): Make visible.
8222 (setlb): New pattern.
8223 (Lcc): New pattern.
8224 (FLcc): New pattern.
8225
8226 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
8227
8228 PR target/48860
8229 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
8230 for reg<->xmm moves.
8231 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
8232 (vec_concatv2di_rex64_sse): Ditto.
8233 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
8234 (*vec_extractv2di_1_rex64): Ditto.
8235
8236 Revert:
8237 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8238
8239 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
8240 reg<->xmm moves.
8241 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
8242
8243 2011-05-04 Richard Guenther <rguenther@suse.de>
8244
8245 * tree.h (int_const_binop): Remove notrunc argument.
8246 * fold-const.c (int_const_binop): Remove notrunc argument. Always
8247 create integer constants that are properly truncated.
8248 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
8249 (const_binop): Remove zero notrunc argument to int_const_binop.
8250 (size_binop_loc): Likewise.
8251 (fold_div_compare): Likewise.
8252 (maybe_canonicalize_comparison_1): Likewise.
8253 (fold_comparison): Likewise.
8254 (fold_binary_loc): Likewise.
8255 (multiple_of_p): Likewise.
8256 * expr.c (store_constructor): Likewise.
8257 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
8258 (maybe_fold_stmt_addition): Likewise.
8259 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
8260 * stor-layout.c (layout_type): Likewise.
8261 * tree-data-ref.c (tree_fold_divides_p): Likewise.
8262 * tree-sra.c (build_ref_for_offset): Likewise.
8263 (build_user_friendly_ref_for_offset): Likewise.
8264 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
8265 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
8266 * tree-ssa-loop-niter.c (inverse): Likewise.
8267 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8268 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
8269 * tree-switch-conversion.c (check_range): Likewise.
8270 (build_constructors): Likewise.
8271 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
8272 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
8273 (extract_range_from_assert): Likewise.
8274 (vrp_int_const_binop): Likewise.
8275 (extract_range_from_binary_expr): Likewise.
8276 (extract_range_from_unary_expr): Likewise.
8277 (check_array_ref): Likewise.
8278 (find_case_label_range): Likewise.
8279 (simplify_div_or_mod_using_ranges): Likewise.
8280 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
8281 comparing case labels for merging.
8282
8283 2011-05-03 Mark Wielaard <mjw@redhat.com>
8284
8285 * dwarf2out.c (debug_str_hash_forced): Removed.
8286 (gen_label_for_indirect_string): Removed.
8287 (get_debug_string_label): Removed.
8288 (AT_string_form): Generate label directly.
8289 (output_indirect_string): Test indirect_string_node for
8290 DW_FORM_strp instead of checking label and refcount.
8291 (prune_indirect_string): Removed.
8292 (prune_unused_types): Don't check debug_str_hash_forced or
8293 call prune_indirect_string.
8294
8295 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
8296
8297 PR other/48093
8298 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
8299
8300 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
8301
8302 PR debug/47994
8303 PR debug/47919
8304 * combine.c (try_combine): Skip debug insns at m_split tests.
8305
8306 2011-04-26 Mark Wielaard <mjw@redhat.com>
8307
8308 PR42288
8309 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
8310 when info_section_emitted.
8311
8312 2011-05-03 Joseph Myers <joseph@codesourcery.com>
8313
8314 * config/mips/mips-opts.h: New.
8315 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
8316 to mips-opts.h.
8317 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
8318 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
8319 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
8320 via opts pointer.
8321 * config/mips/mips.h (enum mips_code_readable_setting): Move to
8322 mips-opts.h.
8323 (mips_abi, mips_code_readable): Don't declare.
8324 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
8325 (mabi=): Use Enum and Var.
8326 (mips_abi): New Enum and EnumValue entries.
8327 (mcode-readable=): Use Enum and Var.
8328 (mips_code_readable_setting): New Enum and EnumValue entries.
8329 (mr10k-cache-barrier=): Use Enum and Var.
8330 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
8331
8332 2011-05-03 Jan Hubicka <jh@suse.cz>
8333
8334 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
8335 replace hash by pointer map.
8336 (cgraph_node_set_element_def, cgraph_node_set_element,
8337 const_cgraph_node_set_element, varpool_node_set_element_def,
8338 varpool_node_set_element, const_varpool_node_set_element): Remove.
8339 (free_cgraph_node_set, free_varpool_node_set): New function.
8340 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
8341 * tree-emutls.c: Free varpool node set.
8342 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
8343 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
8344 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
8345 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
8346 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
8347 Move here from ipa.c; implement using pointer_map
8348 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
8349 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
8350 debug_cgraph_node_set, varpool_node_set_new,
8351 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
8352 dump_varpool_node_set, debug_varpool_node_set):
8353 Move to ipa-uitls.c.
8354 * passes.c (ipa_write_summaries): Update.
8355
8356 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8357
8358 From Mike Frysinger:
8359 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
8360 bf542/bf544/bf547/bf548/bf549.
8361
8362 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
8363
8364 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
8365
8366 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8367
8368 From Bernd Schmidt:
8369 * config/bfin/bfin.md (MOVCC): New mode_macro.
8370 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
8371 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
8372 comments from generated assembly.
8373
8374 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8375
8376 From Bernd Schmidt
8377 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
8378 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
8379 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
8380 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
8381 * config/bfin/lib1funcs.asm (___muldi3): New function.
8382
8383 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8384
8385 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
8386 build_function_type_list instead of build_function_type.
8387 Rearrange initialization of `args' to do so.
8388
8389 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8390
8391 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
8392 instead of build_function_type.
8393
8394 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8395
8396 * config/rs6000/rs6000.c (spe_init_builtins): Call
8397 build_function_type_list instead of build_function_type.
8398 (paired_init_builtins, altivec_init_builtins): Likewise.
8399 (builtin_function_type): Likewise.
8400
8401 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8402
8403 * config/sh/sh.c (sh_media_init_builtins): Call
8404 build_function_type_list instead of build_function_type.
8405
8406 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8407
8408 * config/sparc/sparc.c (sparc_file_end): Call
8409 build_function_type_list instead of build_function_type.
8410
8411 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8412
8413 * config/alpha/alpha.c (alpha_init_builtins): Call
8414 build_function_type_list instead of build_function_type.
8415
8416 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8417
8418 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
8419 build_function_type_list instead of build_function_type.
8420
8421 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8422
8423 * config/iq2000/i2000.c (iq2000_init_builtins): Call
8424 build_function_type_list instead of build_function_type.
8425 Delete `endlink' variable.
8426
8427 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8428
8429 * config/avr/avr.c (avr_init_builtins): Call
8430 build_function_type_list instead of build_function_type.
8431
8432 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8433
8434 * config/picochip/picochip.c (picochip_init_builtins): Call
8435 build_function_type_list instead of build_function_type.
8436 Delete `endlink' variable.
8437
8438 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8439
8440 * config/bfin/bfin.c (bfin_init_builtins): Call
8441 build_function_type_list instead of build_function_type.
8442
8443 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8444
8445 From Bernd Schmidt
8446 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
8447 that's not CONST_INT. Seemingly redundant check is due to PR39768.
8448
8449 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8450
8451 From Jie Zhang:
8452 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
8453 libbffastfp overrides libgcc when -mfast-fp.
8454
8455 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8456
8457 Originally from Bernd Schmidt
8458 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
8459 * config/bfin/bfin.c (override_options): Test it and error if
8460 TARGET_FDPIC.
8461
8462 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8463
8464 Originally From Bernd Schmidt
8465 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
8466 FD-PIC.
8467
8468 2011-05-03 Jeff Law <law@redhat.com>
8469
8470 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
8471 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
8472 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
8473 than accessing AUX field directly. Free the AUX field before
8474 clearing it.
8475 (thread_block, thread_through_loop_header): Likewise.
8476 (thread_single_edge, mark_threaded_blocks): Likewise.
8477 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
8478 (register_jump_thread): Do not attempt to thread to a NULL edge.
8479
8480 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
8481
8482 * function.c (init_function_start): Call decide_function_section.
8483 * varasm.c (decide_function_section): New function.
8484 (assemble_start_function): When not using
8485 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
8486 or first_function_block_is_cold.
8487 * rtl.h (decide_function_section): Declare.
8488
8489 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
8490 Jakub Jelinek <jakub@redhat.com>
8491
8492 PR target/48774
8493 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
8494 only succeed if req_mode is the same as set_mode.
8495
8496 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
8497
8498 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
8499 * genemit.c (gen_exp): Handle RETURN.
8500 * emit-rtl.c (verify_rtx_sharing): Likewise.
8501 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
8502 * rtl.c (copy_rtx): RETURN is shared.
8503 * rtl.h (enum global_rtl_index): Add GR_RETURN.
8504 (ret_rtx): New.
8505 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
8506 * config/s390/s390.c (s390_emit_epilogue): Likewise.
8507 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
8508 * config/cris/cris.c (cris_expand_return): Likewise.
8509 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
8510 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
8511 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
8512 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
8513 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
8514 Likewise.
8515 * config/v850/v850.c (expand_epilogue): Likewise.
8516 * config/bfin/bfin.c (bfin_expand_call): Likewise.
8517 * config/arm/arm.md (epilogue): Likewise.
8518 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
8519 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
8520 variable to ret_reg.
8521
8522 2011-05-03 Richard Guenther <rguenther@suse.de>
8523
8524 PR lto/48846
8525 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
8526 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
8527 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8528
8529 2011-05-03 Richard Guenther <rguenther@suse.de>
8530
8531 * c-decl.c (grokdeclarator): Instead of looking at
8532 TREE_OVERFLOW check if the constant fits in the index type.
8533
8534 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8535
8536 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
8537 (vec_store_lanes<mode><mode>): Likewise.
8538
8539 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8540
8541 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
8542 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
8543 convert_optab_index values.
8544 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
8545 * genopinit.c (optabs): Initialize the new optabs.
8546 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
8547 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
8548 (expand_STORE_LANES): New functions.
8549 * tree.h (build_array_type_nelts): Declare.
8550 * tree.c (build_array_type_nelts): New function.
8551 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
8552 (vect_model_load_cost): Likewise.
8553 (vect_store_lanes_supported, vect_load_lanes_supported)
8554 (vect_record_strided_load_vectors): Declare.
8555 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
8556 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
8557 (vect_transform_strided_load): Split out statement recording into...
8558 (vect_record_strided_load_vectors): ...this new function.
8559 * tree-vect-stmts.c (create_vector_array, read_vector_array)
8560 (write_vector_array, create_array_ref): New functions.
8561 (vect_model_store_cost): Add store_lanes_p argument.
8562 (vect_model_load_cost): Add load_lanes_p argument.
8563 (vectorizable_store): Try to use store-lanes functions for
8564 interleaved stores.
8565 (vectorizable_load): Likewise load-lanes and loads.
8566 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
8567 to vect_model_store_cost.
8568 (vect_build_slp_tree): Likewise vect_model_load_cost.
8569
8570 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8571
8572 * hooks.h (hook_bool_mode_uhwi_false): Declare.
8573 * hooks.c (hook_bool_mode_uhwi_false): New function.
8574 * target.def (array_mode_supported_p): New hook.
8575 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
8576 * doc/tm.texi: Regenerate.
8577 * stor-layout.c (mode_for_array): New function.
8578 (layout_type): Use it.
8579 * config/arm/arm.c (arm_array_mode_supported_p): New function.
8580 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
8581
8582 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
8583
8584 PR target/48723
8585 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
8586 for -fstack-check if the size to allocate is negative.
8587
8588 2011-05-02 Lawrence Crowl <crowl@google.com>
8589
8590 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
8591 (timevar_cond_start): New for starting a timer only when it is not
8592 already running.
8593 (timevar_cond_stop): New for stopping a timer when it was not already
8594 running.
8595
8596 * timevar.c (timevar_stop): Enable start/stop timers to start again.
8597 (timevar_cond_start): New as above.
8598 (timevar_cond_stop): New as above.
8599
8600 * timevar.def: Add start/stop timers for compiler phases,
8601 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
8602 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
8603 and TV_PHASE_FINALIZE.
8604 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
8605 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
8606 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
8607 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
8608 Make unused TV_OVERLOAD into a start/stop timer.
8609
8610 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
8611 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
8612 to indicate that they are start/stop timers.
8613
8614 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
8615 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
8616 Move initialization to do_compile.
8617 (do_compile): Add initialization from above.
8618 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
8619
8620 * c-decl.c (c_write_global_declarations): Add start/stop of
8621 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
8622
8623 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
8624 or TV_PARSE_INLINE, as appropriate.
8625 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
8626 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
8627
8628 2011-05-02 Jason Merrill <jason@redhat.com>
8629
8630 PR c++/40975
8631 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
8632
8633 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
8634
8635 PR c/35445
8636 * c-decl.c (finish_decl): Only create a composite if the types are
8637 compatible.
8638
8639 2011-05-02 Joseph Myers <joseph@codesourcery.com>
8640
8641 * config/fr30/fr30-protos.h (Mmode): Don't define.
8642 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
8643 definition where used.
8644 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
8645 define. Expand definitions where used.
8646 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
8647 Expand definitions where used.
8648 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
8649 rx_function_arg, rx_function_arg_advance,
8650 rx_function_arg_boundary): Expand definitions of those macros.
8651 * config/v850/v850-protos.h (Mmode): Don't define. Expand
8652 definition where used.
8653
8654 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8655
8656 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
8657 reg<->xmm moves.
8658 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
8659 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
8660 with *movv2sf_internal_rex64_avx.
8661 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
8662 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
8663 Use %v prefix in insn mnemonic to handle TARGET_AVX.
8664 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
8665 "vex" in "prefix" attribute calculation.
8666 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
8667
8668 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
8669
8670 PR target/47951
8671 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
8672 inputs match the output.
8673
8674 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
8675
8676 PR target/47955
8677 * config/m68k/m68k.c (m68k_expand_prologue): Set
8678 current_function_static_stack_size.
8679
8680 2011-05-02 Jan Hubicka <jh@suse.cz>
8681
8682 * lto-streamer.c (lto_streamer_cache_insert_1,
8683 lto_streamer_cache_lookup, lto_streamer_cache_create,
8684 lto_streamer_cache_delete): Use pointer map instead of hashtable.
8685 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
8686
8687 2011-05-02 Joseph Myers <joseph@codesourcery.com>
8688
8689 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
8690 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
8691 config/m68k/t-opts: New files.
8692 * config/m68k/m68k-tables.opt: New file (generated).
8693 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
8694 extra_options and m68k/t-opts to tmake_file.
8695 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
8696 (all_isas): Initialize using m68k-isas.def.
8697 (all_microarchs): Initialize using m68k-microarchs.def.
8698 (m68k_find_selection): Remove.
8699 (m68k_handle_option): Don't assert that global structures are in
8700 use. Use error_at. Access variables via opts pointer. Don't
8701 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
8702 directly for -m68020-40 and -m68020-60.
8703 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
8704 m68k_tune_entry here.
8705 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
8706 to m68k-opts.h.
8707 (m68k_library_id_string): Remove declaration.
8708 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
8709 (m68k_library_id_string): New Variable.
8710 (march=, mcpu=, mtune=): Use Enum and Var.
8711
8712 2011-05-02 Richard Guenther <rguenther@suse.de>
8713
8714 * varasm.c (output_constructor_regular_field): Compute zero-based
8715 index with double-ints. Make sure to ICE instead of producing
8716 wrong code.
8717 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
8718 in asserts. Properly use a signed type.
8719
8720 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8721
8722 * config/i386/sse.md (V): New mode iterator.
8723 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
8724 TARGET_SSE2.
8725 (V_256): Rename from AVX256MODE.
8726 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
8727 condition to all users.
8728 (VF1): Ditto.
8729 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
8730 condition to all users.
8731 (VF_128): Make V4SF mode unconditional.
8732 (VF_256): Rename from AVX256MODEF2P.
8733 (VI4F_128): Rename from SSEMODE4S.
8734 (VI8F_128): Rename from SSEMODE2D.
8735 (VI4F_256): Rename from AVX256MODE8P.
8736 (VI8F_256): Rename from AVX256MODE4P.
8737 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
8738 (ssescalarmodesuffix): Remove SF and DF modes.
8739 (SSEMODE124): Remove.
8740 (SSEMODE1248): Ditto.
8741 (SSEMODEF2P): Ditto.
8742 (AVXMODEF2P): Ditto.
8743 (AVXMODEFDP): Ditto.
8744 (AVXMODEFSP): Ditto.
8745 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
8746 unconditional.
8747 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
8748 unconditional.
8749 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
8750 xop_pcmov_<mode>256. Use V mode iterator.
8751
8752 Adjust RTX patterns globally for renamed mode attributes.
8753
8754 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8755
8756 * haifa-sched.c (sched_emit_insn): Emit insn before first
8757 non-scheduled insn. Inform back-end about new insn. Add
8758 new insn to scheduled_insns list.
8759
8760 2011-05-02 Richard Guenther <rguenther@suse.de>
8761
8762 PR tree-optimization/48822
8763 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
8764 (process_scc): Indicate which iteration we start.
8765
8766 2011-05-02 Jan Hubicka <jh@suse.cz>
8767
8768 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
8769 (lto_section_overrun): New.
8770 * lto-section-out.c (append_block): Rename to ...
8771 (lto_append_block): ... this one; export.
8772 (lto_output_1_stream): Move lto lto-streamer.h
8773 (lto_output_data_stream): Update.
8774 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
8775 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
8776 functions.
8777
8778 2011-05-02 Richard Guenther <rguenther@suse.de>
8779
8780 * tree.c (tree_code_counts): New global array.
8781 (record_node_allocation_statistics): Count individual tree codes.
8782 (dump_tree_statistics): Dump individual code stats.
8783
8784 2011-05-01 Jan Hubicka <jh@suse.cz>
8785
8786 * ipa-inline.c (caller_growth_limits): Fix thinko when
8787 looking for largest stack frame.
8788 * ipa-inline.h (dump_inline_summary): Declare.
8789 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
8790 on stack usage.
8791 (dump_inline_summary): Export.
8792 (debug_inline_summary): Declare as DEBUG_FUNCTION.
8793
8794 2011-05-01 Anatoly Sokolov <aesok@post.ru>
8795
8796 * reginfo.c (memory_move_cost): Change rclass argument type form
8797 'enum reg_class' to reg_class_t.
8798 * reload.h (memory_move_cost): Update prototype.
8799 * postreload.c reload_cse_simplify_set): Change type dclass var to
8800 reg_class_t.
8801 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
8802 Update prototype.
8803 (ira_allocate_and_set_costs): Change aclass argument type form
8804 'enum reg_class' to reg_class_t.
8805 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
8806 Change aclass argument type to reg_class_t.
8807 (update_conflict_hard_reg_costs): Change type aclass and pref vars
8808 to reg_class_t.
8809 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
8810 memory_move_cost call.
8811
8812 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
8813 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
8814 Change type tmp var to reg_class_t.
8815
8816 2011-04-30 Jan Hubicka <jh@suse.cz>
8817
8818 * ipa-inline.c (can_inline_edge_p): Disregard limits when
8819 inlining into function with flatten attribute.
8820 (want_inline_small_function_p): Be more realistic about inlining
8821 cold calls where callee size grows.
8822
8823 2011-04-30 Jan Hubicka <jh@suse.cz>
8824
8825 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
8826 flags.
8827
8828 2011-04-30 Anatoly Sokolov <aesok@post.ru>
8829
8830 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8831 PRINT_OPERAND_PUNCT_VALID_P): Remove.
8832 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
8833 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
8834 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8835 (print_operand): Rename to...
8836 (sparc_print_operand): ...this. Make static. Adjust
8837 sparc_print_operand function call.
8838 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
8839 functions.
8840
8841 2011-04-30 Jan Hubicka <jh@suse.cz>
8842
8843 PR middle-end/48752
8844 * ipa-inline.c (early_inliner): Disable when doing late
8845 addition of function.
8846
8847 2011-04-30 Jakub Jelinek <jakub@redhat.com>
8848
8849 * dwarf2out.c (get_address_mode): New inline.
8850 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
8851 if not dwarf_strict emit
8852 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
8853 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
8854 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
8855 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
8856 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
8857 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
8858 mem_loc_descriptor callers.
8859 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8860 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
8861 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
8862 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
8863 (base_types): New variable.
8864 (get_base_type_offset, calc_base_type_die_sizes,
8865 base_type_for_mode, mark_base_types, base_type_cmp,
8866 move_marked_base_types): New functions.
8867 (calc_die_sizes): Assert that die_offset is 0 or equal to
8868 next_die_offset.
8869 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
8870 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
8871 callers. If not dwarf_strict, call mem_loc_descriptor even for
8872 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
8873 (gen_subprogram_die): Don't give up on call site parameters
8874 with non-integral or large integral modes. Adjust
8875 mem_loc_descriptor callers.
8876 (prune_unused_types): Call prune_unused_types_mark on base_types
8877 vector entries.
8878 (resolve_addr): Call mark_base_types.
8879 (dwarf2out_finish): Call move_marked_base_types.
8880
8881 PR tree-optimization/48809
8882 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
8883 type.
8884 (gen_inbound_check): Don't compute index_expr - range_min in utype
8885 again, instead reuse SSA_NAME initialized in build_arrays.
8886 Remove two useless gsi_for_stmt calls.
8887
8888 2011-04-29 Jeff Law <law@redhat.com>
8889
8890 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
8891
8892 2011-04-29 Martin Jambor <mjambor@suse.cz>
8893
8894 * cgraph.h (cgraph_postorder): Remove declaration.
8895 * ipa-utils.h (ipa_free_postorder_info): Declare.
8896 (ipa_reverse_postorder): Likewise.
8897 * cgraphunit.c: Include ipa-utils.h.
8898 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
8899 * ipa-inline.c: Include ipa-utils.h.
8900 (ipa_inline): Update call to ipa_reverse_postorder.
8901 * ipa-pure-const.c (propagate_pure_const): Update call to
8902 ipa_reduced_postorder and ipa_print_order. Call
8903 ipa_free_postorder_info to clean up.
8904 (propagate_nothrow): Likewise.
8905 * ipa-reference.c (propagate): Removed a useless call to
8906 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
8907 and ipa_print_order. Call ipa_free_postorder_info to clean up.
8908 * ipa.c: Include ipa-utils.h.
8909 (ipa_profile): Update call to ipa_reverse_postorder.
8910 (cgraph_postorder): Moved to...
8911 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
8912 (ipa_utils_print_order): Renamed to ipa_print_order.
8913 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
8914 comments.
8915 (ipa_free_postorder_info): New function.
8916 * passes.c: Include ipa-utils.h.
8917 (do_per_function_toporder): Update call to ipa_reverse_postorder.
8918 (ipa_write_summaries): Likewise.
8919 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
8920 (cgraphunit.o): Likewise.
8921 (ipa.o): Likewise.
8922 (ipa-inline.o): Likewise.
8923
8924 2011-04-29 Jan Hubicka <jh@suse.cz>
8925
8926 * gcc.dg/tree-ssa/inline-10.c: New testcase.
8927 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
8928 * ipa-inline.h (clause_t): Turn into unsigned int.
8929 * ipa-inline-analysis.c (add_clause): Do more simplification.
8930 (and_predicates): Shortcut more cases.
8931 (predicates_equal_p): Move forward; check that clauses are properly
8932 ordered.
8933 (or_predicates): Shortcut more cases.
8934 (edge_execution_predicate): Rewrite as...
8935 (set_cond_stmt_execution_predicate): ... this function; handle
8936 __builtin_constant_p.
8937 (set_switch_stmt_execution_predicate): New .
8938 (compute_bb_predicates): New.
8939 (will_be_nonconstant_predicate): Update TODO.
8940 (estimate_function_body_sizes): Use compute_bb_predicates
8941 and free them later, always try to estimate if stmt is constant.
8942 (estimate_time_after_inlining, estimate_size_after_inlining):
8943 Gracefully handle optimized out edges.
8944 (read_predicate): Fix off by one error.
8945
8946 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
8947
8948 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
8949
8950 2011-04-27 Xinliang David Li <davidxl@google.com>
8951
8952 * tree-profile.c (init_ic_make_global_vars): Set
8953 tls attribute on ic vars.
8954 * coverage.c (coverage_end_function): Initialize
8955 function_list with zero.
8956
8957 2011-04-29 Richard Guenther <rguenther@suse.de>
8958
8959 * builtins.c (fold_builtin_classify_type): Use integer_type_node
8960 for the type of the result.
8961 (fold_builtin_isascii): Likewise.
8962 (fold_builtin_toascii): Use integer_type_node where appropriate.
8963 (fold_builtin_logb): Likewise.
8964 (fold_builtin_frexp): Likewise.
8965 (fold_builtin_strstr): Likewise.
8966 (fold_builtin_strpbrk): Likewise.
8967 (fold_builtin_fputs): Likewise.
8968 (fold_builtin_sprintf): Likewise.
8969 (fold_builtin_snprintf): Likewise.
8970 (fold_builtin_printf): Likewise.
8971 (do_mpfr_remquo): Use a proper type for the assigned constant.
8972 (do_mpfr_lgamma_r): Likewise.
8973 * dwarf2out.c (resolve_one_addr): Use size_int.
8974 * except.c (init_eh): Likewise.
8975 (assign_filter_values): Use integer_type_node for filter values.
8976 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
8977 indices.
8978 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
8979 for EH region numbers.
8980 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
8981 for the shift amount.
8982
8983 2011-04-29 Richard Guenther <rguenther@suse.de>
8984
8985 * expr.h (expand_shift): Rename to ...
8986 (expand_variable_shift): ... this.
8987 (expand_shift): Take a constant shift amount.
8988 * expmed.c (expand_shift): Rename to ...
8989 (expand_variable_shift): ... this.
8990 (expand_shift): New wrapper around expand_variable_shift.
8991 * expr.c (convert_move, emit_group_load_1, emit_group_store,
8992 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
8993 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
8994 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
8995 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
8996 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
8997 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
8998 emit_store_flag_1, emit_store_flag): Likewise.
8999 * builtins.c (expand_builtin_signbit): Likewise.
9000 * calls.c (load_register_parameters): Likewise.
9001 * function.c (assign_parm_setup_block): Likewise.
9002 * lower-subreg.c (resolve_shift_zext): Likewise.
9003 * optabs.c (widen_bswap, expand_abs_nojump,
9004 expand_one_cmpl_abs_nojump, expand_float): Likewise.
9005 * spu/spu.c (spu_expand_extv): Likewise.
9006 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
9007
9008 2011-04-29 Richard Guenther <rguenther@suse.de>
9009
9010 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
9011 for the remapped region number.
9012 * predict.c (build_predict_expr): Use integer_type_node for the
9013 predict kind.
9014 * fold-const.c (fold_binary_loc): Use integer_type_node for
9015 the shift amount. Use a proper type for the PLUS_EXPR operand.
9016
9017 2011-04-29 Michael Matz <matz@suse.de>
9018
9019 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
9020 other trees that just builtins.
9021 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
9022
9023 2011-04-29 Richard Guenther <rguenther@suse.de>
9024
9025 * tree-nested.c (get_trampoline_type): Use size_int.
9026 (get_nl_goto_field): Likewise.
9027 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
9028 for all indexes.
9029 (lower_eh_constructs_2): Likewise.
9030 (lower_resx): Likewise.
9031 (lower_eh_dispatch): Likewise.
9032 * tree-mudflap.c (mf_build_string): Use size_int.
9033 (mudflap_register_call): Use integer_type_node for the flag.
9034 (mudflap_enqueue_constant): Use size_int.
9035 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
9036 instead of rebuilding it.
9037
9038 2011-04-29 Richard Guenther <rguenther@suse.de>
9039
9040 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
9041 Handle OBJ_TYPE_REF.
9042 (find_func_aliases_for_call): Use it more consistently.
9043
9044 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
9045
9046 * haifa-sched.c (last_nondebug_scheduled_insn): New.
9047 (rank_for_schedule): Use it.
9048 (schedule_block): Set it.
9049
9050 2011-04-28 David Li <davidxl@google.com>
9051
9052 * tree.c (crc32_string): Use crc32_byte.
9053 (crc32_byte): New function.
9054 * tree.h (crc32_byte): New function.
9055 * gcov.c (read_graph_file): Handle new cfg_cksum.
9056 (read_count_file): Ditto.
9057 * profile.c (instrument_values): Ditto.
9058 (get_exec_counts): Ditto.
9059 (read_profile_edge_counts): Ditto.
9060 (compute_branch_probabilities): Ditto.
9061 (compute_value_histograms): Ditto.
9062 (branch_prob): Ditto.
9063 (end_branch_prob): Ditto.
9064 * coverage.c (read_counts_file): Ditto.
9065 (get_coverage_counts): Ditto.
9066 (tree_coverage_counter_addr): Ditto.
9067 (coverage_checksum_string): Ditto.
9068 (coverage_begin_output): Ditto.
9069 (coverage_end_function): Ditto.
9070 (build_fn_info_type): Ditto.
9071 (build_fn_info_value): Ditto.
9072 * libgcov.c (gcov_exit): Ditto.
9073 * gcov-dump.c (tag_function): Ditto.
9074 (compute_checksum): Remove.
9075
9076 2011-04-29 Alan Modra <amodra@gmail.com>
9077
9078 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9079 unspec plus offset. Tidy macho code.
9080
9081 2011-04-29 Martin Jambor <mjambor@suse.cz>
9082
9083 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
9084 node instead of a decl. Update all callers.
9085 * cgraph.h: Update declaration.
9086
9087 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
9088
9089 PR tree-optimization/48765
9090 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
9091 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
9092 to indicate if loop aware SLP is being used. Scan the statements
9093 and update the vectorization factor according to the type of
9094 vectorization before statement analysis.
9095 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
9096 pass it to vect_analyze_loop_operations.
9097 (vectorizable_reduction): Set number of copies to 1 in case of pure
9098 SLP statement.
9099 * tree-vect-stmts.c (vectorizable_conversion,
9100 vectorizable_assignment, vectorizable_shift,
9101 vectorizable_operation, vectorizable_type_demotion,
9102 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
9103 Likewise.
9104 (vectorizable_condition): Move the check that it is not SLP
9105 vectorization before the number of copies check.
9106 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
9107 to vectorize the loop using SLP.
9108
9109 2011-04-28 Jakub Jelinek <jakub@redhat.com>
9110
9111 PR middle-end/48597
9112 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
9113 inline asm.
9114
9115 2011-04-28 Joseph Myers <joseph@codesourcery.com>
9116
9117 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
9118 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
9119 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
9120 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
9121 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
9122 linux*.h headers.
9123 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
9124 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
9125 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
9126 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
9127 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
9128 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
9129 REG_NAME.
9130 * config/i386/linux.h (REG_NAME): Don't define.
9131 * config/i386/linux64.h (REG_NAME): Don't define.
9132 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
9133 Undefine before defining.
9134
9135 2011-04-28 Jan Hubicka <jh@suse.cz>
9136
9137 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
9138 nonconstant_names array.
9139 (estimate_function_body_sizes): Build nonconstant_names array; handle
9140 BUILT_IN_CONSTANT_P.
9141
9142 2011-04-28 Richard Guenther <rguenther@suse.de>
9143
9144 PR bootstrap/48804
9145 Revert
9146 2011-04-28 Richard Guenther <rguenther@suse.de>
9147
9148 * tree-ssa-structalias.c (solve_constraints): Build succ graph
9149 as late as possible.
9150
9151 2011-04-28 Richard Guenther <rguenther@suse.de>
9152
9153 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
9154 (debug_constraint): Do it here.
9155 (dump_constraints): And here.
9156 (rewrite_constraints): And here.
9157 (dump_constraint_edge): Remove.
9158 (dump_constraint_graph): Rewrite to produce DOT output.
9159 (solve_constraints): Build succ graph as late as possible.
9160 Dump constraint graphs before and after solving.
9161
9162 2011-04-28 Richard Guenther <rguenther@suse.de>
9163
9164 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9165 New function split out from ...
9166 (find_func_aliases): ... here. Call it.
9167 (find_func_aliases_for_call): Likewise.
9168
9169 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
9170
9171 * internal-fn.h (internal_fn_name_array): Declare.
9172 (internal_fn_flags_array): Likewise.
9173
9174 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
9175
9176 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
9177 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
9178 Move from sse.md.
9179 (ssemodefsuffix): Remove.
9180 (ssevecmodesuffix): New mode attribute.
9181 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
9182 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
9183 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
9184 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
9185 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
9186 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
9187 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
9188 ssemodesuffix mode attribute.
9189 (float splitters): Use ssevecmodesuffix mode attribute.
9190 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
9191 (sseinsmode): Rename from avxvecmode.
9192 (avxsizesuffix): Rename from avxmodesuffix.
9193 (sseintvecmode): Rename from avxpermvecmode.
9194 (ssedoublevecmode): Rename from ssedoublesizemode.
9195 (ssehalfvecmode): Rename from avxhalfvecmode.
9196 (ssescalarmode): Rename from avxscalarmode.
9197 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
9198 templates for ssemodesuffix mode attribute.
9199 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
9200 mode attribute.
9201
9202 Adjust RTX patterns globally for renamed mode attributes.
9203
9204 2011-04-27 Jan Hubcika <jh@suse.cz>
9205
9206 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
9207 * ipa-inline-analysis.c: Include alloc-pool.h.
9208 (edge_predicate_pool): New.
9209 (trye_predicate_p): New function
9210 (false_predicate_p): New function.
9211 (add_clause): Sanity check that false clauses are "optimized";
9212 never add clauses to predicate that is already known to be false.
9213 (and_predicate): Use flase_predicate_p.
9214 (evaulate_predicate): Rename to ...
9215 (evaluate_predicate): ... this one; update all callers; assert
9216 that false is not listed among possible truths.
9217 (dump_predicate): Use true_predicate_p.
9218 (account_size_time): Use false_predicate_p.
9219 (evaulate_conditions_for_edge): Rename to ...
9220 (evaluate_conditions_for_edge) ... this one.
9221 (edge_set_predicate): New function.
9222 (inline_edge_duplication_hook): Duplicate edge predicates.
9223 (inline_edge_removal_hook): Free edge predicates.
9224 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
9225 (dump_inline_summary): Update.
9226 (estimate_function_body_sizes): Set edge predicates.
9227 (estimate_calls_size_and_time): Handle predicates.
9228 (estimate_callee_size_and_time): Update.
9229 (remap_predicate): Add toplev_predicate; update comment.
9230 (remap_edge_predicates): New function.
9231 (inline_merge_summary): Compute toplev predicate; update.
9232 (read_predicate): New function.
9233 (read_inline_edge_summary): Use it.
9234 (inline_read_section): Likewise.
9235 (write_predicate): New function.
9236 (write_inline_edge_summary): Use it.
9237 (inline_write_summary): Likewise.
9238 (inline_free_summary): Free alloc pool and edge summary vec.
9239
9240 2011-04-27 Richard Guenther <rguenther@suse.de>
9241
9242 * tree-ssa-structalias.c (changed_count): Remove.
9243 (changed): Use a bitmap.
9244 (unify_nodes): Adjust.
9245 (do_sd_constraint): Likewise.
9246 (do_ds_constraint): Likewise.
9247 (do_complex_constraint): Likewise.
9248 (solve_graph): Likewise.
9249
9250 2011-04-27 Jan Hubicka <jh@suse.cz>
9251
9252 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
9253
9254 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
9255
9256 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
9257 (avx_vperm2f128_*_operand): Ditto.
9258 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
9259 Use avx_vpermilp_parallel in insn condition.
9260 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
9261 Use avx_vperm2f128_parallel in insn condition.
9262
9263 2011-04-27 Richard Guenther <rguenther@suse.de>
9264
9265 * Makefile.in (tree-ssa-structalias.o): Remove
9266 gt-tree-ssa-structalias.h dependency.
9267 (GTFILES): Remove tree-ssa-structalias.c.
9268 * tree.c (allocate_decl_uid): New function.
9269 (make_node_stat): Use it.
9270 (copy_node_stat): Likewise.
9271 * tree.h (allocate_decl_uid): Declare.
9272 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
9273 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
9274 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
9275 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
9276 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
9277 (struct heapvar_map): Likewise.
9278 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
9279 heapvar_insert): Likewise.
9280 (make_heapvar_for): Rename to ...
9281 (make_heapvar): ... this. Simplify.
9282 (fake_var_decl_obstack): New global var.
9283 (build_fake_var_decl): New function.
9284 (make_constraint_from_heapvar): Adjust.
9285 (handle_lhs_call): Likewise.
9286 (create_function_info_for): Likewise.
9287 (intra_create_variable_infos): Likewise.
9288 (init_alias_vars): Allocate fake_var_decl_obstack.
9289 (init_alias_heapvars, delete_alias_heapvars): Remove.
9290 (compute_points_to_sets): Do not call init_alias_heapvars.
9291 (ipa_pta_execute): Likewise.
9292 (delete_points_to_sets): Free fake_var_decl_obstack.
9293
9294 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9295
9296 * config/spu/divmovti4.c (union qword_UTItype): New data type.
9297 (si_from_UTItype, si_to_UTItype): New functions.
9298 (__udivmodti4): Use them to implement type-punning.
9299 * config/spu/multi3.c (union qword_TItype): New data type.
9300 (si_from_TItype, si_to_TItype): New functions.
9301 (__multi3): Use them to implement type-punning.
9302
9303 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9304
9305 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
9306
9307 2011-04-27 Jan Hubicka <jh@suse.cz>
9308
9309 * ipa-prop.c (function_insertion_hook_holder): New holder.
9310 (ipa_add_new_function): New function.
9311 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
9312 Register/deregister holder.
9313
9314 2011-04-27 Richard Guenther <rguenther@suse.de>
9315
9316 PR tree-optimization/48772
9317 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9318
9319 2011-04-27 Richard Guenther <rguenther@suse.de>
9320
9321 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
9322 TARGET_MEM_REF handling.
9323
9324 2011-04-27 Nick Clifton <nickc@redhat.com>
9325
9326 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
9327 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
9328 (REG_CLASS_NAMES): Likewise.
9329 (REG_CLASS_CONTENTS): Likewise.
9330 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
9331 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
9332 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
9333 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
9334 (EVEN_REGS): New macro. Alias for QUAD_REGS.
9335 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
9336 duplicate register classes.
9337 (frv_class_likely_spilled_p): Likewise.
9338 (frv_register_move_cost): Likewise.
9339
9340 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
9341 end of the regno_reg_class array.
9342
9343 2011-04-27 Jakub Jelinek <jakub@redhat.com>
9344
9345 PR c/48742
9346 * c-typeck.c (build_binary_op): Don't wrap arguments if
9347 int_operands is true.
9348
9349 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
9350
9351 PR target/48767
9352 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
9353 targetm.calls.must_pass_in_stack for void type.
9354
9355 2011-04-26 Jan Hubicka <jh@suse.cz>
9356
9357 * cgraphbuild.c (build_cgraph_edges): Update call
9358 of cgraph_create_edge and cgraph_create_indirect_edge.
9359 * cgraph.c (cgraph_create_edge_including_clones,
9360 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
9361 cgraph_update_edges_for_call_stmt_node): Do not take nest
9362 argument; do not initialize call_stmt_size/time.
9363 (dump_cgraph_node): Do not dump nest.
9364 (cgraph_clone_edge): Do not take loop_nest argument;
9365 do not propagate it; do not clone call_stmt_size/time.
9366 (cgraph_clone_node): Likewise.
9367 (cgraph_create_virtual_clone): Update.
9368 * cgraph.h (struct cgraph_edge): Remove
9369 call_stmt_size/call_stmt_time/loop_nest.
9370 (cgraph_create_edge, cgraph_create_indirect_edge,
9371 cgraph_create_edge_including_clones, cgraph_clone_node): Update
9372 prototype.
9373 * tree-emutls.c (gen_emutls_addr): Update.
9374 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
9375 loop_nest; handle indirect calls, too.
9376 (clone_inlined_nodes): Do not care about updating inline summaries.
9377 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
9378 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
9379 stream call_stmt_size/call_stmt_time/loop_nest.
9380 * ipa-inline.c (edge_badness): Update.
9381 (ipa_inline): dump summaries after inlining.
9382 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
9383 New.
9384 (inline_edge_summary): New function.
9385 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
9386 (inline_edge_removal_hook): Handle edge summaries.
9387 (inline_edge_duplication_hook): New hook.
9388 (inline_summary_alloc): Alloc hooks.
9389 (initialize_growth_caches): Do not register removal hooks.
9390 (free_growth_caches); Do not free removal hook.
9391 (dump_inline_edge_summary): New function.
9392 (dump_inline_summary): Use it.
9393 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
9394 (inline_update_callee_summaries): New function.
9395 (inline_merge_summary): Use it.
9396 (do_estimate_edge_time, do_estimate_edge_growth): Update.
9397 (read_inline_edge_summary): New function.
9398 (inline_read_section): Use it.
9399 (write_inline_edge_summary): New function.
9400 (inline_write_summary): Use it.
9401 (inline_free_summary): Free edge new holders.
9402 * tree-inline.c (copy_bb): Update.
9403
9404 2011-04-26 Jason Merrill <jason@redhat.com>
9405
9406 * tree-eh.c (lower_try_finally_switch): Create the label along with
9407 the CASE_LABEL_EXPR.
9408
9409 2011-04-26 David S. Miller <davem@davemloft.net>
9410 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9411
9412 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
9413 * configure: Regenerate.
9414
9415 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9416
9417 PR target/48258
9418 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
9419 reduction.
9420 (VEC_reduc): New code iterator and splitters for vector reduction.
9421 (VEC_reduc_name): Ditto.
9422 (VEC_reduc_rtx): Ditto.
9423 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
9424 (reduc_<VEC_reduc_name>_v4sf): Ditto.
9425
9426 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9427 support for extracting SF on VSX.
9428
9429 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
9430 generating xscvspdp.
9431 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
9432 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
9433 double add, minimum, maximum vector reduction.
9434 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
9435 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
9436 optimize double vector reduction.
9437 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
9438
9439 2011-04-26 Joseph Myers <joseph@codesourcery.com>
9440
9441 * config/fr30/fr30.h (inhibit_libc): Don't define.
9442 * config/m32r/m32r-protos.h: Correct comment.
9443 * config/v850/v850.h (GHS_default_section_names,
9444 GHS_current_section_names): Use tree, not union tree_node *.
9445
9446 2011-04-26 Xinliang David Li <davidxl@google.com>
9447
9448 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
9449 * c-family/c-opts.c (c_common_handle_option): Set
9450 warn_maybe_uninitialized.
9451 * opts.c (common_handle_option): Ditto.
9452 * common.opt: New option.
9453 * tree-ssa.c (warn_uninit): Add one more parameter.
9454 (warn_uninitialized_var): Pass warning code.
9455 * tree-flow.h: Interface change.
9456
9457 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9458
9459 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9460 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
9461 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
9462
9463 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9464
9465 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
9466 * config/mips/mips.opt (mmips-tfile): Remove.
9467
9468 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
9469 mips-tdump reference to ...
9470 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
9471 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
9472 reference by Tru64 UNIX.
9473
9474 2011-04-26 Jakub Jelinek <jakub@redhat.com>
9475
9476 PR debug/48768
9477 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
9478 is error_mark_node, set value to NULL.
9479
9480 PR tree-optimization/48734
9481 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
9482 if return value from maybe_fold_*_comparsions isn't something
9483 the code is prepared to handle.
9484
9485 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
9486
9487 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
9488 mode check.
9489 (ext_QIreg_nomode_operands): Remove.
9490 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
9491 (*andsi_1): Ditto.
9492 (*andhi_1): Ditto.
9493
9494 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
9495
9496 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
9497
9498 2011-04-26 Richard Guenther <rguenther@suse.de>
9499
9500 * c-typeck.c (build_unary_op): Do not expand array-refs via
9501 pointer arithmetic. Only adjust qualifiers for function types.
9502
9503 2011-04-26 Richard Guenther <rguenther@suse.de>
9504
9505 PR middle-end/48694
9506 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
9507 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
9508 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
9509 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
9510
9511 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
9512
9513 * doc/extend.texi: Document __underlying_type.
9514
9515 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
9516
9517 * config/rs6000/titan.md (automata_option "progress"): Remove.
9518
9519 2011-04-25 Jeff Law <law@redhat.com>
9520
9521 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
9522
9523 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9524
9525 * system.h (ENUM_BITFIELD): Remove.
9526
9527 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
9528 Eric Botcazou <ebotcazou@adacore.com>
9529
9530 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
9531 for STORE_FLAG_VALUE==-1 case.
9532
9533 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
9534
9535 PR target/43804
9536 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
9537 LEGITIMATE_PIC_OPERAND_P.
9538
9539 2011-04-24 Jan Hubicka <jh@suse.cz>
9540
9541 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
9542 WPA hack.
9543 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
9544 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
9545 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
9546 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
9547 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
9548 Sanity check predicate length.
9549 (remap_predicate): Likewise; sanity check jump functions.
9550 (inline_read_section, inline_write_summary): Sanity check
9551 predicate length.
9552
9553 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
9554
9555 PR other/48748
9556 * doc/extend.texi (Type Traits): Document __is_standard_layout,
9557 __is_literal_type, and __is_trivial; update throughout about
9558 possibly cv-qualified void types.
9559
9560 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
9561
9562 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
9563 testsuite and make it version agnostic.
9564
9565 2011-04-22 Jan Hubicka <jh@suse.cz>
9566
9567 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
9568
9569 2011-04-23 Jakub Jelinek <jakub@redhat.com>
9570
9571 PR c/48685
9572 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
9573 to VOID_TYPE even around MODIFY_EXPR.
9574
9575 2011-04-22 Mike Stump <mikestump@comcast.net>
9576
9577 * gensupport.c (read_md_rtx): Fix typo in comment.
9578 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
9579 comment.
9580
9581 2011-04-22 Jan Hubicka <jh@suse.cz>
9582
9583 * gengtype.c (open_base_files): Add ipa-inline.h include.
9584 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
9585 ipa-prop.c; update all uses.
9586 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
9587 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
9588 merge summary of inlined function into former caller.
9589 * ipa-inline.c (max_benefit): Remove.
9590 (edge_badness): Compensate for removal of benefits.
9591 (update_caller_keys): Use
9592 reset_node_growth_cache/reset_edge_growth_cache.
9593 (update_callee_keys): Likewise.
9594 (update_all_callee_keys): Likewise.
9595 (inline_small_functions): Do not collect max_benefit; do not reset
9596 estimated_growth; call free_growth_caches and initialize_growth_caches.
9597 * ipa-inline.h (struct condition, type clause_t, struct predicate,
9598 struct size_time_entry): New structures.
9599 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
9600 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
9601 and estimated_growth.
9602 (edge_growth_cache_entry): New structure.
9603 (node_growth_cache, edge_growth_cache): New global vars.
9604 (estimate_growth): Turn into inline.
9605 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
9606 initialize_growth_caches, free_growth_caches): Declare.
9607 (estimate_edge_growth): Rewrite.
9608 (estimate_edge_time): Implement as inline cache lookup.
9609 (reset_node_growth_cache, reset_edge_growth_cache): New inline
9610 functions.
9611 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
9612 (NUM_CONDITIONS): New constant.
9613 (predicate_conditions): New enum.
9614 (IS_NOT_CONSTANT): New constant.
9615 (edge_removal_hook_holder): New var.
9616 (node_growth_cache, edge_growth_cache): New global vars.
9617 (true_predicate, single_cond_predicate, false_predicate,
9618 not_inlined_predicate, add_condition, add_clause, and_predicates,
9619 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
9620 dump_clause, dump_predicate, account_size_time,
9621 evaulate_conditions_for_edge): New functions.
9622 (inline_summary_alloc): Move to heap.
9623 (inline_node_removal_hook): Clear condition and entry vectors.
9624 (inline_edge_removal_hook): New function.
9625 (initialize_growth_caches, free_growth_caches): New function.
9626 (dump_inline_summary): Update.
9627 (edge_execution_predicate): New function.
9628 (will_be_nonconstant_predicate): New function.
9629 (estimate_function_body_sizes): Compute BB and constantness predicates.
9630 (compute_inline_parameters): Do not clear estimated_growth.
9631 (estimate_edge_size_and_time): New function.
9632 (estimate_calls_size_and_time): New function.
9633 (estimate_callee_size_and_time): New function.
9634 (remap_predicate): New function.
9635 (inline_merge_summary): New function.
9636 (do_estimate_edge_time): New function based on...
9637 (estimate_edge_time): ... this one.
9638 (do_estimate_edge_growth): New function.
9639 (do_estimate_growth): New function based on....
9640 (estimate_growth): ... this one.
9641 (inline_analyze_function): Analyze after deciding on jump functions.
9642 (inline_read_section): New function.
9643 (inline_read_summary): Use it.
9644 (inline_write_summary): Write all the new data.
9645 * ipa-prop.c (ipa_get_param_decl_index): Export.
9646 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
9647 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
9648 Declare.
9649 (ipa_get_lattice): Move here from ipa-cp.c
9650 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
9651 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
9652 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
9653 cgraph_edge_inlinable_p): Remove.
9654 * cgraphunit.c: Include ipainline.h
9655 (cgraph_process_new_functions): Update call of
9656 compute_inline_parameters.
9657
9658 2011-04-22 Richard Guenther <rguenther@suse.de>
9659
9660 * tree.c (build_int_cst): Properly create canonicalized integer
9661 constants.
9662 (build_int_cst_type): Remove scary comments.
9663
9664 2011-04-22 Xinliang David Li <davidxl@google.com>
9665
9666 * toplev.c (process_options): Enable -Werror=coverage-mismatch
9667 by default when -Wno-error is not specified.
9668 * opts-global.c (decode_options): Remove call to
9669 control_warning_options.
9670
9671 2011-04-22 Jakub Jelinek <jakub@redhat.com>
9672
9673 PR tree-optimization/48717
9674 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
9675 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
9676
9677 2011-04-22 Joseph Myers <joseph@codesourcery.com>
9678
9679 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
9680 definition where used.
9681
9682 2011-04-22 Jakub Jelinek <jakub@redhat.com>
9683
9684 PR c/48716
9685 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
9686 TREE_STATIC variables declared inside of some OpenMP construct.
9687
9688 2011-04-22 Martin Jambor <mjambor@suse.cz>
9689
9690 PR middle-end/48585
9691 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
9692
9693 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
9694
9695 PR c/36750
9696 * c-typeck.c (pop_init_level): Do not warn about initializing
9697 with ` = {0}'.
9698
9699 2011-04-22 Alan Modra <amodra@gmail.com>
9700
9701 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
9702 when returning call_cookie.
9703 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
9704 pointers, to functions with no more vector args than the current
9705 function, and some non-local calls for ABI_V4.
9706 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
9707 sibcall_nonlocal_aix64): Combine to ..
9708 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
9709 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
9710 (sibcall_value_nonlocal_aix<mode>): ..likewise.
9711 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
9712 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
9713 operand.
9714 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
9715 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
9716 sibcall_value_symbolic_64): Delete.
9717
9718 2011-04-21 Xinliang David Li <davidxl@google.com>
9719
9720 * cgraph.h: Remove pid.
9721 * cgraph.c: Remove pid.
9722 * value-prof.c (init_node_map): New function.
9723 (del_node_map): New function.
9724 (find_func_by_funcdef_no): New function.
9725 (gimple_ic_transform): Call new function.
9726 * cgraphunit.c (cgraph_finalize_function): Remove pid.
9727 * function.c (get_last_funcdef_no): New function.
9728 * function.h (get_last_funcdef_no): New function.
9729 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
9730 to libgcov function.
9731 (tree-profiling): Call node map init and delete function.
9732
9733 2011-04-21 Ian Lance Taylor <iant@google.com>
9734
9735 * godump.c (go_format_type): Use exported Go name for anonymous
9736 field name.
9737
9738 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9739
9740 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
9741 Call builtin_function_type_list instead of builtin_function_type.
9742 (UNARY, BINARY, TRINARY, QUAD): Likewise.
9743
9744 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9745
9746 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
9747 build_function_type_list instead of build_function_type.
9748 Delete variable `endlink'.
9749
9750 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9751
9752 * config/s390/s390.c (s390_init_builtins): Call
9753 build_function_type_list instead of build_function_type.
9754
9755 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9756
9757 * config/ia64/ia64.c (ia64_init_builtins): Call
9758 build_function_type_list instead of builtin_function_type.
9759
9760 2011-04-21 Easwaran Raman <eraman@google.com>
9761
9762 * cfgexpand.c (stack_var): Remove OFFSET...
9763 (add_stack_var): ...and its reference here...
9764 (expand_stack_vars): ...and here.
9765 (stack_var_cmp): Sort by descending order of size.
9766 (partition_stack_vars): Change heuristic.
9767 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
9768 (dump_stack_var_partition): Add newline after each partition.
9769
9770 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
9771 Jeff Law <law@redhat.com>
9772
9773 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
9774 * gengtype.c (matching_file_name_substitute): Likewise.
9775
9776 2011-04-21 Richard Guenther <rguenther@suse.de>
9777
9778 PR lto/48703
9779 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
9780
9781 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
9782
9783 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
9784
9785 2011-04-21 Richard Guenther <rguenther@suse.de>
9786
9787 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
9788 file name.
9789
9790 2011-04-21 Richard Guenther <rguenther@suse.de>
9791
9792 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9793 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
9794 Use DECL_P, not SSA_VAR_P.
9795 (ptr_derefs_may_alias_p): Likewise.
9796 (ptr_deref_may_alias_ref_p_1): Likewise.
9797 (decl_refs_may_alias_p): Likewise.
9798 (refs_may_alias_p_1): Likewise.
9799 (ref_maybe_used_by_call_p_1): Likewise.
9800 (call_may_clobber_ref_p_1): Likewise.
9801 (indirect_ref_may_alias_decl_p): Assume indirect refrences
9802 are either MEM_REF or TARGET_MEM_REF.
9803 (indirect_refs_may_alias_p): Likewise.
9804 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
9805 for MEM_EXPR of indirect calls.
9806
9807 2011-04-21 Tristan Gingold <gingold@adacore.com>
9808
9809 * vmsdbgout.c (write_srccorr): Compute file length from the string.
9810 (dst_file_info_struct): Remove flen field.
9811 (lookup_filename): Remove code that set flen field.
9812
9813 2011-04-21 Tristan Gingold <gingold@adacore.com>
9814
9815 * config/ia64/ia64.c (ia64_start_function): Add a guard.
9816
9817 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
9818
9819 PR target/48708
9820 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
9821 vec_extract and vec_concat for non-SSE4_1 targets.
9822
9823 2011-04-21 Richard Guenther <rguenther@suse.de>
9824
9825 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
9826 return statements.
9827
9828 2011-04-21 Joseph Myers <joseph@codesourcery.com>
9829
9830 * config/i386/cygming.h (union tree_node, TREE): Don't define or
9831 undefine.
9832 (FILE): Don't undefine.
9833
9834 2011-04-21 Joseph Myers <joseph@codesourcery.com>
9835
9836 * config/alpha/alpha.c (struct machine_function): Use rtx, not
9837 struct rtx_def *.
9838 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
9839 struct rtx_def *.
9840 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
9841 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
9842 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
9843 rtx_def *.
9844 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
9845 definitions where used.
9846 * config/microblaze/microblaze.h (struct microblaze_args): Use
9847 rtx, not struct rtx_def *.
9848 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
9849 rtx_def *.
9850 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
9851 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
9852 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
9853 not struct rtx_def *.
9854 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
9855 struct rtx_def *.
9856 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
9857 rtx_def *.
9858 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
9859
9860 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9861
9862 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
9863 operand_equal_p to compare DR_BASE_ADDRESSes.
9864 (vect_check_interleaving): Likewise.
9865
9866 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9867
9868 PR target/46329
9869 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
9870 for all Neon struct constants.
9871
9872 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9873
9874 * target.def (legitimate_constant_p): New hook.
9875 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
9876 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
9877 * doc/tm.texi: Regenerate.
9878 * hooks.h (hook_bool_mode_rtx_true): Declare.
9879 * hooks.c (hook_bool_mode_rtx_true): Define.
9880 * system.h (LEGITIMATE_CONSTANT_P): Poison.
9881 * calls.c (precompute_register_parameters): Replace uses of
9882 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
9883 (emit_library_call_value_1): Likewise.
9884 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
9885 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
9886 * ira-costs.c (scan_one_insn): Likewise.
9887 * recog.c (general_operand, immediate_operand): Likewise.
9888 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
9889 * reload1.c (init_eliminable_invariants): Likewise.
9890
9891 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
9892 mode argument.
9893 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
9894 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
9895 argument.
9896 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9897 * config/alpha/predicates.md (input_operand): Update call to
9898 alpha_legitimate_constant_p.
9899
9900 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
9901 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
9902 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
9903 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9904 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
9905 (arm_legitimate_constant_p): New functions.
9906 (arm_cannot_force_const_mem): Make static.
9907
9908 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
9909
9910 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
9911 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
9912 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
9913 instead of bfin_legitimate_constant_p.
9914 (bfin_legitimate_constant_p): Make static. Add a mode argument.
9915 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9916
9917 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
9918
9919 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
9920
9921 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
9922 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
9923 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9924 (frv_legitimate_constant_p): Make static. Add a mode argument.
9925
9926 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
9927 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
9928 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
9929
9930 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
9931 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
9932 * config/i386/i386.c (legitimate_constant_p): Rename to...
9933 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
9934 argument.
9935 (ix86_cannot_force_const_mem): Update accordingly.
9936 (ix86_legitimate_address_p): Likewise.
9937 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9938 * config/i386/i386.md: Update commentary.
9939
9940 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
9941 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
9942 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9943 (ia64_legitimate_constant_p): Make static. Add a mode argument.
9944
9945 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
9946
9947 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
9948 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
9949 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9950 (lm32_legitimate_constant_p): Make static. Add a mode argument.
9951
9952 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
9953 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
9954 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
9955
9956 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
9957 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9958 (m32r_legitimate_constant_p): New function.
9959
9960 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
9961 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
9962 LEGITIMATE_CONSTANT_P.
9963 (LEGITIMATE_CONSTANT_P): Delete.
9964 * config/m68k/m68k.c (m68k_expand_prologue): Call
9965 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
9966 (m68k_legitimate_constant_p): New function.
9967 * config/m68k/m68k.md: Update comments.
9968
9969 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
9970 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9971 (mcore_legitimate_constant_p): New function.
9972
9973 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
9974 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
9975 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
9976 Add a mode argument.
9977 (mep_legitimate_address): Update accordingly.
9978 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9979
9980 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
9981 Delete.
9982 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
9983 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
9984 static. Check OP's mode for VOIDmode.
9985 (microblaze_legitimate_constant_p): New function.
9986 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9987
9988 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
9989 * config/mips/mips.c (mips_legitimate_constant_p): New function.
9990 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
9991 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9992 * config/mips/predicates.md: Update comments.
9993
9994 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
9995 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
9996 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9997 (mmix_legitimate_constant_p): Make static, return a bool, and take
9998 a mode argument.
9999 (mmix_print_operand_address): Update accordingly.
10000
10001 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
10002 Delete.
10003 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
10004 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
10005 static. Add a mode argument.
10006 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10007
10008 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
10009
10010 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
10011 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10012 (pa_legitimate_constant_p): New function.
10013
10014 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
10015
10016 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
10017 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10018 (pdp11_legitimate_constant_p): New function.
10019
10020 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
10021 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10022 (rs6000_legitimate_constant_p): New function.
10023
10024 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
10025 (rx_legitimate_constant_p): ...this.
10026 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
10027 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
10028 (rx_legitimate_constant_p): ...this.
10029 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10030 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
10031
10032 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
10033 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
10034 * config/s390/s390.c (legitimate_constant_p): Rename to...
10035 (s390_legitimate_constant_p): ...this. Make static, return a bool,
10036 and add a mode argument.
10037 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10038
10039 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
10040
10041 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
10042 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10043 (sh_legitimate_constant_p): New function.
10044
10045 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
10046 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
10047 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10048 (legitimate_constant_p): Rename to...
10049 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
10050 argument.
10051 (constant_address_p): Update accordingly.
10052
10053 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
10054 argument and return a bool.
10055 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
10056 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10057 (spu_legitimate_constant_p): Add a mode argument and return a bool.
10058 (spu_rtx_costs): Update accordingly.
10059 * config/spu/predicates.md (vec_imm_operand): Likewise.
10060
10061 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
10062
10063 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
10064 * config/v850/v850.c (v850_legitimate_constant_p): New function.
10065 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10066
10067 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
10068 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
10069 * config/vax/vax.c (legitimate_constant_p): Likewise.
10070
10071 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
10072 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10073 (xtensa_legitimate_constant_p): New function.
10074
10075 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10076
10077 * target.def (cannot_force_const_mem): Add a mode argument.
10078 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
10079 * doc/tm.texi: Regenerate.
10080 * hooks.h (hook_bool_mode_rtx_false): Declare.
10081 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
10082 (hook_bool_mode_const_rtx_true): Likewise.
10083 (hook_bool_mode_rtx_false): New function.
10084 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
10085 to be non-VOID. Update call to cannot_force_const_mem.
10086 (find_reloads): Update accordingly.
10087 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
10088 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
10089 argument.
10090 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
10091 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
10092 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
10093 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
10094 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
10095 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
10096 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
10097 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
10098 (m68k_cannot_force_const_mem): ...this new function.
10099 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
10100 argument.
10101 (mips_const_insns, mips_legitimize_const_move): Update calls.
10102 (mips_secondary_reload_class): Likewise.
10103 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
10104 (pa_cannot_force_const_mem): ...this new function.
10105 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
10106 (rs6000_cannot_force_const_mem): ...this new function.
10107 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
10108 argument.
10109 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
10110 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
10111 to...
10112 (xtensa_cannot_force_const_mem): ...this new function.
10113
10114 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
10115
10116 * config/mips/mips.c (mips16_build_function_stub): Call
10117 build_function_type_list instead of build_function_type.
10118 (mips16_build_call_stub): Likewise.
10119
10120 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
10121
10122 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
10123 instead of build_function_type.
10124
10125 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
10126
10127 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
10128 instead of build_function_type.
10129
10130 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
10131
10132 PR target/48678
10133 * config/i386/i386.md (insv): Change operand 0 constraint to
10134 "register_operand". Change operand 1 and 2 constraint to
10135 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
10136 * config/i386/sse.md (sse4_1_pinsrb): Export.
10137 (sse2_pinsrw): Ditto.
10138 (sse4_1_pinsrd): Ditto.
10139 (sse4_1_pinsrq): Ditto.
10140 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
10141 * config/i386/i386.c (ix86_expand_pinsr): New.
10142
10143 2011-04-20 Easwaran Raman <eraman@google.com>
10144
10145 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
10146 containing union type only with -fstrict-aliasing.
10147
10148 2011-04-20 Jim Meyering <meyering@redhat.com>
10149
10150 Remove useless if-before-free tests.
10151 * calls.c (expand_call, save_area): Likewise.
10152 * cfgcleanup.c (try_forward_edges): Likewise.
10153 * collect2.c (collect_execute): Likewise.
10154 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
10155 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
10156 * coverage.c (coverage_checksum_string): Likewise.
10157 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
10158 * cselib.c (cselib_init): Likewise.
10159 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
10160 (df_set_clean_cfg): Likewise.
10161 * function.c (free_after_compilation): Likewise.
10162 * gcc.c (do_spec_1, main): Likewise.
10163 * gcov.c (create_file_names): Likewise.
10164 * gensupport.c (identify_predicable_attribute): Likewise.
10165 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
10166 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
10167 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
10168 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
10169 * ipa-pure-const.c (local_pure_const): Likewise.
10170 * ipa-reference.c (propagate): Likewise.
10171 * ira-costs.c (free_ira_costs): Likewise.
10172 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
10173 * matrix-reorg.c (mat_free): Likewise.
10174 * prefix.c (get_key_value): Likewise.
10175 * profile.c (compute_value_histograms): Likewise.
10176 * reload1.c (free_reg_equiv): Likewise.
10177 * sched-deps.c (free_deps): Likewise.
10178 * sel-sched-ir.c (fence_clear): Likewise.
10179 * sese.c (set_rename, if_region_set_false_region): Likewise.
10180 * tree-data-ref.c (free_rdg): Likewise.
10181 * tree-eh.c (lower_try_finally): Likewise.
10182 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
10183 * tree-ssa-live.c (delete_var_map): Likewise.
10184 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
10185 * tree-ssa-pre.c (phi_trans_add): Likewise.
10186
10187 2011-04-20 Jakub Jelinek <jakub@redhat.com>
10188
10189 PR tree-optimization/48611
10190 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
10191 beyond ERT_MUST_NOT_THROW region.
10192
10193 2011-04-20 Catherine Moore <clm@codesourcery.com>
10194
10195 * config/mips/mips.opt (mfix-24k): New.
10196 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
10197 * config/mips/mips.md (length): Increase by 4 for stores if
10198 fixing 24K errata.
10199 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
10200 all noreorder if fixing 24K errata.
10201 * doc/invoke.texi: Document mfix-24k.
10202
10203 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
10204
10205 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
10206 quad-word modes, reduce to 9-bit index range when above 1016 limit.
10207
10208 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
10209
10210 * config/arm/arm.c (arm_gen_constant): Move movw support ....
10211 (const_ok_for_op): ... to here.
10212
10213 2011-04-20 Kai Tietz <ktietz@redhat.com>
10214
10215 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
10216 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
10217
10218 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
10219
10220 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
10221
10222 2011-04-20 Richard Guenther <rguenther@suse.de>
10223
10224 PR tree-optimization/47892
10225 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
10226 are if-convertible.
10227
10228 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
10229
10230 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
10231
10232 2011-04-20 Tristan Gingold <gingold@adacore.com>
10233
10234 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
10235
10236 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
10237
10238 PR target/18145
10239
10240 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
10241 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
10242 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
10243 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
10244 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
10245
10246 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
10247 New prototype.
10248
10249 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
10250 (avr_asm_named_section, avr_asm_output_aligned_common,
10251 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
10252 New functions to update...
10253 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
10254 (avr_asm_init_sections): Overwrite section callbacks for
10255 data_section, bss_section.
10256 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
10257 from here to...
10258 (avr_file_end): ...here.
10259
10260 2011-04-20 Richard Guenther <rguenther@suse.de>
10261
10262 PR middle-end/48695
10263 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
10264 objects and types here. Adjust for their offset before comparing.
10265
10266 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
10267
10268 * tree-vect-stmts.c (vectorizable_store): Only chain one related
10269 statement per copy.
10270
10271 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
10272
10273 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
10274 (GIMPLE_H): Include $(INTERNAL_FN_H).
10275 (OBJS-common): Add internal-fn.o.
10276 (internal-fn.o): New rule.
10277 * internal-fn.def: New file.
10278 * internal-fn.h: Likewise.
10279 * internal-fn.c: Likewise.
10280 * gimple.h: Include internal-fn.h.
10281 (GF_CALL_INTERNAL): New gf_mask.
10282 (gimple_statement_call): Put fntype into a union with a new
10283 internal_fn field.
10284 (gimple_build_call_internal): Declare.
10285 (gimple_build_call_internal_vec): Likewise.
10286 (gimple_call_same_target_p): Likewise.
10287 (gimple_call_internal_p): New function.
10288 (gimple_call_internal_fn): Likewise.
10289 (gimple_call_fntype): Return null for internal calls.
10290 (gimple_call_set_fntype): Assert that the function is not internal.
10291 (gimple_call_set_fn): Likewise.
10292 (gimple_call_set_fndecl): Likewise.
10293 (gimple_call_set_internal_fn): New function.
10294 (gimple_call_addr_fndecl): Handle null functions.
10295 (gimple_call_return_type): Likewise null types.
10296 * gimple.c (gimple_build_call_internal_1): New function.
10297 (gimple_build_call_internal): Likewise.
10298 (gimple_build_call_internal_vec): Likewise.
10299 (gimple_call_same_target_p): Likewise.
10300 (gimple_call_flags): Handle calls to internal functions.
10301 (gimple_call_fnspec): New function.
10302 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
10303 (gimple_has_side_effects): Handle null functions.
10304 (gimple_rhs_has_side_effects): Likewise.
10305 (gimple_call_copy_skip_args): Handle calls to internal functions.
10306 * cfgexpand.c (expand_call_stmt): Likewise.
10307 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
10308 * gimple-fold.c (gimple_fold_call): Handle null functions.
10309 (gimple_fold_stmt_to_constant_1): Don't fold
10310 calls to internal functions.
10311 * gimple-low.c (gimple_check_call_args): Handle calls to internal
10312 functions.
10313 * gimple-pretty-print.c (dump_gimple_call): Likewise.
10314 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
10315 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
10316 (do_warn_unused_result): Likewise.
10317 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
10318 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
10319 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
10320 the target of a call.
10321 (initialize_hash_element): Update accordingly.
10322 (hashable_expr_equal_p): Use gimple_call_same_target_p.
10323 (iterative_hash_hashable_expr): Handle calls to internal functions.
10324 (print_expr_hash_elt): Likewise.
10325 * tree-ssa-pre.c (can_value_number_call): Likewise.
10326 (eliminate): Handle null functions.
10327 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
10328 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
10329 (find_func_aliases): Likewise.
10330 * value-prof.c (gimple_ic_transform): Likewise.
10331 (gimple_indirect_call_to_profile): Likewise.
10332 * lto-streamer-in.c (input_gimple_stmt): Likewise.
10333 * lto-streamer-out.c (output_gimple_stmt): Likewise.
10334
10335 2011-04-19 Jan Hubicka <jh@suse.cz>
10336
10337 * ipa-inline-transform.c (save_inline_function_body): Add comments.
10338 * ipa-inline.c (inline_small_functions): Compute summaries first,
10339 populate heap later.
10340
10341 2011-04-19 Jan Hubicka <jh@suse.cz>
10342
10343 * cgraph.h (save_inline_function_body): Remove.
10344 * ipa-inline-transform.c: New file, broke out of...
10345 * ipa-inline.c: ... this one; Update toplevel comment.
10346 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
10347 make global.
10348 (update_noncloned_frequencies): Move to ipa-inline-transform.c
10349 (cgraph_mark_inline_edge): Rename to inline_call; move to
10350 ipa-inline-transform.c.
10351 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
10352 move to ipa-inline-transform.c
10353 (recursive_inlining, inline_small_functions, flatten_function,
10354 ipa_inline, inline_always_inline_functions,
10355 early_inline_small_functions): Update.
10356 (inline_transform): Move to ipa-inline-transform.c.
10357 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
10358 Declare.
10359 * Makefile.in (ipa-inline-transform.o): New file.
10360 * cgraphunit.c (save_inline_function_body): Move to
10361 ipa-inline-transform.c
10362
10363 2011-04-19 DJ Delorie <dj@redhat.com>
10364
10365 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
10366 registers if we already know there aren't any.
10367 (m32c_emit_epilogue): Don't emit a barrier here.
10368 (m32c_emit_eh_epilogue): Likewise.
10369 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
10370 operands at expand time.
10371 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
10372 int" wchar type.
10373 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
10374 duplicates. Provide aliases instead.
10375 * config/m32c/prologue.md (eh_return): Emit a barrier here.
10376 (eh_epilogue): Add a "(return)" here as a hint to other parts of
10377 the compiler.
10378
10379 2011-04-19 Anatoly Sokolov <aesok@post.ru>
10380
10381 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
10382 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
10383 (general_or_i64_p, sparc_register_move_cost): New function.
10384
10385 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10386
10387 * doc/install.texi (Configuration, --enable-threads): Remove mach.
10388 Add lynx, mipssde. Sort table.
10389
10390 2011-04-19 Xinliang David Li <davidxl@google.com>
10391
10392 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
10393 not negative.
10394
10395 2011-04-19 Jakub Jelinek <jakub@redhat.com>
10396
10397 PR target/48678
10398 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
10399 is a SUBREG with non-MODE_INT mode inside of it.
10400
10401 2011-04-19 Martin Jambor <mjambor@suse.cz>
10402
10403 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
10404 also according to actual contants.
10405 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
10406 (gimple_fold_call): Use it.
10407 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
10408
10409 2011-04-19 Martin Jambor <mjambor@suse.cz>
10410
10411 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
10412 non-pointer assignments.
10413
10414 2011-04-19 Martin Jambor <mjambor@suse.cz>
10415
10416 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
10417 account anc_offset and otr_type from the indirect edge info.
10418 * ipa-prop.c (get_ancestor_addr_info): New function.
10419 (compute_complex_ancestor_jump_func): Assignment analysis moved to
10420 get_ancestor_addr_info, call it.
10421 (ipa_note_param_call): Do not initialize information about polymorphic
10422 calls, return the indirect call graph edge. Remove the last
10423 parameter, adjust all callers.
10424 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
10425 parameters. Initialize polymorphic information in the indirect edge.
10426
10427 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
10428
10429 PR lto/48148
10430 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
10431 the types if they have different enumeration identifiers.
10432
10433 2011-04-19 Jan Hubicka <jh@suse.cz>
10434
10435 * cgraph.h (cgraph_optimize_for_size_p): Declare.
10436 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
10437 * predict.c (cgraph_optimize_for_size_p): Break out from ...
10438 (optimize_function_for_size_p) ... here.
10439
10440 2011-04-19 Richard Guenther <rguenther@suse.de>
10441
10442 PR lto/48207
10443 * tree.c (free_lang_data): Do not reset the decl-assembler-name
10444 langhook.
10445
10446 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
10447
10448 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
10449 if DECL_NO_INLINE_WARNING_P is set on the function.
10450
10451 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
10452
10453 PR fortran/47976
10454 * reload1.c (inc_for_reload): Return void. All callers changed.
10455 (emit_input_reload_insns): Don't try to delete previous output
10456 reloads to a register, or record spill_reg_store for autoincs.
10457
10458 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
10459
10460 * gengtype.h: Updated copyright year.
10461 (struct input_file_st): Add inpisplugin field.
10462 (type_fileloc): New function.
10463 * gengtype.c
10464 (write_typed_struct_alloc_def): Add gcc_assert.
10465 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
10466 (write_typed_alloc_defns): Don't output for plugin files.
10467 (input_file_by_name): Clear inpisplugin field.
10468 (main): Set inpisplugin field for plugin files.
10469
10470 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
10471
10472 * gengtype-state.c (string_eq): New.
10473 (read_state): Use string_eq instead of strcmp when creating the
10474 state_ident_tab.
10475
10476 2011-04-19 Wei Guozhi <carrot@google.com>
10477
10478 PR target/47855
10479 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
10480 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
10481 linkage.
10482 * config/arm/constraints.md (Uu): New constraint.
10483 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
10484
10485 2011-04-19 Tristan Gingold <gingold@adacore.com>
10486
10487 * config.gcc (-*-*-*vms): Added.
10488 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
10489 definitions moved.
10490 * config/vms/vms-ld.c: New file.
10491 * config/vms/vms-ar.c: New file.
10492 * config/vms/t-vmsnative: New file.
10493
10494 2011-04-18 Xinliang David Li <davidxl@google.com>
10495
10496 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
10497
10498 2011-04-18 Jakub Jelinek <jakub@redhat.com>
10499
10500 PR middle-end/48661
10501 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
10502 if TREE_TYPE (v) is non-NULL.
10503
10504 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
10505 gimple_get_virt_mehtod_for_binfo.
10506 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
10507 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
10508 callers.
10509 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
10510
10511 2011-04-18 Michael Matz <matz@suse.de>
10512 Steve Ellcey <sje@cup.hp.com>
10513
10514 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
10515 use its mode as source mode if it isn't VOIDmode.
10516
10517 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
10518
10519 * doc/passes.texi: Fill crossref nodes.
10520
10521 2011-04-18 Jim Meyering <meyering@redhat.com>
10522
10523 Fix doubled-word typos in comments and strings
10524 * config/alpha/vms-unwind.h: s/for for/for/
10525 * config/arm/unwind-arm.h: Likewise.
10526 * config/microblaze/microblaze.c: Likewise.
10527 * config/sh/constraints.md: s/in in/in/
10528 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
10529
10530 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
10531
10532 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
10533 (AVX_FLOAT_MODE_P): Ditto.
10534 (AVX128_VEC_FLOAT_MODE_P): Ditto.
10535 (AVX256_VEC_FLOAT_MODE_P): Ditto.
10536 (AVX_VEC_FLOAT_MODE_P): Ditto.
10537 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
10538 (UNSPEC_MASKSTORE): Ditto.
10539 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
10540 Merge from <sse>_movmsk<ssemodesuffix> and
10541 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
10542 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
10543 iterator.
10544 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
10545 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
10546 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
10547
10548 2011-04-18 Jan Hubicka <jh@suse.cz>
10549
10550 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
10551
10552 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
10553 (want_inline_function_called_once_p): Break out the logic from
10554 ipa_inline.
10555 (edge_badness): Ensure that profile is not misupdated.
10556 (lookup_recursive_calls): Prioritize by call frequencies.
10557 (inline_small_functions): Move program size estimates here;
10558 actually process whole queue even when unit growth has been
10559 met. (to properly compute inline_failed reasons and for the
10560 case unit size decrease.) Revisit comments on recursive inlining.
10561 (ipa_inline): Remove unit summary code; first inline hot calls
10562 of functions called once, cold calls next.
10563 (order, nnodes): Remove unused variables.
10564 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
10565 (GTFILES): Remove ipa-inline.c
10566 * sel-sched.c (fill_insns): Silence uninitialized var warning.
10567
10568 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
10569
10570 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
10571
10572 2011-04-18 Jie Zhang <jie@codesourcery.com>
10573 Richard Earnshaw <rearnsha@arm.com>
10574
10575 * arm.c (neon_builtin_type_bits): Remove.
10576 (typedef enum neon_builtin_mode): New.
10577 (T_MAX): Don't define.
10578 (typedef enum neon_builtin_datum): Remove bits, codes[],
10579 num_vars and base_fcode. Add mode, code and fcode.
10580 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
10581 VAR10): Change accordingly.
10582 (neon_builtin_data[]): Change accordingly
10583 (arm_init_neon_builtins): Change accordingly.
10584 (neon_builtin_compare): Remove.
10585 (locate_neon_builtin_icode): Remove.
10586 (arm_expand_neon_builtin): Change accordingly.
10587
10588 * arm.h (enum arm_builtins): Move to ...
10589 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
10590
10591 * arm.c (arm_builtin_decl): Declare.
10592 (TARGET_BUILTIN_DECL): Define.
10593 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
10594 (arm_builtin_decls[]): New.
10595 (arm_init_neon_builtins): Store builtin declarations in
10596 arm_builtin_decls[].
10597 (arm_init_tls_builtins): Likewise.
10598 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
10599 (arm_builtin_decl): New.
10600
10601 2011-04-18 Richard Guenther <rguenther@suse.de>
10602
10603 * tree.c (upper_bound_in_type): Build properly canonicalized
10604 INTEGER_CSTs.
10605 (lower_bound_in_type): Likewise.
10606
10607 2011-04-18 Richard Guenther <rguenther@suse.de>
10608
10609 * gimple.h (gimple_call_addr_fndecl): New function.
10610 (gimple_call_fndecl): Use it.
10611 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
10612 for direct calls.
10613 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
10614 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
10615
10616 2011-04-18 Richard Guenther <rguenther@suse.de>
10617
10618 PR middle-end/48650
10619 * tree.c (build_string): STRING_CST is now derived from tree_typed.
10620
10621 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
10622
10623 PR lto/48492
10624 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
10625 DECL_IN_CONSTANT_POOL without RTL.
10626
10627 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
10628 Ira Rosen <ira.rosen@linaro.org>
10629
10630 PR target/48252
10631 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
10632 to match neon_vzip/vuzp/vtrn_internal.
10633 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
10634 outputs explicitly dependent on both inputs.
10635 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
10636
10637 2011-04-18 Jakub Jelinek <jakub@redhat.com>
10638
10639 PR tree-optimization/48616
10640 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
10641 whether the shift is by scalar or vector based on whether all SLP
10642 scalar stmts have the same rhs.
10643
10644 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
10645
10646 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
10647 memory operands.
10648
10649 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
10650
10651 PR target/43700
10652 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
10653 registers.
10654
10655 2011-04-17 Jan Hubicka <jh@suse.cz>
10656
10657 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
10658 * cgrpahunit.c (cgraph_finalize_function): Do not set
10659 finalized_by_frontend.
10660 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10661 finalized_by_frontend.
10662
10663 2011-04-17 Jan Hubicka <jh@suse.cz>
10664
10665 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
10666 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
10667 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
10668 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
10669 method.
10670 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
10671 gimple-fold.c
10672 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
10673
10674 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
10675
10676 PR lto/48538
10677 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
10678 is non-null before accessing it.
10679 (input_cgraph): Remove trailing spaces.
10680
10681 2011-04-17 Revital Eres <revital.eres@linaro.org>
10682
10683 * params.def (sms-min-sc): New param flag.
10684 * modulo-sched.c (sms_schedule): Use it.
10685 * doc/invoke.texi (sms-min-sc): Document it.
10686
10687 2011-04-17 Jan Hubicka <jh@suse.cz>
10688
10689 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
10690 present, also set gimple_call_set_cannot_inline.
10691 * ipa-inline.c: Update toplevel comment.
10692 (MAX_TIME): Remove.
10693 (cgraph_clone_inlined_nodes): Fix linebreaks.
10694 (cgraph_check_inline_limits): Restructure to ...
10695 (caller_growth_limits): ... this one; be more tolerant
10696 on growth in nested inline chains; add explanatory comment;
10697 fix stack accounting thinko introduced by previous patch.
10698 (cgraph_default_inline_p): Remove.
10699 (report_inline_failed_reason): New function.
10700 (can_inline_edge_p): New function.
10701 (can_early_inline_edge_p): New function.
10702 (leaf_node_p): Move upwards in file.
10703 (want_early_inline_function_p): New function.
10704 (want_inline_small_function_p): New function.
10705 (want_inline_self_recursive_call_p): New function.
10706 (cgraph_edge_badness): Rename to ...
10707 (edge_badness) ... this one; fix linebreaks.
10708 (update_edge_key): Update call of edge_baddness; add
10709 detailed dump about queue updates.
10710 (update_caller_keys): Use can_inline_edge_p and
10711 want_inline_small_function_p.
10712 (cgraph_decide_recursive_inlining): Rename to...
10713 (recursive_inlining): Use can_inline_edge_p and
10714 want_inline_self_recursive_call_p; simplify and remove no longer
10715 valid FIXME.
10716 (cgraph_set_inline_failed): Remove.
10717 (add_new_edges_to_heap): Use can_inline_edge_p and
10718 want_inline_small_function_p.
10719 (cgraph_decide_inlining_of_small_functions): Rename to ...
10720 (inline_small_functions): ... this one; cleanup; use
10721 can/want predicates; cleanup debug ouput; work edges till fibheap
10722 is exhausted and do not stop once unit growth is reached; remove
10723 later loop processing remaining edges.
10724 (cgraph_flatten): Rename to ...
10725 (flatten_function): ... this one; use can_inline_edge_p
10726 and can_early_inline_edge_p predicates.
10727 (cgraph_decide_inlining): Rename to ...
10728 (ipa_inline): ... this one; remove unreachable nodes before
10729 inlining functions called once; simplify the pass.
10730 (cgraph_perform_always_inlining): Rename to ...
10731 (inline_always_inline_functions): ... this one; use
10732 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
10733 (cgraph_decide_inlining_incrementally): Rename to ...
10734 (early_inline_small_functions): ... this one; simplify
10735 using new predicates; cleanup; make dumps prettier.
10736 (cgraph_early_inlining): Rename to ...
10737 (early_inliner): newer inline regular functions into always-inlines;
10738 fix updating of call stmt summaries.
10739 (pass_early_inline): Update for new names.
10740 (inline_transform): Fix formating.
10741 (gate_cgraph_decide_inlining): Rename to ...
10742 (pass_ipa_inline): ... this one.
10743 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
10744 * ipa-inline-analysis.c (dump_inline_summary): Update.
10745 (compute_inline_parameters): Do not compute disregard_inline_limits;
10746 look for mismatching arguments.
10747 (estimate_growth): Fix handlig of non-trivial self recursion.
10748 (inline_read_summary): Do not read info->disregard_inline_limits.
10749 (inline_write_summary): Do not write info->disregard_inline_limits.
10750 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
10751 and move all checks into can_inline_edge_p predicate; re-enable code
10752 comparing optimization levels.
10753 (expand_call_inline): Do not test inline_forbidden_into_p.
10754 * Makefile.in (ipa-inline.o): Update arguments.
10755
10756 2011-04-17 Revital Eres <revital.eres@linaro.org>
10757
10758 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
10759
10760 2011-04-17 Revital Eres <revital.eres@linaro.org>
10761
10762 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
10763
10764 2011-04-17 Michael Matz <matz@suse.de>
10765
10766 PR tree-optimization/48622
10767 PR lto/48645
10768 * ipa-inline-analysis.c (inline_read_summary): Read size/time
10769 in same order as they're written.
10770
10771 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10772
10773 * config/pa/predicates.md: Reorganize and simplify predicates.
10774 Eliminate duplicate code checks.
10775 (arith_operand): Rename to arith14_operand
10776 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
10777 * config/pa/pa.md: Use renamed operands.
10778 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
10779 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
10780 arith11_operand, adddi3_operand, indexed_memory_operand,
10781 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
10782 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
10783 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
10784 move_dest_operand, move_src_operand, prefetch_cc_operand,
10785 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
10786 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
10787 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
10788 div_operand, int5_operand, movb_comparison_operator,
10789 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
10790 arith_double_operand, ireg_operand, lhs_lshift_operand,
10791 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
10792 integer_store_memory_operand): Likewise.
10793 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
10794 (integer_store_memory_operand, read_only_operand,
10795 function_label_operand, borx_reg_operand,
10796 non_hard_reg_operand): Likewise.
10797 (eq_neq_comparison_operator): Delete unused operator.
10798 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
10799 function_label_operand.
10800 (emit_move_sequence): Likewise.
10801
10802 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10803
10804 * config/i386/sse.md (sseunpackmode): New mode attribute.
10805 (ssepackmode): Ditto.
10806 (vec_pack_trunc_<mode>): Macroize expander from
10807 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
10808 (vec_unpacks_lo_<mode>): Macroize expander from
10809 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10810 (vec_unpacks_hi_<mode>): Macroize expander from
10811 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10812 (vec_unpacku_lo_<mode>): Macroize expander from
10813 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10814 (vec_unpacku_hi_<mode>): Macroize expander from
10815 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10816 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
10817 ix86_expand_sse4_unpack.
10818 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
10819
10820 2011-04-16 Jan Hubicka <jh@suse.cz>
10821
10822 * cgraphbuild.c: Include ipa-inline.h.
10823 (reset_inline_failed): Use initialize_inline_failed.
10824 * cgraph.c: Include ipa-inline.h.
10825 (cgraph_create_node_1): Do not initialize estimated_growth.
10826 (initialize_inline_failed): More to ipa-inline-analysis.c
10827 (dump_cgraph_node): Do not dump inline flags.
10828 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
10829 and disregard_inline_limits flags.
10830 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
10831 time, size, estimated_growth.
10832 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
10833 Update.
10834 * cgraphunit.c (cgraph_decide_is_function_needed): Use
10835 DECL_DISREGARD_INLINE_LIMITS.
10836 (cgraph_analyze_function): Do not initialize
10837 node->local.disregard_inline_limits.
10838 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10839 inlinable, versionable and disregard_inline_limits.
10840 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
10841 cgraph_check_inline_limits, cgraph_default_inline_p,
10842 cgraph_edge_badness, update_caller_keys, update_callee_keys,
10843 add_new_edges_to_heap): Update.
10844 (cgraph_decide_inlining_of_small_function): Update; set
10845 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
10846 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
10847 cgraph_decide_inlining_incrementally): Update.
10848 * ipa-inline.h (inline_summary): Add inlinable, versionable,
10849 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
10850 time, size and estimated_growth parameters.
10851 (estimate_edge_growth): Update.
10852 (initialize_inline_failed): Declare.
10853 * ipa-split.c: Include ipa-inline.h
10854 (execute_split_functions): Update.
10855 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
10856 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
10857 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
10858 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
10859 estimated_growth to INT_MIN.
10860 (inline_node_duplication_hook): Likewise.
10861 (dump_inline_summary): Dump new fields.
10862 (compute_inline_parameters): Update.
10863 (estimate_edge_time, estimate_time_after_inlining,
10864 estimate_size_after_inlining, estimate_growth, inline_read_summary,
10865 inline_write_summary):
10866 (initialize_inline_failed): Move here from cgraph.c.
10867 * tree-sra.c: Include ipa-inline.h.
10868 (ipa_sra_preliminary_function_checks): Update.
10869 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
10870 ipa-inline.h.
10871
10872 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10873
10874 * config/i386/sse.md (V16): New mode iterator.
10875 (VI1, VI8): Ditto.
10876 (AVXMODEQI, AVXMODEDI): Remove.
10877 (sse2, sse3): New mode attribute.
10878 (mov<mode>): Use V16 mode iterator.
10879 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
10880 (push<mode>1): Use V16 mode iterator.
10881 (movmisalign<mode>): Ditto.
10882 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10883 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
10884 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10885 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
10886 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
10887 avx_movdqu<avxmodesuffix>.
10888 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
10889 *avx_movdqu<avxmodesuffix>.
10890 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
10891 avx_lddqu<avxmodesuffix>.
10892 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
10893 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
10894 avx_movnt<AVXMODEDI:mode>.
10895 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
10896 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
10897
10898 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
10899
10900 PR target/48629
10901 * haifa-sched.c (prune_ready_list, schedule_block): Use
10902 sched_pressure_p rather than flag_sched_pressure.
10903
10904 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
10905
10906 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10907 cgraph_get_node instead of cgraph_get_create_node.
10908
10909 2011-04-15 Jakub Jelinek <jakub@redhat.com>
10910
10911 * cfgexpand.c (expand_debug_expr): Use
10912 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
10913
10914 2011-04-15 Michael Matz <matz@suse.de>
10915
10916 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
10917 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
10918 * function.c (gimplify_parameters): Ditto.
10919 * gimplify.c (gimplify_vla_decl): Ditto.
10920
10921 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
10922 (gimple_call_set_alloca_for_var): New inline function.
10923 (gimple_call_alloca_for_var_p): Ditto.
10924 * gimple.c (gimple_build_call_from_tree): Remember
10925 CALL_ALLOCA_FOR_VAR_P state.
10926 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
10927
10928 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
10929 calls if they were for VLA objects.
10930
10931 2011-04-15 Martin Jambor <mjambor@suse.cz>
10932
10933 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
10934 of ADR_EXPRs.
10935
10936 2011-04-15 Martin Jambor <mjambor@suse.cz>
10937
10938 PR middle-end/48601
10939 * tree-emutls.c (lower_emutls_function_body): Call
10940 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
10941 result is non-NULL.
10942
10943 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
10944
10945 * c-decl.c (detect_field_duplicates): Call
10946 objc_detect_field_duplicates instead of objc_get_interface_ivars.
10947
10948 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
10949
10950 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
10951 * gimple.c (gimple_asm_clobbers_memory_p): Define.
10952 * ipa-pure-const.c (check_stmt): Call it.
10953 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
10954
10955 2011-04-15 Richard Guenther <rguenther@suse.de>
10956
10957 PR tree-optimization/48290
10958 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
10959 Properly decide inhibiting propagation based on the valueized
10960 operand. Do loop-closed SSA form preserving here ...
10961 (init_copy_prop): ... not here.
10962
10963 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
10964
10965 PR target/48612
10966 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
10967 (*ieee_smax<mode>3): Likewise.
10968
10969 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10970
10971 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
10972 Replace match_operand with match_dup for the third operand in
10973 these expanders.
10974
10975 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10976
10977 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
10978 to track processing of conditionals. Update all callers.
10979 (try_combine, simplify_if_then_else): Update.
10980
10981 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10982
10983 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
10984 -fsched-pressure.
10985
10986 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
10987
10988 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
10989 instead of match_operand for operand 3.
10990
10991 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
10992
10993 * recog.h (insn_operand_data): Add an "allows_mem" field.
10994 * genoutput.c (output_operand_data): Initialize it.
10995 * optabs.c (maybe_legitimize_operand_same_code): New function.
10996 (maybe_legitimize_operand): Use it when matching the original
10997 op->value.
10998
10999 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
11000
11001 * gimplify.c: Fix issues in comments throughout.
11002 (voidify_wrapper_expr): Fix long line.
11003 (build_stack_save_restore): Likewise.
11004 (gimplify_loop_expr): Likewise.
11005 (gimplify_compound_lval): Likewise.
11006 (gimplify_init_ctor_eval): Likewise.
11007 (gimplify_modify_expr_rhs): Likewise.
11008 (omp_notice_threadprivate_variable): Likewise.
11009
11010 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
11011
11012 * cfgexpand.c (expand_call_stmt): Convert the function type to the
11013 original one if this is not a builtin function.
11014
11015 2011-04-14 Jakub Jelinek <jakub@redhat.com>
11016
11017 PR target/48605
11018 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
11019 offset it as needed based on top 2 bits in operands[3], change
11020 MEM mode to SFmode and mask those 2 bits away from operands[3].
11021
11022 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
11023
11024 * c-parser.c (c_parser_objc_protocol_definition): Updated for
11025 change from objc_declare_protocols() to objc_declare_protocol().
11026
11027 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
11028
11029 * config/i386/sse.md (sse4_1): New mode attribute.
11030 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
11031 avx_blend<ssemodesuffix><avxmodesuffix> and
11032 sse4_1_blend<ssemodesuffix> using VF mode iterator.
11033 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
11034 avx_blendv<ssemodesuffix><avxmodesuffix> and
11035 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
11036 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
11037 avx_dp<ssemodesuffix><avxmodesuffix> and
11038 sse4_1_dp<ssemodesuffix> using VF mode iterator.
11039 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
11040 (sse4_1_packusdw): Merge with *avx_packusdw.
11041 (sse4_1_pblendvb): Merge with *avx_pblendvb.
11042 (sse4_1_pblendw): Merge with *avx_pblendw.
11043 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
11044 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
11045 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
11046 VF mode iterator.
11047 (sse4_1_round<ssescalarmodesuffix>): Merge with
11048 *avx_round<ssescalarmodesuffix>.
11049 (aesenc): Merge with *avx_aesenc.
11050 (aesenclast): Merge with *avx_aesenclast.
11051 (aesdec): Merge with *avx_aesdec.
11052 (aesdeclast): Merge with *avx_aesdeclast.
11053 (pclmulqdq): Merge with *pclmulqdq.
11054 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
11055 New predicate.
11056 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
11057
11058 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
11059
11060 PR middle-end/48608
11061 * cfgexpand.c (get_decl_align_unit): Renamed to ...
11062 (align_local_variable): This. Update DECL_ALIGN.
11063 (add_stack_var): Updated.
11064 (expand_one_stack_var): Likewise.
11065
11066 2011-04-14 Richard Guenther <rguenther@suse.de>
11067
11068 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
11069 Remove.
11070 (dse_initialize_block_local_data, dse_leave_block,
11071 record_voperand_set, get_stmt_uid): Likewise.
11072 (dse_possible_dead_store_p): Allow any kind of killing stmt.
11073 (dse_optimize_stmt): Remove voperand set handling code.
11074 Simplify and improve to handle any kind of killing stmt.
11075 (dse_record_phi): Remove.
11076 (dse_enter_block): Simplify.
11077 (tree_ssa_dse): Likewise.
11078 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
11079
11080 2011-04-14 Jan Hubicka <jh@suse.cz>
11081
11082 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
11083 * cgraph.h (struct inline_summary): Move to ipa-inline.h
11084 (cgraph_local_info): Remove inline_summary.
11085 * ipa-cp.c: Include ipa-inline.h.
11086 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
11087 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
11088 accesor.
11089 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
11090 (input_overwrite_node): Do not set inline summary.
11091 (input_node): Do not stream inline summary.
11092 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
11093 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
11094 growth; we do not have inline parameters computed for that anyway.
11095 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
11096 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
11097 (inline_summary_t): New type and VECtor.
11098 (debug_inline_summary, dump_inline_summaries): Declare.
11099 (inline_summary): Use VOCtor.
11100 (estimate_edge_growth): Kill hack computing call stmt size directly.
11101 * lto-section-in.c (lto_section_name): Add inline section.
11102 * ipa-inline-analysis.c: Include lto-streamer.h
11103 (node_removal_hook_holder, node_duplication_hook_holder): New holders
11104 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
11105 (inline_summary_vec): Define.
11106 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
11107 dump_inline_summaries): New functions.
11108 (estimate_function_body_sizes): Properly compute size/time of outgoing
11109 calls.
11110 (compute_inline_parameters): Alloc inline_summary; do not compute
11111 size/time of incomming calls.
11112 (estimate_edge_time): Avoid missing time summary hack.
11113 (inline_read_summary): Read inline summary info.
11114 (inline_write_summary): Write inline summary info.
11115 (inline_free_summary): Free all hooks and inline summary vector.
11116 * lto-streamer.h: Add LTO_section_inline_summary section.
11117 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
11118 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
11119
11120 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
11121
11122 * tree-vectorizer.h (vect_strided_store_supported): Add a
11123 HOST_WIDE_INT argument.
11124 (vect_strided_load_supported): Likewise.
11125 (vect_permute_store_chain): Return void.
11126 (vect_transform_strided_load): Likewise.
11127 (vect_permute_load_chain): Delete.
11128 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
11129 count argument. Check that the count is a power of two.
11130 (vect_strided_load_supported): Likewise.
11131 (vect_permute_store_chain): Return void. Update after above changes.
11132 Assert that the access is supported.
11133 (vect_permute_load_chain): Likewise.
11134 (vect_transform_strided_load): Return void.
11135 * tree-vect-stmts.c (vectorizable_store): Update calls after
11136 above interface changes.
11137 (vectorizable_load): Likewise.
11138 (vect_analyze_stmt): Don't check for strided powers of two here.
11139
11140 2011-04-14 Richard Guenther <rguenther@suse.de>
11141
11142 PR tree-optimization/48590
11143 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11144 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
11145 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
11146 BUILT_IN_STACK_SAVE.
11147 * tree-ssa-dce.c (propagate_necessity): Handle
11148 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
11149
11150 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
11151
11152 * c-parser.c (c_parser_objc_class_declaration): Updated call to
11153 objc_declare_class.
11154
11155 2011-04-14 Richard Guenther <rguenther@suse.de>
11156
11157 * tree.h (get_object_alignment_1): Declare.
11158 * builtins.c (get_object_alignment_1): Split out worker from ...
11159 (get_object_alignment): ... here.
11160 * fold-const.c (get_pointer_modulus_and_residue): Use
11161 get_object_alignment_1.
11162
11163 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
11164
11165 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
11166 type parameter.
11167 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
11168 parameter. Generalise code to handle arrays as well as vectors.
11169 (vect_setup_realignment): Update accordingly.
11170 * tree-vect-stmts.c (vectorizable_store): Likewise.
11171 (vectorizable_load): Likewise.
11172
11173 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
11174
11175 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
11176 within the per-copy loop.
11177
11178 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
11179
11180 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
11181 in the dump file.
11182
11183 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
11184
11185 * doc/options.texi (Negative): Explicitly mention that the
11186 Negative chain must be circular.
11187
11188 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
11189
11190 * function.h (block_chainon): Declare.
11191 * function.c (block_chainon): Define.
11192
11193 2011-04-14 Anatoly Sokolov <aesok@post.ru>
11194 Eric Weddington <eric.weddington@atmel.com>
11195 Georg-Johann Lay <avr@gjlay.de>
11196
11197 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
11198 New Includes
11199 (avr_init_builtins, avr_expand_builtin,
11200 avr_expand_delay_cycles, avr_expand_unop_builtin,
11201 avr_expand_binop_builtin ): New functions.
11202 (avr_builtin_id): New enum
11203 (struct avr_builtin_description): New struct
11204 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
11205 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
11206
11207 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
11208 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
11209 UNSPECV_DELAY_CYCLES): new enumeration values
11210 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
11211 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
11212 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
11213 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
11214 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
11215 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
11216 "fmulsu"): New insns
11217
11218 * config/avr/avr-c.c: fix line endings
11219 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
11220 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
11221 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
11222 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
11223 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
11224
11225 * doc/extend.texi (AVR Built-in Functions): New node
11226 (Target Builtins): Add documentation of AVR
11227 built-in functions.
11228
11229 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
11230
11231 PR target/44643
11232 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
11233 alone. Error if non-const data has attribute progmem.
11234
11235 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
11236
11237 * tree.h (struct tree_constructor): Include tree_typed instead of
11238 tree_common.
11239 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
11240 TS_TYPED instead of TS_COMMON.
11241
11242 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
11243
11244 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
11245 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
11246 (sse2_psadbw): Merge with *avx_psadbw.
11247 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
11248 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
11249 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
11250 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
11251 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
11252 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
11253 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
11254 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
11255 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
11256 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
11257 (ssse3_palignrti): Merge with *avx_palignrti.
11258
11259 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
11260
11261 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
11262 * tree-ssanames.c (fini_ssanames): VEC_free it.
11263 (make_ssa_name_fn): Update for VECness of free_ssanames.
11264 (release_ssa_name, release_dead_ssa_names): Likewise.
11265 * tree.h (struct tree_ssa_name): Include tree_typed instead of
11266 tree_common.
11267 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
11268 TS_TYPED instead of TS_COMMON.
11269
11270 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
11271
11272 * postreload-gcse.c (gcse_after_reload_main): Add calls to
11273 statistics_counter_event.
11274 * tree-ssa-copyrename.c (stats): Define.
11275 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
11276 statistics_counter_event.
11277 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
11278 (bswap_stats, widen_mul_stats): Define.
11279 (insert_reciprocals): Increment rdivs_inserted.
11280 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
11281 rfuncs_inserted. Add calls to statistics_counter_event.
11282 (execute_cse_sincos_1): Increment inserted.
11283 (execute_cse_sincos): Zeroize sincos_stats. Add call to
11284 statistics_counter_event.
11285 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
11286 of bswap_stats. Add calls to statistics_counter_event.
11287 (convert_mult_to_widen): Increment widen_mults_inserted.
11288 (convert_plusminus_to_widen): Increment maccs_inserted.
11289 (convert_mult_to_fma): Increment fmas_inserted.
11290 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
11291 calls to statistics_counter_event.
11292
11293 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
11294
11295 PR rtl-optimization/48455
11296 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
11297 `temp_costs->mem_cost'.
11298
11299 2011-04-13 Jan Hubicka <jh@suse.cz>
11300
11301 * ipa-inline.h: New file.
11302 * ipa-inline-analysis.c: New file. Broken out of ...
11303 * ipa-inline.c: ... this file; update toplevel comment;
11304 include ipa-inline.h
11305 (inline_summary): Move to ipa-inline.h
11306 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
11307 ipa-inline-analysis.c.
11308 (cgraph_estimate_time_after_inlining): Rename to
11309 estiamte_time_after_inlining; move to ipa-inline-analysis.c
11310 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
11311 to estimate_edge_growth.
11312 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
11313 rename to estimate_size_after_inlining.
11314 (cgraph_mark_inline_edge): Update for new naming convention.
11315 (cgraph_check_inline_limits): Likewise.
11316 (cgraph_edge_badness): Likewise.
11317 (cgraph_decide_recursive_inlining): Likewise.
11318 (cgraph_decide_inlining_of_small_functions): Likewise.
11319 (cgraph_decide_inlining_incrementally): Likewise.
11320 (cgraph_estimate_growth): Rename to estimate_growth; move to
11321 ipa-inline-analysis.c.
11322 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
11323 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
11324 (compute_inline_parameters): Likewise.
11325 (compute_inline_parameters_for_current): Likewise.
11326 (pass_inline_parameters): Likewise.
11327 (inline_indirect_intraprocedural_analysis): Likewise.
11328 (analyze_function): Rename to inline_analyze_function; likewise.
11329 (add_new_function): Move to ipa-inline-analysis.c.
11330 (inline_generate_summary): Likewise.
11331 (inline_read_summary): Likewise.
11332 (inline_write_summary): Likewise.
11333 * Makefile.in (ipa-inline-analysis.c): New file.
11334
11335 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11336
11337 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
11338 * configure: Regenerate.
11339
11340 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
11341
11342 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
11343 instead of tree_common.
11344 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
11345 Likewise.
11346 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
11347 TS_TYPED rather than TS_COMMON.
11348 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
11349
11350 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
11351
11352 PR target/45263
11353 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
11354 r20 around calls of __tablejump_elpm__
11355
11356 2011-04-13 Jakub Jelinek <jakub@redhat.com>
11357
11358 PR middle-end/48591
11359 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
11360 NULL.
11361 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
11362
11363 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
11364
11365 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
11366 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
11367 (cfi_vec): New typedef.
11368 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
11369 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
11370 (cie_cfi_vec): New static variable.
11371 (cie_cfi_head): Delete.
11372 (add_cfi): Accept a cfi_vec * as first argument. All callers and
11373 declaration changed. Use vector rather than list operations.
11374 (new_cfi): Don't initialize the dw_cfi_next field.
11375 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
11376 rather than list operations.
11377 (lookup_cfa): Use vector rather than list operations.
11378 (output_cfis): New argument upto. Accept a cfi_vec rather than
11379 a dw_cfi_ref list head as argument. All callers changed.
11380 Iterate over the vector using upto as a maximum index.
11381 (output_all_cfis): New static function.
11382 (output_fde): Use vector rather than list operations. Use the
11383 new upto argument for output_cfis rather than manipulating a
11384 list.
11385 (dwarf2out_begin_prologue): Change initializations to match
11386 new struct members.
11387 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
11388 from the vector length rather than searching for the end of a list.
11389 Use output_all_cfis.
11390 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
11391
11392 2011-04-13 Nick Clifton <nickc@redhat.com>
11393
11394 * config/rx/rx.md (movmemsi): Do not use this pattern when
11395 volatile pointers are involved.
11396
11397 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
11398
11399 * config/i386/sse.md (pinsrbits): Remove.
11400 (sse2_packsswb): Merge with *avx_packsswb.
11401 (sse2_packssdw): Merge with *avx_packssdw.
11402 (sse2_packuswb): Merge with *avx_packuswb.
11403 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
11404 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
11405 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
11406 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
11407 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
11408 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
11409 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
11410 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
11411 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
11412 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
11413 (sse2_loadld): Merge with *avx_loadld.
11414 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
11415 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
11416 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
11417 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
11418 (vec_concatv2di): Merge with *vec_concatv2di_avx.
11419
11420 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
11421
11422 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
11423 calling TREE_CHAIN.
11424 * print-tree.c (print_node): Likewise.
11425 * tree-inline.c (copy_tree_r): Likewise.
11426 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
11427 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
11428 instead of TS_COMMON.
11429 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
11430 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
11431 (copy_node_stat): Zero TREE_CHAIN only if necessary.
11432 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
11433 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
11434 ...and these...
11435 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
11436 * tree.h: ...here.
11437 (TREE_CHAIN): Check for a TS_COMMON structure.
11438 (TREE_TYPE): Check for a TS_TYPED structure.
11439
11440 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
11441
11442 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
11443 cgraph_get_create_node instead of cgraph_node.
11444
11445 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
11446
11447 * c-parser.c (c_parser_initelt): Updated call to
11448 objc_build_message_expr.
11449 (c_parser_postfix_expression): Likewise.
11450
11451 2011-04-12 Kai Tietz <ktietz@redhat.com>
11452
11453 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
11454 MASK_MS_BITFIELD_LAYOUT bit.
11455
11456 2011-04-12 Jakub Jelinek <jakub@redhat.com>
11457
11458 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
11459 assert it is always true.
11460 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
11461 moves.
11462
11463 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
11464
11465 * c-parser.c (c_lex_one_token): Rewritten conditional used when
11466 compiling Objective-C to be more efficient.
11467
11468 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
11469
11470 * opts-common.c (decode_cmdline_options_to_array): Remove variable
11471 argv_copied.
11472
11473 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11474
11475 * recog.h, genoutput.c, optabs.c: Revert last patch.
11476
11477 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11478
11479 PR target/48090
11480 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
11481
11482 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11483
11484 * recog.h (insn_operand_data): Add an "allows_mem" field.
11485 * genoutput.c (output_operand_data): Initialize it.
11486 * optabs.c (maybe_legitimize_operand_same_code): New function.
11487 (maybe_legitimize_operand): Use it when matching the original
11488 op->value.
11489
11490 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11491
11492 * genpreds.c (process_define_predicate): Move most processing
11493 to gensupport.c. Continue to validate the expression.
11494 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
11495 (process_define_predicate): Move processing to gensupport.c.
11496 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
11497 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
11498 (compute_predicate_codes): Moved from genrecog.c. Add lineno
11499 argument.
11500 (valid_predicate_name_p): New function, split out from old
11501 genpreds.c:process_define_predicate.
11502 (process_define_predicate): New function, combining code from
11503 old genpreds.c and genrecog.c functions.
11504 (process_rtx): Call it for DEFINE_PREDICATE and
11505 DEFINE_SPECIAL_PREDICATE.
11506
11507 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11508
11509 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
11510 size of a '%A' memory reference.
11511 (T_DREG, T_QREG): New neon_builtin_type_bits.
11512 (arm_init_neon_builtins): Assert that the load and store operands
11513 are neon_struct_operands.
11514 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
11515 (NEON_ARG_MEMORY): New builtin_arg.
11516 (neon_dereference_pointer): New function.
11517 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
11518 Handle NEON_ARG_MEMORY.
11519 (arm_expand_neon_builtin): Update after above interface changes.
11520 Use NEON_ARG_MEMORY for loads and stores.
11521 * config/arm/predicates.md (neon_struct_operand): New predicate.
11522 * config/arm/iterators.md (V_two_elem): Tweak formatting.
11523 (V_three_elem): Use BLKmode for accesses that have no associated mode.
11524 (V_four_elem): Tweak formatting.
11525 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
11526 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
11527 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
11528 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
11529 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
11530 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
11531 (neon_vst4<mode>): Replace pointer operand with a memory operand.
11532 Use %A in the output template.
11533 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
11534 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
11535 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
11536 the width of the memory access. Remove post-increment.
11537 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
11538
11539 2011-04-12 Nick Clifton <nickc@redhat.com>
11540
11541 * config/v850/v850.c (expand_prologue): Do not use the CALLT
11542 instruction for interrupt handlers if the target is the basic V850
11543 architecture.
11544 (expand_epilogue): Likewise.
11545
11546 2011-04-12 Jakub Jelinek <jakub@redhat.com>
11547
11548 PR rtl-optimization/48549
11549 * combine.c (propagate_for_debug): Also stop after BB_END of
11550 this_basic_block. Process LAST and just stop processing after it.
11551 (combine_instructions): If last_combined_insn has been deleted,
11552 set last_combined_insn to its PREV_INSN.
11553
11554 2011-04-12 Richard Guenther <rguenther@suse.de>
11555
11556 PR tree-optimization/46076
11557 * gimple.h (struct gimple_statement_call): Add fntype field.
11558 (gimple_call_fntype): Adjust.
11559 (gimple_call_set_fntype): New function.
11560 * gimple.c (gimple_build_call_1): Set the call function type.
11561 * gimplify.c (gimplify_call_expr): Preserve the function
11562 type the frontend used for the call.
11563 (gimplify_modify_expr): Likewise.
11564 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
11565 function type.
11566 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
11567 function type.
11568 * tree-ssa.c (useless_type_conversion_p): Function pointer
11569 conversions are useless.
11570
11571 2011-04-12 Martin Jambor <mjambor@suse.cz>
11572
11573 * cgraph.h (cgraph_node): Remove function declaration.
11574 (cgraph_create_node): Declare.
11575 (cgraph_get_create_node): Likewise.
11576 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
11577 Updated all callers.
11578 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
11579 the decl does not already exist. Call cgraph_get_create_node instead
11580 of cgraph_node.
11581 (cgraph_get_create_node): New function.
11582 (cgraph_same_body_alias): Update comment.
11583 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
11584 assert it does not return NULL.
11585 (cgraph_update_edges_for_call_stmt): Likewise.
11586 (cgraph_clone_edge): Likewise.
11587 (cgraph_create_virtual_clone): Likewise.
11588 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
11589 instead of cgraph_node.
11590 (cgraph_add_new_function): Call cgraph_create_node or
11591 cgraph_get_create_node instead of cgraph_node.
11592 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
11593 instead of cgraph_node.
11594 (record_eh_tables): Likewise.
11595 (mark_address): Likewise.
11596 (mark_load): Likewise.
11597 (build_cgraph_edges): Call cgraph_get_create_node instead
11598 of cgraph_node.
11599 (rebuild_cgraph_edges): Likewise.
11600 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
11601 instead of cgraph_node.
11602 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
11603 cgraph_node.
11604 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
11605 cgraph_create_node instead of cgraph_node.
11606 * c-decl.c (finish_function): Call cgraph_get_create_node instead
11607 of cgraph_node.
11608 * lto-cgraph.c (input_node): Likewise.
11609 * lto-streamer-in.c (input_function): Likewise.
11610 * varasm.c (mark_decl_referenced): Likewise.
11611 (assemble_alias): Likewise.
11612
11613 2011-04-12 Martin Jambor <mjambor@suse.cz>
11614
11615 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
11616 instead of cgraph_node and assert it does not return NULL.
11617 * lto-streamer-in.c (lto_read_body): Likewise.
11618 * omp-low.c (new_omp_context): Likewise.
11619 (create_task_copyfn): Likewise.
11620 * tree-emutls.c (lower_emutls_function_body): Likewise.
11621 * matrix-reorg.c (transform_allocation_sites): Likewise.
11622
11623 2011-04-12 Jakub Jelinek <jakub@redhat.com>
11624
11625 PR c/48552
11626 * c-typeck.c (build_asm_expr): Error out on attempts to use
11627 void type outputs or inputs for constraints that allow reg or
11628 don't allow memory.
11629
11630 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
11631 Richard Earnshaw <rearnsha@arm.com>
11632
11633 PR target/48250
11634 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
11635 to use sign-magnitude offsets. Reject unsupported unaligned
11636 cases. Add detailed description in comments.
11637 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
11638 condition from TARGET_32BIT to TARGET_ARM.
11639
11640 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
11641
11642 * tree.h (struct typed_tree): New.
11643 (struct tree_common): Include it instead of tree_base.
11644 (TREE_TYPE): Update for new location of type field.
11645 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
11646 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
11647 (union tree_node): Add typed field.
11648 * treestruct.def (TS_TYPED): New.
11649 * lto-streamer.c (check_handled_ts_structures): Handle it.
11650 * tree.c (MARK_TS_TYPED): New macro.
11651 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
11652
11653 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
11654
11655 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
11656 (force_nonfallthru): Do not alter the loop nest if no basic block
11657 was created.
11658
11659 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
11660
11661 * config/i386/sse.md (VI): New mode iterator.
11662 (SSEMODEI): Remove.
11663 (AVX256MODEI): Ditto.
11664 (AVXMODEF4P): Ditto.
11665 (avxvecpsmode): Ditto.
11666 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
11667 (sse2_andnot<mode>3): New expander.
11668 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
11669 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
11670 (<any_logic:code><mode>3): Use VI mode iterator.
11671 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
11672 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
11673 (*andnottf3): Handle AVX three-operand constraints.
11674 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
11675
11676 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11677 Robert Millan <rmh@gnu.org>
11678
11679 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
11680 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
11681 GNU_USER_DYNAMIC_LINKER64): Define.
11682 (REG_NAME): Don't undefine.
11683 (MD_UNWIND_SUPPORT): Undefine.
11684 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
11685 (REG_NAME): Don't undefine.
11686 (MD_UNWIND_SUPPORT): Undefine.
11687 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
11688
11689 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11690
11691 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
11692 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
11693
11694 2011-04-11 Xinliang David Li <davidxl@google.com>
11695
11696 * value-profile.c (check_ic_target): New function.
11697 (gimple_ic_transform): Sanity check indirect call target.
11698 * gimple-low.c (gimple_check_call_args): Interface change.
11699 (gimple_check_call_matching_types): New function.
11700 * tree-inline.c (tree_can_inline_p): Call new function.
11701
11702 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
11703
11704 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
11705 tree-pretty-print.h & realmpfr.h.
11706
11707 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
11708
11709 PR middle-end/48464
11710 * ira.c (setup_pressure_classes): Fix typo in loop condition.
11711 (setup_allocno_and_important_classes): Ditto.
11712
11713 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11714
11715 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
11716 GNU_USER_DYNAMIC_LINKER.
11717 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
11718 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11719 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
11720 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11721 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11722 GNU_USER_TARGET_OS_CPP_BUILTINS.
11723 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
11724 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11725 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11726 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11727 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
11728 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11729 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11730 GNU_USER_TARGET_OS_CPP_BUILTINS.
11731 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11732 GNU_USER_DYNAMIC_LINKER.
11733 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11734 GNU_USER_TARGET_OS_CPP_BUILTINS.
11735 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
11736 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11737 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
11738 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11739 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
11740 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
11741 GNU_USER_DYNAMIC_LINKER64): Remove.
11742 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
11743 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11744 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11745 GNU_USER_DYNAMIC_LINKER.
11746 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11747 GNU_USER_TARGET_OS_CPP_BUILTINS.
11748 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11749 GNU_USER_TARGET_OS_CPP_BUILTINS.
11750 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
11751 to GNU_USER_TARGET_OS_CPP_BUILTINS.
11752 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11753 GNU_USER_TARGET_OS_CPP_BUILTINS.
11754 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
11755 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
11756 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11757 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
11758 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11759 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11760 GNU_USER_DYNAMIC_LINKER.
11761 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11762 GNU_USER_TARGET_OS_CPP_BUILTINS.
11763 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
11764 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11765 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11766 GNU_USER_DYNAMIC_LINKER.
11767 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11768 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11769 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
11770 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11771 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11772 GNU_USER_DYNAMIC_LINKER.
11773 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
11774 GNU_USER_DYNAMIC_LINKERN32.
11775 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
11776 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
11777 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
11778 GNU_USER_DYNAMIC_LINKER32.
11779 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
11780 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11781 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11782 GNU_USER_DYNAMIC_LINKER.
11783 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11784 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11785 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
11786 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11787 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11788 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
11789 GNU_USER_DYNAMIC_LINKER32.
11790 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11791 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
11792 GNU_USER_DYNAMIC_LINKER.
11793 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
11794 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11795 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11796 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
11797 GNU_USER_DYNAMIC_LINKER64.
11798 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
11799 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11800 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11801 GNU_USER_DYNAMIC_LINKER.
11802 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
11803 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11804 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11805 GNU_USER_DYNAMIC_LINKER.
11806 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
11807 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11808 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11809 GNU_USER_DYNAMIC_LINKER32.
11810 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11811 GNU_USER_DYNAMIC_LINKER64.
11812 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11813 GNU_USER_DYNAMIC_LINKER64.
11814 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
11815 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11816 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
11817 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11818 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11819
11820 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11821
11822 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
11823 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
11824 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
11825 GNU_USER_DYNAMIC_LINKER.
11826 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11827 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
11828 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
11829 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
11830 GNU_USER_DYNAMIC_LINKER64.
11831 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11832 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
11833 GNU_USER_LINK_EMULATION.
11834 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
11835 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
11836 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
11837 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
11838 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
11839 CPP_SPEC, CC1_SPEC): Remove.
11840 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
11841 (GNU_USER_DYNAMIC_LINKER): Define.
11842 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
11843 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
11844 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
11845 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
11846 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
11847 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
11848 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11849 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
11850 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
11851 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
11852 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
11853 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
11854 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
11855 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
11856 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
11857 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11858 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11859 GNU_USER_DYNAMIC_LINKER.
11860 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11861 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11862 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11863 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11864 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11865 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11866 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
11867 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
11868 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
11869 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
11870
11871 2011-04-11 Kai Tietz <ktietz@redhat.com>
11872
11873 PR target/9601
11874 PR target/11772
11875 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
11876 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
11877 comment.
11878 (ix86_is_msabi_thiscall): Removed.
11879 (ix86_is_type_thiscall): Likewise.
11880 (ix86_get_callcvt): New function.
11881 (ix86_comp_type_attributes): Simplify check.
11882 (ix86_function_regparm): Use ix86_get_callcvt for calling
11883 convention attribute checks.
11884 (ix86_return_pops_args): Likewise.
11885 (ix86_static_chain): Likewise.
11886 (x86_this_parameter): Likewise.
11887 (x86_output_mi_thunk): Likewise.
11888 (ix86_function_type_abi): Optimize check for types without attributes.
11889 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
11890 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
11891 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
11892 by flag-values.
11893 (IX86_BASE_CALLCVT): Helper macro.
11894 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
11895 Use ix86_get_callcvt for calling convention attribute checks and avoid
11896 symbol-decoration for stdcall in TARGET_RTD case.
11897 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
11898 Likewise.
11899 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
11900 for declaration.
11901
11902 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
11903
11904 * config/i386/sse.md (VI_128): New mode iterator.
11905 (VI12_128): Rename from SSEMODE12.
11906 (VI14_128): Rename from SSEMODE14.
11907 (VI124_128): New mode iterator.
11908 (VI24_128): Rename from SSEMODE248.
11909 (VI248_128): Rename from SSEMODE248.
11910 (SSEMODE124C8): Remove.
11911 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11912 (*sse2_<plusminus_insn><mode>3): Merge with
11913 *avx_<plusminus_insn><mode>3.
11914 (*mulv8hi3): Merge with *avx_mulv8hi3.
11915 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
11916 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
11917 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
11918 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
11919 (ashr<mode>3): Merge with *avx_ashr<mode>3.
11920 (lshr<mode>3): Merge with *avx_lshr<mode>3.
11921 (ashl<mode>3): Merge with *avx_ashl<mode>3.
11922 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
11923 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
11924 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11925 (*<smaxmin:code>v8hi3): Ditto.
11926 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
11927 (*<smaxmin:code>v16qi3): Ditto.
11928 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
11929 (*sse2_eq<mode>3): Ditto.
11930 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
11931 (*sse2_gt<mode>3): Ditto.
11932 (vcondv2di): Split out of vcond<mode>.
11933 (vconduv2di): Split out of vcondu<mode>.
11934
11935 2011-04-11 Richard Guenther <rguenther@suse.de>
11936
11937 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
11938 before calling tree_low_cst.
11939
11940 2011-04-11 Richard Guenther <rguenther@suse.de>
11941
11942 * stor-layout.c (layout_type): Compute all array index size operations
11943 in the original type.
11944 (initialize_sizetypes): Add comment.
11945 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
11946
11947 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11948
11949 * common.opt (Tbss=, Tdata=, Ttext=): New options.
11950
11951 2011-04-11 Martin Jambor <mjambor@suse.cz>
11952
11953 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
11954 of cgraph_node, handle NULL return value.
11955 (cgraph_global_info): Likewise.
11956 (cgraph_rtl_info): Likewise.
11957 * tree-inline.c (estimate_num_insns): Likewise.
11958 * gimplify.c (unshare_body): Likewise.
11959 (unvisit_body): Likewise.
11960 (gimplify_body): Likewise.
11961 * predict.c (optimize_function_for_size_p): Likewise.
11962 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11963 (call_may_clobber_ref_p_1): Likewise.
11964 * varasm.c (function_section_1): Likewise.
11965 (assemble_start_function): Likewise.
11966
11967 2011-04-11 Martin Jambor <mjambor@suse.cz>
11968
11969 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
11970 of cgraph_node.
11971 * final.c (rest_of_clean_state): Likewise.
11972 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
11973 * passes.c (pass_init_dump_file): Likewise.
11974 (execute_all_ipa_transforms): Likewise.
11975 (function_called_by_processed_nodes_p): Likewise.
11976 * predict.c (maybe_hot_frequency_p): Likewise.
11977 (probably_never_executed_bb_p): Likewise.
11978 (compute_function_frequency): Likewise.
11979 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
11980 (unnest_nesting_tree_1): Likewise.
11981 (lower_nested_functions): Likewise.
11982 * tree-optimize.c (execute_fixup_cfg): Likewise.
11983 (tree_rest_of_compilation): Likewise.
11984 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
11985 * tree-sra.c (ipa_early_sra): Likewise.
11986 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11987 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
11988 * ipa.c (record_cdtor_fn): Likewise.
11989 * ipa-inline.c (cgraph_early_inlining): Likewise.
11990 (compute_inline_parameters_for_current): Likewise.
11991 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11992 * ipa-pure-const.c (local_pure_const): Likewise.
11993 * ipa-split.c (split_function): Likewise.
11994 (execute_split_functions): Likewise.
11995 * cgraphbuild.c (build_cgraph_edges): Likewise.
11996 (rebuild_cgraph_edges): Likewise.
11997 (cgraph_rebuild_references): Likewise.
11998 (remove_cgraph_callee_edges): Likewise.
11999 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
12000 (verify_cgraph_node): Likewise.
12001 (cgraph_analyze_functions): Likewise.
12002 (cgraph_preserve_function_body_p): Likewise.
12003 (save_inline_function_body): Likewise.
12004 (save_inline_function_body): Likewise.
12005 * tree-inline.c (copy_bb): Likewise.
12006 (optimize_inline_calls): Likewise.
12007
12008 2011-04-11 Martin Jambor <mjambor@suse.cz>
12009
12010 PR tree-optimization/48195
12011 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
12012 ipa_check_create_edge_args.
12013 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
12014 ipa_check_create_edge_args.
12015 * ipa-inline.c (inline_generate_summary): Do not call
12016 ipa_check_create_node_params and ipa_check_create_edge_args.
12017 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
12018 ipa_check_create_edge_args.
12019
12020 2011-04-09 Anatoly Sokolov <aesok@post.ru>
12021
12022 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
12023 instead of loop.
12024 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12025 * function.c (record_hard_reg_sets): Likewise.
12026 * ira.c (compute_regs_asm_clobbered): Likewise.
12027 * sched-deps.c (sched_analyze_1): Likewise.
12028 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
12029
12030 2011-04-09 Xinliang David Li <davidxl@google.com>
12031
12032 PR tree-optimization/PR48484
12033 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
12034 has_valid_pred lazily
12035
12036 2011-04-09 Duncan Sands <baldrick@free.fr>
12037
12038 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
12039
12040 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
12041
12042 * combine.c (combine_validate_cost): Adjust comments. Set registered
12043 cost of I0 to zero at the end, if any.
12044
12045 2011-04-08 Xinliang David Li <davidxl@google.com>
12046
12047 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
12048 to insane profile data.
12049
12050 2011-04-08 Xinliang David Li <davidxl@google.com>
12051
12052 * ipa-cp.c (ipcp_update_profiling): Correct
12053 negative scale factor due to insane profile data.
12054
12055 2011-04-08 Xinliang David Li <davidxl@google.com>
12056
12057 * final.c (dump_basic_block_info): New function.
12058 (final): Dump basic block.
12059 (final_scan_insn): Remove old dump.
12060
12061 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
12062
12063 PR target/47829
12064 * config.gcc (i386-*-freebsd): Disable unwind table generation for
12065 crtbegin/crtend.
12066
12067 2011-04-08 Michael Matz <matz@suse.de>
12068
12069 PR middle-end/48389
12070 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
12071 functions.
12072 (rebuild_jump_labels): Call rebuild_jump_labels_1.
12073 * rtl.h (rebuild_jump_labels_chain): Declare.
12074 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
12075 insns inserted on edges.
12076
12077 2011-04-08 Joseph Myers <joseph@codesourcery.com>
12078
12079 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
12080 * config/arm/arm-arches.def: New.
12081 * config/arm/arm-opts.h: New.
12082 * config/arm/genopt.sh: New.
12083 * config/arm/arm-tables.opt: New (generated).
12084 * config/arm/arm.c (arm_handle_option, arm_target_help,
12085 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
12086 (all_architectures): Get most table contents from arm-arches.def.
12087 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
12088 arm_selected_tune here.
12089 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
12090 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
12091 (march=, mcpu=, mtune=): Use Enum and Var.
12092 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
12093 (arm.o): Update dependencies.
12094
12095 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
12096
12097 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
12098 of header_file.
12099 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
12100 (write_typed_alloc_defns): Likewise.
12101 (main): Calls write_typed_alloc_defns with output_header.
12102
12103 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
12104
12105 PR inline-asm/48435
12106 * ira-color.c (setup_profitable_hard_regs): Add comments.
12107 Don't take prohibited hard regs into account.
12108 (setup_conflict_profitable_regs): Rename to
12109 get_conflict_profitable_regs.
12110 (check_hard_reg_p): Check prohibited hard regs.
12111
12112 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
12113
12114 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
12115 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
12116 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
12117
12118 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12119
12120 PR target/48366
12121 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
12122 move from floating point to shift amount register.
12123 (emit_move_sequence): Remove secondary reload support for floating
12124 point to shift amount amount register copies.
12125 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
12126 amount register copies.
12127 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
12128 register, return false if mode isn't a scalar integer mode.
12129 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
12130
12131 2011-04-08 Richard Guenther <rguenther@suse.de>
12132
12133 * gimple.c (gimple_call_flags): Remove kludge.
12134
12135 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
12136
12137 * sel-sched.c (sel_region_init): Move call to
12138 sel_setup_region_sched_flags after setup_current_loop_nest.
12139
12140 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
12141
12142 PR rtl-optimization/48272
12143 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
12144 init_insn_reg_pressure_info. Adjust a caller.
12145 * sched-int.h (init_insn_reg_pressure_info): Declare.
12146 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
12147 when sched-pressure is enabled.
12148
12149 2011-04-08 Richard Guenther <rguenther@suse.de>
12150
12151 * gimple.c (gimple_set_modified): Do not queue calls to
12152 MODIFIED_NORETURN_CALLS here ...
12153 * tree-ssa-operands.c (update_stmt_operands): ... but here.
12154
12155 2011-04-08 Richard Guenther <rguenther@suse.de>
12156
12157 PR lto/48467
12158 * toplev.c (lang_dependent_init): Do not open asm_out_file
12159 in WPA mode, nor perform debug machinery initialization.
12160 (finalize): Do not unlink asm_out_file in WPA mode.
12161
12162 2011-04-08 Richard Guenther <rguenther@suse.de>
12163
12164 * gimple.h (gimple_call_fntype): New function.
12165 (gimple_call_return_type): Use it.
12166 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
12167 * gimple-low.c (gimple_check_call_args): Likewise.
12168 * gimple.c (gimple_call_flags): Likewise.
12169 (gimple_call_arg_flags): Likewise.
12170 (gimple_call_return_flags): Likewise.
12171 * tree-cfg.c (verify_gimple_call): Likewise.
12172 (do_warn_unused_result): Likewise.
12173 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
12174 * value-prof.c (gimple_ic_transform): Fix fndecl check.
12175
12176 2011-04-08 Dmitry Melnik <dm@ispras.ru>
12177
12178 PR rtl-optimization/48235
12179 * sel-sched.c (code_motion_process_successors): Recompute the last
12180 insn in basic block if control flow changed.
12181 (code_motion_path_driver): Ditto. Recompute the first insn as well.
12182 Update condition for ilist_remove.
12183
12184 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
12185
12186 PR rtl-optimization/48302
12187 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
12188 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
12189 it to record added preheader blocks.
12190 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
12191 on to sel_add_loop_preheaders.
12192 (sel_region_init): Move call to setup_current_loop_nest after
12193 sel_init_bbs.
12194
12195 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
12196
12197 PR target/48273
12198 * cfgloop.h (loop_has_exit_edges): New helper.
12199 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
12200 non-clonable.
12201 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
12202 that have no exit edges.
12203
12204 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
12205
12206 PR rtl-optimization/48442
12207 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
12208 all callers. Adjust assert.
12209
12210 2011-04-08 Jakub Jelinek <jakub@redhat.com>
12211
12212 PR tree-optimization/48377
12213 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
12214 is_packed to true even for types with smaller TYPE_ALIGN than
12215 TYPE_SIZE.
12216
12217 2011-04-08 Richard Guenther <rguenther@suse.de>
12218
12219 PR bootstrap/48513
12220 * doc/tm.texi: Re-generate.
12221
12222 2011-04-08 Wei Guozhi <carrot@google.com>
12223
12224 PR target/47855
12225 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
12226 * config/arm/arm.c (arm_attr_length_push_multi): New function.
12227 * config/arm/arm.md (*push_multi): Change the length computation to
12228 call a C function.
12229
12230 2011-04-08 Anatoly Sokolov <aesok@post.ru>
12231
12232 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
12233 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
12234 * doc/tm.texi: Regenerate.
12235 * system.h (ASM_OUTPUT_BSS): Poison.
12236 * varasm.c (asm_output_bss): Remove function.
12237 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
12238
12239 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
12240 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
12241 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
12242 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
12243 Likewise.
12244 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
12245 Likewise.
12246 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
12247 Likewise.
12248 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12249
12250 2011-04-07 Joseph Myers <joseph@codesourcery.com>
12251
12252 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
12253 EnumValue lines.
12254
12255 2011-04-07 Joseph Myers <joseph@codesourcery.com>
12256
12257 * config/m68k/m68k.c (m68k_handle_option): Don't handle
12258 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
12259 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
12260 OPT_mcpu32.
12261 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
12262 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
12263 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
12264 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
12265 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
12266 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
12267 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
12268 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
12269 options. Don't map other m68k options manually. Don't handle
12270 old-style options as canonical.
12271 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
12272 * doc/install.texi (m68k-*-*): Document binutils version requirement.
12273
12274 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
12275
12276 * basic-block.h (force_nonfallthru): Move to...
12277 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
12278 (force_nonfallthru): ...here.
12279 * cfghooks.c (force_nonfallthru): New function.
12280 * cfgrtl.c (force_nonfallthru): Rename into...
12281 (rtl_force_nonfallthru): ...this.
12282 (commit_one_edge_insertion): Do not set AUX field.
12283 (commit_edge_insertions): Do not discover new basic blocks.
12284 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
12285 (cfg_layout_rtl_cfg_hooks): Likewise.
12286 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
12287 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
12288 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
12289
12290 2011-04-07 Anatoly Sokolov <aesok@post.ru>
12291
12292 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12293 Remove macros.
12294
12295 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
12296
12297 * config/i386/sse.md: Update copyright year.
12298 (avxcvtvecmode): Remove.
12299 (sse_movhlps): Merge with *avx_movhlps.
12300 (sse_movlhps): Merge with *avx_movlhps.
12301 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
12302 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
12303 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
12304 (sse_loadhps): Merge with *avx_loadhps.
12305 (sse_storelps): Merge with *avx_storelps.
12306 (sse_loadlps): Merge with *avx_loadlps.
12307 (sse_movss): Merge with *avx_movss.
12308 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
12309 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
12310 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
12311 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
12312 (vec_set<mode>_0): Ditto.
12313 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
12314 (sse4_1_insertps): Merge with *avx_insertps.
12315 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
12316 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
12317 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
12318 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
12319 (sse2_storehpd): Merge with *avx_storehpd.
12320 (sse2_loadhpd): Merge with *avx_loadhpd.
12321 (sse2_loadlpd): Merge with *avx_loadlpd.
12322 (sse2_movsd): Merge with *avx_movsd.
12323 (*vec_concatv2df): Merge with *vec_concatv2df.
12324
12325 2011-04-07 Jakub Jelinek <jakub@redhat.com>
12326
12327 PR debug/48343
12328 * combine.c (combine_instructions): Add last_combined_insn,
12329 update it if insn is after it, pass it to all try_combine calls.
12330 (try_combine): Add last_combined_insn parameter, pass it instead of
12331 i3 to propagate_for_debug.
12332
12333 2011-04-07 Nick Clifton <nickc@redhat.com>
12334
12335 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
12336 to handle MDR <-> data register transfers.
12337 (movhi_internal): Likewise.
12338
12339 2011-04-07 Alan Modra <amodra@gmail.com>
12340
12341 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
12342 previous stack info.
12343
12344 2011-04-07 Tom de Vries <tom@codesourcery.com>
12345
12346 PR target/43920
12347 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
12348 flow_find_cross_jump. Swap variables to implement backward replacement.
12349 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
12350
12351 2011-04-07 Tom de Vries <tom@codesourcery.com>
12352
12353 PR target/43920
12354 * cfgcleanup.c (walk_to_nondebug_insn): New function.
12355 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
12356 and bb2.
12357 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
12358 src1 or src2. Redirect edges to the last basic block. Update
12359 frequency and count on multiple basic blocks in case of fallthru.
12360
12361 2011-04-07 Tom de Vries <tom@codesourcery.com>
12362
12363 PR target/43920
12364 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
12365 function.
12366 (old_insns_match_p): Change return type. Replace return false/true
12367 with return dir_none/dir_both. Use can_replace_by.
12368 (flow_find_cross_jump): Add dir_p parameter. Init replacement
12369 direction from dir_p. Register replacement direction in dir, last_dir
12370 and afterlast_dir. Handle new return type of old_insns_match_p using
12371 merge_dir. Return replacement direction in dir_p.
12372 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
12373 return type of old_insns_match_p.
12374 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
12375 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
12376 flow_find_cross_jump.
12377 * basic-block.h (enum replace_direction): New type.
12378 (flow_find_cross_jump): Add parameter to declaration.
12379
12380 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
12381
12382 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
12383 (AVXMODEDCVTPS2DQ): Ditto.
12384 (VEC_FLOAT_MODE): Ditto.
12385 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
12386 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
12387 (<any_logic:code><mode>3): Use VF mode iterator.
12388 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
12389 Use VF mode iterator.
12390 (copysign<mode>3): Use VF mode iterator.
12391 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
12392 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
12393 (*<any_logic:code><MODEF:mode>3): Merge with
12394 *avx_<any_logic:code><MODEF:mode>3.
12395 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
12396 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
12397 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
12398 (avx_cvtdq2ps<avxmodesuffix>): Remove.
12399 (sse2_cvtdq2ps): Use %v modifier.
12400 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
12401 (avx_cvtps2dq<avxmodesuffix>): Remove.
12402 (sse2_cvtps2dq): Use %v modifier.
12403 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
12404 (avx_cvttps2dq<avxmodesuffix>): Remove.
12405 (sse2_cvttps2dq): Use %v modifier.
12406 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
12407 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
12408 (sse2_cvtsd2siq): Fix insn template.
12409 (sse2_cvtsd2siq_2): Ditto.
12410 (sse2_cvttsd2siq): Ditto.
12411 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
12412 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
12413
12414 2011-04-06 Joseph Myers <joseph@codesourcery.com>
12415
12416 * gcov-io.c: Use GCC Runtime Library Exception.
12417
12418 2011-04-06 Jakub Jelinek <jakub@redhat.com>
12419
12420 PR debug/48466
12421 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
12422 as base_reg whatever register reg has been eliminated to, instead
12423 of hardcoding STACK_POINTER_REGNUM.
12424
12425 2011-04-06 Joseph Myers <joseph@codesourcery.com>
12426
12427 * doc/tm.texi.in: Document C target hooks as separate from general
12428 target hooks.
12429 * doc/tm.texi: Regenerate.
12430 * genhooks.c (struct hook_desc): Add docname field.
12431 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
12432 docname field.
12433 (hook_array): Include c-target.def.
12434 (emit_documentation): Use docname field in output.
12435 (emit_init_macros): Take docname argument. Only emit definitions
12436 for hooks matching docname.
12437 (main): Expect additional arguments in all cases. Pass argument
12438 to emit_init_macros.
12439 * target.def: Move initial macro definitions and comments to
12440 target-hooks-macros.h.
12441 (gcc_targetcm): Move to c-family/c-target.def.
12442 * target.h (targetcm): Move declaration to c-family/c-target.h.
12443 * targhooks.c (default_handle_c_option): Move to
12444 c-family/c-opts.c.
12445 * targhooks.h (default_handle_c_option): Move declaration to
12446 c-family/c-common.h.
12447 * target-hooks-macros.h: New file.
12448 * config.gcc (target_has_targetcm): Define and use to add to
12449 c_target_objs and cxx_target_objs.
12450 * config/default-c.c: New file.
12451 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
12452 of target.h and target-def.h.
12453 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
12454 (darwin_objc_construct_string, darwin_cfstring_ref_p,
12455 darwin_check_cfstring_format_arg): Make static.
12456 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
12457 TARGET_STRING_OBJECT_REF_TYPE_P,
12458 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
12459 * config/darwin-protos.h (darwin_objc_construct_string,
12460 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
12461 declare.
12462 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
12463 TARGET_STRING_OBJECT_REF_TYPE_P,
12464 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
12465 * config/t-darwin (darwin-c.o): Update dependencies.
12466 * system.h (TARGET_HAS_TARGETCM): Poison.
12467 * Makefile.in (TARGET_H): Update.
12468 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
12469 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
12470 (default-c.o): New target.
12471 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
12472 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
12473 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
12474 c-target.def.
12475 (build/genhooks.o): Update dependencies.
12476
12477 2011-04-06 Richard Guenther <rguenther@suse.de>
12478
12479 * ipa-inline.c (enum inlining_mode): Remove.
12480 (cgraph_flatten): Use some other token.
12481 (cgraph_edge_early_inlinable_p): New function, split out from ...
12482 (cgraph_perform_always_inlining): New function, split out from ...
12483 (cgraph_decide_inlining_incrementally): ... here.
12484 (cgraph_mark_inline_edge): Adjust.
12485 (cgraph_early_inlining): Re-structure.
12486 (pass_early_inline): Require SSA form.
12487
12488 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
12489 Julian Brown <julian@codesourcery.com>
12490 Mark Shinwell <shinwell@codesourcery.com>
12491
12492 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
12493 LO_REGS only for Thumb-1.
12494 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
12495 be used in short instructions when optimising for size on Thumb-2.
12496
12497 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
12498
12499 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
12500 associated with user returns to be preserved.
12501
12502 2011-04-06 Tristan Gingold <gingold@adacore.com>
12503
12504 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
12505 symbol_queue_size, DBXOUT_DECR_NESTING,
12506 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
12507 if XCOFF_DEBUGGING_INFO.
12508
12509 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
12510
12511 * config/i386/i386.md (attribute isa): New.
12512 (attribute enabled): New.
12513 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
12514 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
12515 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
12516 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
12517 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
12518 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12519 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
12520 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
12521
12522 * config/i386/sse.md (VF): New mode iterator.
12523 (VF1): Ditto.
12524 (VF2): Ditto.
12525 (VF_128): Ditto.
12526 (SSEMODEF4): Remove.
12527 (attribute sse): Handle V8SF and V4DF modes.
12528 (<absneg:code><mode>2): Use VF mode iterator.
12529 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
12530 mode iterator.
12531 (<plusminus_insn><mode>3): Use VF mode iterator.
12532 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
12533 Use VF mode iterator.
12534 (<sse>_vm<plusminus_insn><mode>3): Merge with
12535 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
12536 (mul<mode>3): Use VF mode iterator.
12537 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
12538 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
12539 mode iterator.
12540 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
12541 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
12542 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
12543 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
12544 mode iterator.
12545 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
12546 Use VF1 mode iterator.
12547 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
12548 (sqrt<VF2:mode>2): New expander.
12549 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
12550 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
12551 and sqrtv2df2. Use VF mode iterator.
12552 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
12553 mode iterator.
12554 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
12555 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
12556 Use VF1 mode iterator.
12557 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
12558 (<smaxmin:code><mode>3): Use VF mode iterator.
12559 (*<smaxmin:code><mode>3_finite): Merge with
12560 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
12561 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12562 (<sse>_vm<smaxmin:code><mode>2): Merge with
12563 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
12564 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
12565 mode iterator.
12566 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
12567 mode iterator.
12568 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
12569 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
12570 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
12571 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
12572 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
12573 VF mode iterator.
12574 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
12575 Use VF_128 mode iterator.
12576 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
12577 mode iterator.
12578 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
12579 VF_128 mode iterator.
12580 (vcond<mode>): Use VF mode iterator.
12581 * config/i386/predicates.md (sse_comparison_operator): Merge with
12582 avx_comparison_float_operator. Do not declare as special_predicate.
12583 * config/i386/i386.c (struct builtin_description): Update for renamed
12584 compare patterns.
12585 (ix86_expand_args_builtin): Ditto.
12586 (ix86_expand_sse_compare_mask): Ditto.
12587
12588 2011-04-06 Richard Guenther <rguenther@suse.de>
12589
12590 * tree-inline.c (estimate_num_insns): For calls simply account
12591 for all passed arguments and a used return value.
12592
12593 2011-04-06 Richard Guenther <rguenther@suse.de>
12594
12595 PR tree-optimization/47663
12596 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
12597 call_stmt_time fields.
12598 (cgraph_edge_inlinable_p): Declare.
12599 (cgraph_edge_recursive_p): New inline function.
12600 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
12601 (cgraph_clone_edge): Copy it.
12602 * ipa-inline.c (cgraph_estimate_edge_time): New function.
12603 Account for call stmt time.
12604 (cgraph_estimate_time_after_inlining): Take edge argument.
12605 (cgraph_estimate_edge_growth): Account call stmt size.
12606 (cgraph_estimate_size_after_inlining): Take edge argument.
12607 (cgraph_mark_inline_edge): Adjust.
12608 (cgraph_check_inline_limits): Likewise.
12609 (cgraph_recursive_inlining_p): Remove.
12610 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
12611 (cgraph_decide_recursive_inlining): Take edge argument and
12612 adjust.
12613 (cgraph_decide_inlining_of_small_functions): Do not avoid
12614 diags for recursive inlining here.
12615 (cgraph_flatten): Adjust.
12616 (cgraph_decide_inlining_incrementally): Likewise.
12617 (estimate_function_body_sizes): Remove call cost handling.
12618 (compute_inline_parameters): Initialize caller edge call costs.
12619 (cgraph_estimate_edge_growth): New function.
12620 (cgraph_estimate_growth): Use it.
12621 (cgraph_edge_badness): Likewise.
12622 (cgraph_check_inline_limits): Take an edge argument.
12623 (cgraph_decide_inlining_of_small_functions): Adjust.
12624 (cgraph_decide_inlining): Likewise.
12625 * tree-inline.c (estimate_num_insns): Only account for call
12626 return value if it is used.
12627 (expand_call_inline): Avoid diagnostics on recursive inline
12628 functions here.
12629 * lto-cgraph.c (lto_output_edge): Output edge call costs.
12630 (input_edge): Input edge call costs.
12631
12632 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12633
12634 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
12635
12636 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
12637
12638 * doc/invoke.texi (Spec Files): Fix typo.
12639
12640 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
12641
12642 * profile.c (branch_prob): Move declaration of local variable. Remove
12643 obsolete ??? comment. Expand the location explicitly instead of using
12644 the LOCATION_FILE and LOCATION_LINE macros.
12645
12646 2011-04-06 Wei Guozhi <carrot@google.com>
12647
12648 PR target/47855
12649 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
12650 (arm_cond_branch): Likewise.
12651 (arm_cond_branch_reversed): Likewise.
12652 (arm_jump): Likewise.
12653 (push_multi): Likewise.
12654 * config/arm/constraints.md (Py): New constraint.
12655
12656 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12657
12658 PR bootstrap/48471
12659 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
12660 Move these...
12661 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
12662 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
12663 #ifdef DBX_DEBUGGING_INFO.
12664
12665 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
12666
12667 PR bootstrap/48403
12668 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
12669 if old and new states differ.
12670
12671 2011-04-05 Joseph Myers <joseph@codesourcery.com>
12672
12673 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
12674 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
12675 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
12676 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
12677 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
12678 mcfv4e): Use Alias.
12679 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
12680 ColdFire options to -mcpu= options.
12681
12682 2011-04-05 Jeff Law <law@redhat.com>
12683
12684 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
12685 check if BB is a successor of LOOP->header and return
12686 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
12687
12688 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
12689
12690 * cprop.c (struct reg_use): Remove.
12691 (reg_use_table): Make an array of RTX.
12692 (find_used_regs, constprop_register, local_cprop_pass,
12693 bypass_block): Simplify users of reg_use_table.
12694 (cprop_insn): Likewise. Iterate if copy propagation succeeded
12695 on one of the uses found by find_used_regs.
12696
12697 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12698
12699 PR bootstrap/48469
12700 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
12701 declaration.
12702
12703 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12704
12705 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
12706 as an rtx.
12707 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
12708
12709 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
12710
12711 PR middle-end/48441
12712 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
12713
12714 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12715
12716 * combine.c: Include obstack.h.
12717 (struct insn_link): Define.
12718 (uid_log_links): Adjust type.
12719 (FOR_EACH_LOG_LINK): New macro.
12720 (insn_link_obstack): Declare.
12721 (alloc_insn_link): Define.
12722 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
12723 type of link variables.
12724 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
12725 (try_combine, record_promoted_values, distribute_notes): Likewise.
12726 (distribute_links): Likewise. Tweak prototype.
12727 (clear_log_links): Delete.
12728 (adjust_for_new_dest): Call alloc_insn_link.
12729 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
12730
12731 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12732
12733 * gcse.c (modify_mem_list): Convert to an array of VECs.
12734 (canon_modify_mem_list, compute_transp): Tweak formatting.
12735 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
12736 (load_killed_in_block_p): Likewise.
12737 (record_last_mem_set_info): Likewise.
12738 (clear_modify_mem_tables): Likewise.
12739
12740 2011-04-05 Tom de Vries <tom@codesourcery.com>
12741
12742 PR middle-end/48461
12743 * function.c (emit_use_return_register_into_block): Only define if
12744 HAVE_return.
12745
12746 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
12747
12748 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
12749
12750 2011-04-05 Joseph Myers <joseph@codesourcery.com>
12751
12752 * config/rx/rx-opts.h: New.
12753 * config/rx/rx.c (rx_cpu_type): Remove.
12754 (rx_handle_option): Don't assert that global structures are in
12755 use. Access variables via opts pointer. Defer most handling of
12756 OPT_mint_register_. Use error_at.
12757 (rx_option_override): Handle deferred OPT_mint_register_ here.
12758 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
12759 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
12760 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
12761 (rx_cpu_types): New Enum and EnumValue entries.
12762 (mint-register=): Use Defer and use Var accordingly.
12763
12764 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12765
12766 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
12767 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
12768 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
12769 Move these...
12770 (debug_free_queue, debug_nesting, symbol_queue_index):
12771 ...and these...
12772 * dbxout.c: ...to here. Make static.
12773
12774 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12775
12776 * gcse.c (modify_pair): Define. Define a VEC of it.
12777 (canon_modify_mem_list): Convert to an array of VECs.
12778 (free_insn_expr_list_list): Delete.
12779 (clear_modify_mem_tables): Call VEC_free instead.
12780 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
12781 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
12782 (canon_list_insert, compute_transp): Likewise.
12783
12784 2011-04-05 Tom de Vries <tom@codesourcery.com>
12785
12786 PR target/43920
12787 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
12788 for size.
12789
12790 2011-04-05 Tom de Vries <tom@codesourcery.com>
12791
12792 PR target/43920
12793 * function.c (emit_use_return_register_into_block): New function.
12794 (thread_prologue_and_epilogue_insns): Use
12795 emit_use_return_register_into_block.
12796
12797 2011-04-05 Tom de Vries <tom@codesourcery.com>
12798
12799 PR target/43920
12800 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
12801 insn.
12802
12803 2011-04-05 Tom de Vries <tom@codesourcery.com>
12804
12805 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
12806
12807 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
12808
12809 * config/arm/arm.md (define_constants for unspec): Replace with
12810 define_c_enum.
12811 (define_constants for unspecv): Replace with define_c_enum.
12812 * config/arm/neon.md (define_constants for unspec): Replace with
12813 define_c_enum.
12814
12815 2011-04-04 Richard Henderson <rth@redhat.com>
12816
12817 PR bootstrap/48400
12818 * dwarf2out.c (output_line_info): Always emit line info from
12819 at least one section.
12820 (dwarf2out_init): Create text_section_line_info here ...
12821 (set_cur_line_info_table): ... not here.
12822
12823 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
12824
12825 PR target/48380
12826 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
12827 not called.
12828
12829 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
12830
12831 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
12832
12833 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
12834 (expr_equiv_p): Remove.
12835 (insert_set_in_table): Look at <dest, src> pair instead of expr.
12836 (hash_scan_set): Update call to insert_set_in_table.
12837 (dump_hash_table): Dump <dest, src> pair.
12838 (lookup_set): Simplify. Lookup <dest, src> pair.
12839 (compute_transp): Remove, fold heavily simplified code into...
12840 (compute_local_properties): ...here. Expect COMP and TRANSP
12841 unconditionally.
12842 (find_avail_set): Take set directly from struct expr.
12843 (find_bypass-set): Likewise.
12844 (bypass_block): Likewise.
12845 (cprop_insn): Likewise. Remove redundant INSN_P test.
12846
12847 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
12848 checks on form of COND from find_implicit_sets to here.
12849 (find_implicit_sets): Cleanup control flow. Split critical edges
12850 if it exposes implicit sets. Allocate/resize implicit_sets as
12851 necessary.
12852 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
12853 changed something. Run df_analyze after find_implicit_sets if any
12854 edges were split. Do not allocate implicit_sets here.
12855
12856 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
12857 (gcse_obstack): Renamed to cprop_obstack.
12858 (GNEW, GNEWVEC, GNEWVAR): Remove.
12859 (gmalloc): Remove.
12860 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
12861 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
12862 (gcse_alloc): Likewise, and rename to cprop_alloc.
12863 (alloc_gcse_men, free_gcse_mem): Remove.
12864 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
12865 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
12866 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
12867
12868 * cprop.c (oprs_not_set_p): Remove.
12869 (mark_set, mark_clobber): Remove.
12870 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
12871 (reg_not_set_p): New function.
12872 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
12873 (cprop_insn): Likewise.
12874 (cprop_jump): Use FOR_EACH_EDGE.
12875
12876 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
12877
12878 PR bootstrap/48403
12879 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
12880 (rank_for_schedule): Use scheduled_insns vector instead of
12881 last_scheduled_insn.
12882 (ok_for_early_queue_removal): Likewise.
12883 (queue_to_ready): Search forward in nonscheduled_insns_begin if
12884 we have a dbg_cnt.
12885 (choose_ready): Likewise.
12886 (commit_schedule): Use VEC_iterate.
12887 (schedule_block): Initialize nonscheduled_insns_begin. If we have
12888 a dbg_cnt, use it and ensure the first insn is in the ready list.
12889 (haifa_sched_init): Allocate scheduled_insns.
12890 (sched_extend_ready_list): Don't allocate it; reserve space.
12891 (haifa_sched_finish): Free it.
12892
12893 2011-04-04 Joseph Myers <joseph@codesourcery.com>
12894
12895 * optc-gen.awk: Always remove type from Variable entry before
12896 recording in var_seen.
12897
12898 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
12899
12900 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
12901 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
12902 call to tidy_fallthru_edges.
12903
12904 2011-04-04 Joseph Myers <joseph@codesourcery.com>
12905
12906 * doc/options.texi (ToLower): Document.
12907 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
12908 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
12909 * opts.h (cl_option): Add cl_tolower field.
12910 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
12911 arguments with lowercase strings.
12912 * config/rx/rx.opt (mcpu=): Add ToLower.
12913 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
12914 argument.
12915
12916 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12917
12918 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
12919
12920 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12921
12922 * config/vax/vax.c: Include reload.h.
12923
12924 2011-04-04 Anatoly Sokolov <aesok@post.ru>
12925
12926 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
12927 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12928 (sparc_preferred_reload_class): New function.
12929
12930 2011-04-04 Jakub Jelinek <jakub@redhat.com>
12931
12932 PR debug/48401
12933 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12934 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
12935
12936 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
12937
12938 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
12939 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
12940
12941 2011-04-03 Anatoly Sokolov <aesok@post.ru>
12942
12943 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
12944 (ASM_OUTPUT_ALIGNED_BSS): Define.
12945
12946 2011-04-03 Michael Matz <matz@suse.de>
12947
12948 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
12949 and next_slot members.
12950 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
12951 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
12952 (lto_streamer_cache_append): Declare.
12953 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
12954 unsigned index, remove offset parameter, ensure that we append
12955 or update existing entries.
12956 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
12957 parameter, update next_slot for append.
12958 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
12959 parameter.
12960 (lto_streamer_cache_insert_at): Likewise.
12961 (lto_streamer_cache_append): New function.
12962 (lto_streamer_cache_lookup): Use unsigned index.
12963 (lto_streamer_cache_get): Likewise.
12964 (lto_record_common_node): Don't test tree_node_can_be_shared.
12965 (preload_common_node): Adjust call to lto_streamer_cache_insert.
12966 (lto_streamer_cache_delete): Don't free offsets member.
12967 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
12968 (lto_output_string_with_length): Use lto_output_data_stream.
12969 (lto_output_tree_header): Remove ix parameter, don't write it.
12970 (lto_output_builtin_tree): Likewise.
12971 (lto_write_tree): Adjust callers to above, don't track and write
12972 offset, write unsigned index.
12973 (output_unreferenced_globals): Don't emit all global vars.
12974 (write_global_references): Use unsigned indices.
12975 (lto_output_decl_state_refs): Likewise.
12976 (write_symbol): Likewise.
12977 * lto-streamer-in.c (lto_input_chain): Move earlier.
12978 (input_function): Use unsigned index.
12979 (input_alias_pairs): Don't read and then ignore all global vars.
12980 (lto_materialize_tree): Remove ix_p parameter, don't read index,
12981 don't pass it back, use lto_streamer_cache_append.
12982 (lto_register_var_decl_in_symtab): Use unsigned index.
12983 (lto_register_function_decl_in_symtab): Likewise.
12984 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
12985 index.
12986 (lto_get_builtin_tree): Don't read index, use
12987 lto_streamer_cache_append.
12988 (lto_read_tree): Adjust call to lto_materialize_tree.
12989
12990 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
12991 don't use function calls in arguments to MIN.
12992
12993 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
12994 twice.
12995
12996 * gimple.c (gimple_type_leader_entry): Mark deletable.
12997
12998 2011-04-03 Alan Modra <amodra@gmail.com>
12999
13000 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
13001
13002 2011-04-03 Michael Matz <matz@suse.de>
13003
13004 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
13005 an integer.
13006 * tree.h (tree_decl_non_common.vindex): Adjust comment.
13007
13008 2011-04-03 Michael Matz <matz@suse.de>
13009
13010 * cgraphbuild.c (record_reference): Canonicalize constructor values.
13011 * gimple-fold.c (canonicalize_constructor_val): Accept being called
13012 without function context.
13013 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
13014 current_function_decl and cfun.
13015
13016 2011-04-03 Michael Matz <matz@suse.de>
13017
13018 * tree.c (decl_init_priority_insert): Don't create entry for
13019 default priority.
13020 (decl_fini_priority_insert): Ditto.
13021 (fields_compatible_p, find_compatible_field): Remove.
13022 * tree.h (fields_compatible_p, find_compatible_field): Remove.
13023 * gimple.c (gimple_compare_field_offset): Adjust block comment.
13024
13025 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
13026
13027 * combine.c (try_combine): Remove useless local variable.
13028
13029 2011-04-03 Richard Guenther <rguenther@suse.de>
13030 Ira Rosen <ira.rosen@linaro.org>
13031
13032 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
13033 non-variable offsets and compare the remaining bases of the two
13034 accesses instead of looking for exact same data-ref.
13035
13036 2011-04-02 Kai Tietz <ktietz@redhat.com>
13037
13038 PR target/48416
13039 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
13040
13041 * i386.c (ix86_is_msabi_thiscall): New helper function.
13042 (ix86_is_type_thiscall): New helper function.
13043 (ix86_comp_type_attributes): Handle thiscall for method-functions
13044 special.
13045 (init_cumulative_args): Likewise.
13046 (find_drap_reg): Likewise.
13047 (ix86_static_chain): Likewise.
13048 (x86_this_parameter): Likewise.
13049 (x86_output_mi_thunk): Likewise.
13050
13051 2011-04-01 Olivier Hainque <hainque@adacore.com>
13052 Nicolas Setton <setton@adacore.com>
13053 Eric Botcazou <ebotcazou@adacore.com>
13054
13055 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
13056 (add_gnat_descriptive_type_attribute): New function.
13057 (gen_array_type_die): Call it.
13058 (gen_enumeration_type_die): Likewise.
13059 (gen_struct_or_union_type_die): Likewise.
13060 (modified_type_die): Likewise.
13061 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
13062 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
13063 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
13064
13065 2011-04-01 Jakub Jelinek <jakub@redhat.com>
13066
13067 PR bootstrap/48148
13068 * dwarf2out.c (resolve_addr): Don't call force_decl_die
13069 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
13070
13071 Revert:
13072 2011-03-17 Richard Guenther <rguenther@suse.de>
13073
13074 PR bootstrap/48148
13075 * lto-cgraph.c (input_overwrite_node): Clear the abstract
13076 origin for decls in other ltrans units.
13077 (input_varpool_node): Likewise.
13078
13079 2011-04-01 Jakub Jelinek <jakub@redhat.com>
13080
13081 PR middle-end/48335
13082 * expr.c (expand_assignment): Handle all possibilities
13083 if TO_RTX is CONCAT.
13084 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
13085 (store_split_bit_field): If SUBREG_REG (op0) or
13086 op0 itself has smaller mode than word, return it
13087 for offset 0 and const0_rtx for out-of-bounds stores.
13088 If word is const0_rtx, skip it.
13089
13090 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
13091
13092 * config/h8300/h8300.c (print_operand_address): Rename to...
13093 (h8300_print_operand_address): ...this. Make static. Adjust comments.
13094 Call h8300_print_operand and h8300_print_operand_address instead of
13095 print_operand and print_operand_address. Declare.
13096 (print_operand): Renake to...
13097 (h8300_print_operand): ...this. Make static. Adjust comments.
13098 Call h8300_print_operand instead of print_operand. Declare.
13099 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
13100 (h8300_register_move_cost): Likewise.
13101 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
13102 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
13103 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
13104 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
13105 * config/h8300/h8300-protos.h (print_operand): Delete.
13106 (print_operand_address): Delete.
13107
13108 2011-04-01 Richard Henderson <rth@redhat.com>
13109
13110 PR 48400
13111 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
13112 in strict mode before dwarf4. Re-order tests to early out
13113 before switching sections.
13114
13115 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
13116
13117 * config/h8300/constraints.md: New file.
13118 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
13119 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
13120 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
13121 * config/h8300/predicates.md (bit_operand): Likewise.
13122 (incdec_operand): Use satisfies_constraint_M and
13123 satisfies_constraint_O. Don't use C code block.
13124 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
13125 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
13126 (compute_mov_length): Use satisfies_constraint_G.
13127 (fix_bit_operand): Use satisfies_constraint_U.
13128 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
13129 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
13130 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
13131 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
13132 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
13133 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
13134 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13135 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
13136 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
13137 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
13138 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
13139 (EXTRA_MEMORY_CONSTRAINT): Delete.
13140
13141 2011-04-01 Andrew Pinski <pinskia@gmail.com>
13142 Michael Meissner <meissner@linux.vnet.ibm.com>
13143
13144 PR target/48262
13145 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
13146 operands, as per the specifications.
13147
13148 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
13149 (vec_extract_evenv4sf): Ditto.
13150 (vec_extract_evenv8hi): Ditto.
13151 (vec_extract_evenv16qi): Ditto.
13152 (vec_extract_oddv4si): Ditto.
13153
13154 2011-03-31 Mark Wielaard <mjw@redhat.com>
13155
13156 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
13157 high_pc attribute if the CU has no associated code. Only output
13158 DW_AT_entry_pc for CU if not generating strict dwarf and
13159 dwarf_version < 4.
13160
13161 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
13162
13163 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
13164 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
13165 out of ...
13166 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
13167 * final.c (final_start_function): Call the new function rather
13168 than using a NULL argument for dwarf2out_frame_debug.
13169
13170 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
13171 that contains the prologue.
13172
13173 * haifa-sched.c (queue_insn): New arg REASON. All callers
13174 changed. Print it in debugging output.
13175
13176 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
13177
13178 * sched-ebb.c (begin_schedule_ready): Remove second argument.
13179 Split most of the code into...
13180 (begin_move_insn): ... here. New function.
13181 (ebb_sched_info): Add a pointer to it.
13182 * haifa-sched.c (scheduled_insns): New static variable.
13183 (sched_extend_ready_list): Allocate it.
13184 (schedule_block): Use it to record the order of scheduled insns.
13185 Perform RTL changes to move insns only after all scheduling
13186 decisions have been made.
13187 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
13188 begin_move_insn field.
13189 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
13190 * sched-int.h (struct haifa_sched_info): Remove second argument
13191 from begin_schedule_ready hook. Add new member begin_move_insn.
13192 * sched-rgn.c (begin_schedule_ready): Remove second argument.
13193 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
13194
13195 * haifa-sched.c (prune_ready_list): New function, broken out of
13196 schedule_block.
13197 (schedule_block): Use it.
13198
13199 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13200
13201 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
13202
13203 2011-04-01 Kai Tietz <ktietz@redhat.com>
13204
13205 * config.gcc (*-*-mingw*): Allow as option the
13206 posix threading model.
13207 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
13208 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
13209 definition.
13210 (CPP_SPEC): Add pthread/no-pthread handling.
13211 (LIB_SPEC): Likewise.
13212 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
13213 (LIB_SPEC): Likewise.
13214 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
13215 flag to pass -pthread option for shared libgcc build.
13216 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
13217 for shared libgcc build.
13218 * config/i386/t-mingw-pthread: New file.
13219 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
13220 New define to enable use of library pthread by default.
13221 * config/i386/mingw.opt (pthread): New driver option.
13222 (no-pthread): New driver option.
13223 * config/i386/cygming.opt: Make sure trailing empty line is retained.
13224 * config/i386/mingw-w64.opt: Likewise.
13225
13226 2011-04-01 Gary Funck <gary@intrepid.com>
13227
13228 * c-decl.c (grokdeclarator): Fix formatting.
13229
13230 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
13231
13232 * expr.c (emit_block_move_via_movmem): Use n_generator_args
13233 instead of n_operands.
13234 (set_storage_via_setmem): Likewise.
13235 * optabs.c (maybe_gen_insn): Likewise.
13236 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
13237 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
13238 (mips_expand_builtin_direct): Likewise.
13239 * config/spu/spu.c (expand_builtin_args): Likewise.
13240
13241 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
13242
13243 * recog.h (insn_data_d): Add n_generator_args.
13244 * genoutput.c (data): Likewise.
13245 (output_insn_data): Print it.
13246 (max_opno, num_dups): Delete.
13247 (scan_operands): Just fill in "d->operand[...]".
13248 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
13249
13250 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
13251
13252 * gensupport.h (pattern_stats): New structure.
13253 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
13254 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
13255 (max_operand_1, max_operand_vec): Delete.
13256 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
13257
13258 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
13259
13260 * emit-rtl.c (emit_pattern_after_setloc): New function.
13261 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
13262 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
13263 (emit_pattern_after): New function.
13264 (emit_insn_after, emit_jump_insn_after): Call it.
13265 (emit_call_insn_after, emit_debug_insn_after): Likewise.
13266 (emit_pattern_before_setloc): New function.
13267 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
13268 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
13269 Likewise.
13270 (emit_pattern_before): New function.
13271 (emit_insn_before, emit_jump_insn_before): Call it.
13272 (emit_call_insn_before, emit_debug_insn_before): Likewise.
13273
13274 2011-03-31 Richard Henderson <rth@redhat.com>
13275
13276 * dwarf2out.c (dw_separate_line_info_ref): Remove.
13277 (dw_separate_line_info_entry): Remove.
13278 (enum dw_line_info_opcode): New.
13279 (dw_line_info_entry): Use it.
13280 (dw_line_info_table, dw_line_info_table_p): New.
13281 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
13282 (line_info_table, line_info_label_num): Remove.
13283 (line_info_table_in_use): Remove.
13284 (separate_line_info_table): Remove.
13285 (separate_line_info_table_allocated): Remove.
13286 (separate_line_info_table_in_use): Remove.
13287 (LINE_INFO_TABLE_INCREMENT): Remove.
13288 (line_info_label_num): New.
13289 (cur_line_info_table): New.
13290 (text_section_line_info, cold_text_section_line_info): New.
13291 (separate_line_info): New.
13292 (SEPARATE_LINE_CODE_LABEL): Remove.
13293 (print_dwarf_line_table): Remove.
13294 (debug_dwarf): Don't dump it.
13295 (output_one_line_info_table): New.
13296 (output_line_info): Use it.
13297 (new_line_info_table): New.
13298 (set_cur_line_info_table): New.
13299 (dwarf2out_switch_text_section): Use it.
13300 (dwarf2out_begin_function): Likewise.
13301 (push_dw_line_info_entry): New.
13302 (dwarf2out_source_line): Rewrite for new line info tables.
13303 (dwarf2out_init): Remove dead initailizations.
13304
13305 2011-03-31 Joseph Myers <joseph@codesourcery.com>
13306
13307 * opts.h (cl_option): Add comments to fields. Add bit-fields for
13308 various flags.
13309 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
13310 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
13311 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
13312 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
13313 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
13314 * opt-functions.awk (flag_init, switch_bit_fields): New.
13315 (switch_flags): Don't handle flags moved to bit-fields. Don't
13316 generate CL_MISSING_OK or CL_SAVE.
13317 * optc-gen.awk: Update to generate bit-field output as well as
13318 flags field.
13319 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
13320 bit-field instead of CL_REJECT_DRIVER flag.
13321 * opts-common.c (generate_canonical_option,
13322 decode_cmdline_option): Use bit-fields instead of CL_* flags.
13323 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
13324 instead of CL_REJECT_NEGATIVE flag.
13325 * toplev.c (print_switch_values): Use cl_report bit-field instead
13326 of CL_REPORT flag.
13327
13328 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
13329
13330 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
13331 a zero minimum index only if it is redundant.
13332
13333 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
13334
13335 PR rtl-optimization/48381
13336 * ira-color.c (assign_hard_reg): Use hard reg set intersection
13337 instead of ira_class_hard_reg_index for calculating conflicting
13338 hard registers.
13339
13340 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
13341
13342 * cprop.c: Clean up hash table building.
13343 (reg_avail_info): Remove.
13344 (oprs_available_p): Remove.
13345 (record_last_reg_set_info): Remove.
13346 (record_last_set_info): Remove.
13347 (reg_available_p): New function.
13348 (gcse_constant_p): Do not treat unfolded conditions as constants.
13349 (make_set_regs_unavailable): New function.
13350 (hash_scan_set): Simplify with new reg_available_p.
13351 (compute_hash_table_work): Traverse insns stream only once.
13352 Do not compute reg_avail_info. Traverse insns in reverse order.
13353 Record implicit sets after recording explicit sets from the block.
13354
13355 2011-03-31 Michael Matz <matz@suse.de>
13356
13357 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
13358
13359 2011-03-31 Anatoly Sokolov <aesok@post.ru>
13360
13361 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
13362 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
13363 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13364 (h8300_mode_dependent_address_p): New function.
13365 (h8300_get_index): Make static.
13366
13367 2011-03-31 Jeff Law <law@redhat.com>
13368
13369 * reload1.c (elimination_effects): Fix typo in recent change.
13370
13371 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
13372 typo potentially leading to null pointer dereference.
13373
13374 * caller-save.c (new_saved_hard_reg): Eliminate return value.
13375 (setup_save_areas): Corresponding changes to avoid useless
13376 assignments.
13377
13378 * jump.c (reversed_comparison_code_parts): Avoid successive return
13379 statements when REVERSE_CONDITION is defined.
13380
13381 * expr.c (expand_assignment): Avoid useless assignments.
13382 (expand_expr_real_1): Likewise.
13383 (expand_expr_real_2): Avoid useless statements.
13384
13385 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
13386
13387 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
13388
13389 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
13390 statements.
13391
13392 * stmt.c (expand_expr_stmt): Avoid useless assignment.
13393
13394 2011-03-31 Joseph Myers <joseph@codesourcery.com>
13395
13396 PR target/47109
13397 * doc/tm.texi.in (TARGET_VERSION): Remove.
13398 * doc/tm.texi: Regenerate.
13399 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
13400 * collect2.c (main): Don't use TARGET_VERSION.
13401 * mips-tdump.c (main): Don't use TARGET_VERSION.
13402 * mips-tfile.c (main): Don't use TARGET_VERSION.
13403 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
13404 * config/rs6000/vxworksae.h: Remove.
13405 * config/alpha/alpha.h (TARGET_VERSION): Remove.
13406 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
13407 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
13408 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
13409 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
13410 * config/arm/arm.h (TARGET_VERSION): Remove.
13411 * config/arm/coff.h (TARGET_VERSION): Remove.
13412 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
13413 * config/arm/elf.h (TARGET_VERSION): Remove.
13414 * config/arm/freebsd.h (TARGET_VERSION): Remove.
13415 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
13416 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
13417 * config/arm/pe.h (TARGET_VERSION): Remove.
13418 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
13419 * config/arm/semi.h (TARGET_VERSION): Remove.
13420 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
13421 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
13422 * config/arm/vxworks.h (TARGET_VERSION): Remove.
13423 * config/avr/avr.h (TARGET_VERSION): Remove.
13424 * config/bfin/bfin.h (TARGET_VERSION): Remove.
13425 * config/fr30/fr30.h (TARGET_VERSION): Remove.
13426 * config/frv/frv.h (TARGET_VERSION): Remove.
13427 * config/h8300/h8300.h (TARGET_VERSION): Remove.
13428 * config/i386/cygwin.h (TARGET_VERSION): Remove.
13429 * config/i386/darwin.h (TARGET_VERSION): Remove.
13430 * config/i386/darwin64.h (TARGET_VERSION): Remove.
13431 * config/i386/djgpp.h (TARGET_VERSION): Remove.
13432 * config/i386/freebsd.h (TARGET_VERSION): Remove.
13433 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
13434 * config/i386/gnu.h (TARGET_VERSION): Remove.
13435 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
13436 * config/i386/i386elf.h (TARGET_VERSION): Remove.
13437 * config/i386/linux.h (TARGET_VERSION): Remove.
13438 * config/i386/linux64.h (TARGET_VERSION): Remove.
13439 * config/i386/lynx.h (TARGET_VERSION): Remove.
13440 * config/i386/mingw32.h (TARGET_VERSION): Remove.
13441 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
13442 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
13443 * config/i386/netware.h (TARGET_VERSION): Remove.
13444 * config/i386/nto.h (TARGET_VERSION): Remove.
13445 * config/i386/openbsd.h (TARGET_VERSION): Remove.
13446 * config/i386/vxworks.h (TARGET_VERSION): Remove.
13447 * config/ia64/elf.h (TARGET_VERSION): Remove.
13448 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
13449 * config/ia64/hpux.h (TARGET_VERSION): Remove.
13450 * config/ia64/linux.h (TARGET_VERSION): Remove.
13451 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
13452 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
13453 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
13454 * config/lm32/lm32.h (TARGET_VERSION): Remove.
13455 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
13456 * config/m32c/m32c.h (TARGET_VERSION): Remove.
13457 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
13458 * config/m32r/m32r.h (TARGET_VERSION): Remove.
13459 * config/m68k/linux.h (TARGET_VERSION): Remove.
13460 * config/m68k/m68k.h (TARGET_VERSION): Remove.
13461 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
13462 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
13463 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
13464 * config/mep/mep.h (TARGET_VERSION): Remove.
13465 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
13466 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
13467 * config/mips/iris6.h (MACHINE_TYPE): Remove.
13468 * config/mips/linux.h (TARGET_VERSION): Remove.
13469 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
13470 * config/mips/vxworks.h (TARGET_VERSION): Remove.
13471 * config/mmix/mmix.h (TARGET_VERSION): Remove.
13472 * config/mn10300/linux.h (TARGET_VERSION): Remove.
13473 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
13474 * config/pa/pa.h (TARGET_VERSION): Remove.
13475 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
13476 * config/picochip/picochip.h (TARGET_VERSION): Remove.
13477 * config/rs6000/aix.h (TARGET_VERSION): Remove.
13478 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
13479 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
13480 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
13481 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
13482 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
13483 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
13484 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
13485 * config/rs6000/linux.h (TARGET_VERSION): Remove.
13486 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
13487 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
13488 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
13489 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
13490 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
13491 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
13492 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
13493 * config/s390/linux.h (TARGET_VERSION): Remove.
13494 * config/s390/s390.h (TARGET_VERSION): Remove.
13495 * config/s390/tpf.h (TARGET_VERSION): Remove.
13496 * config/score/score.h (TARGET_VERSION): Remove.
13497 * config/sh/linux.h (TARGET_VERSION): Remove.
13498 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
13499 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
13500 * config/sh/sh.h (TARGET_VERSION): Remove.
13501 * config/sh/sh64.h (TARGET_VERSION): Remove.
13502 * config/sh/superh.h (TARGET_VERSION): Remove.
13503 * config/sh/vxworks.h (TARGET_VERSION): Remove.
13504 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
13505 * config/sparc/linux.h (TARGET_VERSION): Remove.
13506 * config/sparc/linux64.h (TARGET_VERSION): Remove.
13507 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
13508 TARGET_NAME32, TARGET_NAME): Remove.
13509 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
13510 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
13511 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
13512 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
13513 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
13514 * config/spu/spu.h (TARGET_VERSION): Remove.
13515 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
13516 * config/v850/v850.h (TARGET_VERSION): Remove.
13517 * config/vax/linux.h (TARGET_VERSION): Remove.
13518 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
13519 * config/xtensa/elf.h (TARGET_VERSION): Remove.
13520 * config/xtensa/linux.h (TARGET_VERSION): Remove.
13521
13522 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
13523
13524 PR target/48142
13525 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
13526 frame-related from frame-unrelated adjustments to the stack pointer.
13527
13528 2011-03-31 Jakub Jelinek <jakub@redhat.com>
13529
13530 * common.opt (fdebug-types-section): Move earlier.
13531 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
13532
13533 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
13534
13535 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
13536 var.
13537
13538 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
13539
13540 * tree.h (CASE_CHAIN): Define.
13541 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
13542 (gimple_redirect_edge_and_branch): Likewise.
13543
13544 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
13545
13546 PR middle-end/48367
13547 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
13548 calculation.
13549
13550 2011-03-30 Jeff Law <law@redhat.com>
13551
13552 * PR bootstrap/48371
13553 * reload1.c (reload): Fix botch in last change.
13554
13555 * reload.h (struct reload): Fix typo introduced in last change.
13556
13557 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13558
13559 * config/arm/arm.opt (mhard-float, msoft-float): Mark
13560 Undocumented. Remove help text.
13561 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
13562 -mhard-float.
13563
13564 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13565
13566 * doc/options.texi (NegativeAlias): Document.
13567 (Alias): Mention NegativeAlias.
13568 * opt-functions.awk: Handle NegativeAlias.
13569 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
13570 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
13571 * opts.h (CL_NEGATIVE_ALIAS): Define.
13572 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
13573 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
13574 OPT_mspe_.
13575 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
13576 Alias entries.
13577 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13578 mno-spe and mno-isel instead of mspe=no and -misel=no.
13579
13580 2011-03-29 Mark Wielaard <mjw@redhat.com>
13581
13582 * common.opt (fdebug-types-section): New flag.
13583 * doc/invoke.texi: Document new -fno-debug-types-section flag.
13584 * dwarf2out.c (use_debug_types): New define.
13585 (struct die_struct): Mark die_id with GTY desc use_debug_types.
13586 (print_die): Guard output of type unit signatures using
13587 use_debug_types.
13588 (build_abbrev_table): Replace assert of dwarf_version >= 4
13589 with assert on use_debug_types.
13590 (size_of_die): Likewise.
13591 (unmark_dies): Likewise.
13592 (value_format): Decide AT_ref_external form on use_debug_types.
13593 (output_die): Replace dwarf_version version check guard with
13594 use_debug_types where appropriate.
13595 (modified_type_die): Likewise.
13596 (gen_reference_type_die): Likewise.
13597 (dwarf2out_start_source_file): Likewise.
13598 (dwarf2out_end_source_file): Likewise.
13599 (prune_unused_types_walk_attribs): Likewise.
13600 (dwarf2out_finish): Likewise.
13601
13602 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
13603
13604 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
13605
13606 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13607
13608 PR rtl-optimization/48332
13609 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
13610 mode of input operand N and modeN to its actual mode.
13611
13612 2011-03-30 Jeff Law <law@redhat.com>
13613
13614 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
13615 define accessor macro.
13616 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
13617 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
13618 (reg_equiv_init): Likewise.
13619 (reg_equivs_size): New variable.
13620 (reg_equiv_init_size): Remove.
13621 (allocate_initial_values): Move prototype to here from....
13622 * integrate.h (allocate_initial_values): Remove prototype.
13623 * integrate.c: Include reload.h.
13624 (allocate_initial_values): Corresponding changes.
13625 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
13626 (fix_reg_equiv_init, no_equiv): Corresponding changes.
13627 (update_equiv_regs): Corresponding changes.
13628 (ira): Corresponding changes.
13629 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
13630 (push_secondary_reload): Corresponding changes.
13631 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
13632 (make_memloc, find_reloads_address): Corresponding changes.
13633 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
13634 (find_reloads_address_1): Corresponding changes.
13635 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
13636 (refers_to_regno_for_reload_p): Corresponding changes.
13637 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
13638 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
13639 * reload1.c: Include ggc.h.
13640 (grow_reg_equivs): New function.
13641 (replace_pseudos_in, reload): Corresponding changes.
13642 (calculate_needs_all_insns, alter_regs): Corresponding changes.
13643 (eliminate_regs_1, elimination_effects): Corresponding changes.
13644 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
13645 (delete_output_reload): Likewise.
13646 * caller-save.c (mark_referenced_regs): Corresponding changes.
13647 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
13648 * frv/predicates.md (frv_load_operand): Corresponding changes.
13649 * microblaze/microblaze.c (double_memory_operand): Corresponding
13650 changes.
13651 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
13652 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
13653 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
13654 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
13655 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
13656 changes.
13657 * pa/pa.c (emit_move_sequence): Corresponding changes.
13658 * vax/vax.c (nonindexed_address_p): Corresponding changes.
13659
13660 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13661
13662 PR target/47551
13663 * config/arm/arm.c (coproc_secondary_reload_class): Handle
13664 structure modes. Don't check neon_vector_mem_operand for
13665 vector or structure modes.
13666
13667 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13668 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13669
13670 PR target/43590
13671 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
13672 operand 1 and reshuffle the operands to match.
13673 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
13674
13675 2011-03-30 Christian Schüler <cschueler@gmx.de>
13676
13677 PR driver/48208
13678 * config/c.opt (F): Added 'Driver' to -F option.
13679
13680 PR driver/48260
13681 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
13682 handler function.
13683 * config/darwin.opt: Added '-arch' option.
13684
13685 2011-03-30 Nick Clifton <nickc@redhat.com>
13686
13687 * config/rx/rx.md: Add peepholes and patterns to combine
13688 extending loads and simple arithmetic instructions.
13689 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
13690 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
13691 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
13692 modes to use pre-decrement and post-increment addressing.
13693 (rx_is_restricted_memory_address): Add range checking of REG+INT
13694 addresses.
13695 (rx_print_operand): Add support for %Q. Fix handling of %Q.
13696 (rx_memory_move_cost): Adjust cost of stores.
13697 (rx_adjust_insn_length): New function.
13698
13699 2011-03-30 Jakub Jelinek <jakub@redhat.com>
13700
13701 PR c/48305
13702 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13703 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
13704 matching arg00/arg01 types.
13705
13706 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
13707
13708 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
13709 last_location to UNKNOWN_LOCATION.
13710
13711 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
13712
13713 PR target/48349
13714 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
13715 FLOAT_SSE_REGS.
13716
13717 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13718 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13719
13720 PR bootstrap/48337
13721 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
13722 Init(PROCESSOR_V7).
13723 (sparc_cpu): Likewise.
13724 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
13725 PROCESSOR_V7.
13726
13727 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13728
13729 PR target/48336
13730 PR middle-end/48342
13731 PR rtl-optimization/48345
13732 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
13733 hard regs for given mode from profitable regs when doing secondary
13734 allocation.
13735
13736 2011-03-29 Jeff Law <law@redhat.com>
13737
13738 PR bootstrap/48327
13739 * tree-ssa-threadupdate.c (struct redirection_data): Remove
13740 do_not_duplicate field.
13741 (lookup_redirection_data): Corresponding changes.
13742 (create_duplicates): Always create a template block.
13743 (redirect_edges): Remove code which reused the original block
13744 when it was going to become unreachable code.
13745 (thread_block): Don't set do_not_duplicate field.
13746
13747 2011-03-29 Joseph Myers <joseph@codesourcery.com>
13748
13749 * lto-opts.c (register_user_option_p, lto_register_user_option):
13750 Make type argument unsigned.
13751 * lto-streamer.h (lto_register_user_option): Make type argument
13752 unsigned.
13753 * opth-gen.awk: Make CL_* macros unsigned.
13754 * opts-common.c (find_opt): Make lang_mask argument unsigned.
13755 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
13756 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
13757 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
13758 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
13759 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
13760 (find_opt): Make lang_mask argument unsigned.
13761
13762 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13763
13764 PR rtl-optimization/48331
13765 PR rtl-optimization/48334
13766 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
13767 for any used algorithm.
13768
13769 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13770
13771 * ira-conflicts.c (build_object_conflicts): Add unused attribute
13772 to parent_max.
13773
13774 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
13775
13776 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
13777 (alpha_option_override): Don't set alpha_sr_alias_set.
13778 (emit_frame_store_1): Use gen_frame_mem rather than calling
13779 set_mem_alias_set.
13780 (alpha_expand_epilogue): Ditto.
13781
13782 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
13783
13784 PR tree-optimization/48290
13785 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
13786 vectorization, check that relevant phis in the basic block after
13787 the inner loop are really inner loop's exit phis.
13788
13789 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
13790
13791 PR debug/48190
13792 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
13793 (cached_dw_loc_list_def): New structure.
13794 (cached_dw_loc_list): New typedef.
13795 (cached_dw_loc_list_table): New variable.
13796 (cached_dw_loc_list_table_hash): New function.
13797 (cached_dw_loc_list_table_eq): Likewise.
13798 (add_location_or_const_value_attribute): Take a bool cache_p.
13799 Cache the list when the parameter is true.
13800 (gen_formal_parameter_die): Update caller.
13801 (gen_variable_die): Likewise.
13802 (dwarf2out_finish): Likewise.
13803 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
13804 while generating debug info for the decl.
13805 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
13806 (dwarf2out_init): Initialize cached_dw_loc_list_table.
13807 (resolve_addr): Cache the result of resolving a chain of
13808 location lists.
13809
13810 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
13811
13812 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
13813 conflict object hard regset nodes have intersecting hard reg sets.
13814
13815 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
13816 after regstat_init_n_sets_and_refs.
13817
13818 * ira.c: Add more comments at the top.
13819 (setup_stack_reg_pressure_class, setup_pressure_classes):
13820 Add comments how we compute the register pressure classes.
13821 (setup_allocno_and_important_classes): Add more comments.
13822 (setup_class_translate_array, reorder_important_classes)
13823 (setup_reg_class_relations): Add comments.
13824
13825 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
13826 start of the file.
13827
13828 * ira-color.c: Add 2011 to the Copyright line.
13829 (assign_hard_reg): Add more comments.
13830 (improve_allocation): Ditto.
13831
13832 * ira-costs.c: Add 2011 to the Copyright line.
13833 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
13834 comments.
13835 (setup_regno_cost_classes_by_mode): Ditto.
13836
13837 Initial patches from ira-improv branch:
13838
13839 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13840
13841 * ira-build.c (ira_create_object): Remove initialization of
13842 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
13843 (ira_create_allocno): Remove initialization of
13844 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
13845 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
13846 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13847 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
13848 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
13849 Initialize ALLOCNO_ADD_DATA.
13850 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
13851 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
13852 ALLOCNO_REG.
13853 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
13854 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
13855
13856 * ira.c (ira_reallocate): Remove.
13857 (setup_pressure_classes): Call
13858 ira_init_register_move_cost_if_necessary. Use
13859 ira_register_move_cost instead of ira_get_register_move_cost.
13860 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
13861 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
13862
13863 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
13864 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13865 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
13866 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
13867 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
13868 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
13869 Fix formatting.
13870 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
13871 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13872 (struct allocno_color_data): New.
13873 (allocno_color_data_t): New typedef.
13874 (allocno_color_data): New definition.
13875 (ALLOCNO_COLOR_DATA): New macro.
13876 (struct object_color_data): New.
13877 (object_color_data_t): New typedef.
13878 (object_color_data): New definition.
13879 (OBJECT_COLOR_DATA): New macro.
13880 (update_copy_costs, calculate_allocno_spill_cost): Call
13881 ira_init_register_move_cost_if_necessary. Use
13882 ira_register_move_cost instead of ira_get_register_move_cost.
13883 (move_spill_restore, update_curr_costs): Ditto.
13884 (allocno_spill_priority): Make it inline.
13885 (color_pass): Allocate and free allocno_color_dat and object_color_data.
13886 (struct coalesce_data, coalesce_data_t): New.
13887 (allocno_coalesce_data): New definition.
13888 (ALLOCNO_COALESCE_DATA): New macro.
13889 (merge_allocnos, coalesced_allocno_conflict_p): Use
13890 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
13891 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
13892 (coalesce_allocnos): Ditto.
13893 (setup_coalesced_allocno_costs_and_nums): Ditto.
13894 (collect_spilled_coalesced_allocnos): Ditto.
13895 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
13896 (setup_slot_coalesced_allocno_live_ranges): Ditto.
13897 (coalesce_spill_slots): Ditto.
13898 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
13899 free allocno_coalesce_data.
13900
13901 * ira-conflicts.c: Fix formatting.
13902 (process_regs_for_copy): Call
13903 ira_init_register_move_cost_if_necessary. Use
13904 ira_register_move_cost instead of ira_get_register_move_cost.
13905 (build_object_conflicts): Optimize.
13906
13907 * ira-costs.c (record_reg_classes): Optimize. Call
13908 ira_init_register_move_cost_if_necessary. Use
13909 ira_register_move_cost, ira_may_move_in_cost, and
13910 ira_may_move_out_cost instead of ira_get_register_move_cost and
13911 ira_get_may_move_cost.
13912 (record_address_regs): Ditto.
13913 (scan_one_insn): Optimize.
13914 (find_costs_and_classes): Optimize.
13915 (process_bb_node_for_hard_reg_moves): Call
13916 ira_init_register_move_cost_if_necessary. Use
13917 ira_register_move_cost instead of ira_get_register_move_cost.
13918
13919 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
13920 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
13921 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
13922 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
13923 definitions.
13924 (ira_initiate_emit_data, ira_finish_emit_data)
13925 (create_new_allocno): New functions.
13926 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
13927 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
13928 Use ira_register_move_cost instead of ira_get_register_move_cost.
13929
13930 * ira-int.h: Fix some comments.
13931 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
13932 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13933 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
13934 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
13935 add_data.
13936 (struct ira_allocno): Make mode and aclass a bitfield. Move other
13937 bitfield after mode. Make hard_regno a short int. Make
13938 hard_regno short. Remove first_coalesced_allocno and
13939 next_coalesced_allocno. Move mem_optimized_dest_p,
13940 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
13941 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
13942 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
13943 temp, colorable_p. Add new member add_data.
13944 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
13945 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
13946 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
13947 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
13948 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
13949 (ALLOCNO_ADD_DATA): New macro.
13950 (ira_emit_data_t): New typedef.
13951 (struct ira_emit_data): New. Move mem_optimized_dest_p,
13952 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
13953 from struct ira_allocno.
13954 (ALLOCNO_EMIT_DATA): New macro.
13955 (ira_allocno_emit_data, allocno_emit_reg): New.
13956 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
13957 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
13958 (OBJECT_ADD_DATA): New macro.
13959 (ira_reallocate): Remove.
13960 (ira_initiate_emit_data, ira_finish_emit_data): New.
13961 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
13962 (ira_init_register_move_cost_if_necessary): New.
13963 (ira_object_conflict_iter_next): Merge into
13964 ira_object_conflict_iter_cond.
13965 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
13966
13967 * ira-live.c (process_single_reg_class_operands): Call
13968 ira_init_register_move_cost_if_necessary. Use
13969 ira_register_move_cost instead of ira_get_register_move_cost.
13970
13971 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13972
13973 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
13974
13975 * ira-costs.c: Fix formatting.
13976 (cost_classes, cost_classes_num): Remove.
13977 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
13978 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
13979 (cost_classes_del, cost_classes_htab): New.
13980 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
13981 (initiate_regno_cost_classes, setup_cost_classes): New.
13982 (setup_regno_cost_classes_by_aclass): New.
13983 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
13984 (record_reg_classes): Use regno_cost_classes instead of
13985 cost_classes. Move checking opposite operand up.
13986 (record_address_regs): Use regno_cost_classes
13987 instead of cost_classes.
13988 (scan_one_insn): Ditto. Use always general register.
13989 (print_allocno_costs): Use regno_cost_classes instead of
13990 cost_classes.
13991 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
13992 (find_costs_and_classes): Set up cost classes for each registers.
13993 Use also their mode for this. Use regno_cost_classes instead of
13994 cost_classes.
13995 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
13996 cost_classes.
13997 (free_ira_costs, ira_init_costs): Don't use cost_classes.
13998 (ira_costs, ira_set_pseudo_classes): Call
13999 initiate_regno_cost_classes and finish_regno_cost_classes.
14000
14001 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
14002
14003 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
14004
14005 * target.def (ira_cover_classes): Remove.
14006
14007 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
14008
14009 * doc/tm.texi.in: Ditto.
14010
14011 * ira-conflicts.c: Remove mentioning cover classes from the file.
14012 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
14013 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
14014
14015 * targhooks.c (default_ira_cover_classes): Remove.
14016
14017 * targhooks.h (default_ira_cover_classes): Ditto.
14018
14019 * haifa-sched.c: Remove mentioning cover classes from the file.
14020 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
14021 ira_pressure_classes and ira_pressure_classes_num instead of
14022 ira_reg_class_cover_size and ira_reg_class_cover. Use
14023 sched_regno_pressure_class instead of sched_regno_cover_class.
14024 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
14025 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
14026
14027 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
14028 classes from the file.
14029 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
14030 (struct object_hard_regs, struct object_hard_regs_node): New.
14031 (struct ira_object): New members profitable_hard_regs,
14032 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
14033 (struct ira_allocno): Rename cover_class to aclass. Rename
14034 cover_class_cost and updated_cover_class_cost to class_cost and
14035 updated_class_cost. Remove splay_removed_p and
14036 left_conflict_size. Add new members colorable_p.
14037 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
14038 (ALLOCNO_COLORABLE_P): New macro.
14039 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
14040 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
14041 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
14042 (OBJECT_...): Rename parameter C to O.
14043 (OBJECT_PROFITABLE_HARD_REGS): New macro.
14044 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
14045 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
14046 (struct target_ira_int): New members x_ira_max_memory_move_cost,
14047 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
14048 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
14049 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
14050 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
14051 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
14052 x_ira_reg_class_subunion.
14053 (ira_max_memory_move_cost, ira_max_register_move_cost)
14054 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
14055 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
14056 (ira_important_class_nums, ira_reg_class_superunion): New macros.
14057 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
14058 (ira_reg_class_union): Rename to ira_reg_class_subunion.
14059 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
14060 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
14061 (ira_tune_allocno_costs_and_cover_classes): Rename to
14062 ira_tune_allocno_costs.
14063 (ira_debug_hard_regs_forest): New.
14064 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
14065 (ira_object_conflict_iter_next): Fix comments.
14066 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
14067 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
14068 cover_class to aclass.
14069 (ira_allocate_and_accumulate_costs): Ditto.
14070 (ira_allocate_and_set_or_copy_costs): Ditto.
14071
14072 * opts.c (decode_options): Remove ira_cover_class check.
14073
14074 * ira-color.c: Remove mentioning cover classes from the file. Use
14075 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
14076 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
14077 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
14078 (splay-tree.h): Remove include.
14079 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
14080 before copy_freq_compare_func.
14081 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
14082 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
14083 New definitions.
14084 (hard_regs_roots, hard_regs_node_vec): Ditto.
14085 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
14086 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
14087 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
14088 (create_new_object_hard_regs_node): Ditto.
14089 (add_new_object_hard_regs_node_to_forest): Ditto.
14090 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
14091 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
14092 Ditto.
14093 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
14094 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
14095 (remove_unused_object_hard_regs_nodes): Ditto.
14096 (enumerate_object_hard_regs_nodes): Ditto.
14097 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
14098 (object_hard_regs_subnode_t): Ditto.
14099 (struct object_hard_regs_subnode): Ditto.
14100 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
14101 (setup_object_hard_regs_subnode_index): Ditto.
14102 (get_object_hard_regs_subnodes_num): Ditto.
14103 (form_object_hard_regs_nodes_forest): Ditto.
14104 (finish_object_hard_regs_nodes_tree): Ditto.
14105 (finish_object_hard_regs_nodes_forest): Ditto.
14106 (allocnos_have_intersected_live_ranges_p): Rename to
14107 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
14108 (pseudos_have_intersected_live_ranges_p): Rename to
14109 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
14110 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
14111 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
14112 (update_copy_costs): Remove assert. Skip cost update if the hard
14113 reg does not belong the class.
14114 (assign_hard_reg): Process only profitable hard regs.
14115 (uncolorable_allocnos_num): Make it scalar.
14116 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
14117 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
14118 and ira_reg_class_max_nregs.
14119 (bucket_allocno_compare_func): Check frequency first.
14120 (sort_bucket): Add compare function as a parameter.
14121 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
14122 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
14123 (push_allocno_to_stack): Rewrite for checking new allocno
14124 colorability.
14125 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
14126 (push_only_colorable): Pass new parameter to sort_bucket.
14127 (push_allocno_to_spill): Remove.
14128 (allocno_spill_priority_compare): Make it inline and rewrite.
14129 (splay_tree_allocate, splay_tree_free): Remove.
14130 (allocno_spill_sort_compare): New function.
14131 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
14132 build and use splay tree. Choose first allocno in uncolorable
14133 allocno bucket to spill. Remove setting spill cost.
14134 (all_conflicting_hard_regs): Remove.
14135 (setup_allocno_available_regs_num): Check only profitable hard
14136 regs. Print info about hard regs nodes.
14137 (setup_allocno_left_conflicts_size): Remove.
14138 (put_allocno_into_bucket): Don't call
14139 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
14140 (improve_allocation): New.
14141 (color_allocnos): Call setup_profitable_hard_regs,
14142 form_object_hard_regs_nodes_forest, improve_allocation,
14143 finish_object_hard_regs_nodes_forest. Setup spill cost.
14144 (print_loop_title): Use pressure classes.
14145 (color_allocnso): Ditto.
14146 (do_coloring): Remove allocation and freeing splay_tree_node_pool
14147 and allocnos_for_spilling.
14148 (ira_sort_regnos_for_alter_reg): Don't setup members
14149 {first,next}_coalesced_allocno.
14150 (color): Remove allocating and freeing removed_splay_allocno_vec.
14151 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
14152 prohibited_class_mode_regs.
14153
14154 * ira-lives.c: Remove mentioning cover classes from the file. Fix
14155 formatting.
14156 (update_allocno_pressure_excess_length): Use pressure classes.
14157 (inc_register_pressure, dec_register_pressure): Check for pressure
14158 class.
14159 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
14160 pressure class. Use ira_reg_class_nregs instead of
14161 ira_reg_class_max_nregs.
14162 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
14163 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
14164 (single_reg_class): Use ira_reg_class_nregs instead of
14165 ira_reg_class_max_nregs.
14166 (process_bb_node_lives): Use pressure classes.
14167
14168 * ira-emit.c: Remove mentioning cover classes from the file. Use
14169 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
14170 (change_loop): Use pressure classes.
14171 (modify_move_list): Call ira_set_allocno_class instead of
14172 ira_set_allocno_cover_class.
14173
14174 * ira-build.c: Remove mentioning cover classes from the file. Use
14175 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
14176 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
14177 ALLOCNO_UPDATED_CLASS_COST instead of
14178 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
14179 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
14180 (ira_create_allocno): Remove initialization of
14181 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
14182 ALLOCNO_COLORABLE_P.
14183 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
14184 Update conflict regs for the objects.
14185 (create_cap_allocno): Remove assert. Don't propagate
14186 ALLOCNO_AVAILABLE_REGS_NUM.
14187 (ira_free_allocno_costs): New function.
14188 (finish_allocno): Change a part of code into call of
14189 ira_free_allocno_costs.
14190 (low_pressure_loop_node_p): Use pressure classes.
14191 (object_range_compare_func): Don't compare classes.
14192 (setup_min_max_conflict_allocno_ids): Ditto.
14193
14194 * loop-invariant.c: Remove mentioning cover classes from the file.
14195 Use ira_pressure_classes and ira_pressure_classes_num instead of
14196 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
14197 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
14198 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
14199 Use reg_allocno_class instead of reg_cover_class.
14200 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
14201 STACK_REG_COVER_CLASS.
14202 (get_regno_cover_class): Rename to get_regno_pressure_class.
14203 (move_loop_invariants): Initialize and finalize regstat.
14204
14205 * ira.c: Remove mentioning cover classes from the file. Add
14206 comments about coloring without cover classes. Use ALLOCNO_CLASS
14207 instead of ALLOCNO_COVER_CLASS. Fix formatting.
14208 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
14209 setup_class_subset_and_memory_move_costs.
14210 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
14211 (setup_cover_and_important_classes): Rename to
14212 setup_allocno_and_important_classes.
14213 (setup_class_translate_array): New.
14214 (setup_class_translate): Call it for allocno and pressure classes.
14215 (cover_class_order): Rename to allocno_class_order.
14216 (comp_reg_classes_func): Use ira_allocno_class_translate instead
14217 of ira_class_translate.
14218 (reorder_important_classes): Set up ira_important_class_nums.
14219 (setup_reg_class_relations): Set up ira_reg_class_superunion.
14220 (print_class_cover): Rename to print_classes. Add parameter.
14221 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
14222 Print pressure classes too.
14223 (find_reg_class_closure): Rename to find_reg_classes. Don't call
14224 setup_reg_subclasses.
14225 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
14226 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
14227 (setup_prohibited_class_mode_regs): Use
14228 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
14229 (clarify_prohibited_class_mode_regs): New function.
14230 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
14231 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
14232 (ira_init_once): Initialize them.
14233 (free_register_move_costs): Process them.
14234 (ira_init): Move calls of find_reg_classes and
14235 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
14236 Call clarify_prohibited_class_mode_regs.
14237 (ira_no_alloc_reg): Remove.
14238 (too_high_register_pressure_p): Use pressure classes.
14239
14240 * sched-deps.c: Remove mentioning cover classes from the file.
14241 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
14242 ira_pressure_classes and ira_pressure_classes_num instead of
14243 ira_reg_class_cover_size and ira_reg_class_cover.
14244 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
14245 sched_regno_pressure_class instead of sched_regno_cover_class.
14246 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
14247 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
14248
14249 * ira.h: Add 2010 to Copyright.
14250 (ira_no_alloc_reg): Remove external.
14251 (struct target_ira): Rename x_ira_hard_regno_cover_class,
14252 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
14253 x_ira_class_translate to x_ira_hard_regno_allocno_class,
14254 x_ira_allocno_classes_num, x_ira_allocno_classes, and
14255 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
14256 x_ira_pressure_classes, x_ira_pressure_class_translate, and
14257 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
14258 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
14259 x_ira_no_alloc_regs.
14260 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
14261 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
14262 ira_allocno_classes_num and ira_allocno_classes.
14263 (ira_class_translate): Rename to ira_allocno_class_translate.
14264 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
14265 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
14266 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
14267 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
14268 (ira_no_alloc_regs): New.
14269
14270 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
14271 classes from the file. Use ALLOCNO_CLASS instead of
14272 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
14273 ALLOCNO_COVER_CLASS_COST.
14274 (regno_cover_class): Rename to regno_aclass.
14275 (record_reg_classes): Use ira_reg_class_subunion instead of
14276 ira_reg_class_union.
14277 (record_address_regs): Check overflow.
14278 (scan_one_insn): Ditto.
14279 (print_allocno_costs): Print total mem cost fore regional allocation.
14280 (print_pseudo_costs): Use REG_N_REFS.
14281 (find_costs_and_classes): Use classes intersected with them on the
14282 1st pass. Check overflow. Use ira_reg_class_subunion instead of
14283 ira_reg_class_union. Use ira_allocno_class_translate and
14284 regno_aclass instead of ira_class_translate and regno_cover_class.
14285 Modify code for finding regno_aclass. Setup preferred classes for
14286 the next pass.
14287 (setup_allocno_cover_class_and_costs): Rename to
14288 setup_allocno_class_and_costs. Use regno_aclass instead of
14289 regno_cover_class. Use ira_set_allocno_class instead of
14290 ira_set_allocno_cover_class.
14291 (init_costs, finish_costs): Use regno_aclass instead of
14292 regno_cover_class.
14293 (ira_costs): Use setup_allocno_class_and_costs instead of
14294 setup_allocno_cover_class_and_costs.
14295 (ira_tune_allocno_costs_and_cover_classes): Rename to
14296 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
14297 by processing objects. Use ira_reg_class_max_nregs instead of
14298 ira_reg_class_nregs.
14299
14300 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
14301
14302 * sched-int.h: Remove mentioning cover classes from the file.
14303 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
14304
14305 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
14306 classes from the file.
14307 (struct reg_pref): Rename coverclass into allocnoclass.
14308 (reg_cover_class): Rename to reg_allocno_class.
14309
14310 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
14311
14312 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
14313
14314 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
14315
14316 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
14317
14318 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
14319
14320 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
14321
14322 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
14323
14324 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
14325
14326 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
14327
14328 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
14329
14330 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
14331 (i386_ira_cover_classes): Ditto.
14332
14333 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
14334
14335 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
14336
14337 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
14338
14339 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
14340
14341 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
14342
14343 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
14344
14345 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
14346 (mips_ira_cover_classes): Ditto.
14347
14348 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
14349
14350 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
14351
14352 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
14353
14354 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
14355
14356 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
14357
14358 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
14359 (IRA_COVER_CLASSES_VSX): Ditto.
14360
14361 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
14362 (rs6000_ira_cover_classes): Ditto.
14363
14364 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
14365
14366 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
14367
14368 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
14369
14370 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
14371
14372 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
14373
14374 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
14375
14376 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
14377
14378 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
14379
14380 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
14381
14382 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
14383
14384 2011-03-29 Jakub Jelinek <jakub@redhat.com>
14385
14386 PR debug/48253
14387 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
14388 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
14389 dw_fde_unlikely_section_end_label, cold_in_std_section,
14390 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
14391 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
14392 fields.
14393 (output_fde): Use dw_fde_second_{begin,end} if second is
14394 true, otherwise dw_fde_{begin,end}.
14395 (output_call_frame_info): Test dw_fde_second_begin != NULL
14396 instead of dw_fde_switched_sections.
14397 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
14398 fields, initialize new fields. Initialize in_std_section
14399 unconditionally from the first partition.
14400 (dwarf2out_end_epilogue): Don't override dw_fde_end when
14401 dw_fde_second_begin is non-NULL.
14402 (dwarf2out_switch_text_section): Stop initializing removed
14403 dw_fde_struct fields, initialize new fields, initialize
14404 also dw_fde_end here. Set dw_fde_switch_cfi even when
14405 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
14406 (struct var_loc_list_def): Add last_before_switch field.
14407 (arange_table, arange_table_allocated, arange_table_in_use,
14408 ARANGE_TABLE_INCREMENT, add_arange): Removed.
14409 (size_of_aranges): Count !in_std_section and !second_in_std_section
14410 hunks in fdes, instead of looking at arange_table_in_use.
14411 (output_aranges): Add aranges_length argument, don't call
14412 size_of_aranges here. Instead of using aranges_table*
14413 emit ranges for fdes when !in_std_section resp.
14414 !second_in_std_section.
14415 (dw_loc_list): Break ranges crossing section switch.
14416 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
14417 use dw_fde_second_end instead of dw_fde_end as end of last range.
14418 (gen_subprogram_die): Don't call add_arange. Use
14419 dw_fde_{begin,end} for first partition and if switched
14420 section dw_fde_second_{begin,end} for the second.
14421 (var_location_switch_text_section_1,
14422 var_location_switch_text_section): New functions.
14423 (dwarf2out_begin_function): Initialize cold_text_section even
14424 when function_section () isn't text_section.
14425 (prune_unused_types): Don't walk arange_table.
14426 (dwarf2out_finish): Don't needlessly test
14427 flag_reorder_blocks_and_partition when testing cold_text_section_used.
14428 If info_section_emitted, call size_of_aranges and if it indicates
14429 non-empty .debug_aranges, call output_aranges with the computed
14430 size. Stop using removed dw_fde_struct fields, use
14431 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
14432 for second.
14433
14434 PR debug/48203
14435 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
14436 create ENTRY_VALUE if incoming or address of incoming's MEM
14437 is a hard REG.
14438 * dwarf2out.c (mem_loc_descriptor): Don't emit
14439 DW_OP_GNU_entry_value of DW_OP_fbreg.
14440 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
14441 on ENTRY_VALUE is able to find the canonical parameter VALUE.
14442 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
14443 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
14444 ENTRY_VALUE_EXPs.
14445 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
14446 is a REG_P or MEM_P with REG_P address, compute hash directly
14447 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
14448 (preserve_only_constants): Don't clear VALUES forwaring
14449 ENTRY_VALUE to some other VALUE.
14450
14451 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
14452
14453 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
14454 instead of GEN_INT.
14455
14456 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
14457
14458 * cfgexpand.c (expand_gimple_cond): Always set the source location and
14459 block before expanding the statement.
14460 (expand_gimple_stmt_1): Likewise. Set them here...
14461 (expand_gimple_stmt): ...and not here. Tidy.
14462 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
14463 unknown.
14464
14465 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
14466
14467 * Makefile.in: New rule for cprop.o.
14468 * gcse.c: Move constant/copy propagation to cprop.c.
14469 (compute_local_properties): Only handle expression tables.
14470 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
14471 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
14472 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
14473 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
14474 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
14475 compute_cprop_data, find_used_regs, try_replace_reg,
14476 find_avail_set, cprop_jump, constprop_register, cprop_insn,
14477 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
14478 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
14479 find_bypass_set, reg_killed_on_edge, bypass_block,
14480 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
14481 execute_rtl_cprop, pass_rtl_cprop): Move to...
14482 * cprop.c: ...here. New file, constant/copy propagation for RTL
14483 moved from gcse.c to here with minor cleanups in duplicated code.
14484
14485 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
14486
14487 * config/i386/i386.c (flag_opts): Fix a typo in
14488 -mavx256-split-unaligned-store.
14489
14490 2011-03-28 Anatoly Sokolov <aesok@post.ru>
14491
14492 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14493 LIBCALL_VALUE): Remove macros.
14494 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14495 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14496 (h8300_function_value, h8300_libcall_value,
14497 h8300_function_value_regno_p): New functions.
14498
14499 2011-03-28 Anatoly Sokolov <aesok@post.ru>
14500
14501 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
14502
14503 2011-03-28 Jeff Law <law@redhat.com>
14504
14505 * tree-ssa-threadupdate.c (redirect_edges): Call
14506 create_edge_and_update_destination_phis as needed.
14507 (create_edge_and_update_destination_phis): Accept new BB argument.
14508 All callers updated.
14509 (thread_block): Do not update the profile when threading around
14510 intermediate blocks.
14511 (thread_single_edge): Likewise.
14512 (determine_bb_domination_status): If BB is not a successor of the
14513 loop header, return NONDOMINATING.
14514 (register_jump_thread): Note when we register a jump thread around
14515 an intermediate block.
14516 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
14517 (thread_across_edge): Use it.
14518
14519 2011-03-28 Tristan Gingold <gingold@adacore.com>
14520
14521 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
14522 when for_return is 2.
14523
14524 2011-03-28 Jeff Law <law@redhat.com>
14525
14526 * var-tracking.c (canonicalize_values_mark): Delete unused
14527 lhs assignment.
14528 (canonicalize_values_star, set_variable_part): Likewise.
14529 (clobber_variable_part, delete_variable_part): Likewise.
14530
14531 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
14532
14533 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
14534
14535 2011-03-28 Martin Jambor <mjambor@suse.cz>
14536
14537 * tree-inline.c (expand_call_inline): Do not check that destination
14538 node is analyzed.
14539 (optimize_inline_calls): Assert that destination node is analyzed.
14540 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
14541 not call tree_lowering_passes.
14542 * cgraph.h (cgraph_analyze_function): Declare.
14543 * cgraphunit.c (cgraph_analyze_function): Make public.
14544
14545 2011-03-28 Joseph Myers <joseph@codesourcery.com>
14546
14547 * config/sparc/sparc-opts.h: New.
14548 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
14549 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
14550 (sparc_option_override): Store processor_type enumeration rather
14551 than string in cpu_default. Remove name and enumeration from
14552 cpu_table. Directly default -mcpu then default -mtune from -mcpu
14553 without using sparc_select. Use target_flags_explicit instead of
14554 fpu_option_set.
14555 * config/sparc/sparc.h (enum processor_type): Move to
14556 sparc-opts.h.
14557 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
14558 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
14559 HeaderInclude entry.
14560 (mcpu=, mtune=): Use Var and Enum.
14561 (sparc_processor_type): New Enum and EnumValue entries.
14562
14563 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14564 Iain Sandoe <iains@gcc.gnu.org>
14565
14566 PR target/48245
14567 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
14568
14569 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
14570
14571 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
14572 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
14573 Insert new statements at it in lieu of STMT.
14574 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
14575 * tree-vect-stmts.c (vectorizable_store): Likewise.
14576 (vectorizable_load): Likewise.
14577
14578 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
14579
14580 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
14581 (divtf3): Ditto.
14582 (multf3): Ditto.
14583 (subtf3): Ditto.
14584
14585 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
14586
14587 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
14588 unaligned 256bit load/store.
14589 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
14590 (*avx_movdqu<avxmodesuffix>): Likewise.
14591
14592 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14593
14594 PR target/48288
14595 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
14596 * config/pa/pa.md (iordi3): Use new predicate in expander.
14597 (iorsi3): Likewise.
14598
14599 2011-03-27 Anatoly Sokolov <aesok@post.ru>
14600
14601 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
14602 FUNCTION_VALUE_REGNO_P): Remove macros.
14603 * config/mips/mips-protos.h (mips_function_value): Remove.
14604 * config/mips/mips.c (mips_function_value): Rename to...
14605 (mips_function_value_1): ... this. Make static. Handle receiving
14606 the function type in 'fn_decl_or_type' argument.
14607 (mips_function_value, mips_libcall_value,
14608 mips_function_value_regno_p): New function.
14609 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14610 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14611
14612 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
14613
14614 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
14615 and -mavx256-split-unaligned-store.
14616 (ix86_option_override_internal): Split 32-byte AVX unaligned
14617 load/store by default.
14618 (ix86_avx256_split_vector_move_misalign): New.
14619 (ix86_expand_vector_move_misalign): Use it.
14620
14621 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
14622 -mavx256-split-unaligned-store.
14623
14624 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
14625 256bit load/store. Generate unaligned store on misaligned memory
14626 operand.
14627 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
14628 256bit load/store.
14629 (*avx_movdqu<avxmodesuffix>): Likewise.
14630
14631 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
14632 -mavx256-split-unaligned-store.
14633
14634 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
14635
14636 PR target/38598
14637 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
14638 Update commentary.
14639
14640 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
14641
14642 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
14643 opno arguments with an expand_operand. Use create_input_operand.
14644 (mips_prepare_builtin_target): Delete.
14645 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
14646 functions.
14647 (mips_expand_builtin_direct): Use create_output_operand and
14648 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
14649 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
14650 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
14651
14652 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
14653
14654 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
14655 function.
14656 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
14657
14658 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14659
14660 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
14661 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
14662 basic blocks and call commit_edge_insertions directly.
14663 (fixup_abnormal_edges): Move from here to...
14664 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
14665 on the edges and return whether some have actually been inserted.
14666 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
14667 compensation code.
14668
14669 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
14670
14671 PR rtl-optimization/48144
14672 * sel-sched-ir.c (merge_history_vect): Factor out from ...
14673 (merge_expr_data): ... here.
14674 (av_set_intersect): Rename to av_set_code_motion_filter.
14675 Update all callers. Call merge_history_vect when an expression
14676 is found in both sets.
14677 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
14678
14679 2011-03-26 Alan Modra <amodra@gmail.com>
14680
14681 * config/rs6000/predicates.md (word_offset_memref_op): Handle
14682 cmodel medium addresses.
14683 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
14684 64-bit gpr loads and stores.
14685 (rs6000_secondary_reload_ppc64): New function.
14686 * config/rs6000/rs6000-protos.h: Declare it.
14687 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
14688
14689 2011-03-26 Alan Modra <amodra@gmail.com>
14690
14691 PR target/47487
14692 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
14693 GNU Go in traceback table.
14694
14695 2011-03-25 Richard Henderson <rth@redhat.com>
14696
14697 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
14698 if there are exactly 6 operands.
14699 (set_storage_via_setmem): Similarly.
14700
14701 2011-03-25 Kai Tietz <ktietz@redhat.com>
14702
14703 * collect2.c (write_c_file_stat): Handle backslash
14704 as right-hand directory separator.
14705 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
14706 checking just for slash.
14707 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
14708 instead of checking for trailing slash.
14709 * gcc.c (record_temp_file): Use filename_cmp instead
14710 of strcmp.
14711 (do_spec_1): Likewise.
14712 (replace_outfile_spec_function): Likewise.
14713 (is_directory): Use filename_ncmp instead of strncmp.
14714 (print_multilib_info): Likewise.
14715 * gcov.c (find_source): Use filename_cmp instead
14716 instead of strcmp.
14717 (make_gcov_file_name): Fix order of slash/backslash
14718 checks.
14719 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
14720 (add_standard_paths): Likewise.
14721 * mips-tfile.c (saber_stop): Handle backslash.
14722 * prefix.c (update_path): Use filename_ncmp instead of
14723 strncmp.
14724 * profile.c (output_location): Use filename_cmp instead
14725 of strcmp.
14726 * read-md.c (handle_toplevel_file): Handle backslash.
14727 * tlink.c (frob_extension): Likewise.
14728 * tree-cfg.c (same_line_p): Use filename_cmp instead of
14729 strcmp.
14730 * tree-dump.c (dequeue_and_dump): Handle backslash.
14731 * tree.c (get_file_function_name): Likewise.
14732 * gengtype.c (read_input_list): Likewise.
14733 (get_file_realbasename): Likewise.
14734 (get_output_file_with_visibility): Use filename_cmp
14735 instead of strcmp.
14736
14737 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
14738
14739 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
14740 case to VFPv1.
14741
14742 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14743
14744 * fold-const.c (expr_location_or): New function.
14745 (fold_truth_not_expr): Call it.
14746
14747 2011-03-25 Jeff Law <law@redhat.com>
14748
14749 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
14750 va_end.
14751 * c-family/c-common.c (def_fn_type): Likewise.
14752 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
14753 * emit-rtl.c (gen_rtvec): Likewise.
14754 * lto/lto-lang.c (def_fn_type): Likewise.
14755
14756 2011-03-25 Richard Guenther <rguenther@suse.de>
14757
14758 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
14759 also generate copies.
14760 (fini_copy_prop): Handle constant values properly.
14761
14762 2011-03-25 Jakub Jelinek <jakub@redhat.com>
14763
14764 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
14765 mode size instead of bitsize with DWARF2_ADDR_SIZE.
14766 (hash_loc_operands, compare_loc_operands): Handle
14767 DW_OP_GNU_entry_value.
14768
14769 2011-03-25 Kai Tietz <ktietz@redhat.com>
14770
14771 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
14772 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
14773 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
14774 comment and use macro TARGET_64BIT_MS_ABI instead.
14775 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
14776 and change default behavior for 32-bit MS_ABI.
14777 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
14778 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
14779 32-bit, too.
14780 (ix86_cfun_abi): Likewise.
14781 (ix86_maybe_switch_abi): Adjust comment.
14782 (init_cumulative_args): Check for bit-ness in MS_ABI case.
14783 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
14784 instead of checking for SYSV_ABI.
14785 (ix86_nsaved_sseregs): Likewise.
14786 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
14787 to 16 bytes.
14788 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
14789 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
14790 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
14791 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
14792 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
14793
14794 2011-03-25 Richard Guenther <rguenther@suse.de>
14795
14796 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
14797 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14798 (verify_gimple): Remove.
14799 * tree-cfg.c (verify_gimple_call): Merge verification
14800 from verify_stmts.
14801 (verify_gimple_phi): Merge verification from verify_stmts.
14802 (verify_gimple_label): New function.
14803 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
14804 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14805 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
14806 (verify_stmts): Rename to verify_gimple_in_cfg.
14807 (verify_gimple_in_cfg): New function.
14808 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
14809 * tree-ssa.c (verify_ssa): Likewise.
14810 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
14811
14812 2011-03-25 Richard Guenther <rguenther@suse.de>
14813
14814 * passes.c (init_optimization_passes): Add FRE pass after
14815 early SRA.
14816
14817 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
14818 Andrew Stubbs <ams@codesourcery.com>
14819
14820 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
14821 for Cortex-A8.
14822 (arm_movdi_vfp_cortexa8): New pattern.
14823 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
14824 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
14825 instructions when tuning for Cortex-A8. Set attribute "arch".
14826 * config/arm/arm.md: Move include arm-tune.md up a bit.
14827 (define_attr "arch"): Add "onlya8" and "nota8" values.
14828 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
14829
14830 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14831
14832 PR bootstrap/48282
14833 Revert:
14834 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14835
14836 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14837 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14838 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14839 * passes.c (init_optimization_passes): Move
14840 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14841
14842 2011-03-25 Kai Tietz <ktietz@redhat.com>
14843
14844 * c-typeck.c (comptypes_internal): Replace target
14845 hook call of comp_type_attributes by version in tree.c file.
14846 * gimple.c (gimple_types_compatible_p_1): Likewise.
14847 * tree-ssa.c (useless_type_conversion_p): Likewise.
14848 * tree.c (build_type_attribute_qual_variant): Likewise.
14849 (attribute_value_equal): New static helper function.
14850 (comp_type_attributes): New function.
14851 (merge_attributes): Use attribute_value_equal for comparison.
14852 (attribute_list_contained): Likewise.
14853 * tree.h (comp_type_attributes): New prototype.
14854
14855 2011-03-25 Richard Guenther <rguenther@suse.de>
14856
14857 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
14858 of complex types at -O0.
14859 (verify_gimple_assign_binary): Likewise.
14860 (verify_gimple_assign_ternary): Likewise.
14861
14862 2011-03-24 Mark Wielaard <mjw@redhat.com>
14863
14864 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
14865 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
14866
14867 2011-03-24 Mark Wielaard <mjw@redhat.com>
14868
14869 PR debug/48041
14870 * dwarf2out.c (output_abbrev_section): Only write table when
14871 abbrev_die_table_in_use > 1.
14872
14873 2011-02-24 Richard Henderson <rth@redhat.com>
14874
14875 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
14876 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
14877 (alpha_expand_unaligned_load_words): Use extql.
14878 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
14879 (emit_insxl): Handle all modes for consistency.
14880
14881 2011-02-24 Richard Henderson <rth@redhat.com>
14882
14883 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
14884 (alpha_expand_unaligned_load): Likewise.
14885 (alpha_expand_unaligned_store): Likewise.
14886 (alpha_expand_unaligned_load_words): Likewise.
14887 (alpha_expand_unaligned_store_words): Likewise.
14888 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
14889 (alpha_split_lock_test_and_set_12): Likewise.
14890 (print_operand, alpha_fold_builtin_extxx): Likewise.
14891 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
14892 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
14893 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
14894 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
14895 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
14896 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
14897 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
14898 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
14899 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
14900 (extwl, extll, extql): Similarly.
14901 (inswh, inslh, insqh): Similarly.
14902 (mskbl, mskwl, mskll, mskql): Similarly.
14903 (mskwh, msklh, mskqh): Similarly.
14904
14905 2011-02-24 Richard Henderson <rth@redhat.com>
14906
14907 * config/alpha/alpha.md (attribute isa): Add er, ner.
14908 (attribute enabled): Handle them.
14909 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
14910
14911 2011-02-24 Richard Henderson <rth@redhat.com>
14912
14913 * config/alpha/alpha.md (attribute isa): Add vms.
14914 (attribute enabled): Handle it.
14915 (*movsf): Merge *movsf_{nofix,fix,nofp}.
14916 (*movdf): Merge *movdf_{nofix,fix,nofp}.
14917 (*movtf): Rename from *movtf_internal for consistency.
14918 (*movsi): Merge with *movsi_nt_vms.
14919 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
14920 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
14921 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
14922 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
14923
14924 2011-02-24 Richard Henderson <rth@redhat.com>
14925
14926 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
14927 (extendqisi2, extendhisi2): Likewise.
14928 (extendqidi2): Simplify BWX/non-BWX expansions.
14929 (extendhidi2): Similarly.
14930
14931 2011-02-24 Richard Henderson <rth@redhat.com>
14932
14933 * config/alpha/alpha.md (attribute isa): New.
14934 (attribute enabled): New.
14935 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
14936 (zero_extendqisi2, zero_extendqidi2): Similarly.
14937 (zero_extendhisi2, zero_extendhidi2): Similarly.
14938 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
14939
14940 2011-02-24 Richard Henderson <rth@redhat.com>
14941
14942 * config/alpha/predicates.md (input_operand): Revert last change;
14943 update comment to mention 32-bit VMS rather than Windows.
14944
14945 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14946
14947 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14948 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14949 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14950 * passes.c (init_optimization_passes): Move
14951 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14952
14953 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14954
14955 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
14956
14957 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
14958
14959 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
14960 correctly.
14961
14962 2011-03-24 Jakub Jelinek <jakub@redhat.com>
14963
14964 PR debug/48204
14965 * simplify-rtx.c (simplify_const_unary_operation): Call
14966 real_convert when changing mode class with FLOAT_EXTEND.
14967
14968 2011-03-24 Nick Clifton <nickc@redhat.com>
14969
14970 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
14971 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14972 * config/rx/rx.c (rx_option_override): Set align_jumps,
14973 align_loops and align_labels if not set by the user.
14974 (rx_align_for_label): New function.
14975 (rx_max_skip_for_label): New function.
14976 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
14977 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
14978 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
14979 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
14980 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
14981
14982 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14983
14984 PR rtl-optimization/48263
14985 * optabs.c (expand_binop_directly): Reinstate convert_modes code
14986 and original commutative_p handling. Use maybe_gen_insn.
14987
14988 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14989
14990 * reload.c (find_reloads_subreg_address): Add address_reloaded
14991 parameter and return true there if the full address has been
14992 reloaded.
14993 (find_reloads_toplev): Pass address_reloaded flag.
14994 (find_reloads_address_1): Don't use address_reloaded parameter.
14995
14996 2011-03-24 Jeff Law <law@redhat.com>
14997
14998 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
14999 unused variable "ann".
15000 (remove_unused_locals): Likewise.
15001
15002 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
15003 statement.
15004
15005 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
15006 after it is freed.
15007
15008 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15009
15010 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
15011 for invalid symbolic addresses.
15012 (s390_secondary_reload): Don't use s390_check_symref_alignment for
15013 larl operands.
15014
15015 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
15016
15017 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
15018 the argument in calls to fold_truth_not_expr.
15019
15020 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
15021
15022 * tree.c (record_node_allocation_statistics): New function.
15023 (make_node_stat, copy_node_stat, build_string): Call it.
15024 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
15025 (build1_stat, build_omp_clause): Likewise.
15026
15027 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
15028
15029 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
15030 last commit.
15031
15032 2011-03-24 Richard Guenther <rguenther@suse.de>
15033
15034 PR tree-optimization/48271
15035 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
15036 blocks that still exist.
15037
15038 2011-03-24 Richard Guenther <rguenther@suse.de>
15039
15040 PR tree-optimization/48270
15041 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
15042 not free datarefs before ddrs.
15043
15044 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
15045
15046 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
15047 from the address built for a reference with variable offset.
15048
15049 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
15050
15051 PR target/48237
15052 * config/i386/i386.md (*movdf_internal_rex64): Do not split
15053 alternatives that can be handled with movq or movabsq insn.
15054 (*movdf_internal): Disable for !TARGET_64BIT.
15055 (*movdf_internal_nointeger): Ditto.
15056 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
15057
15058 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
15059
15060 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
15061 (FUNCTION_ARG_ADVANCE): Likewise.
15062 * tm.texi.in: Change references to them to hook references.
15063 * tm.texi: Regenerate.
15064 * targhooks.c (default_function_arg): Eliminate check for target macro.
15065 (default_function_incoming_arg): Likewise.
15066 (default_function_arg_advance): Likewise.
15067 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
15068 (function_arg_advance): Likewise.
15069 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
15070
15071 2011-03-24 Richard Guenther <rguenther@suse.de>
15072
15073 PR middle-end/48269
15074 * tree-object-size.c (addr_object_size): Do not double-account
15075 for MEM_REF offsets.
15076
15077 2011-03-24 Diego Novillo <dnovillo@google.com>
15078
15079 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
15080 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
15081 (lto_input_data_block): Move from lto-opts.c. Make extern.
15082 Update all users.
15083 (lto_input_string): Rename from input_string. Make extern.
15084 Update all users.
15085 * lto-streamer-out.c (lto_output_string_with_length): Rename from
15086 output_string_with_length.
15087 Output 0 to indicate a non-NULL string. Update all callers to
15088 not emit 0.
15089 (lto_output_string): Rename from output_string. Make extern.
15090 Update all users.
15091 (lto_output_decl_state_streams): Make extern.
15092 (lto_output_decl_state_refs): Make extern.
15093 * lto-streamer.h (lto_input_string): Declare.
15094 (lto_input_data_block): Declare.
15095 (lto_output_string): Declare.
15096 (lto_output_string_with_length): Declare.
15097 (lto_output_decl_state_streams): Declare.
15098 (lto_output_decl_state_refs): Declare.
15099
15100 2011-03-24 Richard Guenther <rguenther@suse.de>
15101
15102 PR tree-optimization/46562
15103 * tree.c (build_invariant_address): New function.
15104 * tree.h (build_invariant_address): Declare.
15105 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
15106 a renamed function moved ...
15107 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
15108 Take valueization callback parameter.
15109 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
15110 * gimple-fold.h: New file.
15111 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
15112 (ccp_fold, fold_const_aggregate_ref,
15113 fold_ctor_reference, fold_nonarray_ctor_reference,
15114 fold_array_ctor_reference, fold_string_cst_ctor_reference,
15115 get_base_constructor): Move ...
15116 * gimple-fold.c: ... here.
15117 (gimple_fold_stmt_to_constant_1): New function
15118 split out from ccp_fold. Take a valueization callback parameter.
15119 Valueize all operands.
15120 (gimple_fold_stmt_to_constant): New wrapper function.
15121 (fold_const_aggregate_ref_1): New function split out from
15122 fold_const_aggregate_ref. Take a valueization callback parameter.
15123 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
15124 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
15125 invariant POINTER_PLUS_EXPRs to invariant form.
15126 (vn_valueize): New function.
15127 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
15128 * tree-vrp.c (vrp_valueize): New function.
15129 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
15130 to fold statements to constants.
15131 * tree-ssa-pre.c (eliminate): Properly guard propagation of
15132 function declarations.
15133 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
15134 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
15135
15136 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
15137
15138 * config/h8300/predicates.md (jump_address_operand): Fix register
15139 mode check.
15140
15141 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
15142
15143 * doc/invoke.texi (max-stores-to-sink): Document.
15144 * params.h (MAX_STORES_TO_SINK): Define.
15145 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
15146 if either vectorization or if-conversion is disabled.
15147 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
15148 tree-vect-data-refs.c vect_equal_offsets.
15149 (dr_equal_offsets_p): New function.
15150 (find_data_references_in_bb): Remove static.
15151 * tree-data-ref.h (find_data_references_in_bb): Declare.
15152 (dr_equal_offsets_p): Likewise.
15153 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
15154 (vect_drs_dependent_in_basic_block): Update calls to
15155 vect_equal_offsets.
15156 (vect_check_interleaving): Likewise.
15157 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
15158 (cond_if_else_store_replacement): Rename to...
15159 (cond_if_else_store_replacement_1): ... this. Change arguments and
15160 documentation.
15161 (cond_if_else_store_replacement): New function.
15162 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
15163 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
15164
15165 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
15166
15167 PR target/46934
15168 * config/arm/arm.md (casesi): Use the gen_int_mode() function
15169 to subtract lower bound instead of GEN_INT().
15170
15171 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
15172
15173 PR other/48179
15174 PR other/48221
15175 PR other/48234
15176 * doc/extend.texi (Alignment): Move section to match order in TOC.
15177 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
15178 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
15179
15180 2011-03-23 Jeff Law <law@redhat.com>
15181
15182 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
15183 before removing the edge.
15184
15185 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
15186 it may have been freed by redirect_branch_edge or
15187 redirect_edge_succ_nodup.
15188
15189 2011-03-23 Richard Guenther <rguenther@suse.de>
15190
15191 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
15192 (check_va_list_escapes): Likewise.
15193 (check_all_va_list_escapes): Likewise.
15194
15195 2011-03-23 Richard Guenther <rguenther@suse.de>
15196
15197 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
15198 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
15199 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
15200 (alias.o): Likewise.
15201 (ipa-type-escape.o): Remove.
15202 (ipa-struct-reorg.o): Likewise.
15203 (GTFILES): Remove ipa-struct-reorg.c.
15204 * alias.c: Do not include ipa-type-escape.h.
15205 * tree-ssa-alias.c: Likewise.
15206 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
15207 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
15208 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
15209 and ipa-type-escape passes.
15210 * tree-pass.h (pass_ipa_type_escape): Remove.
15211 (pass_ipa_struct_reorg): Likewise.
15212 * ipa-struct-reorg.h: Remove.
15213 * ipa-struct-reorg.c: Likewise.
15214 * ipa-type-escape.h: Likewise.
15215 * ipa-type-escape.c: Likewise.
15216 * doc/invoke.texi (-fipa-struct-reorg): Remove.
15217 (--param struct-reorg-cold-struct-ratio): Likewise.
15218 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
15219 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
15220 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
15221
15222 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15223
15224 * config/s390/2084.md: Enable all insn reservations also for z9_ec
15225 cpu attribute value.
15226 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
15227 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
15228 * config/s390/s390.c (processor_flags_table): New constant array.
15229 (s390_handle_arch_option): Remove.
15230 (s390_handle_option): Remove s390_handle_arch_option invocations
15231 and OPT_mwarn_framesize_ handling.
15232 (s390_option_override): Remove s390_handle_arch_option invocation.
15233 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
15234 warnings.
15235 * config/s390/s390.md (cpu attribute): Add z9_ec value.
15236 * config/s390/s390.opt (s390_tune, s390_arch)
15237 (march=): Replace s390_arch_option enum and values with
15238 processor_type. Set variable name to s390_arch. Set
15239 initialization value.
15240 (mtune=): Replace s390_arch_option with processor_type. Set
15241 variable name to s390_tune. Set initialization value.
15242
15243 2011-03-23 Julian Brown <julian@codesourcery.com>
15244
15245 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
15246 accesses which are not naturally aligned.
15247
15248 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
15249
15250 PR target/47553
15251 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
15252
15253 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
15254
15255 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
15256 parameter from "int" to "enum insn_code".
15257 (expand_operand_type): New enum.
15258 (expand_operand): New structure.
15259 (create_expand_operand): New function.
15260 (create_fixed_operand, create_output_operand): Likewise
15261 (create_input_operand, create_convert_operand_to): Likewise.
15262 (create_convert_operand_from, create_address_operand): Likewise.
15263 (create_integer_operand): Likewise.
15264 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
15265 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
15266 (expand_insn, expand_jump_insn): Likewise.
15267 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
15268 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
15269 (expand_movstr, expand_builtin___clear_cache): Likewise.
15270 (expand_builtin_lock_release): Likewise.
15271 * explow.c (allocate_dynamic_stack_space): Likewise.
15272 (probe_stack_range): Likewise. Allow check_stack to FAIL,
15273 and use the default handling in that case.
15274 * expmed.c (check_predicate_volatile_ok): Delete.
15275 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
15276 (emit_cstore): Likewise.
15277 * expr.c (emit_block_move_via_movmem): Likewise.
15278 (set_storage_via_setmem, expand_assignment): Likewise.
15279 (emit_storent_insn, try_casesi): Likewise.
15280 (emit_single_push_insn): Likewise. Allow the expansion to fail.
15281 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
15282 (expand_vec_shift_expr, expand_binop_directly): Likewise.
15283 (expand_twoval_unop, expand_twoval_binop): Likewise.
15284 (expand_unop_direct, emit_indirect_jump): Likewise.
15285 (emit_conditional_move, vector_compare_rtx): Likewise.
15286 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
15287 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
15288 (expand_sync_lock_test_and_set): Likewise.
15289 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
15290 (emit_unop_insn): Likewise.
15291 (expand_copysign_absneg): Change icode to an insn_code.
15292 (create_convert_operand_from_type): New function.
15293 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
15294 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
15295 (expand_insn, expand_jump_insn): Likewise.
15296 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
15297 than const_int_operand for operand 2.
15298
15299 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15300
15301 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
15302 if possible.
15303
15304 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15305
15306 * emit-rtl.c (emit_pattern_before_noloc): New function.
15307 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
15308 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
15309 (emit_pattern_after_noloc): New function.
15310 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
15311 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
15312
15313 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15314
15315 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
15316 (__ffsDI2): Likewise.
15317
15318 2011-03-22 Richard Henderson <rth@redhat.com>
15319
15320 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
15321 of !TARGET_ABI_OPEN_VMS.
15322 (alpha_trampoline_init, alpha_start_function): Likewise.
15323 (alpha_expand_epilogue, alpha_file_start): Likewise.
15324 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
15325 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
15326 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
15327 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
15328 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
15329
15330 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15331
15332 * config/s390/s390-opts.h: New.
15333 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
15334 s390_arch_flags, s390_warn_framesize, s390_stack_size,
15335 s390_stack_guard): Remove.
15336 (s390_handle_arch_option): Return void. Take enum
15337 s390_arch_option value instead of string and searching array.
15338 (s390_handle_option): Don't assert that global structures are in
15339 use. Access variables via opts pointer. Use error_at. Don't use
15340 sscanf for -mstack-guard= or -mstack-size=. Update call to
15341 s390_handle_arch_option.
15342 (s390_option_override): Update call to s390_handle_arch_option.
15343 (s390_emit_prologue): Use %d format for s390_stack_size in
15344 diagnostic. Use %wd for HOST_WIDE_INT.
15345 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
15346 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
15347 * config/s390/s390.opt (config/s390/s390-opts.h): New
15348 HeaderInclude entry.
15349 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
15350 s390_arch_flags, s390_warn_framesize): New Variable entries.
15351 (s390_arch_option): New Enum and EnumValue entries.
15352 (march=): Use Enum instead of Var.
15353 (mstack-guard=, mstack-size=): Use UInteger and Var.
15354 (mtune=): Use Enum.
15355
15356 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15357
15358 * config/score/score.c (score_handle_option): Don't assert that
15359 global structures are in use. Access target_flags via opts
15360 pointer. Use value of -march= option to determine target_flags
15361 settings.
15362 * config/score/score.opt (march=): Use Enum.
15363 (score_arch): New Enum and EnumValue entries.
15364
15365 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15366
15367 * config/mep/mep.c (option_mtiny_specified): Remove.
15368 (mep_option_override): Move register handling for -mivc2 from
15369 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
15370 instead of option_mtiny_specified.
15371 (mep_handle_option): Access target_flags via opts pointer. Don't
15372 assert that global structures are in use. Defer part of -mivc2
15373 handling and move it to mep_option_override.
15374 * config/mep/mep.opt (IVC2): New Mask entry.
15375 (mivc2): Use Var and Defer instead of Mask.
15376
15377 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15378
15379 * config/v850/v850-opts.h: New.
15380 * config/v850/v850.c (small_memory): Replace with
15381 small_memory_physical_max array. Make that array static const.
15382 (v850_handle_memory_option): Take integer value of argument. Take
15383 gcc_options pointer, option text and location. Return void.
15384 Update for changes to small memory structures.
15385 (v850_handle_option): Access target_flags via opts pointer. Don't
15386 assert that global structures are in use. Update calls to
15387 v850_handle_memory_option.
15388 (v850_encode_data_area): Update references to small memory settings.
15389 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
15390 (enum small_memory_type): Move to v850-opts.h.
15391 * config/v850/v850.opt (config/v850/v850-opts.h): New
15392 HeaderInclude entry.
15393 (small_memory_max): New Variable entry.
15394 (msda): Replace by pair of options msda= and msda-. Use UInteger.
15395 (mtda, mzda): Likewise.
15396
15397 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15398
15399 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
15400 pointer. Don't assert that global structures are in use.
15401
15402 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15403
15404 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
15405 via opts pointer. Don't assert that global structures are in use.
15406
15407 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15408
15409 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
15410 (munix=93): Use Var.
15411 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
15412 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
15413 * config/pa/pa-opts.h: New.
15414 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
15415 (pa_handle_option): Don't assert that global structures are in
15416 use. Access target_flags via opts pointer. Don't handle
15417 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
15418 OPT_munix_98 here.
15419 (pa_option_override): Handle deferred OPT_mfixed_range_.
15420
15421 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15422
15423 * config/mn10300/mn10300-opts.h: New.
15424 * config/mn10300/mn10300.c (mn10300_processor,
15425 mn10300_tune_string): Remove.
15426 (mn10300_handle_option): Don't assert that global structures are
15427 in use. Access mn10300_processor via opts pointer. Don't handle
15428 OPT_mtune_ here.
15429 * config/mn10300/mn10300.h (enum processor_type): Move to
15430 mn10300-opts.h.
15431 (mn10300_processor): Remove.
15432 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
15433 HeaderInclude entry.
15434 (mn10300_processor): New Variable entry.
15435 (mtune=): Use Var.
15436
15437 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15438
15439 * config/microblaze/microblaze.c: Don't include opts.h.
15440 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
15441 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
15442 (mno-clearbss): Use Var and Warn.
15443
15444 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15445
15446 * config/m32r/m32r-opts.h: New.
15447 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
15448 (m32r_handle_option): Don't assert that global structures are in
15449 use. Access target_flags and m32r_cache_flush_func via opts
15450 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
15451 OPT_mno_flush_trap here.
15452 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
15453 include of m32r-opts.h.
15454 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
15455 HeaderInclude entry.
15456 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
15457 (mmodel=): Use Enum and Var.
15458 (m32r_model): New Enum and EnumValue entries.
15459 (mno-flush-trap): Use Var.
15460 (msdata=): Use Enum and Var.
15461 (m32r_sdata): New Enum and EnumValue entries.
15462
15463 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15464
15465 * config/m32c/m32c.c: Don't include opts.h.
15466 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
15467 m32c_handle_option): Remove.
15468 (m32c_option_override): Check global_options_set.x_target_memregs
15469 instead of target_memregs_set.
15470 * config/m32c/m32c.h (target_memregs): Remove.
15471 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
15472 variable.
15473
15474 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15475
15476 * config/iq2000/iq2000-opts.h: New.
15477 * config/iq2000/iq2000.c: Don't include opts.h.
15478 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
15479 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
15480 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
15481 HeaderInclude entry.
15482 (iq2000_tune): New Variable entry.
15483 (march=): Add comment. Use Enum.
15484 (iq2000_arch): New Enum and EnumValue entries.
15485 (mcpu=): Use Enum and Var.
15486 (iq2000_tune): New Enum and EnumValue entries.
15487
15488 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15489
15490 * config/ia64/ia64-opts.h: New.
15491 * config/ia64/ia64.c (ia64_tune): Remove.
15492 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
15493 here. Use error_at.
15494 (ia64_option_override): Handle deferred OPT_mfixed_range_.
15495 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
15496 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
15497 HeaderInclude entry.
15498 (ia64_tune): New Variable entry.
15499 (mfixed-range=): Use Defer and Var.
15500 (mtune=): Use Enum and Var.
15501 (ia64_tune): New Enum and EnumValue entries.
15502
15503 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15504
15505 * config/frv/frv-opts.h: New.
15506 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
15507 frv-opts.h.
15508 (frv_cpu_type): Remove.
15509 * config/frv/frv.c: Don't include opts.h.
15510 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
15511 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
15512 (frv_cpu_type): New Variable entry.
15513 (frv_cpu): New Enum and EnumValue entries.
15514
15515 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15516
15517 * config/cris/cris.c (cris_handle_option): Access target_flags via
15518 opts pointer. Don't assert that global structures are in use.
15519 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
15520 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
15521
15522 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15523
15524 * config/bfin/bfin-opts.h: New.
15525 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
15526 bfin_si_revision, bfin_workarounds): Remove.
15527 (bfin_cpus): Make static const.
15528 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
15529 not bfin_lib_id_given.
15530 (bfin_handle_option): Don't set bfin_lib_id_given. Access
15531 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
15532 pointer. Use error_at. Don't assert that global structures are in use.
15533 * config/bfin/bfin.h: Include bfin-opts.h.
15534 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
15535 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
15536 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
15537 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
15538 entries.
15539
15540 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15541
15542 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
15543 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
15544 or -msoft-float here.
15545 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
15546 -msoft-float and -mhard-float.
15547 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
15548 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
15549 msoft-float.
15550 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
15551 -msoft-float.
15552 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
15553 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
15554 not mhard-float.
15555 (LIBGCC_SPEC): Don't handle -msoft-float.
15556 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
15557 -mhard-float.
15558 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
15559 msoft-float.
15560 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
15561 -mfloat-abi=*, not -msoft-float and -mhard-float.
15562 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
15563 -msoft-float.
15564 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
15565 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
15566 mhard-float and msoft-float.
15567 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
15568 mfloat-abi=soft in comments, not mhard-float and msoft-float.
15569 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
15570 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
15571 mhard-float.
15572 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
15573 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
15574 msoft-float.
15575 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
15576 not mhard-float.
15577 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
15578 not msoft-float.
15579
15580 2011-03-22 Richard Henderson <rth@redhat.com>
15581
15582 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
15583 TARGET_ABI_WINDOWS_NT.
15584 (alpha_output_function_end_prologue): Likewise.
15585 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
15586 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15587 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
15588 (trap, *movsi_nt_vms): Likewise.
15589 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
15590 (*tablejump_osf_nt_internal): Remove.
15591 * config/alpha/predicates.md (input_operand): Only test Pmode.
15592
15593 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15594
15595 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
15596 via opts pointer. Use error_at. Don't assert that global
15597 structures are in use.
15598
15599 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15600
15601 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
15602 (ix86_handle_option): Access ix86_isa_flags and
15603 ix86_isa_flags_explicit via opts pointer. Don't assert that
15604 global structures are in use.
15605 (ix86_function_specific_save, ix86_function_specific_restore):
15606 Update ix86_isa_flags_explicit field name.
15607 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
15608 (ix86_isa_flags_explicit): Rename TargetSave entry to
15609 x_ix86_isa_flags_explicit.
15610
15611 2011-03-22 Richard Henderson <rth@redhat.com>
15612
15613 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
15614 (alpha_option_override, direct_return): Likewise.
15615 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
15616 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
15617 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
15618 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15619 (alpha_expand_epilogue, alpha_end_function): Likewise.
15620 (alpha_init_libfuncs): Likewise.
15621 (struct machine_function): Remove unicosmk members.
15622 (print_operand) ['t']: Remove.
15623 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
15624 unicosmk_output_module_name, unicosmk_output_common,
15625 current_section_align, unicosmk_output_text_section_asm_op,
15626 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
15627 unicosmk_section_type_flags, unicosmk_unique_section,
15628 unicosmk_asm_named_section, unicosmk_insert_attributes,
15629 unicosmk_output_align, unicosmk_defer_case_vector,
15630 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
15631 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
15632 unicosmk_output_ssib, unicosmk_add_call_info_word,
15633 unicosmk_extern_head, unicosmk_output_default_externs,
15634 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
15635 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
15636 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
15637 * config/alpha/alpha-protos.h: Update.
15638 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
15639 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
15640 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
15641 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
15642 (*mulsi_se, mulvsi3): Likewise.
15643 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
15644 (*divmodsi_internal, call, call_value, realign): Likewise.
15645 (moddi3, umoddi3): Likewise; remove duplicate expander.
15646 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
15647 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
15648 (*movdi_nofix): Remove r/U alternative.
15649 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
15650 * config/alpha/constraints.md ("U"): Remove.
15651 * config/alpha/predicates.md (call_operand"): Don't test
15652 TARGET_ABI_UNICOSMK.
15653
15654 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15655
15656 * target.def (handle_option): Take gcc_options and
15657 cl_decoded_option pointers and location_t.
15658 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
15659 * doc/tm.texi: Regenerate.
15660 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
15661 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
15662 * lto-opts.c (lto_reissue_options): Generate option structure for
15663 targetm.handle_option call.
15664 * opts.c (target_handle_option): Update call to
15665 targetm.handle_option. Remove assertions about values now passed
15666 down to hook.
15667 * targhooks.c (default_target_handle_option): New.
15668 * targhooks.h (default_target_handle_option): Declare.
15669 * config/alpha/alpha.c: Include opts.h.
15670 (alpha_handle_option): Update to new hook interface.
15671 * config/arm/arm.c: Include opts.h.
15672 (arm_handle_option): Update to new hook interface.
15673 * config/arm/t-arm (arm.o): Update dependencies.
15674 * config/bfin/bfin.c: Include opts.h.
15675 (bfin_handle_option): Update to new hook interface.
15676 * config/cris/cris.c: Include opts.h.
15677 (cris_handle_option): Update to new hook interface.
15678 * config/frv/frv.c: Include opts.h.
15679 (frv_handle_option): Update to new hook interface.
15680 * config/i386/i386.c: Include opts.h.
15681 (ix86_handle_option): Update to new hook interface.
15682 (ix86_valid_target_attribute_inner_p): Generate option structure
15683 for call to ix86_handle_option.
15684 * config/i386/t-i386 (i386.o): Update dependencies.
15685 * config/ia64/ia64.c: Include opts.h.
15686 (ia64_handle_option): Update to new hook interface.
15687 * config/ia64/t-ia64 (ia64.o): Update dependencies.
15688 * config/iq2000/iq2000.c: Include opts.h.
15689 (iq2000_handle_option): Update to new hook interface.
15690 * config/m32c/m32c.c: Include opts.h.
15691 (m32c_handle_option): Update to new hook interface.
15692 * config/m32r/m32r.c: Include opts.h.
15693 (m32r_handle_option): Update to new hook interface.
15694 * config/m68k/m68k.c: Include opts.h.
15695 (m68k_handle_option): Update to new hook interface.
15696 * config/mep/mep.c: Include opts.h.
15697 (mep_handle_option): Update to new hook interface.
15698 * config/microblaze/microblaze.c: Include opts.h.
15699 (microblaze_handle_option): Update to new hook interface.
15700 * config/mips/mips.c: Include opts.h.
15701 (mips_handle_option): Update to new hook interface.
15702 * config/mn10300/mn10300.c: Include opts.h.
15703 (mn10300_handle_option): Update to new hook interface.
15704 * config/pa/pa.c: Include opts.h.
15705 (pa_handle_option): Update to new hook interface.
15706 * config/pdp11/pdp11.c: Include opts.h.
15707 (pdp11_handle_option): Update to new hook interface.
15708 * config/rs6000/rs6000.c: Include opts.h.
15709 (rs6000_handle_option): Update to new hook interface.
15710 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
15711 * config/rx/rx.c: Include opts.h.
15712 (rx_handle_option): Update to new hook interface.
15713 * config/s390/s390.c: Include opts.h.
15714 (s390_handle_option): Update to new hook interface.
15715 * config/score/score.c: Include opts.h.
15716 (score_handle_option): Update to new hook interface.
15717 * config/sh/sh.c: Include opts.h.
15718 (sh_handle_option): Update to new hook interface.
15719 * config/sparc/sparc.c: Include opts.h.
15720 (sparc_handle_option): Update to new hook interface.
15721 * config/v850/v850.c: Include opts.h.
15722 (v850_handle_option): Update to new hook interface.
15723
15724 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15725
15726 * gcc.c (driver_unknown_option_callback): Only permit and save
15727 unknown -Wno- options.
15728 (driver_wrong_lang_callback): Save options directly instead of via
15729 driver_unknown_option_callback.
15730
15731 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15732
15733 * combine.c (simplify_set): Try harder to find the best CC mode when
15734 simplifying a nested COMPARE on the RHS.
15735
15736 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15737
15738 * config/alpha/gnu.h: Remove.
15739 * config/arc: Remove directory.
15740 * config/arm/netbsd.h: Remove.
15741 * config/arm/t-pe: Remove.
15742 * config/crx: Remove directory.
15743 * config/i386/netbsd.h: Remove.
15744 * config/m68hc11: Remove directory.
15745 * config/m68k/uclinux-oldabi.h: Remove.
15746 * config/mcore/mcore-pe.h: Remove.
15747 * config/mcore/t-mcore-pe: Remove.
15748 * config/netbsd-aout.h: Remove.
15749 * config/rs6000/gnu.h: Remove.
15750 * config/sh/sh-symbian.h: Remove.
15751 * config/sh/symbian-base.c: Remove.
15752 * config/sh/symbian-c.c: Remove.
15753 * config/sh/symbian-cxx.c: Remove.
15754 * config/sh/symbian-post.h: Remove.
15755 * config/sh/symbian-pre.h: Remove.
15756 * config/sh/t-symbian: Remove.
15757 * config/svr3.h: Remove.
15758 * config/vax/netbsd.h: Remove.
15759 * config.build: Don't handle i[34567]86-*-pe.
15760 * config.gcc: Remove handling of deprecations for most deprecated
15761 targets.
15762 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
15763 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
15764 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
15765 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
15766 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
15767 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
15768 Remove cases.
15769 * config.host: Don't handle i[34567]86-*-pe.
15770 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
15771 (ASM_SPEC32): Don't handle -mcall-gnu.
15772 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
15773 -mcall-gnu.
15774 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
15775 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
15776 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15777 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
15778 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
15779 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
15780 conditional on SYMBIAN.
15781 * configure.ac: Don't handle powerpc*-*-gnu*.
15782 * configure: Regenerate.
15783 * doc/extend.texi (interrupt attribute): Don't mention CRX.
15784 * doc/install-old.texi (m6811, m6812): Don't mention.
15785 * doc/install.texi (arc-*-elf*): Don't document multilib option.
15786 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
15787 (m68k-uclinuxoldabi): Don't mention.
15788 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
15789 Remove.
15790 (-mcall-gnu): Remove.
15791 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
15792 families): Remove constraint documentation.
15793
15794 2011-03-22 Marius Strobl <marius@FreeBSD.org>
15795
15796 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
15797 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
15798 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
15799
15800 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15801
15802 PR target/48226
15803 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
15804 vector when peeking at the next token for vector, don't expand the
15805 keywords.
15806
15807 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
15808
15809 * config/avr/avr-protos.h (expand_epilogue): Change prototype
15810 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
15811 * config/avr/avr.c (init_cumulative_args)
15812 (avr_function_arg_advance): Use it.
15813 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
15814 sibcall epilogues.
15815 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
15816 (avr_function_ok_for_sibcall): ...this new function.
15817 (avr_lookup_function_attribute1): New static Function.
15818 (avr_naked_function_p, interrupt_function_p)
15819 (signal_function_p, avr_OS_task_function_p)
15820 (avr_OS_main_function_p): Use it.
15821 * config/avr/avr.md ("sibcall", "sibcall_value")
15822 ("sibcall_epilogue"): New expander.
15823 ("*call_insn", "*call_value_insn"): New insn.
15824 ("call_insn", "call_value_insn"): Remove
15825 ("call", "call_value", "epilogue"): Change expander to handle
15826 sibling calls.
15827
15828 2011-03-21 Nick Clifton <nickc@redhat.com>
15829
15830 * doc/invoke.texi (Overall Options): Move closing brace to end of
15831 options list.
15832 (Optimization Options): Add missing @gol.
15833 (Directory Options): Likewise.
15834 (i386 and x86-64 Options): Likewise.
15835 (RS6000 and PowerPC Options): Likewise.
15836 (i386 and x86-64 Windows Options): Likewise.
15837 (V850 Options): Add text missing from descriptions.
15838
15839 2011-03-22 Richard Henderson <rth@redhat.com>
15840
15841 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
15842 (avr_incoming_return_addr_rtx): New.
15843 (emit_push_byte): New.
15844 (expand_prologue): Use it. Remove incorrect dwarf annotation for
15845 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
15846 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
15847 (emit_pop_byte): New.
15848 (expand_epilogue): Use it. Pop frame pointer by bytes.
15849 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
15850 (INCOMING_RETURN_ADDR_RTX): New.
15851 (INCOMING_FRAME_SP_OFFSET): New.
15852 (ARG_POINTER_CFA_OFFSET): New.
15853 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
15854 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
15855 (pophi): Remove.
15856
15857 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
15858
15859 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15860
15861 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
15862 (FUNCTION_ARG_ADVANCE): Likewise.
15863 * tm.texi.in: Change references to them to hook references.
15864 * tm.texi: Regenerate.
15865 * targhooks.c (default_function_arg): Eliminate check for target
15866 macro.
15867 (default_function_incoming_arg): Likewise.
15868 (default_function_arg_advance): Likewise.
15869 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
15870 (function_arg_advance): Likewise.
15871 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
15872
15873 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15874
15875 * tree.c (build_call_1): New function.
15876 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
15877
15878 2011-03-22 Richard Guenther <rguenther@suse.de>
15879
15880 PR tree-optimization/48228
15881 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
15882 for single-arg PHIs.
15883
15884 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
15885
15886 PR rtl-optimization/48143
15887 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
15888 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
15889 sse2_cvtps2pd): Likewise.
15890
15891 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15892
15893 * recog.c (canonicalize_change_group): Use validate_unshare_change.
15894
15895 2011-03-22 Richard Guenther <rguenther@suse.de>
15896
15897 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
15898 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
15899 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
15900 and REALIGN_LOAD_EXPR.
15901 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
15902 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
15903 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
15904 DOT_PROD_EXPR case ...
15905 (expand_expr_real_2): ... here.
15906 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
15907 and REALIGN_LOAD_EXPR.
15908 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
15909 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
15910 (vect_create_epilog_for_reduction): Likewise.
15911 (vectorizable_reduction): Likewise.
15912 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
15913 * tree-vect-stmts.c (vectorizable_load): Likewise.
15914
15915 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15916
15917 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
15918
15919 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15920
15921 * config/s390/s390.c (s390_delegitimize_address): Fix offset
15922 handling for PLTOFF/GOTOFF.
15923
15924 2011-03-22 Nick Clifton <nickc@redhat.com>
15925
15926 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
15927 trailing backslash from the end of the macro definition.
15928
15929 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15930
15931 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
15932 and PLT unspecs.
15933
15934 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
15935
15936 * expr.h (prepare_operand): Move to...
15937 * optabs.h (prepare_operand): ...here and change the insn code
15938 parameter from "int" to "enum insn_code".
15939 (insn_operand_matches): Declare.
15940 * expr.c (init_expr_target): Use insn_operand_matches.
15941 (compress_float_constant): Likewise.
15942 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
15943 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
15944 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
15945 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
15946 Likewise.
15947 (gen_cond_trap): Likewise.
15948 (prepare_operand): Likewise. Change icode to an insn_code.
15949 (insn_operand_matches): New function.
15950 * reload.c (find_reloads_address_1): Use insn_operand_matches.
15951 * reload1.c (gen_reload): Likewise.
15952 * targhooks.c (default_secondary_reload): Likewise.
15953
15954 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
15955
15956 * config/alpha/alpha.md (unspec): New define_c_enum.
15957 (unspecv): Ditto.
15958
15959 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
15960
15961 PR debug/48214
15962 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
15963 between a call and its CALL_ARG_LOCATION note.
15964
15965 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
15966
15967 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
15968
15969 2011-03-21 Jakub Jelinek <jakub@redhat.com>
15970
15971 PR c/42544
15972 PR c/48197
15973 * c-common.c (shorten_compare): If primopN is first sign-extended
15974 to opN and then zero-extended to result type, set primopN to opN.
15975
15976 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
15977
15978 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
15979 for barrier handlers.
15980
15981 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15982
15983 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
15984 UNSPEC constants to be in the unspec enumeration, and redefine
15985 all UNSPECV constants to be in the unspecv enumeration, so that
15986 dumps print which unspec/unspec_volatile this is.
15987 * config/rs6000/vector.md (UNSPEC_*): Ditto.
15988 * config/rs6000/paired.md (UNSPEC_*): Ditto.
15989 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
15990 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
15991 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
15992
15993 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
15994 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
15995 UNSPECV_LWSYNC, since these are used as unspec_volatile.
15996 * config/rs6000/sync.md (isync, lwsync): Ditto.
15997
15998 2011-03-21 Richard Guenther <rguenther@suse.de>
15999
16000 * params.def (lto-min-partition): Fix typo.
16001
16002 2011-03-21 Richard Guenther <rguenther@suse.de>
16003
16004 PR c/47939
16005 * c-decl.c (grokdeclarator): Drop to the main variant only
16006 for array types. Drop flag_gen_aux_info check.
16007
16008 2011-03-21 Richard Guenther <rguenther@suse.de>
16009
16010 PR translation/47911
16011 * params.def (lto-partitions): Fix typo.
16012 (lto-min-partition): Fix wording.
16013
16014 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
16015
16016 * config/rs6000/t-freebsd: Remove duplication from file.
16017
16018 2011-03-21 Richard Guenther <rguenther@suse.de>
16019
16020 PR middle-end/47661
16021 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
16022
16023 2011-03-21 Richard Guenther <rguenther@suse.de>
16024
16025 PR lto/48210
16026 * params.def (lto-partitions): Require at least 1 partition.
16027
16028 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16029
16030 * gthr-solaris.h: Remove.
16031 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
16032 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
16033 (LIB_SPEC): Likewise.
16034 * config/sol2.opt (threads): Remove.
16035 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
16036 (sparc*-*-solaris2*): Likewise.
16037 * configure.ac (enable_threads): Enable solaris support.
16038 * configure: Regenerate.
16039 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
16040 * doc/install.texi (Configuration, --enable-threads=lib): Remove
16041 solaris.
16042
16043 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16044
16045 * config.gcc: Obsolete *-*-solaris2.8*.
16046 * doc/install.texi (Specific, *-*-solaris2*): Document it.
16047
16048 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16049
16050 PR bootstrap/48135
16051 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
16052 reference. Solaris 8 perl works.
16053
16054 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16055
16056 PR bootstrap/48135
16057 * doc/install.texi (Prerequisites): Move jar etc. up.
16058 Explain support library version requirements.
16059
16060 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16061
16062 PR bootstrap/48135
16063 * doc/install.texi (Prerequisites): Move Perl to build
16064 requirements. Always necessary on Solaris 2 with Sun ld.
16065
16066 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16067
16068 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
16069 binutils 2.21.
16070 (Specific, i?86-*-solaris2.[89]): Likewise.
16071 (Specific, i?86-*-solaris2.10): Likewise.
16072 (Specific, mips-sgi-irix6): Likewise.
16073 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
16074 Update for binutils 2.21.
16075
16076 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16077
16078 * configure.ac (gcc_cv_lto_plugin): Fix typo.
16079 Allow -fuse-linker-plugin for non-default plugin linker.
16080 * configure: Regenerate.
16081
16082 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
16083
16084 PR bootstrap/48167
16085 * gengtype.c (files_rules): Added rule for cp/parser.h.
16086
16087 2011-03-21 Jakub Jelinek <jakub@redhat.com>
16088
16089 PR target/48213
16090 * config/s390/s390.c (s390_delegitimize_address): Don't call
16091 lowpart_subreg if orig_x has BLKmode.
16092
16093 2011-03-21 Kai Tietz <ktietz@redhat.com>
16094
16095 PR target/12171
16096 * doc/plugins.texi: Adjust documentation for plugin register_callback.
16097 * tree.h (attribute_spec): Add new member affects_type_identity.
16098 * attribs.c (empty_attribute_table): Adjust attribute_spec
16099 initializers.
16100 * config/alpha/alpha.c: Likewise.
16101 * config/arc/arc.c: Likewise.
16102 * config/arm/arm.c: Likewise.
16103 * config/avr/avr.c: Likewise.
16104 * config/bfin/bfin.c: Likewise.
16105 * config/crx/crx.c: Likewise.
16106 * config/darwin.h: Likewise.
16107 * config/h8300/h8300.c: Likewise.
16108 * config/i386/cygming.h: Likewise.
16109 * config/i386/i386.c: Likewise.
16110 * config/ia64/ia64.c: Likewise.
16111 * config/m32c/m32c.c: Likewise.
16112 * config/m32r/m32r.c: Likewise.
16113 * config/m68hc11/m68hc11.c: Likewise.
16114 * config/m68k/m68k.c: Likewise.
16115 * config/mcore/mcore.c: Likewise.
16116 * config/mep/mep.c: Likewise.
16117 * config/microblaze/microblaze.c: Likewise.
16118 * config/mips/mips.c: Likewise.
16119 * config/rs6000/rs6000.c: Likewise.
16120 * config/rx/rx.c: Likewise.
16121 * config/sh/sh.c: Likewise.
16122 * config/sol2.h: Likewise.
16123 * config/sparc/sparc.c: Likewise.
16124 * config/spu/spu.c: Likewise.
16125 * config/stormy16/stormy16.c: Likewise.
16126 * config/v850/v850.c: Likewise.
16127
16128 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
16129
16130 * simplify-rtx.c (simplify_binary_operation_1): Handle
16131 (xor (and A B) C) case when B and C are both constants.
16132
16133 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
16134
16135 * tree-dfa.c (add_referenced_var): Fix typo in comment.
16136
16137 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
16138
16139 PR bootstrap/48168
16140 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
16141
16142 2011-03-20 Jakub Jelinek <jakub@redhat.com>
16143
16144 PR rtl-optimization/48156
16145 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
16146 assume df and df_lr are not NULL.
16147
16148 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16149
16150 PR debug/48023
16151 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
16152 between a call and its CALL_ARG_LOCATION note.
16153
16154 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
16155
16156 PR debug/48178
16157 * config/sh/sh.c (find_barrier): Don't emit a constant pool
16158 between a call and its corresponding CALL_ARG_LOCATION note.
16159
16160 2011-03-19 Anatoly Sokolov <aesok@post.ru>
16161
16162 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
16163 instead of loop. Use HARD_REGISTER_NUM_P predicate.
16164 * haifa-sched.c (setup_ref_regs): Ditto.
16165 * caller-save.c (add_used_regs_1): Ditto.
16166 * dse.c (look_for_hardregs): Ditto.
16167 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
16168 * sched-rgn.c (check_live_1): Ditto.
16169
16170 2011-03-18 Joseph Myers <joseph@codesourcery.com>
16171
16172 * c-decl.c (diagnose_mismatched_decls): Give an error for
16173 redefining a typedef with variably modified type.
16174
16175 2011-03-18 Joseph Myers <joseph@codesourcery.com>
16176
16177 * c-decl.c (grokfield): Don't allow typedefs for structures or
16178 unions with no tag by default.
16179 * doc/extend.texi (Unnamed Fields): Update.
16180
16181 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
16182
16183 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
16184 Rewrite using indirect functions.
16185 (lwp_slwpcb): Ditto.
16186 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
16187 (avx_vinsertf128<mode>): Ditto.
16188
16189 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16190
16191 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
16192 unspecs.
16193
16194 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16195
16196 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
16197 splitting between a call and its corresponding CALL_ARG_LOCATION note.
16198
16199 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
16200
16201 PR rtl-optimization/48170
16202 * gcse.c (hoist_code): Remove bogus asserts.
16203
16204 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
16205
16206 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
16207 computation for prologue/epilogue.
16208
16209 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16210
16211 * Makefile.in (check-consistency): Remove.
16212
16213 2011-03-18 Jakub Jelinek <jakub@redhat.com>
16214
16215 PR debug/48176
16216 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
16217 arange_table_in_use is 0, but either text_section_used or
16218 cold_text_section_used is true. Don't call it if
16219 !info_section_emitted.
16220
16221 2011-03-18 Anatoly Sokolov <aesok@post.ru>
16222
16223 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
16224 FUNCTION_VALUE_REGNO_P): Remove.
16225 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
16226 Remove.
16227 * config/avr/avr.c (avr_ret_register): Make static inline.
16228 (avr_function_value_regno_p): New function.
16229 (avr_libcall_value): Make static. Add 'func' argument.
16230 (avr_function_value): Make static. Rename 'func' argument to
16231 'fn_decl_or_type', forward it to avr_libcall_value. Call
16232 avr_ret_register function instead of RET_REGISTER macro.
16233 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16234
16235 2011-03-18 Jason Merrill <jason@redhat.com>
16236
16237 PR c++/23372
16238 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
16239
16240 2011-03-18 Richard Guenther <rguenther@suse.de>
16241
16242 * doc/install.texi (--enable-gold): Remove.
16243 (--with-plugin-ld): Document.
16244 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
16245
16246 2011-03-18 Andrew Pinski <pinskia@gmail.com>
16247
16248 PR middle-end/47790
16249 * expr.c (optimize_bitfield_assignment_op): Revamp to work
16250 again after expansion changes.
16251
16252 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
16253
16254 * combine.c (try_combine): Do simplification only call of
16255 subst() on i2 even when i1 is present. Update comments.
16256
16257 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
16258
16259 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
16260 and UNSPEC_PCREL_SYMOFF.
16261
16262 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16263
16264 * config/s390/s390.md: Use define_c_enum for the unspec constant
16265 definitions.
16266
16267 2011-03-18 Richard Henderson <rth@redhat.com>
16268 Jakub Jelinek <jakub@redhat.com>
16269
16270 PR bootstrap/48161
16271 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
16272 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
16273
16274 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
16275
16276 PR middle-end/47725
16277 * combine.c (cant_combine_insn_p): Don't check zero/sign
16278 extended hard registers.
16279
16280 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
16281
16282 PR middle-end/47725
16283 * combine.c (cant_combine_insn_p): Check zero/sign extended
16284 hard registers.
16285
16286 2011-03-17 Anatoly Sokolov <aesok@post.ru>
16287
16288 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16289 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
16290 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
16291 Change return type to bool.
16292 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16293
16294 2011-03-17 Jakub Jelinek <jakub@redhat.com>
16295
16296 PR debug/48163
16297 * var-tracking.c (prepare_call_arguments): If CALL target
16298 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
16299 pc instead of looking it up using cselib_lookup and use
16300 Pmode for it if x has VOIDmode.
16301 * dwarf2out.c (gen_subprogram_die): If also both first and
16302 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
16303
16304 PR debug/48163
16305 * function.c (assign_parms): For data.passed_pointer parms
16306 use MEM of data.entry_parm instead of data.entry_parm itself
16307 as DECL_INCOMING_RTL.
16308 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
16309 also when passed and declared mode is the same, DECL_RTL
16310 is a MEM with pseudo as address and DECL_INCOMING_RTL is
16311 a MEM too.
16312
16313 2011-03-16 Jeff Law <law@redhat.com>
16314
16315 PR rtl-optimization/37273
16316 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16317 handle them like argument loads from stack slots. Do not double
16318 count memory for memory constants and argument loads from stack slots.
16319
16320 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
16321
16322 PR debug/48160
16323 * var-tracking.c (prepare_call_arguments): Check SUBREG.
16324
16325 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
16326
16327 PR target/48171
16328 * config/i386/i386.opt: Add Save to -mavx and -mfma.
16329
16330 2011-03-17 Jakub Jelinek <jakub@redhat.com>
16331
16332 PR bootstrap/48153
16333 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
16334 if dwarf_strict.
16335 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
16336 Clear call_arg_locations and call_arg_loc_last always.
16337
16338 PR middle-end/48152
16339 * var-tracking.c (prepare_call_arguments): If argument needs to be
16340 passed by reference, adjust argtype and mode.
16341
16342 2011-03-17 Richard Guenther <rguenther@suse.de>
16343
16344 PR middle-end/48134
16345 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
16346 a value make sure to fold the statement.
16347
16348 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
16349
16350 PR target/43872
16351 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
16352 return condition with !cfun->calls_alloca.
16353
16354 2011-03-17 Richard Guenther <rguenther@suse.de>
16355
16356 PR bootstrap/48148
16357 * lto-cgraph.c (input_overwrite_node): Clear the abstract
16358 origin for decls in other ltrans units.
16359 (input_varpool_node): Likewise.
16360
16361 2011-03-17 Richard Guenther <rguenther@suse.de>
16362
16363 PR middle-end/48165
16364 * tree-object-size.c (compute_object_offset): Properly return
16365 the offset operand of MEM_REFs as sizetype.
16366
16367 2011-03-17 Jakub Jelinek <jakub@redhat.com>
16368
16369 PR rtl-optimization/48141
16370 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
16371 * dse.c: Include params.h.
16372 (active_local_stores_len): New variable.
16373 (add_wild_read, dse_step1): Clear it when setting active_local_stores
16374 to NULL.
16375 (record_store, check_mem_read_rtx): Decrease it when removing
16376 from the chain.
16377 (scan_insn): Likewise. Increase it when adding to chain, if it
16378 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
16379 set active_local_stores to NULL before the addition.
16380 * Makefile.in (dse.o): Depend on $(PARAMS_H).
16381
16382 PR rtl-optimization/48141
16383 * dse.c (record_store): If no positions are needed in an insn
16384 that cannot be deleted, at least unchain it from active_local_stores.
16385
16386 2011-03-16 Dodji Seketeli <dodji@redhat.com>
16387
16388 PR debug/47510
16389 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
16390 (lookup_type_die_strip_naming_typedef): ... here.
16391 (get_context_die): Use it.
16392 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
16393 the anonymous struct named by the naming typedef.
16394
16395 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
16396
16397 PR target/48154
16398 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
16399 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
16400
16401 2011-03-16 Jeff Law <law@redhat.com>
16402
16403 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16404 check for operands of conditional. Allow type to be a pointer.
16405
16406 2011-03-16 Richard Guenther <rguenther@suse.de>
16407
16408 PR tree-optimization/48149
16409 * fold-const.c (fold_binary_loc): Fold
16410 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
16411
16412 2011-03-16 Richard Guenther <rguenther@suse.de>
16413
16414 PR tree-optimization/26134
16415 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
16416 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
16417 (non_rewritable_mem_ref_base): Handle complex type component
16418 accesses, constrain offsets for vector and complex extracts
16419 more properly.
16420
16421 2011-03-16 Richard Guenther <rguenther@suse.de>
16422
16423 PR tree-optimization/48146
16424 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
16425 operands avoiding the need for renaming.
16426
16427 2011-03-16 Richard Guenther <rguenther@suse.de>
16428
16429 * gimple-fold.c (maybe_fold_reference): Open-code relevant
16430 constant folding. Move MEM_REF canonicalization first.
16431 Rely on fold_const_aggregate_ref for initializer folding.
16432 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
16433
16434 2011-03-16 Jakub Jelinek <jakub@redhat.com>
16435
16436 PR middle-end/48136
16437 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
16438 arg0/arg1 or their arguments are always fold converted to matching
16439 types.
16440
16441 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
16442 to nargs.
16443
16444 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16445
16446 PR lto/46944
16447 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
16448 Handle in-tree gold.
16449 (ld_vers): Extract binutils version for gold.
16450 (gcc_cv_ld_hidden): Handle gold here.
16451 (gcc_cv_lto_plugin): Determine level of linker plugin support.
16452 * configure: Regenerate.
16453 * config.in: Regenerate.
16454 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
16455 -fuse-linker-plugin otherwise.
16456 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
16457 (LINK_COMMAND_SPEC): Use it.
16458 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
16459
16460 2011-03-16 Jakub Jelinek <jakub@redhat.com>
16461
16462 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
16463 * calls.c: Remove debug.h include.
16464 (emit_call_1): Don't call virtual_call_token debug hook.
16465 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
16466 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
16467 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
16468 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
16469 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
16470 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
16471 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
16472 dwarf2out_virtual_call): Remove.
16473 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
16474 copy_call_info and virtual_call hooks.
16475 (dwarf2out_init): Don't initialize vcall_insn_table,
16476 debug_dcall_section and debug_vcall_section.
16477 (prune_unused_types): Don't mark nodes from dcall_table.
16478 (dwarf2out_finish): Don't output dcall or vcall tables.
16479 * final.c (final_scan_insn): Don't call direct_call or
16480 virtual_call debug hooks.
16481 * debug.h (struct gcc_debug_hooks): Remove direct_call,
16482 virtual_call_token, copy_call_info and virtual_call hooks.
16483 (debug_nothing_uid): Remove prototype.
16484 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
16485 copy_call_info and virtual_call hooks.
16486 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16487 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
16488 * debug.c (do_nothing_debug_hooks): Likewise.
16489 (debug_nothing_uid): Remove.
16490 * doc/invoke.texi (-fenable-icf-debug): Remove.
16491 * common.opt (-fenable-icf-debug): Likewise.
16492
16493 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
16494 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
16495 call's MEM. Handle functions returning aggregate through a hidden
16496 first pointer. For virtual calls add clobbered pc to call arguments
16497 chain.
16498 * dwarf2out.c (gen_subprogram_die): Emit
16499 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
16500 can't be emitted.
16501
16502 PR debug/45882
16503 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
16504 * rtl.h (ENTRY_VALUE_EXP): Define.
16505 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
16506 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
16507 * print-rtl.c (print_rtx): Likewise.
16508 * gengtype.c (adjust_field_rtx_def): Likewise.
16509 * var-tracking.c (vt_add_function_parameter): Adjust
16510 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
16511 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
16512 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
16513 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
16514 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
16515
16516 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
16517 Call var_location debug hook even on CALL_INSNs.
16518 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
16519 * rtl.def (ENTRY_VALUE): New.
16520 * dwarf2out.c: Include cfglayout.h.
16521 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
16522 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
16523 (struct call_arg_loc_node): New type.
16524 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
16525 tail_call_site_count): New variables.
16526 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
16527 DW_TAG_GNU_call_site_parameter.
16528 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
16529 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
16530 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
16531 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
16532 and DW_AT_GNU_all_source_call_sites.
16533 (mem_loc_descriptor): Handle ENTRY_VALUE.
16534 (add_src_coords_attributes): Don't add enything if
16535 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
16536 (dwarf2out_abstract_function): Save and clear call_arg_location,
16537 call_site_count and tail_call_site_count around dwarf2out_decl call.
16538 (gen_call_site_die): New function.
16539 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
16540 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
16541 (dwarf2out_function_decl): Clear call_arg_locations,
16542 call_arg_loc_last, set call_site_count and tail_call_site_count
16543 to -1 and free block_map.
16544 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
16545 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
16546 followed by any real instructions.
16547 (dwarf2out_begin_function): Set call_site_count and
16548 tail_call_site_count to 0.
16549 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
16550 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
16551 attempt to force a DIE for it and worst case remove the attribute.
16552 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
16553 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
16554 the decl itself.
16555 * var-tracking.c: Include tm_p.h.
16556 (vt_stack_adjustments): For calls call note_register_arguments.
16557 (argument_reg_set): New variable.
16558 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
16559 ensure the VALUE is resolved.
16560 (call_arguments): New variable.
16561 (prepare_call_arguments): New function.
16562 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
16563 (struct expand_loc_callback_data): Add ignore_cur_loc field.
16564 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
16565 always use the best expression.
16566 (vt_expand_loc): Add ignore_cur_loc argument.
16567 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
16568 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
16569 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
16570 note for all calls.
16571 (vt_add_function_parameter): Use cselib_lookup_from_insn.
16572 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
16573 argument. Don't call cselib_preserve_only_values and
16574 cselib_reset_table.
16575 (note_register_arguments): New function.
16576 (vt_initialize): Compute argument_reg_set. Call
16577 vt_add_function_parameters before processing basic blocks instead of
16578 afterwards. For calls call prepare_call_arguments before calling
16579 cselib_process_insn.
16580 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
16581 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
16582 (var-tracking.o): Depend on $(TM_P_H).
16583 * cfglayout.h (insn_scope): New prototype.
16584 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
16585 * cfglayout.c (insn_scope): No longer static.
16586 * insn-notes.def (CALL_ARG_LOCATION): New.
16587 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
16588 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
16589 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
16590 nothing for DECL_EXTERNAL BLOCK_VARS.
16591
16592 2011-03-16 Alan Modra <amodra@gmail.com>
16593
16594 PR target/45844
16595 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16596 create invalid offset address for vsx splat insn.
16597 * config/rs6000/predicates.md (splat_input_operand): New.
16598 * config/rs6000/vsx.md (vsx_splat_*): Use it.
16599
16600 2011-03-15 Xinliang David Li <davidxl@google.com>
16601
16602 PR c/47837
16603 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
16604 (normalize_preds): New function.
16605 (is_use_properly_guarded): Normalize def predicates.
16606
16607 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16608
16609 PR target/46788
16610 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
16611 in the output template.
16612
16613 2011-03-15 Richard Guenther <rguenther@suse.de>
16614
16615 PR middle-end/47650
16616 * tree-pretty-print.c (dump_function_declaration): Properly
16617 dump unprototyped and varargs function types.
16618
16619 2011-03-15 Richard Guenther <rguenther@suse.de>
16620
16621 PR tree-optimization/13954
16622 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
16623 and friends.
16624
16625 2011-03-15 Richard Guenther <rguenther@suse.de>
16626
16627 PR tree-optimization/48037
16628 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
16629 selects into BIT_FIELD_REFs.
16630 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
16631 vector select.
16632
16633 2011-03-15 Jakub Jelinek <jakub@redhat.com>
16634
16635 PR tree-optimization/48129
16636 * builtins.c (fold_builtin_snprintf): Convert to type of
16637 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
16638 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
16639
16640 2011-03-15 Richard Guenther <rguenther@suse.de>
16641
16642 PR tree-optimization/41490
16643 * tree-ssa-dce.c (propagate_necessity): Handle returns without
16644 value but with VUSE.
16645 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
16646 return statements.
16647 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
16648 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
16649 * tree-tailcall.c (find_tail_calls): Ignore returns.
16650
16651 2011-03-15 Richard Guenther <rguenther@suse.de>
16652
16653 PR middle-end/48031
16654 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
16655 or variable-indexed array accesses when in gimple form.
16656
16657 2011-03-15 Richard Guenther <rguenther@suse.de>
16658
16659 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
16660
16661 2011-03-15 Alan Modra <amodra@gmail.com>
16662
16663 PR target/48032
16664 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
16665 presume symbol_refs without a symbol_ref_decl are suitably
16666 aligned, nor other trees we may see here. Handle anchor symbols.
16667 (legitimate_constant_pool_address_p): Comment. Add mode param.
16668 Check cmodel=medium addresses. Adjust all calls.
16669 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
16670 creating cmodel=medium optimized access to locals.
16671 * config/rs6000/constraints.md (R): Pass QImode to
16672 legitimate_constant_pool_address_p.
16673 * config/rs6000/predicates.md (input_operand): Pass mode to
16674 legitimate_constant_pool_address_p.
16675 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
16676 Update prototype.
16677
16678 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16679
16680 PR target/48053
16681 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
16682 64-bit constants being loaded into registers other than GPRs such
16683 as loading 0 into a VSX register.
16684
16685 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16686
16687 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
16688
16689 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16690
16691 PR middle-end/47917
16692 * builtins.c (fold_builtin_snprintf): New function.
16693 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
16694 (fold_builtin_4): Likewise.
16695
16696 PR middle-end/38878
16697 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
16698 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
16699 and C - X == X also strip nops from +/-/p+ operand.
16700 When optimizing -X == C, fold C to arg0's type.
16701
16702 PR debug/47946
16703 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
16704 emit it as add_AT_int instead of add_AT_unsigned.
16705
16706 2011-03-14 Tom Tromey <tromey@redhat.com>
16707
16708 * unwind-dw2.c: Include sys/sdt.h if it exists.
16709 (_Unwind_DebugHook): Use STAP_PROBE2.
16710 * config.in, configure: Rebuild.
16711 * configure.ac: Check for sys/sdt.h.
16712
16713 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
16714
16715 * config/i386/i386.md (ROUND_FLOOR): New constant.
16716 (ROUND_CEIL): Ditto.
16717 (ROUND_TRUNC): Ditto.
16718 (ROUND_MXCSR): Ditto.
16719 (ROUND_NO_EXC): Ditto.
16720 (rint<mode>2): Use new defines instead of numerical constants.
16721 (floor<mode>2): Ditto.
16722 (ceil<mode>2): Ditto.
16723 (btrunc<mode>2): Ditto.
16724 * config/i386/i386-builtin-types.def: Define ROUND function type
16725 aliases.
16726 * config/i386/i386.c (enum ix86_builtins): Add
16727 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
16728 (struct builtin_description): Add
16729 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
16730 (ix86_expand_sse_round): New static function.
16731 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
16732 function types.
16733 (ix86_builtin_vectorized_function): Handle
16734 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
16735
16736 2011-03-14 Tom Tromey <tromey@redhat.com>
16737
16738 * c-parser.c (c_parser_asm_string_literal): Clear
16739 warn_overlength_strings.
16740
16741 2011-03-14 Tom Tromey <tromey@redhat.com>
16742
16743 * c-parser.c (disable_extension_diagnostics): Save
16744 warn_overlength_strings.
16745 (restore_extension_diagnostics): Restore warn_overlength_strings.
16746
16747 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16748
16749 * BASE-VER: Change to 4.7.0.
16750
16751 2011-03-14 Richard Guenther <rguenther@suse.de>
16752
16753 PR middle-end/48098
16754 * tree.c (build_vector_from_val): Adjust assert to requirements
16755 and reality.
16756
16757 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16758
16759 PR bootstrap/48102
16760 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
16761
16762 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
16763
16764 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
16765 terms of target_flags_explicit. Adjust copyright year.
16766
16767 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
16768 * config/rs6000/t-freebsd: New file. Add override for
16769 LIB2FUNCS_EXTRA.
16770
16771 2011-03-13 Chris Demetriou <cgd@google.com>
16772
16773 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
16774 (-fno-diagnostics-show-option): this, to reflect current default.
16775 (-Werror=): Update text about -fno-diagnostics-show-option.
16776
16777 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
16778
16779 PR target/48053
16780 * config/rs6000/predicates.md (easy_vector_constant_add_self,
16781 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
16782 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
16783 mode is not V2DImode or V2DFmode.
16784 (vspltis_constant): Do not handle V2DImode and V2DFmode.
16785 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
16786 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
16787 registers to 0.
16788 (movdi_internal64): Likewise.
16789
16790 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
16791
16792 PR tree-optimization/47127
16793 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
16794 parameter.
16795 (set_cloog_options): Same.
16796 (scop_to_clast): Same.
16797 (print_clast_stmt): Do not call cloog_state_malloc and
16798 cloog_state_free.
16799 (print_generated_program): Same.
16800 (gloog): Same.
16801 * graphite-clast-to-gimple.h (cloog_state): Declared.
16802 (scop_to_clast): Adjust declaration.
16803 * graphite.c (cloog_state): Defined here.
16804 (graphite_initialize): Call cloog_state_malloc.
16805 (graphite_finalize): Call cloog_state_free.
16806
16807 2011-03-11 Jason Merrill <jason@redhat.com>
16808
16809 * attribs.c (lookup_attribute_spec): Take const_tree.
16810 * tree.h: Adjust.
16811
16812 2011-03-11 Joseph Myers <joseph@codesourcery.com>
16813
16814 * config/sparc/sparc.c (sparc_option_override): Use
16815 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
16816
16817 2011-03-11 Richard Guenther <rguenther@suse.de>
16818
16819 PR tree-optimization/48067
16820 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
16821 multiplication result will be only used once on the target
16822 stmt.
16823
16824 2011-03-11 Richard Guenther <rguenther@suse.de>
16825
16826 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
16827
16828 2011-03-11 Richard Guenther <rguenther@suse.de>
16829
16830 PR lto/48073
16831 * tree.c (find_decls_types_r): Do not walk types only reachable
16832 from IDENTIFIER_NODEs.
16833
16834 2011-03-11 Jakub Jelinek <jakub@redhat.com>
16835
16836 PR middle-end/48044
16837 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
16838 all vnode->force_output nodes as needed.
16839
16840 2011-03-11 Jason Merrill <jason@redhat.com>
16841
16842 PR c++/48069
16843 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
16844 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
16845
16846 2011-03-11 Martin Jambor <mjambor@suse.cz>
16847
16848 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
16849 cgraph_node.
16850
16851 2011-03-11 Jakub Jelinek <jakub@redhat.com>
16852
16853 PR tree-optimization/48063
16854 * ipa-inline.c (cgraph_decide_inlining): Don't try to
16855 inline functions called once if !tree_can_inline_p (node->callers).
16856
16857 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
16858
16859 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
16860 extra_objs.
16861 * config/score/score3.c: Delete.
16862 * config/score/score3.h: Delete.
16863 * config/score/mul-div.S: Delete.
16864 * config/score/sfp-machine.h: Add new file.
16865 * config/score/constraints.md: Add new file.
16866 * config/score/t-score-softfp: Add new file.
16867 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
16868 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
16869 (score7_extra_constraint): Delete.
16870 (score7_option_override): Remove unused code.
16871 * config/score/score.c: Remove score3 and score5 define and code.
16872 * config/score/score.h: Remove score3 and score5 define and code.
16873 * config/score/score.md: Remove score3 template and unusual insn.
16874 * config/score/score.opt: Remove score3 and score5 options.
16875
16876 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16877
16878 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
16879 when _HPUX_SOURCE is defined.
16880 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
16881
16882 2011-03-10 Jason Merrill <jason@redhat.com>
16883
16884 PR c++/48029
16885 * stor-layout.c (layout_type): Don't set structural equality
16886 on arrays of incomplete type.
16887 * tree.c (type_hash_eq): Handle comparing them properly.
16888
16889 2011-03-10 Jakub Jelinek <jakub@redhat.com>
16890
16891 PR debug/48043
16892 * config/s390/s390.c (s390_delegitimize_address): Make sure the
16893 result mode matches original rtl mode.
16894
16895 2011-03-10 Nick Clifton <nickc@redhat.com>
16896
16897 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
16898 (andsi3, andsi3_flags): Fix timings for three operand alternative.
16899
16900 2011-03-09 Jakub Jelinek <jakub@redhat.com>
16901
16902 PR rtl-optimization/47866
16903 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
16904 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
16905 if target wasn't scalar.
16906 * function.c (assign_stack_temp_for_type): Assert that neither
16907 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
16908 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
16909 macro.
16910 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
16911
16912 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16913
16914 * config/s390/s390-protos.h (s390_label_align): New prototype.
16915 * config/s390/s390.c (s390_label_align): New function.
16916 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
16917
16918 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
16919
16920 PR target/47755
16921 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
16922 V2DI/V2DF constants. Only all 0's or all 1's are easy.
16923 (output_vec_const_move): Ditto.
16924
16925 2011-03-08 Anatoly Sokolov <aesok@post.ru>
16926
16927 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
16928 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
16929 * config/mips/mips.c (mips_preferred_reload_class): Make static.
16930 Change 'rclass' argument and result type to reg_class_t.
16931 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16932
16933 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
16934
16935 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16936 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
16937 (TARGET_MEMORY_MOVE_COST): Define.
16938 (avr_register_move_cost, avr_memory_move_cost): New Functions.
16939
16940 2011-03-08 Jakub Jelinek <jakub@redhat.com>
16941
16942 PR debug/47881
16943 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
16944 removed anything.
16945
16946 PR tree-optimization/48022
16947 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
16948 for EQ/NE_EXPR.
16949
16950 2011-03-07 Jakub Jelinek <jakub@redhat.com>
16951
16952 PR debug/47991
16953 * var-tracking.c (find_use_val): Return NULL for
16954 cui->sets && cui->store_p BLKmode MEMs.
16955
16956 2011-03-07 Anatoly Sokolov <aesok@post.ru>
16957
16958 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
16959 Remove.
16960 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
16961 xstormy16_print_operand_address): Remove.
16962 * config/stormy16/stormy16.c (xstormy16_print_operand,
16963 xstormy16_print_operand_address): Make static.
16964 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16965
16966 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
16967
16968 PR target/47862
16969 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16970 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
16971 before definition.
16972
16973 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
16974
16975 PR bootstrap/48000
16976 * cfgloopmanip.c (fix_bb_placements): Return immediately
16977 if FROM is BASE_LOOP's header.
16978
16979 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
16980
16981 * gimplify.c (gimplify_function_tree): Fix building calls
16982 to __builtin_return_address.
16983
16984 2011-03-07 Alan Modra <amodra@gmail.com>
16985
16986 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
16987 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
16988 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
16989 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
16990 return_mode args.
16991 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
16992 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
16993 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
16994 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
16995 * config/rs6000/rs6000.c
16996 (rs6000_elf_end_indicate_exec_stack): Rename to..
16997 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
16998 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
16999 (rs6000_file_start): ..here.
17000 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
17001 file scope variables.
17002 (call_ABI_of_interest): New function.
17003 (init_cumulative_args): Set above vars when function return value
17004 is a float, vector, or small struct.
17005 (rs6000_function_arg_advance_1): Likewise for function args.
17006 (rs6000_va_start): Set rs6000_passes_float if variable arg function
17007 references float args.
17008
17009 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
17010
17011 * doc/cfg.texi: Remove "See" before @ref.
17012 * doc/invoke.texi: Likewise.
17013
17014 2011-03-05 Jason Merrill <jason@redhat.com>
17015
17016 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
17017
17018 2011-03-05 Anthony Green <green@moxielogic.com>
17019
17020 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
17021
17022 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
17023
17024 PR rtl-optimization/47899
17025 * cfgloopmanip.c (fix_bb_placements): Fix first argument
17026 to flow_loop_nested_p when moving the loop upward.
17027
17028 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
17029
17030 PR target/47719
17031 * arm.md (movhi_insn_arch4): Accept any immediate constant.
17032
17033 2011-03-05 Jakub Jelinek <jakub@redhat.com>
17034
17035 PR tree-optimization/47967
17036 * ipa-cp.c (build_const_val): Return NULL instead of creating
17037 VIEW_CONVERT_EXPR for mismatching sizes.
17038 (ipcp_create_replace_map): Return NULL if build_const_val failed.
17039 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
17040 give up on versioning.
17041
17042 2011-03-05 Alan Modra <amodra@gmail.com>
17043
17044 PR target/47986
17045 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17046 full cmodel medium/large lo_sum + high addresses.
17047
17048 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17049
17050 * config/s390/s390.c (s390_decompose_address): Reject non-literal
17051 pool references in UNSPEC_LTREL_OFFSET.
17052
17053 2011-03-04 Jan Hubicka <jh@suse.cz>
17054
17055 PR lto/47497
17056 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
17057 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
17058 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
17059 Add node pointers.
17060 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
17061 cgraph_add_thunk): Add node pointers.
17062 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
17063 associated to right node.
17064 (input_node): Update use of cgraph_same_body_alias
17065 and cgraph_add_thunk.
17066
17067 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
17068
17069 * config/i386/i386.opt (mprefer-avx128): New flag.
17070 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
17071 modes when the flag -mprefer-avx128 is on.
17072
17073 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
17074
17075 * dwarf2out.c (compare_loc_operands): Fix address handling.
17076
17077 2011-03-04 Alan Modra <amodra@gmail.com>
17078
17079 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
17080
17081 2011-03-04 Richard Guenther <rguenther@suse.de>
17082
17083 PR middle-end/47968
17084 * expmed.c (extract_bit_field_1): Prefer vector modes that
17085 vec_extract patterns can handle.
17086
17087 2011-03-04 Richard Guenther <rguenther@suse.de>
17088
17089 PR middle-end/47975
17090 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
17091
17092 2011-03-04 Richard Henderson <rth@redhat.com>
17093
17094 * explow.c (emit_stack_save): Remove 'after' parameter.
17095 (emit_stack_restore): Likewise.
17096 * expr.h: Update to match.
17097 * builtins.c, calls.c, stmt.c: Likewise.
17098 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
17099 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
17100 * function.c (expand_function_end): Insert the emit_stack_save
17101 sequence before parm_birth_insn instead of after.
17102
17103 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
17104
17105 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
17106 (ssse3_pmaddubsw128): Ditto.
17107 (ssse3_pmaddubsw): Ditto.
17108
17109 2011-03-03 Steve Ellcey <sje@cup.hp.com>
17110
17111 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
17112
17113 2011-03-03 Jakub Jelinek <jakub@redhat.com>
17114
17115 PR c/47963
17116 * gimplify.c (omp_add_variable): Only call omp_notice_variable
17117 on TYPE_SIZE_UNIT if it is a DECL.
17118
17119 PR debug/47283
17120 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
17121 first operand is not is_gimple_mem_ref_addr, try to fold it.
17122 If the operand still isn't is_gimple_mem_ref_addr, clear
17123 MEM_EXPR on op0.
17124
17125 2011-03-03 Richard Guenther <rguenther@suse.de>
17126
17127 PR middle-end/47283
17128 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
17129 match comment.
17130 (refs_may_alias_p_1): For release branches return true if
17131 we are confused by our input.
17132
17133 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17134
17135 * config/s390/s390.c (s390_function_value): Rename to ...
17136 (s390_function_and_libcall_value): ... this.
17137 (s390_function_value): New function.
17138 (s390_libcall_value): New function.
17139 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
17140 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
17141 target macro definitions.
17142 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
17143
17144 2011-03-02 Joseph Myers <joseph@codesourcery.com>
17145
17146 * config/i386/freebsd64.h (CC1_SPEC): Define.
17147 * config/i386/linux64.h (CC1_SPEC): Define.
17148 * config/i386/x86-64.h (CC1_SPEC): Don't define.
17149
17150 2011-03-02 Anatoly Sokolov <aesok@post.ru>
17151
17152 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17153 Remove.
17154 * config/stormy16/stormy16.c: Include reload.h.
17155 (xstormy16_memory_move_cost): New function.
17156 (TARGET_MEMORY_MOVE_COST): Define.
17157
17158 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
17159
17160 PR rtl-optimization/47925
17161 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
17162 with side effects. Remove the more-specific check for volatile asms.
17163
17164 2011-03-02 Alan Modra <amodra@gmail.com>
17165
17166 PR target/47935
17167 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
17168 toc relative addresses for valid offsets.
17169
17170 2011-03-01 Richard Guenther <rguenther@suse.de>
17171
17172 PR tree-optimization/47890
17173 * tree-vect-loop.c (get_initial_def_for_induction): Set
17174 related stmt properly.
17175
17176 2011-03-01 Richard Guenther <rguenther@suse.de>
17177
17178 PR lto/47924
17179 * lto-streamer.c (lto_record_common_node): Also register
17180 the canonical type.
17181
17182 2011-03-01 Richard Guenther <rguenther@suse.de>
17183
17184 PR lto/46911
17185 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
17186 Do not stream DECL_ABSTRACT_ORIGIN.
17187 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
17188 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
17189 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
17190 Do not stream DECL_ABSTRACT_ORIGIN.
17191 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
17192 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
17193
17194 2011-02-28 Anatoly Sokolov <aesok@post.ru>
17195
17196 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
17197 FUNCTION_VALUE_REGNO_P): Remove.
17198 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
17199 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
17200 Add 'outgoing' argument.
17201 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
17202 function.
17203 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17204 TARGET_FUNCTION_VALUE_REGNO_P): Define.
17205
17206 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
17207
17208 PR debug/28047
17209 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
17210 (lookup_filename): Likewise.
17211 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
17212
17213 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
17214 Jakub Jelinek <jakub@redhat.com>
17215
17216 PR middle-end/47893
17217 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
17218 (assign_stack_local_1): Change last argument type to int.
17219 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
17220 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
17221 don't record padding space into frame_space_list nor use those areas.
17222 (assign_stack_local): Adjust caller.
17223 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
17224 of assign_stack_local, pass 0 as last argument.
17225 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
17226 callers.
17227
17228 2011-02-28 Jakub Jelinek <jakub@redhat.com>
17229
17230 PR debug/47283
17231 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
17232 Use target address_mode and pointer_mode hooks instead of hardcoded
17233 Pmode and ptr_mode. Handle some simple cases of extending if
17234 POINTERS_EXTEND_UNSIGNED < 0.
17235 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
17236 Call convert_debug_memory_address.
17237 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
17238 convert_debug_memory_address.
17239
17240 PR middle-end/46790
17241 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
17242 * configure: Regenerated.
17243 * config.in: Regenerated.
17244 * varasm.c (default_function_section): Return NULL
17245 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
17246
17247 2011-02-28 Martin Jambor <mjambor@suse.cz>
17248
17249 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
17250 the description to match the printed values.
17251
17252 2011-02-28 Richard Guenther <rguenther@suse.de>
17253
17254 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
17255 of the copied scope tree.
17256
17257 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17258
17259 * doc/extend.texi (Function Attributes): Avoid deeply (and
17260 wrongly) nested tables.
17261
17262 2011-02-27 Jakub Jelinek <jakub@redhat.com>
17263
17264 PR middle-end/47903
17265 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
17266 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
17267 r isn't op0 nor op1.
17268
17269 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
17270
17271 * config/avr/avr.md: Remove magic comment for emacs.
17272
17273 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
17274
17275 PR target/45261
17276 * config/avr/avr.c (avr_option_override): Use error on bad options.
17277 (avr_help): New function.
17278 (TARGET_HELP): Define.
17279
17280 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
17281
17282 PR target/42240
17283 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
17284 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
17285
17286 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
17287
17288 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
17289 (ARM Options): Ditto.
17290 (i386 and x86-64 Options): Ditto.
17291 (RX Options): Ditto.
17292 (SPARC Options): Ditto.
17293
17294 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
17295
17296 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
17297 FreeBSD 6 and later. Generally use cpu generic.
17298
17299 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
17300
17301 * doc/cpp.texi: Update copyright years.
17302
17303 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
17304
17305 PR target/46898
17306 * config/lm32/lm32.md (ashrsi3): Added needed variable.
17307
17308 2011-02-25 Jon Beniston <jon@beniston.com>
17309
17310 PR target/46898
17311 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
17312 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
17313 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
17314 (lm32_block_move_inline): Add type cast to remove warning.
17315 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
17316 (gen_int_relational): Move declarations to start of function.
17317
17318 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
17319
17320 PR tree-optimization/45470
17321 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
17322 can throw internally only.
17323 * tree-vect-stmts.c (vectorizable_call): Likewise.
17324
17325 2011-02-24 Anatoly Sokolov <aesok@post.ru>
17326
17327 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
17328 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17329 * config/stormy16/stormy16-protos.h
17330 (xstormy16_preferred_reload_class): Remove.
17331 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
17332 static. Change 'rclass' argument and return type to reg_class_t.
17333 (TARGET_PREFERRED_RELOAD_CLASS,
17334 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17335
17336 2011-02-24 Richard Guenther <rguenther@suse.de>
17337
17338 * lto-streamer-in.c (input_bb): Do not find referenced vars
17339 in debug statements.
17340
17341 2011-02-23 Jason Merrill <jason@redhat.com>
17342
17343 * common.opt (fabi-version): Document v5 and v6.
17344
17345 2011-02-23 Richard Guenther <rguenther@suse.de>
17346
17347 PR tree-optimization/47849
17348 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
17349
17350 2011-02-23 Jie Zhang <jie@codesourcery.com>
17351
17352 * opts-common.c (decode_cmdline_option): Print empty string
17353 argument as "" in decoded->orig_option_with_args_text.
17354 * gcc.c (execute): Print empty string argument as ""
17355 in the verbose output.
17356 (do_spec_1): Keep empty string argument.
17357
17358 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
17359
17360 * config.gcc: Declare score-* and crx-* obsolete.
17361
17362 2011-02-23 Jie Zhang <jie@codesourcery.com>
17363
17364 PR rtl-optimization/47763
17365 * web.c (web_main): Ignore naked clobber when replacing register.
17366
17367 2011-02-22 Anatoly Sokolov <aesok@post.ru>
17368
17369 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
17370 Remove.
17371
17372 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
17373
17374 PR doc/47848
17375 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
17376
17377 2011-02-22 Mike Stump <mikestump@comcast.net>
17378
17379 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
17380 assembler.
17381 * configure: Regenerate.
17382
17383 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
17384
17385 PR rtl-optimization/46002
17386 * ira-color.c (update_copy_costs): Change class intersection
17387 test to reg_class_contents[] test of 'hard_regno'.
17388
17389 2011-02-21 Joseph Myers <joseph@codesourcery.com>
17390
17391 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
17392 than Driver option.
17393 * config/hpux11.opt (mt): Likewise.
17394 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
17395 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
17396 * config/vax/elf.opt (mno-asm-pic): Likewise.
17397 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
17398
17399 2011-02-21 Mike Stump <mikestump@comcast.net>
17400
17401 PR target/47822
17402 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
17403 tree so we can get save the type.
17404 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
17405 for CFString instead of trying to use past the end of the builtins.
17406 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
17407 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
17408 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
17409 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
17410 Rename to darwin_builtin_cfstring.
17411 (darwin_init_cfstring_builtins): Return the built type.
17412
17413 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
17414
17415 PR target/47840
17416 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
17417 (_mm256_insert_epi64): Use _mm_insert_epi64.
17418
17419 2011-02-21 Anatoly Sokolov <aesok@post.ru>
17420
17421 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17422 * config/stormy16/stormy16-protos.h
17423 (xstormy16_mode_dependent_address_p): Remove.
17424 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
17425 Make static. Change return type to bool. Change argument type to
17426 const_rtx. Remove dead code.
17427 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17428
17429 2011-02-21 Richard Guenther <rguenther@suse.de>
17430
17431 PR lto/47820
17432 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
17433 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
17434 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
17435 TUs context.
17436 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
17437 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
17438
17439 2011-02-20 Richard Guenther <rguenther@suse.de>
17440
17441 PR lto/47822
17442 * tree.c (free_lang_data_in_decl): Clean builtins from
17443 the TU decl BLOCK_VARS.
17444
17445 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
17446
17447 PR debug/47620
17448 PR debug/47630
17449 * haifa-sched.c (fix_tick_ready): Skip tick computation
17450 for debug insns.
17451
17452 2011-02-19 Richard Guenther <rguenther@suse.de>
17453
17454 PR lto/47647
17455 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
17456 Remove lazy BLOCK_VARS streaming.
17457 (lto_input_ts_block_tree_pointers): Likewise.
17458 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
17459
17460 2011-02-19 Joseph Myers <joseph@codesourcery.com>
17461
17462 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
17463
17464 2011-02-19 Joseph Myers <joseph@codesourcery.com>
17465
17466 * config/i386/biarch32.h, config/i386/mach.h,
17467 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
17468
17469 2011-02-19 Jakub Jelinek <jakub@redhat.com>
17470
17471 PR target/47800
17472 * config/i386/i386.md (peephole2 for shift and plus): Use
17473 operands[1] original mode in the first insn.
17474
17475 2011-02-18 Mike Stump <mikestump@comcast.net>
17476
17477 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
17478
17479 2011-02-18 Jan Hubicka <jh@suse.cz>
17480
17481 PR middle-end/47788
17482 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
17483 to zero when the function is not inlinable at all.
17484
17485 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17486
17487 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
17488 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17489 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
17490 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
17491 * config/pa/t-pa64: Likewise.
17492 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
17493
17494 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17495
17496 PR driver/47787
17497 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
17498
17499 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17500
17501 PR target/47792
17502 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
17503
17504 2011-02-18 Anatoly Sokolov <aesok@post.ru>
17505
17506 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17507 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
17508 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
17509 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17510 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
17511 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
17512 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
17513 m32r_load_postinc_p, m32r_store_preinc_predec_p,
17514 m32r_legitimate_address_p): New functions.
17515 * config/m32r/constraints.md (constraint "S"): Don't use
17516 STORE_PREINC_PREDEC_P.
17517 (constraint "U"): Don't use LOAD_POSTINC_P.
17518
17519 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
17520
17521 PR rtl-optimization/46178
17522 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
17523 compute ira_hard_regno_cover_class[].
17524
17525 2011-02-18 Richard Guenther <rguenther@suse.de>
17526
17527 PR lto/47798
17528 * lto-streamer.h (lto_global_var_decls): Declare.
17529 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
17530 statics for global var processing.
17531
17532 2011-02-18 Richard Guenther <rguenther@suse.de>
17533
17534 PR tree-optimization/47737
17535 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
17536 edge dominance check.
17537
17538 2011-02-18 Jakub Jelinek <jakub@redhat.com>
17539
17540 PR debug/47780
17541 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
17542 avoid invalid rtx sharing.
17543
17544 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
17545
17546 * doc/cpp.texi (Obsolete Features): Add background on the
17547 origin of assertions.
17548
17549 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
17550
17551 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
17552 objc_abi == 2.
17553 * config/darwin.c (output_objc_section_asm_op): Added support for
17554 ABI v1 and v2.
17555 (is_objc_metadata): New.
17556 (darwin_objc2_section): New.
17557 (darwin_objc1_section): New.
17558 (machopic_select_section): Added support for ABI v1 and v2.
17559 (darwin_emit_objc_zeroed): New.
17560 (darwin_output_aligned_bss): Detect objc metadata and treat it
17561 appropriately.
17562 (darwin_asm_output_aligned_decl_common): Same.
17563 (darwin_asm_output_aligned_decl_local): Same.
17564 * config/darwin-sections.def: Updated for ABI v1 and v2.
17565 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
17566 compiling Objective-C code for the NeXT runtime, default to using
17567 ABI version 0 for 32-bit, and version 2 for 64-bit.
17568
17569 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17570
17571 * common.opt (optimize_fast): New Variable.
17572 * opts.c (default_options_optimization): Use opts->x_optimize_fast
17573 instead of local variable ofast.
17574
17575 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
17576
17577 * doc/invoke.texi (fobjc-abi-version): Documented.
17578 (fobjc-nilcheck): Documented.
17579 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
17580 version.
17581
17582 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17583
17584 PR driver/47390
17585 * common.opt (export-dynamic): New Driver option.
17586 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
17587
17588 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17589
17590 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
17591
17592 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
17593 Jan Hubicka <jh@suse.cz>
17594
17595 PR debug/47106
17596 PR debug/47402
17597 * cfgexpand.c (account_used_vars_for_block): Remove.
17598 (estimated_stack_frame_size): Use referenced vars.
17599 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
17600 that were referenced in the original function. Test src_fn
17601 rather than cfun. Drop redundant get_var_ann.
17602 (setup_one_parameter): Drop redundant get_var_ann.
17603 (declare_return_variable): Likewise.
17604 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
17605 (copy_arguments_for_versioning): Drop redundant get_var_ann.
17606 * ipa-inline.c (compute_inline_parameters): Do not compute
17607 disregard_inline_limits here.
17608 (compute_inlinable_for_current, pass_inlinable): New.
17609 (pass_inline_parameters): Require PROP_referenced_vars.
17610 * cgraphunit.c (cgraph_process_new_functions): Don't run
17611 compute_inline_parameters explicitly unless function is in SSA form.
17612 (cgraph_analyze_function): Set .disregard_inline_limits.
17613 * tree-sra.c (convert_callers): Compute inliner parameters
17614 only for functions already in SSA form.
17615
17616 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17617
17618 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
17619 -mlittle-endian-data.
17620
17621 2011-02-17 Joseph Myers <joseph@codesourcery.com>
17622
17623 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
17624 -mno-fpu, not -fpu and -no-fpu.
17625 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
17626 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
17627
17628 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
17629
17630 PR target/43653
17631 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
17632 input reload with PLUS RTX.
17633
17634 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17635
17636 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
17637 of InverseVar(MDMX).
17638
17639 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17640
17641 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
17642 --m4-340.
17643
17644 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17645
17646 * config/mn10300/mn10300.opt (mno-crt0): New.
17647
17648 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17649
17650 * config/m68k/uclinux.opt (static-libc): New Driver option.
17651
17652 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17653
17654 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
17655
17656 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17657
17658 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
17659 %{muser-extend-enabled}.
17660
17661 2011-02-16 Richard Guenther <rguenther@suse.de>
17662
17663 PR tree-optimization/47738
17664 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
17665 the TODO from tree_predictive_commoning.
17666
17667 2011-02-15 Jeff Law <law@redhat.com>
17668
17669 Revert
17670 2011-01-25 Jeff Law <law@redhat.com>
17671
17672 PR rtl-optimization/37273
17673 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17674 handle them like argument loads from stack slots. Do not double
17675 count memory for memory constants and argument loads from stack slots.
17676
17677 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17678
17679 PR middle-end/47725
17680 * combine.c (cant_combine_insn_p): Revert the last change.
17681
17682 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
17683
17684 PR target/47755
17685 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
17686 mode for vector constants. Remove code that checks for TImode.
17687
17688 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17689
17690 PR debug/47106
17691 PR debug/47402
17692 * cgraph.h (compute_inline_parameters): Return void.
17693 * ipa-inline.c (compute_inline_parameters): Adjust.
17694
17695 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17696
17697 PR debug/47106
17698 PR debug/47402
17699 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
17700 rather than decl.
17701 * cfgexpand.c (estimated_stack_frame_size): Likewise.
17702 * ipa-inline.c (compute_inline_parameters): Adjust.
17703
17704 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17705
17706 PR debug/47106
17707 PR debug/47402
17708 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
17709 Adjust all users. Pass FN to...
17710 * tree-flow-inline.h (first_referenced_var): ... this. Add
17711 fn argument.
17712 * ipa-struct-reorg.c: Adjust.
17713 * tree-dfa.c: Adjust.
17714 * tree-into-ssa.c: Adjust.
17715 * tree-sra.c: Adjust.
17716 * tree-ssa-alias.c: Adjust.
17717 * tree-ssa-live.c: Adjust.
17718 * tree-ssa.c: Adjust.
17719 * tree-ssanames.c: Adjust.
17720 * tree-tailcall.c: Adjust.
17721
17722 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17723
17724 PR debug/47106
17725 PR debug/47402
17726 * tree-flow.h (referenced_var_lookup): Add fn parameter.
17727 Adjust all callers.
17728 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
17729 * tree-flow-inline.h: Adjust.
17730 * gimple-pretty-print.c: Adjust.
17731 * tree-into-ssa.c: Adjust.
17732 * tree-ssa.c: Adjust.
17733 * cfgexpand.c: Adjust.
17734
17735 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17736
17737 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
17738 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17739 (EXTRA_CONSTRAINT): Delete.
17740 * config/iq2000/constraints.md: New file.
17741 * config/iq2000/iq2000.md: Include it.
17742 (define_insn ""): Delete.
17743 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
17744 unsupported constraint letters from patterns.
17745 (call_value, call_value_internal1): Likewise.
17746 (call_value_multiple_internal1): Likewise.
17747
17748 2011-02-15 Nick Clifton <nickc@redhat.com>
17749
17750 * config/mn10300/mn10300.c: Include tm-constrs.h.
17751 (struct liw_data): New data structure describing an LIW candidate
17752 instruction.
17753 (extract_bundle): Use struct liw_data. Allow small integer
17754 operands for some instructions.
17755 (check_liw_constraints): Use struct liw_data. Remove swapped
17756 parameter. Add comments describing the checks. Fix bug when
17757 assigning the source of liw1 to the source of liw2.
17758 (liw_candidate): Delete. Code moved into extract_bundle.
17759 (mn10300_bundle_liw): Use struct liw_data. Check constraints
17760 before swapping.
17761 * config/mn10300/predicates.md (liw_operand): New predicate.
17762 Allows registers and small integer constants.
17763 * config/mn10300/constraints.md (O): New constraint. Accetps
17764 integers in the range -8 to +7 inclusive.
17765 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
17766 for moving a small integer into a register. Give this alternative
17767 LIW attributes.
17768 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
17769 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
17770 using the J,K,L and M constraints,
17771 (liw): Remove SI mode on second operands to allow for HI and QI
17772 mode values.
17773 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
17774 instruction.
17775
17776 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17777
17778 PR middle-end/47725
17779 * combine.c (cant_combine_insn_p): Check zero/sign extended
17780 hard registers.
17781
17782 2011-02-15 Richard Guenther <rguenther@suse.de>
17783
17784 PR tree-optimization/47743
17785 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
17786 for a non-type-compatible VN lookup bail out.
17787
17788 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17789
17790 * config/fr30/constraints.md: New file.
17791 * config/fr30/fr30.md: Include it.
17792 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
17793 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17794 (EXTRA_CONSTRAINT): Delete.
17795
17796 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17797
17798 * config/frv/constraints.md: New file.
17799 * config/frv/predicates.md: Include it.
17800 * config/frv/frv.c (reg_class_from_letter): Delete.
17801 (frv_option_override): Don't initialize it.
17802 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
17803 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
17804 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
17805 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17806 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
17807 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17808 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
17809 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
17810 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
17811 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
17812 (REG_CLASS_FROM_CONSTRAINT): Delete.
17813
17814 2011-02-15 Jakub Jelinek <jakub@redhat.com>
17815
17816 PR middle-end/47581
17817 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
17818 if frame size is 0 in a leaf function.
17819
17820 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17821
17822 PR pch/14940
17823 * config/alpha/host-osf.c: New file.
17824 * config/alpha/x-osf: New file.
17825 * config.host (alpha*-dec-osf*): Use it.
17826
17827 2011-02-14 Anatoly Sokolov <aesok@post.ru>
17828
17829 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17830 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
17831 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
17832 (rx_mode_dependent_address_p): ...this. Make static. Change argument
17833 type to const_rtx.
17834 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17835
17836 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17837
17838 * config/stormy16/constraints.md: New file.
17839 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
17840 Use satisfies_constraint_Q and satisfies_constraint_R.
17841 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
17842 Delete.
17843 (xstormy16_legitiamte_address_p): Declare.
17844 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
17845 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17846 (EXTRA_CONSTRAINT): Delete.
17847 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17848 Un-staticize.
17849 (xstormy16_extra_constraint_p): Delete.
17850
17851 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
17852
17853 PR tree-optimization/46494
17854 * loop-unroll.c (split_edge_and_insert): Adjust comment.
17855 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
17856 (pass_rtl_loop_done): Add TODO_verify_flow.
17857 * fwprop.c (pass_rtl_fwprop): Likewise.
17858 * modulo-sched.c (pass_sms): Likewise.
17859 * tree-ssa-dom.c (pass_dominator): Likewise.
17860 * tree-ssa-loop-ch.c (pass_ch): Likewise.
17861 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
17862 (pass_tree_loop_done): Likewise.
17863 * tree-ssa-pre.c (execute_pre): Likewise.
17864 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17865 * tree-ssa-sink.c (pass_sink_code): Likewise.
17866 * tree-vrp.c (pass_vrp): Likewise.
17867
17868 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17869
17870 * config/v850/constraints.md: New file.
17871 * config/v850/v850.md: Include it.
17872 * config/v850/predicates.md (reg_or_0_operand): Use
17873 satisfies_constraint_G.
17874 (special_symbolref_operand): Use satisfies_constraint_K.
17875 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
17876 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
17877 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
17878 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17879 (EXTRA_CONSTRAINT): Delete.
17880 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
17881 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
17882 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
17883
17884 2011-02-14 Anatoly Sokolov <aesok@post.ru>
17885
17886 PR target/47696
17887 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
17888 description.
17889
17890 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17891
17892 * config/mcore/constraints.md: New file.
17893 * config/mcore/mcore.md: Include it.
17894 * config/mcore/mcore.c (reg_class_from_letter): Delete.
17895 * config/mcore/mcore.h (reg_class_from_letter): Delete.
17896 (REG_CLASS_FROM_LETTER): Delete.
17897 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
17898 insn_const_int_ok_for_constraint.
17899 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
17900 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
17901 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17902 (EXTRA_CONSTRAINT): Delete.
17903
17904 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17905
17906 PR ada/41929
17907 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
17908 (IS_SIGHANDLER): Define.
17909 (sparc64_is_sighandler): New function, split off from
17910 sparc64_fallback_frame_state.
17911 (sparc_is_sighandler): New function, split off from
17912 sparc_fallback_frame_state.
17913 (sparc64_fallback_frame_state): Merge with ...
17914 (sparc_fallback_frame_state): ... this into ...
17915 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
17916 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
17917 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
17918 stack instead of hardcoded offsets.
17919
17920 2011-02-14 Andriy Gapon <avg@freebsd.org>
17921
17922 PR target/45808
17923 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
17924
17925 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17926
17927 * configure: Regenerate.
17928
17929 2011-02-12 Joseph Myers <joseph@codesourcery.com>
17930
17931 PR driver/45731
17932 * gcc.c (asm_options): Correct spec matching --target-help.
17933
17934 2011-02-12 Martin Jambor <mjambor@suse.cz>
17935
17936 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
17937 to gimple call error.
17938
17939 2011-02-12 Mike Stump <mikestump@comcast.net>
17940
17941 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
17942 comments in backslash regions.
17943
17944 2011-02-12 Mike Stump <mikestump@comcast.net>
17945 Jakub Jelinek <jakub@redhat.com>
17946 Iain Sandoe <iains@gcc.gnu.org>
17947
17948 PR target/47324
17949 * dwarf2out.c (output_cfa_loc): When required, apply the
17950 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
17951 (output_loc_sequence): Likewise.
17952 (output_loc_operands_raw): Likewise.
17953 (output_loc_sequence_raw): Likewise.
17954 (output_cfa_loc): Likewise.
17955 (output_loc_list): Suppress register number adjustment when
17956 calling output_loc_sequence()
17957 (output_die): Likewise.
17958
17959 2011-02-12 Anatoly Sokolov <aesok@post.ru>
17960
17961 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17962 Remove macros.
17963 * config/xtensa/xtensa.c (xtensa_register_move_cost,
17964 xtensa_memory_move_cost): New functions.
17965 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
17966
17967 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
17968
17969 PR lto/47225
17970 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
17971 in the current directory.
17972 * configure: Rebuilt.
17973
17974 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17975
17976 * config/darwin.c (darwin_override_options): Add a hunk missed
17977 from the commit of r168571. Trim comment line lengths and
17978 correct indents of the preceding block.
17979
17980 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17981
17982 * gcc.c (driver_handle_option): Concatenate the argument to -F with
17983 the switch.
17984
17985 2011-02-11 Joseph Myers <joseph@codesourcery.com>
17986
17987 * common.opt (nostartfiles): New Driver option.
17988
17989 2011-02-11 Xinliang David Li <davidxl@google.com>
17990
17991 PR tree-optimization/47707
17992 * tree-chrec.c (convert_affine_scev): Keep type precision.
17993
17994 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
17995
17996 PR tree-optimization/47420
17997 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
17998
17999 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
18000
18001 PR rtl-optimization/47614
18002 * rtl.h (check_for_inc_dec): Declare.
18003 * dse.c (check_for_inc_dec): Externalize...
18004 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
18005 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
18006
18007 2011-02-11 Joseph Myers <joseph@codesourcery.com>
18008
18009 PR driver/47678
18010 * gcc.c (main): Do not compile inputs if there were errors in
18011 option handling.
18012 * opts-common.c (read_cmdline_option): Check for wrong language
18013 after other error checks.
18014
18015 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
18016
18017 * cgraph.c: Fix comment typos.
18018 * cgraph.h: Likewise.
18019 * cgraphunit.c: Likewise.
18020 * ipa-cp.c: Likewise.
18021 * ipa-inline.c: Likewise.
18022 * ipa-prop.c: Likewise.
18023 * ipa-pure-const.c: Likewise.
18024 * ipa-ref.c: Likewise.
18025 * ipa-reference.c: Likewise.
18026
18027 2011-02-11 Jakub Jelinek <jakub@redhat.com>
18028
18029 PR debug/47684
18030 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
18031
18032 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18033
18034 PR testsuite/47400
18035 * doc/sourcebuild.texi (Require Support): Document
18036 dg-require-ascii-locale.
18037
18038 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
18039
18040 * doc/lto.texi (Write summary): Fix missing parentheses.
18041
18042 2011-02-10 DJ Delorie <dj@redhat.com>
18043
18044 * config/m32c/m32c.c (m32c_option_override): Disable
18045 -fcombine-stack-adjustments until flag value tracking and compare
18046 optimization can be rewritten.
18047
18048 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
18049
18050 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
18051 PROCESSOR_POWER7.
18052 (PROCESSOR_DEFAULT64): Likewise.
18053
18054 2011-02-10 Richard Henderson <rth@redhat.com>
18055
18056 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
18057 change from 2011-02-03.
18058 * config/rx/rx.c (flags_from_code): Likewise.
18059 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
18060 is valid, n/pz otherwise.
18061 (rx_select_cc_mode): Return CCmode if Y is not zero.
18062
18063 2011-02-10 Richard Guenther <rguenther@suse.de>
18064
18065 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
18066
18067 2011-02-10 Richard Guenther <rguenther@suse.de>
18068
18069 PR tree-optimization/47677
18070 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
18071
18072 2011-02-10 Jakub Jelinek <jakub@redhat.com>
18073
18074 PR target/47665
18075 * combine.c (make_compound_operation): Only change shifts into
18076 multiplication for SCALAR_INT_MODE_P.
18077
18078 2011-02-10 Jie Zhang <jie@codesourcery.com>
18079
18080 PR testsuite/47622
18081 Revert
18082 2011-02-05 Jie Zhang <jie@codesourcery.com>
18083 PR debug/42631
18084 * web.c (entry_register): Don't clobber the number of the
18085 first uninitialized reference in used[].
18086
18087 2011-02-09 Richard Guenther <rguenther@suse.de>
18088
18089 PR tree-optimization/47664
18090 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
18091 all edges again.
18092
18093 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
18094
18095 PR target/46481
18096 PR target/47032
18097 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
18098 PROCESSOR_POWER7.
18099 (PROCESSOR_DEFAULT64): Same.
18100 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
18101
18102 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18103
18104 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
18105
18106 2011-02-09 Martin Jambor <mjambor@suse.cz>
18107
18108 PR middle-end/45505
18109 * tree-sra.c (struct access): New flags grp_scalar_read and
18110 grp_scalar_write. Changed description of assignment read and write
18111 flags.
18112 (dump_access): Dump new flags, reorder all of them.
18113 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
18114 to detect multiple scalar reads.
18115 (analyze_access_subtree): Use the new scalar read write flags instead
18116 of the old flags. Adjusted comments.
18117
18118 2011-02-08 DJ Delorie <dj@redhat.com>
18119
18120 PR target/47548
18121 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
18122 patterns.
18123
18124 2011-02-08 Joseph Myers <joseph@codesourcery.com>
18125
18126 * config/m68k/uclinux.opt: New.
18127 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
18128
18129 2011-02-08 Joseph Myers <joseph@codesourcery.com>
18130
18131 * config/cris/elf.opt (sim): New Driver option.
18132
18133 2011-02-08 Joseph Myers <joseph@codesourcery.com>
18134
18135 * config/xtensa/elf.opt: New.
18136 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
18137
18138 2011-02-08 Joseph Myers <joseph@codesourcery.com>
18139
18140 * config/vax/elf.opt: New.
18141 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
18142
18143 2011-02-08 Joseph Myers <joseph@codesourcery.com>
18144
18145 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
18146
18147 2011-02-08 Joseph Myers <joseph@codesourcery.com>
18148
18149 * config/gnu-user.opt: New.
18150 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
18151 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
18152 *-*-uclinux*): Use gnu-user.opt.
18153
18154 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
18155
18156 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
18157 * config/i386/gnu.h (CPP_SPEC): Likewise.
18158
18159 2011-02-08 Ian Lance Taylor <iant@google.com>
18160
18161 * common.opt (fcx-limited-range): Add SetByCombined flag.
18162 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
18163 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
18164 (fassociative-math, freciprocal-math): Likewise.
18165 (funsafe-math-optimizations): Likewise.
18166 * opth-gen.awk: Handle SetByCombined.
18167 * optc-gen.awk: Likewise.
18168 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
18169 (set_unsafe_math_optimizations_flags): Likewise.
18170 * doc/options.texi (Option properties): Document SetByCombined.
18171
18172 2011-02-08 Joseph Myers <joseph@codesourcery.com>
18173
18174 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
18175 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
18176 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
18177 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
18178 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
18179
18180 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
18181
18182 PR tree-optimization/46834
18183 PR tree-optimization/46994
18184 PR tree-optimization/46995
18185 * graphite-sese-to-poly.c (used_outside_reduction): New.
18186 (detect_commutative_reduction): Call used_outside_reduction.
18187 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
18188 translate_scalar_reduction_to_array only when at least one
18189 loop-phi/close-phi tuple has been detected.
18190
18191 2011-02-08 Richard Guenther <rguenther@suse.de>
18192
18193 PR middle-end/47639
18194 * tree-vect-generic.c (expand_vector_operations_1): Update
18195 stmts here ...
18196 (expand_vector_operations): ... not here. Cleanup EH info
18197 and the CFG if required.
18198
18199 2011-02-08 Richard Guenther <rguenther@suse.de>
18200
18201 PR tree-optimization/47641
18202 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
18203 require type compatibility.
18204
18205 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18206
18207 * gimple-low.c (lower_function_body): Don't remove the location of
18208 the return statement here.
18209 (lower_gimple_return): Do it here instead but only if the return
18210 statement is actually used twice.
18211
18212 2011-02-08 Richard Guenther <rguenther@suse.de>
18213
18214 PR tree-optimization/47632
18215 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
18216 unused up_to_stmt parameter, return whether cfg-cleanup is
18217 necessary, remove EH info properly.
18218 (forward_propagate_into_gimple_cond): Adjust caller.
18219 (forward_propagate_into_cond): Likewise.
18220 (forward_propagate_comparison): Likewise.
18221 (tree_ssa_forward_propagate_single_use_vars): Make
18222 forward_propagate_comparison case similar to the two others.
18223
18224 2011-02-08 Nick Clifton <nickc@redhat.com>
18225
18226 * config/mn10300/mn10300.opt (mliw): New command line option.
18227 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
18228 (liw_bundling): New automaton.
18229 (liw): New attribute.
18230 (liw_op): New attribute.
18231 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
18232 (movsi_internal): Add LIW attributes.
18233 (andsi3): Likewise.
18234 (iorsi3): Likewise.
18235 (xorsi3): Likewise.
18236 (addsi3): Separate register and immediate alternatives.
18237 Add LIW attributes.
18238 (subsi3): Likewise.
18239 (cmpsi): Likewise.
18240 (aslsi3): Likewise.
18241 (lshrsi3): Likewise.
18242 (ashrsi3): Likewise.
18243 (liw): New pattern.
18244 * config/mn10300/mn10300.c (liw_op_names): New
18245 (mn10300_print_operand): Handle 'W' operand descriptor.
18246 (extract_bundle): New function.
18247 (check_liw_constraints): New function.
18248 (liw_candidate): New function.
18249 (mn10300_bundle_liw): New function.
18250 (mn10300_reorg): New function.
18251 (TARGET_MACHINE_DEPENDENT_REORG): Define.
18252 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
18253 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
18254 __LIW__ or __NO_LIW__.
18255 * doc/invoke.texi: Describe the -mliw command line option.
18256
18257 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18258
18259 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
18260 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18261 pthread_mutex_unlock): Remove.
18262 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
18263 * config/pa/t-pa64: Likewise.
18264 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
18265 shared libc if not linking against libpthread.
18266 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
18267
18268 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
18269
18270 PR target/47558
18271 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
18272 on 10.6 and later to ensure that we always use the unwinder from
18273 the system. Only add -no_compact_unwind when tarteting darwin
18274 10.6 or later.
18275
18276 2011-02-07 Steve Ellcey <sje@cup.hp.com>
18277
18278 PR target/46997
18279 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
18280 (vec_interleave_lowv2sf): Ditto.
18281 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
18282 (vec_extract_oddv2sf): Ditto.
18283
18284 2011-02-07 Mike Stump <mikestump@comcast.net>
18285
18286 PR target/42333
18287 Add __ieee_divdc3 entry point.
18288 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
18289 entry point.
18290 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
18291 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
18292 * config/darwin.c (darwin_rename_builtins): Add.
18293 * config/darwin-protos.h (darwin_rename_builtins): Add.
18294
18295 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18296
18297 PR target/47636
18298 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
18299 for the condition.
18300
18301 2011-02-07 Mike Stump <mikestump@comcast.net>
18302
18303 * config/darwin.opt (mmacosx-version-min): Update default OS version.
18304
18305 2011-02-07 Denis Chertykov <chertykov@gmail.com>
18306
18307 PR target/47534
18308 * config/avr/libgcc.S (exit): Move .endfunc
18309
18310 2011-02-07 Richard Guenther <rguenther@suse.de>
18311
18312 PR tree-optimization/47615
18313 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
18314 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
18315 (run_scc_vn): Initialize it.
18316 (visit_reference_op_load): Use it.
18317 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
18318
18319 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18320
18321 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
18322 DImode trapping arithmetic libfuncs.
18323
18324 2011-02-07 Richard Guenther <rguenther@suse.de>
18325
18326 PR tree-optimization/47621
18327 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
18328 two duplicates ...
18329 (execute_update_addresses_taken): ... here. Make it more
18330 conservative in what we accept.
18331
18332 2011-02-06 Joseph Myers <joseph@codesourcery.com>
18333
18334 * config/sparc/freebsd.h (ASM_SPEC): Define.
18335 * config/sparc/vxworks.h (ASM_SPEC): Define.
18336
18337 2011-02-06 Joseph Myers <joseph@codesourcery.com>
18338
18339 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18340
18341 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
18342
18343 * doc/invoke.texi: Remove reference to compiler internals from
18344 user documentation.
18345
18346 * reg-notes.def: Remove REG_VALUE_PROFILE.
18347 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
18348
18349 2011-02-05 Jakub Jelinek <jakub@redhat.com>
18350
18351 PR middle-end/47610
18352 * varasm.c (default_section_type_flags): If decl is NULL,
18353 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
18354
18355 2011-02-05 Jie Zhang <jie@codesourcery.com>
18356
18357 PR debug/42631
18358 * web.c (entry_register): Don't clobber the number of the
18359 first uninitialized reference in used[].
18360
18361 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
18362
18363 PR tree-optimization/46194
18364 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
18365 (build_classic_dist_vector_1): Do not represent classic distance
18366 vectors when the access functions are variating in different loops.
18367
18368 2011-02-04 Joseph Myers <joseph@codesourcery.com>
18369
18370 * config/mips/iris6.opt: New.
18371 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
18372
18373 2011-02-04 Richard Henderson <rth@redhat.com>
18374 Steve Ellcey <sje@cup.hp.com>
18375
18376 PR target/46997
18377 * config/ia64/predicates.md (mux1_brcst_element): New.
18378 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
18379 * config/ia64/ia64.c (ia64_unpack_assemble): New.
18380 (ia64_unpack_sign): New.
18381 (ia64_expand_unpack): Rewrite using new routines.
18382 (ia64_expand_widen_sum): Ditto.
18383 (ia64_expand_dot_prod_v8qi): Ditto.
18384 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
18385 routines, add endian check.
18386 (pmpy2_even): Rename from pmpy2_r, add endian check.
18387 (pmpy2_odd): Rename from pmpy2_l, add endian check.
18388 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
18389 (vec_widen_smult_hi_v4hi): Ditto.
18390 (vec_widen_umult_lo_v4hi): Ditto.
18391 (vec_widen_umult_hi_v4hi): Ditto.
18392 (mulv2si3): Change endian checks.
18393 (sdot_prodv4hi): Rewrite with new calls.
18394 (udot_prodv4hi): New.
18395 (vec_pack_ssat_v4hi): Add endian check.
18396 (vec_pack_usat_v4hi): Ditto.
18397 (vec_pack_ssat_v2si): Ditto.
18398 (max1_even): Rename from max1_r, add endian check.
18399 (max1_odd): Rename from max1_l, add endian check.
18400 (*mux1_rev): Format change.
18401 (*mux1_mix): Ditto.
18402 (*mux1_shuf): Ditto.
18403 (*mux1_alt): Ditto.
18404 (*mux1_brcst_v8qi): Use new predicate.
18405 (vec_extract_evenv8qi): Remove endian check.
18406 (vec_extract_oddv8qi): Ditto.
18407 (vec_interleave_lowv4hi): Format change.
18408 (vec_interleave_highv4hi): Ditto.
18409 (mix2_even): Rename from mix2_r, add endian check.
18410 (mix2_odd): Rename from mux2_l, add endian check.
18411 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
18412 (vec_extract_evenodd_helper): Format change.
18413 (vec_extract_evenv4hi): Remove endian check.
18414 (vec_extract_oddv4hi): Remove endian check.
18415 (vec_interleave_lowv2si): Format change.
18416 (vec_interleave_highv2si): Format change.
18417 (vec_initv2si): Remove endian check.
18418 (vecinit_v2si): Add endian check.
18419 (reduc_splus_v2sf): Add endian check.
18420 (reduc_smax_v2sf): Ditto.
18421 (reduc_smin_v2sf): Ditto.
18422 (vec_initv2sf): Remove endian check.
18423 (fpack): Add endian check.
18424 (fswap): Add endian check.
18425 (vec_interleave_highv2sf): Add endian check.
18426 (vec_interleave_lowv2sf): Add endian check.
18427 (fmix_lr): Add endian check.
18428 (vec_setv2sf): Format change.
18429 (*vec_extractv2sf_0_be): Use shift to extract operand.
18430 (*vec_extractv2sf_1_be): New.
18431 (vec_pack_trunc_v4hi): Add endian check.
18432 (vec_pack_trunc_v2si): Format change.
18433
18434 2011-02-04 Jakub Jelinek <jakub@redhat.com>
18435
18436 PR inline-asm/23200
18437 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
18438 do bb, locus and block comparison and disallow loads if it is not set.
18439 (stmt_is_replaceable_p): New function.
18440 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
18441 callers.
18442 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
18443 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
18444 SSA_NAME_DEF_STMT.
18445 * tree-flow.h (stmt_is_replaceable_p): New prototype.
18446
18447 2011-02-04 Joseph Myers <joseph@codesourcery.com>
18448
18449 * config/rs6000/xilinx.opt: New.
18450 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
18451
18452 2011-02-04 Joseph Myers <joseph@codesourcery.com>
18453
18454 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
18455
18456 2011-02-03 Anatoly Sokolov <aesok@post.ru>
18457
18458 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
18459 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18460 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
18461 secondary_reload_info, xtensa_secondary_reload): Remove.
18462 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
18463 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18464 (xtensa_preferred_reload_class): Make static. Change return and
18465 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
18466 Use CONST_DOUBLE_P predicate.
18467 (xtensa_preferred_output_reload_class): New function.
18468 (xtensa_secondary_reload): Make static.
18469
18470 2011-02-03 Joseph Myers <joseph@codesourcery.com>
18471
18472 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
18473 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
18474 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
18475
18476 2011-02-03 Jakub Jelinek <jakub@redhat.com>
18477
18478 PR middle-end/31490
18479 * output.h (SECTION_RELRO): Define.
18480 (SECTION_MACH_DEP): Adjust.
18481 (get_variable_section): New prototype.
18482 * varpool.c (varpool_finalize_named_section_flags): New function.
18483 (varpool_assemble_pending_decls): Call it.
18484 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
18485 * cgraphunit.c (cgraph_output_in_order): Call
18486 varpool_finalize_named_section_flags.
18487 * varasm.c (get_section): Allow section flags conflicts between
18488 relro and read-only sections if the section hasn't been declared yet.
18489 Set SECTION_OVERRIDE after diagnosing section type conflict.
18490 (get_variable_section): No longer static.
18491 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
18492 readonly sections that need relocations.
18493 (decl_readonly_section_1): New function.
18494 (decl_readonly_section): Use it.
18495
18496 Revert:
18497 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
18498 Steve Ellcey <sje@cup.hp.com>
18499
18500 PR middle-end/31490
18501 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
18502 if section attribute used.
18503
18504 2011-02-03 Jakub Jelinek <jakub@redhat.com>
18505
18506 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
18507 * config/darwin.c (SECTION_NO_ANCHOR): Define.
18508 (darwin_init_sections): Remove assertion.
18509
18510 2011-02-03 Nick Clifton <nickc@redhat.com>
18511
18512 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
18513 lt and ge.
18514 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
18515 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
18516 instead of "n" and "pz".
18517 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
18518 CC_FLAG_S.
18519
18520 2011-02-03 Jakub Jelinek <jakub@redhat.com>
18521
18522 PR target/47312
18523 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
18524 fma, expand FMA_EXPR as fma{,f,l} call.
18525
18526 PR lto/47274
18527 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
18528 copy them into a unsigned char variable and pass address of it to
18529 lto_output_data_stream.
18530
18531 PR target/47564
18532 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
18533 around backend_init_target and lang_dependent_init_target calls.
18534 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
18535 (verify_cgraph_node): Don't call set_cfun here. Use
18536 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
18537 Set error_found for incorrectly represented calls to thunks.
18538
18539 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
18540
18541 PR debug/43092
18542 PR rtl-optimization/43494
18543 * rtl.h (for_each_inc_dec_fn): New type.
18544 (for_each_inc_dec): Declare.
18545 * rtlanal.c (struct for_each_inc_dec_ops): New type.
18546 (for_each_inc_dec_find_inc_dec): New fn.
18547 (for_each_inc_dec_find_mem): New fn.
18548 (for_each_inc_dec): New fn.
18549 * dse.c (struct insn_size): Remove.
18550 (replace_inc_dec, replace_inc_dec_mem): Remove.
18551 (emit_inc_dec_insn_before): New fn.
18552 (check_for_inc_dec): Use it, along with for_each_inc_dec.
18553 (canon_address): Pass mem modes to cselib_lookup.
18554 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
18555 (cselib_lookup_from_insn): Likewise.
18556 (cselib_subst_to_values): Likewise.
18557 * cselib.c (find_slot_memmode): New var.
18558 (cselib_find_slot): New fn. Use it instead of
18559 htab_find_slot_with_hash everywhere.
18560 (entry_and_rtx_equal_p): Use find_slot_memmode.
18561 (autoinc_split): New fn.
18562 (rtx_equal_for_cselib_p): Rename and implement in terms of...
18563 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
18564 Deal with autoinc. Special-case recursion into MEMs.
18565 (cselib_hash_rtx): Likewise.
18566 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
18567 address and MEM modes.
18568 (cselib_subst_to_values): Add memmode, pass it on.
18569 Deal with autoinc.
18570 (cselib_lookup): Add memmode argument, pass it on.
18571 (cselib_lookup_from_insn): Add memmode.
18572 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
18573 (struct cselib_record_autoinc_data): New.
18574 (cselib_record_autoinc_cb): New fn.
18575 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
18576 mode to cselib_lookup. Reset autoinced REGs here instead of...
18577 (cselib_process_insn): ... here.
18578 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
18579 to cselib_lookup.
18580 (add_uses): Likewise, also to cselib_subst_to_values.
18581 (add_stores): Likewise.
18582 * sched-deps.c (add_insn_mem_dependence): Pass mode to
18583 cselib_subst_to_values.
18584 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
18585 * gcse.c (do_local_cprop): Adjusted.
18586 * postreload.c (reload_cse_simplify_set): Adjusted.
18587 (reload_cse_simplify_operands): Adjusted.
18588 * sel-sched-dump (debug_mem_addr_value): Pass mode.
18589
18590 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
18591
18592 PR tree-optimization/45122
18593 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
18594 unsafe assumptions when there's more than one loop exit.
18595
18596 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18597
18598 PR target/47272
18599 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18600 Document using vector double with the load/store builtins, and
18601 that the load/store builtins always use Altivec instructions.
18602
18603 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
18604 to use altivec memory instructions, even on VSX.
18605 (vector_altivec_store_<mode>): Ditto.
18606
18607 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
18608 function.
18609
18610 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18611 V2DF, V2DI support to load/store overloaded builtins.
18612
18613 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
18614 altivec load/store builtins for V2DF/V2DI types.
18615
18616 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
18617 set avoid indexed addresses on power6 if -maltivec.
18618 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
18619 vector_altivec_load/vector_altivec_store builtins.
18620 (altivec_expand_st_builtin): Ditto.
18621 (altivec_expand_builtin): Add VSX memory builtins.
18622 (rs6000_init_builtins): Add V2DI types to internal types.
18623 (altivec_init_builtins): Add support for V2DF/V2DI altivec
18624 load/store builtins.
18625 (rs6000_address_for_altivec): Insure memory address is appropriate
18626 for Altivec.
18627
18628 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
18629 vec_vsx_ld and vec_vsx_st.
18630 (vsx_store_<mode>): Ditto.
18631
18632 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
18633 variables to hold long long types for VSX vector memory builtins.
18634 (RS6000_BTI_unsigned_long_long): Ditto.
18635 (long_long_integer_type_internal_node): Ditti.
18636 (long_long_unsigned_type_internal_node): Ditti.
18637
18638 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
18639 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
18640 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
18641
18642 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
18643 short cuts.
18644 (vec_vsx_st): Ditto.
18645
18646 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18647
18648 * config/pa/pa-hpux10.opt: New.
18649 * config/hpux11.opt (pthread): New Driver option.
18650 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
18651 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
18652
18653 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18654
18655 * config/ia64/vms.opt: New.
18656 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
18657
18658 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18659
18660 PR target/47580
18661 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
18662 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
18663 generator functions.
18664 (vsx_floatuns<VSi><mode>2): Ditto.
18665 (vsx_fix_trunc<mode><VSi>2): Ditto.
18666 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
18667
18668 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18669
18670 * config/i386/djgpp.opt (posix): New Driver option.
18671
18672 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
18673
18674 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
18675 Move to the unsupported targets list.
18676
18677 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
18678
18679 PR rtl-optimization/47525
18680 * df-scan.c: Update copyright years.
18681 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
18682 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
18683
18684 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18685
18686 * config/i386/sysv4.h (TARGET_VERSION): Remove.
18687 (SUBTARGET_RETURN_IN_MEMORY): Remove.
18688 (ASM_OUTPUT_ASCII): Remove.
18689 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
18690
18691 2011-02-02 Jeff Law <law@redhat.com>
18692
18693 PR middle-end/47543
18694 * reload.c (find_reloads_address): Handle reg+d address where both
18695 components are invalid by reloading the entire address.
18696
18697 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
18698 Richard Guenther <rguenther@suse.de>
18699
18700 PR tree-optimization/40979
18701 PR bootstrap/47044
18702 * passes.c (init_optimization_passes): After LIM call copy_prop
18703 and DCE to clean up.
18704 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
18705
18706 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
18707
18708 PR tree-optimization/47576
18709 PR tree-optimization/47555
18710 * doc/invoke.texi (scev-max-expr-complexity): Documented.
18711 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18712 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
18713 * tree-scalar-evolution.c (follow_ssa_edge): Use
18714 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
18715
18716 2011-02-02 Richard Guenther <rguenther@suse.de>
18717
18718 PR tree-optimization/47566
18719 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
18720
18721 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
18722
18723 PR debug/47106
18724 PR debug/47402
18725 * tree-inline.c (declare_return_variable): Remove unused caller
18726 variable.
18727
18728 PR debug/47106
18729 PR debug/47402
18730 * tree-flow-inline.h (clear_is_used, is_used_p): New.
18731 * cfgexpand.c (account_used_vars_for_block): Use them.
18732 * tree-nrv.c (tree_nrv): Likewise.
18733 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
18734 (dump_scope_block): Likewise.
18735 (remove_unused_locals): Likewise.
18736
18737 PR debug/47106
18738 PR debug/47402
18739 * tree-inline.c (declare_return_variable): Add result decl to
18740 local decls only once.
18741 * gimple-low.c (record_vars_into): Mark newly-created variables
18742 as referenced.
18743
18744 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
18745
18746 PR debug/47498
18747 PR debug/47501
18748 PR debug/45136
18749 PR debug/45130
18750 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18751 debug insns.
18752 (no_real_insns_p, schedule_block, set_priorities): Drop special
18753 treatment of boundary debug insns.
18754 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18755 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
18756 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18757 (BOUNDARY_DEBUG_INSN_P): Likewise.
18758 (SCHEDULE_DEBUG_INSN_P): Likewise.
18759 * sched-rgn.c (init_ready_list): Drop special treatment of
18760 boundary debug insns.
18761 * final.c (rest_of_clean_state): Clear notes' BB.
18762
18763 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18764
18765 * config/openbsd.opt (assert=): New Driver option.
18766
18767 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18768
18769 * config/i386/nto.opt: New.
18770 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
18771
18772 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18773
18774 * config/i386/netware.opt: New.
18775 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
18776
18777 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18778
18779 * config/interix.opt (posix): New Driver option.
18780
18781 2011-02-01 DJ Delorie <dj@redhat.com>
18782
18783 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
18784
18785 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
18786 class for A0/A1.
18787
18788 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
18789
18790 PR tree-optimization/47561
18791 * toplev.c (process_options): Print the Graphite flags. Add
18792 flag_loop_flatten to the list of options requiring Graphite.
18793
18794 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18795
18796 * config/i386/cygming.opt (posix): New Driver option.
18797
18798 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18799
18800 * config/arm/vxworks.opt: New.
18801 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
18802
18803 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18804
18805 * config/alpha/elf.opt: New.
18806 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
18807 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
18808
18809 2011-02-01 Richard Guenther <rguenther@suse.de>
18810
18811 PR tree-optimization/47559
18812 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
18813 store-motion on references that can throw.
18814
18815 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
18816
18817 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
18818 * tree-pass.h (TDF_CSELIB): New macro.
18819 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
18820 cselib_lookup): Check for it rather than for TDF_DETAILS.
18821
18822 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
18823
18824 PR driver/47547
18825 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
18826 is HOST_BIT_BUCKET.
18827
18828 * opts.c (finish_options): Don't add x_aux_base_name if it is
18829 HOST_BIT_BUCKET.
18830
18831 2011-02-01 Richard Guenther <rguenther@suse.de>
18832
18833 PR tree-optimization/47555
18834 Revert
18835 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
18836
18837 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18838
18839 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
18840
18841 PR gcc/46692
18842 * config/lm32/t-lm32: Add multilib for all CPU options.
18843
18844 2011-02-01 Richard Guenther <rguenther@suse.de>
18845
18846 PR tree-optimization/47541
18847 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
18848 sure to have a field at offset zero.
18849
18850 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18851
18852 * config/arc/arc.opt (EB, EL): New Driver options.
18853
18854 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18855
18856 * config/alpha/osf5.opt: New.
18857 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
18858
18859 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18860
18861 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
18862
18863 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
18864
18865 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
18866 -floop-interchange.
18867 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
18868 is an alias of -floop-interchange and that it requires the
18869 Graphite infrastructure.
18870 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
18871 flag_loop_interchange based on the value of flag_tree_loop_linear.
18872
18873 2011-01-31 Jakub Jelinek <jakub@redhat.com>
18874 Richard Guenther <rguenther@suse.de>
18875
18876 PR tree-optimization/47538
18877 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
18878 type instead of r1type, except for comparisons. For right
18879 shifts and comparisons punt if there are mismatches in
18880 sizetype vs. non-sizetype types.
18881
18882 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18883
18884 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18885 avx_runtime.
18886
18887 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18888
18889 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
18890 version number.
18891 * configure: Regenerate.
18892
18893 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18894
18895 * configure.ac (gcc_cv_ld_static_option): Define.
18896 (gcc_cv_ld_dynamic_option): Define.
18897 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
18898 instead.
18899 (HAVE_LD_STATIC_DYNAMIC): Update message.
18900 (LD_STATIC_OPTION): Define.
18901 (LD_DYNAMIC_OPTION): Define.
18902 * configure: Regenerate.
18903 * config.in: Regenerate.
18904 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
18905 HAVE_LD_STATIC_DYNAMIC]: Use them.
18906
18907 2011-01-31 Nick Clifton <nickc@redhat.com>
18908
18909 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
18910 registers inside interrupt handlers if the handler is not a leaf
18911 function.
18912
18913 2011-01-31 Nick Clifton <nickc@redhat.com>
18914
18915 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
18916 reg_renumber returning an INVALID_REGNUM.
18917
18918 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
18919
18920 PR libgcj/44341
18921 * doc/install.texi: Document host options discarded when cross
18922 configuring target libraries.
18923
18924 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
18925
18926 Reverted:
18927 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18928 PR debug/45136
18929 PR debug/45130
18930 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18931 debug insns.
18932 (no_real_insns_p, schedule_block, set_priorities): Drop special
18933 treatment of boundary debug insns.
18934 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18935 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18936 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18937 (BOUNDARY_DEBUG_INSN_P): Likewise.
18938 (SCHEDULE_DEBUG_INSN_P): Likewise.
18939 * sched-rgn.c (init_ready_list): Drop special treatment of
18940 boundary debug insns.
18941 * final.c (rest_of_clean-state): Clear notes' BB.
18942
18943 2011-01-31 Alan Modra <amodra@gmail.com>
18944
18945 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
18946 toc relative expressions as we do in print_operand_address.
18947
18948 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
18949
18950 * doc/extend.texi: Follow spelling conventions.
18951 * doc/invoke.texi: Fix a typo.
18952
18953 2011-01-30 Joseph Myers <joseph@codesourcery.com>
18954
18955 * config/hpux11.opt: New.
18956 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
18957 ia64*-*-hpux*): Use hpux11.opt.
18958
18959 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
18960
18961 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
18962 to tmake_file.
18963
18964 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18965
18966 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
18967 support sites.
18968
18969 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18970
18971 * doc/install.texi (Binaries): Remove outdated reference for
18972 Motorola 68HC11/68HC12 downloads.
18973
18974 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18975
18976 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
18977 Drepper's paper.
18978
18979 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
18980
18981 PR bootstrap/47147
18982 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
18983 used by NetBSD.
18984
18985 2011-01-28 Ahmad Sharif <asharif@google.com>
18986
18987 * value-prof.c (check_counter): Corrected error message.
18988
18989 2011-01-29 Jie Zhang <jie@codesourcery.com>
18990
18991 * config/arm/arm.c (arm_legitimize_reload_address): New.
18992 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18993 arm_legitimize_reload_address.
18994 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
18995
18996 2011-01-28 Ian Lance Taylor <iant@google.com>
18997
18998 * godump.c (go_define): Ignore macros whose definitions include
18999 two adjacent operands.
19000
19001 2011-01-28 Jakub Jelinek <jakub@redhat.com>
19002
19003 PR target/42894
19004 * varasm.c (force_const_mem): Store copy of x in desc->constant
19005 instead of x itself.
19006 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
19007 itself into REG_EQUAL note.
19008
19009 2011-01-28 Joseph Myers <joseph@codesourcery.com>
19010
19011 * config/freebsd.opt (posix, rdynamic): New Driver options.
19012
19013 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19014
19015 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
19016 -Bstatic/-Bdynamic.
19017 * configure: Regenerate.
19018
19019 2011-01-27 Joseph Myers <joseph@codesourcery.com>
19020
19021 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
19022 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
19023
19024 2011-01-27 Anatoly Sokolov <aesok@post.ru>
19025
19026 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
19027 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
19028 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
19029 (s390_preferred_reload_class): Make static. Change return and
19030 'rclass' argument type to reg_class_t.
19031
19032 2011-01-27 Jan Hubicka <jh@suse.cz>
19033
19034 PR middle-end/46949
19035 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
19036 (process_function_and_variable_attributes): Check defined weakrefs.
19037
19038 2011-01-27 Martin Jambor <mjambor@suse.cz>
19039
19040 PR tree-optimization/47228
19041 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
19042 build_ref_for_offset.
19043
19044 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19045
19046 * config/spu/spu-elf.h (ASM_SPEC): Remove.
19047
19048 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
19049
19050 PR rtl-optimization/46856
19051 * postreload.c (reload_combine_recognize_const_pattern): Do not
19052 separate cc0 setter and user on cc0 targets.
19053
19054 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
19055
19056 PR c/43082
19057 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
19058 passed a VOID_TYPE expression, immediately emit an error and
19059 return error_mark_node.
19060
19061 2011-01-26 Jeff Law <law@redhat.com>
19062
19063 PR rtl-optimization/47464
19064 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
19065 rather than may_trap_p as needed.
19066
19067 2011-01-26 DJ Delorie <dj@redhat.com>
19068
19069 PR rtl-optimization/46878
19070 * combine.c (insn_a_feeds_b): Check for the implicit cc0
19071 setter/user dependency as well.
19072
19073 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
19074
19075 PR rtl-optimization/44469
19076 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
19077 after removing trivially dead basic blocks.
19078
19079 2011-01-26 Joseph Myers <joseph@codesourcery.com>
19080
19081 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
19082 * config/frv/frv.h (LINK_SPEC): Likewise.
19083 * config/i386/netware.h (LINK_SPEC): Likewise.
19084 * config/m68k/linux.h (ASM_SPEC): Likewise.
19085 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
19086 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
19087 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19088 * config/sparc/linux.h (ASM_SPEC): Likewise.
19089 * config/sparc/linux64.h (ASM_SPEC): Likewise.
19090 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
19091
19092 2011-01-26 Joseph Myers <joseph@codesourcery.com>
19093
19094 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
19095 * config/frv/frv.h (ASM_SPEC): Likewise.
19096 * config/m68k/linux.h (ASM_SPEC): Likewise.
19097 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
19098 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
19099 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19100 * config/sparc/linux.h (ASM_SPEC): Likewise.
19101 * config/sparc/linux64.h (ASM_SPEC): Likewise.
19102 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
19103
19104 2011-01-26 Joseph Myers <joseph@codesourcery.com>
19105
19106 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
19107 * config/frv/frv.h (LINK_SPEC): Likewise.
19108 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
19109
19110 2011-01-26 Joseph Myers <joseph@codesourcery.com>
19111
19112 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
19113 * config/frv/frv.h (ASM_SPEC): Likewise.
19114 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
19115 * config/m68k/linux.h (ASM_SPEC): Likewise.
19116 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
19117 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
19118 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19119 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
19120 * config/sparc/linux.h (ASM_SPEC): Likewise.
19121 * config/sparc/linux64.h (ASM_SPEC): Likewise.
19122 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
19123 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
19124
19125 2011-01-26 Steve Ellcey <sje@cup.hp.com>
19126
19127 PR target/46997
19128 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
19129 (*mux2): Ditto.
19130 (vec_extract_evenodd_help): Ditto.
19131 (vec_extract_evenv4hi): Ditto.
19132 (vec_extract_oddv4hi): Ditto.
19133 (vec_interleave_lowv2si): Ditto.
19134 (vec_interleave_highv2si): Ditto.
19135 (vec_extract_evenv2si): Ditto.
19136 (vec_extract_oddv2si: Ditto.
19137 (vec_pack_trunc_v2si): Ditto.
19138
19139 2011-01-22 Jan Hubicka <jh@suse.cz>
19140
19141 PR target/47237
19142 * cgraph.h (cgraph_local_info): New field can_change_signature.
19143 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
19144 signature can change.
19145 (ipcp_estimate_growth): Call sequence simplify only if calle signature
19146 can change.
19147 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
19148 (cgraph_function_versioning): We can not change signature of functions
19149 that don't allow that.
19150 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
19151 (lto_input_node): Likewise.
19152 * ipa-inline.c (compute_inline_parameters): Compute
19153 local.can_change_signature.
19154 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
19155 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
19156 functions that can not change signature.
19157 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
19158 init_cumulative_args): Do not use local calling conventions
19159 for functions that can not change signature.
19160
19161 2011-01-22 Jan Hubicka <jh@suse.cz>
19162
19163 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
19164
19165 2011-01-26 Richard Guenther <rguenther@suse.de>
19166
19167 PR tree-optimization/47190
19168 * cgraphunit.c (process_common_attributes): New function.
19169 (process_function_and_variable_attributes): Use it.
19170
19171 2011-01-26 Richard Guenther <rguenther@suse.de>
19172
19173 PR lto/47423
19174 * cgraphbuild.c (record_eh_tables): Record reference to personality
19175 function.
19176
19177 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
19178
19179 PR debug/45454
19180 * sel-sched.c (moveup_expr): Don't let debug insns prevent
19181 non-debug insns from moving up.
19182
19183 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
19184
19185 PR target/40125
19186 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
19187 t-dlldir{,-x} fragment for build and add it to tmake_file.
19188 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
19189 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
19190 * config/i386/t-dlldir: New file.
19191 (SHLIB_DLLDIR): Define.
19192 * config/i386/t-dlldir-x: New file.
19193 (SHLIB_DLLDIR): Define.
19194 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
19195 (SHLIB_INSTALL): Use it.
19196
19197 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
19198
19199 PR target/47246
19200 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
19201 lower bound of the allowed Thumb-2 coprocessor load/store
19202 index range to -256. Add explaining comment.
19203
19204 2011-01-25 Ian Lance Taylor <iant@google.com>
19205
19206 * godump.c (go_define): Improve lexing of macro expansion to only
19207 accept expressions which match Go spec.
19208
19209 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
19210
19211 PR c++/43601
19212 * tree.c (handle_dll_attribute): Handle it.
19213 * doc/extend.texi (@item dllexport): Mention it.
19214 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
19215
19216 2011-01-25 Ian Lance Taylor <iant@google.com>
19217
19218 PR tree-optimization/26854
19219 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
19220 (decl_jump_unsafe): Move higher in file, with no other change.
19221 (bind): Set has_jump_unsafe_decl if appropriate.
19222 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
19223 (check_earlier_gotos): Likewise.
19224 (c_check_switch_jump_warnings): Likewise.
19225
19226 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
19227
19228 * doc/invoke.texi (Warning Options): Add missing hyphen.
19229 (-fprofile-dir): Minor grammatical fixes.
19230 (-fbranch-probabilities): Likewise.
19231
19232 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
19233
19234 PR debug/45136
19235 PR debug/45130
19236 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19237 debug insns.
19238 (no_real_insns_p, schedule_block, set_priorities): Drop special
19239 treatment of boundary debug insns.
19240 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
19241 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
19242 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19243 (BOUNDARY_DEBUG_INSN_P): Likewise.
19244 (SCHEDULE_DEBUG_INSN_P): Likewise.
19245 * sched-rgn.c (init_ready_list): Drop special treatment of
19246 boundary debug insns.
19247 * final.c (rest_of_clean-state): Clear notes' BB.
19248
19249 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19250
19251 * Makefile.in (LAMBDA_H): Removed.
19252 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
19253 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
19254 lambda-trans.o, and tree-loop-linear.o.
19255 (lto-symtab.o): Remove dependence on LAMBDA_H.
19256 (tree-loop-linear.o): Remove rule.
19257 (lambda-mat.o): Same.
19258 (lambda-trans.o): Same.
19259 (lambda-code.o): Same.
19260 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
19261 (tree-vect-slp.o): Same.
19262 * hwint.h (gcd): Moved here.
19263 (least_common_multiple): Same.
19264 * lambda-code.c: Removed.
19265 * lambda-mat.c: Removed.
19266 * lambda-trans.c: Removed.
19267 * lambda.h: Removed.
19268 * tree-loop-linear.c: Removed.
19269 * lto-symtab.c: Do not include lambda.h.
19270 * omega.c (gcd): Removed.
19271 * passes.c (init_optimization_passes): Remove pass_linear_transform.
19272 * tree-data-ref.c (print_lambda_vector): Moved here.
19273 (lambda_vector_copy): Same.
19274 (lambda_matrix_copy): Same.
19275 (lambda_matrix_id): Same.
19276 (lambda_vector_first_nz): Same.
19277 (lambda_matrix_row_add): Same.
19278 (lambda_matrix_row_exchange): Same.
19279 (lambda_vector_mult_const): Same.
19280 (lambda_vector_negate): Same.
19281 (lambda_matrix_row_negate): Same.
19282 (lambda_vector_equal): Same.
19283 (lambda_matrix_right_hermite): Same.
19284 * tree-data-ref.h: Do not include lambda.h.
19285 (lambda_vector): Moved here.
19286 (lambda_matrix): Same.
19287 (dependence_level): Same.
19288 (lambda_transform_legal_p): Removed declaration.
19289 (lambda_collect_parameters): Same.
19290 (lambda_compute_access_matrices): Same.
19291 (lambda_vector_gcd): Same.
19292 (lambda_vector_new): Same.
19293 (lambda_vector_clear): Same.
19294 (lambda_vector_lexico_pos): Same.
19295 (lambda_vector_zerop): Same.
19296 (lambda_matrix_new): Same.
19297 * tree-flow.h (least_common_multiple): Removed declaration.
19298 * tree-parloops.c (lambda_trans_matrix): Moved here.
19299 (LTM_MATRIX): Same.
19300 (LTM_ROWSIZE): Same.
19301 (LTM_COLSIZE): Same.
19302 (LTM_DENOMINATOR): Same.
19303 (lambda_trans_matrix_new): Same.
19304 (lambda_matrix_vector_mult): Same.
19305 (lambda_transform_legal_p): Same.
19306 * tree-pass.h (pass_linear_transform): Removed declaration.
19307 * tree-ssa-loop.c (tree_linear_transform): Removed.
19308 (gate_tree_linear_transform): Removed.
19309 (pass_linear_transform): Removed.
19310 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
19311 flag_loop_interchange.
19312
19313 2011-01-25 Jakub Jelinek <jakub@redhat.com>
19314
19315 PR tree-optimization/47265
19316 PR tree-optimization/47443
19317 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
19318 if name still has some uses.
19319
19320 2011-01-25 Martin Jambor <mjambor@suse.cz>
19321
19322 PR tree-optimization/47382
19323 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
19324 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
19325
19326 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
19327
19328 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
19329 sjlj_except_unwind_info.
19330
19331 2011-01-25 Richard Guenther <rguenther@suse.de>
19332
19333 PR tree-optimization/47426
19334 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
19335 visible functions results escape.
19336
19337 2011-01-25 Jakub Jelinek <jakub@redhat.com>
19338
19339 PR target/45701
19340 * config/arm/arm.c (any_sibcall_uses_r3): New function.
19341 (arm_get_frame_offsets): Use it.
19342
19343 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19344 Jakub Jelinek <jakub@redhat.com>
19345
19346 PR tree-optimization/47271
19347 * tree-if-conv.c (bb_postdominates_preds): New.
19348 (if_convertible_bb_p): Call bb_postdominates_preds.
19349 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
19350 (predicate_scalar_phi): Call bb_postdominates_preds.
19351
19352 2011-01-25 Nick Clifton <nickc@redhat.com>
19353
19354 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
19355 * config/rx/rx.c (rx_function_value): Likewise.
19356 (rx_promote_function_mode): Likewise.
19357 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
19358 in order to make it legitimate.
19359 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
19360 make sure that the first operand is the same as the result register.
19361 (addsi3_unspec): Delete.
19362 (subdi3): Do not accept immediate operands.
19363 (subdi3_internal): Likewise.
19364
19365 2011-01-25 Jeff Law <law@redhat.com>
19366
19367 PR rtl-optimization/37273
19368 * ira-costs.c (scan_one_insn): Detect constants living in memory and
19369 handle them like argument loads from stack slots. Do not double
19370 count memory for memory constants and argument loads from stack slots.
19371
19372 2011-01-25 Jakub Jelinek <jakub@redhat.com>
19373
19374 PR tree-optimization/47427
19375 PR tree-optimization/47428
19376 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
19377 coalesce if the new root var would be TREE_READONLY.
19378
19379 2011-01-25 Richard Guenther <rguenther@suse.de>
19380
19381 PR middle-end/47414
19382 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
19383 correct type for TBAA.
19384
19385 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19386
19387 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
19388 (close_phi_written_to_memory): Call for_each_index with
19389 dr_indices_valid_in_loop.
19390
19391 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19392
19393 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
19394 when it is initialized.
19395
19396 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19397
19398 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
19399 call to graphite_find_data_references_in_stmt.
19400 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
19401 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
19402 call to graphite_find_data_references_in_stmt.
19403 (analyze_drs_in_stmts): Same.
19404 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
19405 in which the scalar analysis of indices is performed.
19406 (create_data_ref): Same. Update call to dr_analyze_indices.
19407 (find_data_references_in_stmt): Update call to create_data_ref.
19408 (graphite_find_data_references_in_stmt): Same.
19409 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
19410 declaration.
19411 (create_data_ref): Same.
19412 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
19413 call to create_data_ref.
19414
19415 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19416
19417 * graphite-sese-to-poly.c (build_poly_scop): Move
19418 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
19419
19420 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19421
19422 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
19423 VAR_DECL, PARM_DECL, and RESULT_DECL.
19424
19425 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19426
19427 * graphite-dependences.c (reduction_dr_1): Allow several reductions
19428 in a reduction PBB.
19429 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
19430 that have already been marked as PBB_IS_REDUCTION.
19431
19432 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19433
19434 * graphite-scop-detection.c (same_close_phi_node): New.
19435 (remove_duplicate_close_phi): New.
19436 (make_close_phi_nodes_unique): New.
19437 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
19438
19439 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19440
19441 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
19442 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
19443 of both data references to be the same.
19444
19445 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19446
19447 * graphite-dependences.c (build_lexicographical_constraint): Remove
19448 the gdim parameter.
19449 (build_lexicographical_constraint): Adjust call to
19450 ppl_powerset_is_empty.
19451 (dependence_polyhedron): Same.
19452 (graphite_legal_transform_dr): Same.
19453 (graphite_carried_dependence_level_k): Same.
19454 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
19455 parameter.
19456 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
19457
19458 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19459
19460 * graphite-sese-to-poly.c
19461 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
19462 (close_phi_written_to_memory): New.
19463 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
19464 and unshare_expr.
19465
19466 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19467
19468 * doc/install.texi: Update the expected version number of PPL to 0.11.
19469 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
19470 #if PPL_VERSION_MINOR < 11.
19471
19472 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19473
19474 * graphite-dependences.c: Include graphite-cloog-util.h.
19475 (new_poly_ddr): Inlined into dependence_polyhedron.
19476 (free_poly_ddr): Moved close by new_poly_ddr.
19477 (dependence_polyhedron_1): Renamed dependence_polyhedron.
19478 Early return NULL when ppl_powerset_is_empty returns true.
19479 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
19480 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
19481 (graphite_legal_transform_dr): Call new_poly_ddr.
19482 (graphite_carried_dependence_level_k): Same.
19483 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
19484 (dot_transformed_deps_stmt_1): Removed.
19485 (dot_deps_stmt_1): Call dot_deps_stmt_2.
19486 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
19487 (dot_deps_1): Call dot_deps_2.
19488 * Makefile.in (graphite-dependences.o): Add missing dependence on
19489 graphite-cloog-util.h.
19490
19491 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19492
19493 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
19494 (build_lexicographical_constraint): Same.
19495 (dependence_polyhedron_1): Same.
19496 (graphite_legal_transform_dr): Same.
19497 (graphite_carried_dependence_level_k): Same.
19498 * graphite-ppl.c (ppl_powerset_is_empty): New.
19499 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
19500 * tree-data-ref.c (dump_data_reference): Print the basic block index.
19501
19502 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19503
19504 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
19505 the "a followed by b" relation and document it.
19506
19507 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19508
19509 * graphite-dependences.c (build_lexicographical_constraint): Stop the
19510 iteration when the bag of constraints is empty.
19511
19512 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19513
19514 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
19515
19516 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19517
19518 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
19519 nest and two loop depths as parameters.
19520 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
19521 lst_perfect_nestify.
19522
19523 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19524
19525 * graphite-dependences.c (print_pddr): Call
19526 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
19527
19528 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19529
19530 * graphite-ppl.c (debug_gmp_value): New.
19531 * graphite-ppl.h (debug_gmp_value): Declared.
19532
19533 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
19534
19535 * doc/install.texi: Document availability of cloog-0.16.
19536
19537 2011-01-25 Vladimir Kargov <kargov@gmail.com>
19538
19539 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
19540 invalid postdominance info.
19541
19542 2011-01-24 Jan Hubicka <jh@suse.cz>
19543
19544 PR c/21659
19545 * doc/extend.texi (weak pragma): Drop claim that it must
19546 appear before definition.
19547 * varasm.c (merge_weak, declare_weak): Only sanity check
19548 that DECL is not output at a time it is declared weak.
19549
19550 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
19551
19552 * machmode.def: Fixed comments.
19553
19554 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
19555
19556 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
19557
19558 2011-01-24 Paul Koning <ni1d@arrl.net>
19559
19560 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
19561 WORDS_BIG_ENDIAN.
19562
19563 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
19564
19565 PR target/46519
19566 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
19567 (block_info): Add scanned and prev.
19568 (move_or_delete_vzeroupper_2): Return if the basic block
19569 has been scanned and the upper 128bit state is unchanged
19570 from the last scan.
19571 (move_or_delete_vzeroupper_1): Return true if the exit
19572 state is changed.
19573 (move_or_delete_vzeroupper): Visit basic blocks using the
19574 work-list based algorithm based on vt_find_locations in
19575 var-tracking.c.
19576
19577 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
19578
19579 2011-01-24 Nick Clifton <nickc@redhat.com>
19580
19581 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
19582 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
19583 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
19584 then define __v850e1__.
19585 * doc/invoke.texi: Document -mv850es.
19586
19587 2011-01-24 Richard Henderson <rth@redhat.com>
19588
19589 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
19590 compound unordered comparisons.
19591 * config/rx/rx.c (rx_split_fp_compare): Remove.
19592 * config/rx/rx-protos.h: Update.
19593 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
19594 (cbranchsf4): Don't call rx_split_fp_compare.
19595 (*cbranchsf4): Use rx_split_cbranch.
19596 (*cmpsf): Don't accept "i" constraint.
19597 (*conditional_branch): Only valid after reload.
19598 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
19599
19600 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19601
19602 PR target/47385
19603 * config/rs6000/altivec.md (vector constant splitters): Add
19604 support for creating vector single precision constants if -mvsx is
19605 used and we would create the constant using Altivec primitives.
19606
19607 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
19608 Richard Sandiford <rdsandiford@googlemail.com>
19609
19610 PR rtl-optimization/47166
19611 * reload1.c (emit_reload_insns): Disable the spill_reg_store
19612 mechanism for PRE_MODIFY and POST_MODIFY.
19613 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
19614 reloadreg.
19615
19616 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
19617
19618 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
19619
19620 2011-01-22 Jan Hubicka <jh@suse.cz>
19621
19622 PR lto/47333
19623 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
19624
19625 2011-01-22 Jan Hubicka <jh@suse.cz>
19626
19627 PR tree-optimization/43884
19628 PR lto/44334
19629 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
19630 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
19631
19632 2011-01-22 Anatoly Sokolov <aesok@post.ru>
19633
19634 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
19635 * config/s390/s390.c (s390_register_move_cost,
19636 s390_memory_move_cost): New.
19637 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
19638
19639 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19640
19641 PR middle-end/47401
19642 * except.c (sjlj_assign_call_site_values): Move setting the
19643 crtl->uses_eh_lsda flag to ...
19644 (sjlj_mark_call_sites): ... here.
19645 (sjlj_emit_function_enter): Support NULL dispatch label.
19646 (sjlj_build_landing_pads): In a function with no landing pads
19647 that still has must-not-throw regions, generate code to register
19648 a personality function with empty LSDA.
19649
19650 2011-01-21 Richard Henderson <rth@redhat.com>
19651
19652 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
19653
19654 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
19655
19656 * compare-elim.c: New file.
19657 * Makefile.in (OBJS-common): Add it.
19658 (compare-elim.o): New.
19659 * common.opt (fcompare-elim): New.
19660 * opts.c (default_options_table): Add OPT_fcompare_elim.
19661 * tree-pass.h (pass_compare_elim_after_reload): New.
19662 * passes.c (init_optimization_passes): Add it.
19663 * recog.h: Protect against re-inclusion.
19664 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
19665 * doc/invoke.texi (-fcompare-elim): Document it.
19666 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
19667 * doc/tm.texi: Rebuild.
19668
19669 2011-01-22 Nick Clifton <nickc@redhat.com>
19670
19671 * config/rx/rx.md (cstoresf4): Pass comparison operator to
19672 rx_split_fp_compare.
19673
19674 2011-01-22 Nick Clifton <nickc@redhat.com>
19675
19676 * config/rx/rx.md (UNSPEC_CONST): New.
19677 (deallocate_and_return): Wrap the amount popped off the stack in
19678 an UNSPEC_CONST in order to stop it being rejected by
19679 -mmax-constant-size.
19680 (pop_and_return): Add a "(return)" rtx.
19681 (call): Drop the immediate operand.
19682 (call_internal): Likewise.
19683 (call_value): Likewise.
19684 (call_value_internal): Likewise.
19685 (sibcall_internal): Likewise.
19686 (sibcall_value_internal): Likewise.
19687 (sibcall): Likewise. Generate an explicit call using
19688 sibcall_internal.
19689 (sibcall_value): Likewise.
19690 (mov<>): FAIL if a constant operand is not legitimate.
19691 (addsi3_unpsec): New pattern.
19692
19693 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
19694 (ok_for_max_constant): New function.
19695 (gen_safe_add): New function.
19696 (rx_expand_prologue): Use gen_safe_add.
19697 (rx_expand_epilogue): Likewise.
19698 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
19699 UNSPEC CONSTs.
19700
19701 2011-01-21 Jeff Law <law@redhat.com>
19702
19703 PR tree-optimization/47053
19704 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
19705 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
19706 statements are deleted.
19707 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
19708 is nonempty, then purge dead edges and cleanup the CFG.
19709
19710 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19711
19712 PR debug/47402
19713 Temporarily revert:
19714 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19715 PR debug/47106
19716 * tree-dfa.c (create_var_ann): Mark variable as used.
19717
19718 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19719
19720 PR middle-end/45566
19721 * except.c (convert_to_eh_region_ranges): Emit queued no-region
19722 notes from other section in hot/cold partitioning even if
19723 last_action is -3. Increment call_site_base.
19724
19725 PR rtl-optimization/47366
19726 * fwprop.c (forward_propagate_into): Return bool. If
19727 any changes are made, -fnon-call-exceptions is used and
19728 REG_EH_REGION note is present, call purge_dead_edges
19729 and return true if it purged anything.
19730 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
19731 any EH edges were purged.
19732
19733 2011-01-21 Jeff Law <law@redhat.com>
19734
19735 PR rtl-optimization/41619
19736 * caller-save.c (setup_save_areas): Break out code to determine
19737 which hard regs are live across calls by examining the reload chains
19738 so that it is always used.
19739 Eliminate code which checked REG_N_CALLS_CROSSED.
19740
19741 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19742
19743 PR tree-optimization/47355
19744 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
19745 NOP has non-debug uses beyond PHIs in new_bb.
19746
19747 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19748
19749 PR debug/47106
19750 * cfgexpand.c (account_used_vars_for_block): Only account vars
19751 that are annotated as used.
19752 (estimated_stack_frame_size): Don't set TREE_USED.
19753 * tree-dfa.c (create_var_ann): Mark variable as used.
19754
19755 2011-01-21 Richard Guenther <rguenther@suse.de>
19756
19757 PR middle-end/47395
19758 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
19759
19760 2011-01-21 Richard Guenther <rguenther@suse.de>
19761
19762 PR tree-optimization/47365
19763 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
19764 (vn_reference_lookup_pieces): Adjust.
19765 (vn_reference_lookup): Likewise.
19766 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
19767 (vn_reference_lookup_3): Only look through kills if in
19768 VN_WALKREWRITE mode.
19769 (vn_reference_lookup_pieces): Adjust.
19770 (vn_reference_lookup): Likewise.
19771 (visit_reference_op_load): Likewise.
19772 (visit_reference_op_store): Likewise.
19773 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
19774 (compute_avail): Likewise.
19775 (eliminate): Likewise.
19776
19777 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19778
19779 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
19780 DECL_IGNORED_P non-reg vars if they are used.
19781
19782 PR tree-optimization/47391
19783 * varpool.c (const_value_known_p): Return false if
19784 decl is volatile.
19785
19786 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
19787
19788 PR bootstrap/47215
19789 * config/i386/i386.c (ix86_local_alignment): Handle
19790 case for va_list_type_node is nil.
19791 (ix86_canonical_va_list_type): Likewise.
19792
19793 2011-01-21 Alan Modra <amodra@gmail.com>
19794
19795 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
19796 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
19797
19798 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19799
19800 * config/arm/arm.md (define_attr type): Rename f_load
19801 and f_store to f_fpa_load and f_fpa_store. Update.
19802 (write_conflict): Deal with rename fallout.
19803 (*push_fp_multi): Likewise.
19804 * config/arm/fpa.md (f_load): Use f_fpa_load.
19805 (f_store): Use f_fpa_store.
19806 (*movsf_fpa): Likewise.
19807 (*movdf_fpa): Likewise.
19808 (*movxf_fpa): Likewise.
19809 (*thumb2_movsf_fpa): Likewise.
19810 (*thumb2_movdf_fpa): Likewise.
19811 (*thumb2_movxf_fpa): Likewise.
19812 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
19813 f_loadd and f_stored.
19814 (*thumb2_movdi_vfp): Likewise.
19815 (*thumb2_movsf_vfp): Fix attribute to f_loads.
19816 (*thumb2_movsi_vfp): Likewise.
19817 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
19818 Use f_loads instead of f_load.
19819 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
19820
19821 2011-01-20 Anatoly Sokolov <aesok@post.ru>
19822
19823 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19824 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
19825 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19826 (xtensa_mode_dependent_address_p): New function.
19827 (constantpool_address_p): Make static. Change return type to bool.
19828 Change argument type to const_rtx. Use CONST_INT_P predicate.
19829
19830 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
19831
19832 PR debug/46583
19833 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
19834
19835 2011-01-20 Jakub Jelinek <jakub@redhat.com>
19836
19837 PR debug/47283
19838 * cfgexpand.c (expand_debug_expr): Instead of generating
19839 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
19840 etc. handling.
19841
19842 2011-01-20 Richard Guenther <rguenther@suse.de>
19843
19844 PR middle-end/47370
19845 * tree-inline.c (remap_gimple_op_r): Recurse manually for
19846 the pointer operand of MEM_REFs.
19847
19848 2011-01-20 Jakub Jelinek <jakub@redhat.com>
19849
19850 PR tree-optimization/46130
19851 * ipa-split.c (consider_split): If return_bb contains non-virtual
19852 PHIs other than for retval or if split_function would not adjust it,
19853 refuse to split.
19854
19855 2011-01-20 Richard Guenther <rguenther@suse.de>
19856
19857 PR tree-optimization/47167
19858 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
19859 Revert previous change, only avoid enumeral type changes.
19860
19861 2011-01-19 Mike Stump <mikestump@comcast.net>
19862
19863 * doc/tm.texi.in (BRANCH_COST): Englishify.
19864 * doc/tm.texi (BRANCH_COST): Likewise.
19865
19866 2011-01-19 Dodji Seketeli <dodji@redhat.com>
19867
19868 PR c++/47291
19869 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
19870 (gen_scheduled_generic_parms_dies): New functions.
19871 (gen_struct_or_union_type_die): Schedule template parameters DIEs
19872 generation for the end of CU compilation.
19873 (dwarf2out_finish): Generate template parameters DIEs here.
19874
19875 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19876
19877 PR debug/46240
19878 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
19879 debug bind stmt on merge edges.
19880
19881 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19882
19883 PR debug/47079
19884 PR debug/46724
19885 * function.c (instantiate_expr): Instantiate incoming rtl of
19886 implicit arguments, and recurse on VALUE_EXPRs.
19887 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
19888 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
19889
19890 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19891
19892 * c-parser.c (c_parser_for_statement): Initialize
19893 collection_expression.
19894
19895 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19896
19897 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
19898
19899 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19900
19901 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
19902 (LINK_SHLIB_SPEC): Don't use %(link_path).
19903 (SUBTARGET_EXTRA_SPECS): Remove link_path.
19904
19905 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19906
19907 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
19908 (NO_SHARED_LIB_SUPPORT): Remove.
19909 (LINK_SHLIB_SPEC): Remove one conditional definition.
19910
19911 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19912
19913 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
19914 %{call_shared}.
19915 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
19916 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
19917 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
19918 %{call_shared} and conditionals on these options not being passed.
19919 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
19920 %{call_shared}.
19921
19922 2011-01-19 Jakub Jelinek <jakub@redhat.com>
19923
19924 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
19925 simplify.
19926
19927 * ipa-split.c: Spelling fixes.
19928
19929 2011-01-19 Richard Henderson <rth@redhat.com>
19930
19931 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
19932 (*mulsi3): Likewise.
19933
19934 * longlong.h [__mn10300__] (count_leading_zeros): New.
19935 [__mn10300__] (umul_ppmm, smul_ppmm): New.
19936 [__mn10300__] (add_ssaaaa, subddmmss): New.
19937 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
19938 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
19939
19940 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19941
19942 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
19943
19944 2011-01-19 Richard Henderson <rth@redhat.com>
19945
19946 * config/mn10300/mn10300.md (addsi3_flags): New.
19947 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
19948 (subsi3_flags, subc_internal, subdi3): New.
19949 (subdi3_internal, *subdi3_degenerate): New.
19950 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
19951
19952 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
19953 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
19954 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
19955 * config/mn10300/mn10300-protos.h: Update.
19956 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
19957 (return_ret): Likewise. Rename from return_internal_regs.
19958 (return_internal): Remove.
19959
19960 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
19961 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
19962 (mn10300_legitimate_constant_p): Likewise.
19963 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
19964 (mn10300_frame_size): New.
19965 (mn10300_expand_prologue): Use it.
19966 (mn10300_expand_epilogue): Likewise.
19967 (mn10300_initial_offset): Likewise.
19968 * config/mn10300/mn10300-protos.h: Update.
19969 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
19970 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
19971 (prologue, epilogue, return_internal): Tidy output code.
19972 (mn10300_store_multiple_operation, return): Likewise.
19973 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
19974 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
19975 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
19976 (load_pic, am33_load_pic): New.
19977 (mn10300_load_pic0, mn10300_load_pic1): New.
19978
19979 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
19980 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
19981 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
19982 (cc_flags_for_mode, cc_flags_for_code): New.
19983 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
19984 overflow flag is not valid. Validate that the flags we need
19985 for the comparison are valid.
19986 (mn10300_output_cmp): Remove.
19987 (mn10300_output_add): New.
19988 (mn10300_select_cc_mode): Use cc_flags_for_code.
19989 (mn10300_split_cbranch): New.
19990 (mn10300_match_ccmode): New.
19991 (mn10300_split_and_operand_count): New.
19992 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
19993 to the function.
19994 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
19995 (addsi3): ... here. Use mn10300_output_add.
19996 (*addsi3_flags): New.
19997 (*am33_subsi3, *mn10300_subsi3): Merge...
19998 (subsi3): ... here. Use attribute isa.
19999 (*subsi3_flags): New.
20000 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
20001 when possible.
20002 (*am33_andsi3, *mn10300_andsi3): Merge...
20003 (andsi3): ... here.
20004 (*andsi3_flags): New.
20005 (andsi3 splitters): New.
20006 (*am33_iorsi3, *mn10300_iorsi3): Merge...
20007 (iorsi3): ... here.
20008 (*iorsi3_flags): New.
20009 (*am33_xorsi3, *mn10300_xorsi3): Merge...
20010 (xorsi3): ... here.
20011 (*xorsi3_flags): New.
20012 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
20013 (one_cmplsi2): ... here.
20014 (*one_cmplsi2_flags): New.
20015 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
20016 instead of "dax" in constraints. Use mn10300_split_cbranch.
20017 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
20018 use matching constraints to eliminate a self-comparison.
20019 (*integer_conditional_branch): Rename from integer_conditional_branch.
20020 Use int_mode_flags to match CC_REG.
20021 (*cbranchsi4_btst, *btstsi): New.
20022 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
20023 mn10300_split_cbranch.
20024 (*am33_cmpsf): Rename from am33_cmpsf.
20025 (*float_conditional_branch): Rename from float_conditional_branch.
20026 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
20027 (zero_extendqisi2): ... here.
20028 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
20029 (zero_extendhisi2): ... here.
20030 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
20031 (extendqisi2): ... here.
20032 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
20033 (extendhisi2): ... here.
20034 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
20035 (ashlsi3): ... here.
20036 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
20037 (lshrsi3): ... here.
20038 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
20039 (ashrsi3): ... here.
20040 (consecutive add peephole): Remove.
20041 * config/mn10300/predicates.md (label_ref_operand): New.
20042 (int_mode_flags): New.
20043 (CCZN_comparison_operator): New.
20044
20045 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
20046 (throughput_42_latency_43): New reservation.
20047 (mulsidi3, umulsidi3): New expanders.
20048 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
20049 the MDR register to allocation; separately allocate the low and
20050 high parts of the DImode result.
20051 (umulsidi3_internal): Similarly.
20052 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
20053 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
20054 (udivsi3, umodsi3): Remove.
20055 (udivmodsi4, divmodsi4): New expanders.
20056 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
20057 (*divmodsi4): Simiarly.
20058 (ext_internal): New.
20059
20060 * config/mn10300/constraints.md ("z"): New constraint.
20061 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
20062 (FIXED_REGISTERS): Don't fix MDR.
20063 (CALL_USED_REGSITERS): Reformat nicely.
20064 (REG_ALLOC_ORDER): Add MDR.
20065 (enum regclass): Add MDR_REGS.
20066 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
20067 (IRA_COVER_CLASSES): Add MDR_REGS.
20068 (REGNO_REG_CLASS): Handle MDR_REG.
20069 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
20070 (mn10300_register_move_cost): Likewise.
20071 * config/mn10300/mn10300.md (MDR_REG): New.
20072 (*movsi_internal): Handle moves to/from MDR_REGS.
20073
20074 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
20075 POST_MODIFY.
20076 (mn10300_secondary_reload): Tidy combination reload classes.
20077 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
20078 addresses for AM33. Allow symbolic offsets for reg+imm.
20079 (mn10300_regno_in_class_p): New.
20080 (mn10300_legitimize_reload_address): New.
20081 * config/mn10300/mn10300.h (enum reg_class): Remove
20082 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
20083 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
20084 SP_OR_GENERAL_REGS.
20085 (REG_CLASS_NAMES): Update to match.
20086 (REG_CLASS_CONTENTS): Likewise.
20087 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
20088 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
20089 (REGNO_IN_RANGE_P): Remove.
20090 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
20091 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
20092 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
20093 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
20094 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
20095 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
20096 (REGNO_GENERAL_P): New.
20097 (HAVE_POST_MODIFY_DISP): New.
20098 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
20099 (LEGITIMIZE_RELOAD_ADDRESS): New.
20100 * config/mn10300/mn10300-protos.h: Update.
20101
20102 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
20103 DATA_REGS for AM33 stack-pointer destination.
20104 (mn10300_preferred_output_reload_class): Likewise.
20105 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
20106 into a form appropriate for ...
20107 (TARGET_SECONDARY_RELOAD): New.
20108 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
20109 * config/mn10300/mn10300-protos.h: Update.
20110 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
20111 reload_insi; use the "A" constraint for the scratch; handle AM33
20112 moves of sp to non-address registers.
20113
20114 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
20115 (*movqi_internal): ... here.
20116 (*am33_movhi, *mn10300_movhi): Merge into...
20117 (*movhi_internal): ... here.
20118 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
20119 as the source/destination of moves from/to SP.
20120 (movsf): Only allow for AM33-2.
20121 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
20122 any integer constant constraint. Only allow for AM33-2. Tidy
20123 all of the alternative outputs.
20124 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
20125 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
20126 for MN103.
20127 (udivsi3, umodsi3): New patterns for MN103 only.
20128
20129 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
20130
20131 * doc/tm.texi.in: Spell out that a lack of register class unions
20132 can lead to ICEs.
20133 * doc/tm.texi: Regenerate.
20134
20135 2011-01-19 Jakub Jelinek <jakub@redhat.com>
20136
20137 PR rtl-optimization/47337
20138 * dce.c (check_argument_store): New function.
20139 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
20140
20141 PR tree-optimization/47290
20142 * tree-eh.c (infinite_empty_loop_p): New function.
20143 (cleanup_empty_eh): Use it.
20144
20145 2011-01-18 Steve Ellcey <sje@cup.hp.com>
20146
20147 PR target/46997
20148 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
20149 (a64_expand_widen_sum): Ditto.
20150 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
20151 (vec_extract_evenodd_help): Ditto.
20152 (vec_extract_evenv4hi): Ditto.
20153 (vec_extract_oddv4hi): Ditto.
20154 (vec_extract_evenv2si): Ditto.
20155 (vec_extract_oddv2si): Ditto.
20156 (vec_extract_evenv2sf): Ditto.
20157 (vec_extract_oddv2sf): Ditto.
20158 (vec_pack_trunc_v4hi: Ditto.
20159 (vec_pack_trunc_v2si): Ditto.
20160 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
20161 (vec_interleave_highv8qi): Ditto.
20162 (mix1_r): Ditto.
20163 (vec_extract_oddv8qi): Ditto.
20164 (vec_interleave_lowv4hi): Ditto.
20165 (vec_interleave_highv4hi): Ditto.
20166 (vec_interleave_lowv2si): Ditto.
20167 (vec_interleave_highv2si): Ditto.
20168
20169 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20170
20171 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
20172 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
20173 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
20174 (pa_c_mode_for_suffix): New.
20175 (TARGET_EXPAND_BUILTIN): Define.
20176 (TARGET_C_MODE_FOR_SUFFIX): Define.
20177 (pa_builtins): Define.
20178 (pa_init_builtins): Register __float128 type and init new support
20179 builtins.
20180 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
20181 * config/pa/quadlib.c (_U_Qfcopysign): New.
20182
20183 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
20184
20185 PR middle-end/46894
20186 * explow.c (allocate_dynamic_stack_space): Do not assume more than
20187 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
20188 are defined.
20189
20190 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20191
20192 PR tree-optimization/47179
20193 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
20194 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
20195
20196 2011-01-18 Richard Guenther <rguenther@suse.de>
20197
20198 PR rtl-optimization/47216
20199 * emit-rtl.c: Include tree-flow.h.
20200 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
20201 of replicating it with different semantics.
20202 * Makefile.in (emit-rtl.o): Adjust.
20203
20204 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20205
20206 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
20207 (cortex_a9_dp): Handle neon types correctly.
20208
20209 2011-01-18 Jakub Jelinek <jakub@redhat.com>
20210
20211 PR rtl-optimization/47299
20212 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
20213 subtarget. Use normal multiplication if both operands are constants.
20214 * expmed.c (expand_widening_mult): Don't try to optimize constant
20215 multiplication if op0 has VOIDmode. Convert op1 constant to mode
20216 before using it.
20217
20218 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20219
20220 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
20221 spacing after 'e.g.', typos, comma, hyphenation.
20222
20223 2011-01-17 Richard Henderson <rth@redhat.com>
20224
20225 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
20226 (rx_restricted_mem_operand): New.
20227 (rx_shift_operand): Use register_operand.
20228 (rx_source_operand, rx_compare_operand): Likewise.
20229 * config/rx/rx.md (addsi3_flags): New expander.
20230 (adddi3): Rewrite as expander.
20231 (adc_internal, *adc_flags, adddi3_internal): New patterns.
20232 (subsi3_flags): New expander.
20233 (subdi3): Rewrite as expander.
20234 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
20235
20236 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
20237 (rx_init_builtins): Remove sat builtin.
20238 (rx_expand_builtin): Likewise.
20239 * config/rx/rx.md (ssaddsi3): New.
20240 (*sat): Rename from sat. Represent the CC_REG input.
20241
20242 * config/rx/predicates.md (rshift_operator): New.
20243 * config/rx/rx.c (rx_expand_insv): Remove.
20244 * config/rx/rx-protos.h: Update.
20245 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
20246 operand to the canonical position.
20247 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
20248 (*bitclr, *bitclr_in_memory): Similarly.
20249 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
20250 (insv): Retain the zero_extract in the expansion.
20251
20252 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
20253 (bswaphi2, bitinvert, revw): Likewise.
20254
20255 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
20256 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
20257 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
20258 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
20259 (bitset, bitset_in_memory): Likewise.
20260 (bitinvert, bitinvert_in_memory): Likewise.
20261 (bitclr, bitclr_in_memory): Likewise.
20262 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
20263 (rx_strend, rx_cmpstrn): Likewise.
20264 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
20265 (bitop peep2 patterns): Remove.
20266
20267 * config/rx/rx.c (rx_match_ccmode): New.
20268 * config/rx/rx-protos.h: Update.
20269 * config/rx/rx.md (abssi2): Clobber, don't set flags.
20270 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
20271 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
20272 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
20273 (fix_truncsfsi2, floatsisf2): Likewise.
20274 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
20275 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
20276 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
20277 (*subsi3_flags, *xorsi3_flags): New.
20278
20279 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
20280
20281 * config/rx/rx.c (rx_print_operand): Remove workaround for
20282 unsplit comparison operations.
20283
20284 * config/rx/rx.md (movsicc): Split after reload.
20285 (*movsicc): Merge *movsieq and *movsine via match_operator.
20286 (*stcc): New pattern.
20287
20288 * config/rx/rx.c (rx_float_compare_mode): Remove.
20289 * config/rx/rx.h (rx_float_compare_mode): Remove.
20290 * config/rx/rx.md (cstoresi4): Split after reload.
20291 (*sccc): New pattern.
20292
20293 * config/rx/predicates.md (label_ref_operand): New.
20294 (rx_z_comparison_operator): New.
20295 (rx_zs_comparison_operator): New.
20296 (rx_fp_comparison_operator): New.
20297 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
20298 Validate that the flags are set properly for the comparison.
20299 (rx_gen_cond_branch_template): Remove.
20300 (rx_cc_modes_compatible): Remove.
20301 (mode_from_flags): New.
20302 (flags_from_code): Rename from flags_needed_for_conditional.
20303 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
20304 (rx_select_cc_mode): Likewise.
20305 (rx_split_fp_compare): New.
20306 (rx_split_cbranch): New.
20307 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
20308 (*cbranchsi4): Use match_operator and rx_split_cbranch.
20309 (*cbranchsf4): Similarly.
20310 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
20311 match_operator and rx_split_cbranch.
20312 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
20313 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
20314 (*cmpsi): Rename from cmpsi.
20315 (*tstsi): Rename from tstsi.
20316 (*cmpsf): Rename from cmpsf; use CC_Fmode.
20317 (*conditional_branch): Rename from conditional_branch.
20318 (*reveresed_conditional_branch): Remove.
20319 (b<code>): Remove expander.
20320 * config/rx/rx-protos.h: Update.
20321
20322 * config/rx/rx.c (rx_compare_redundant): Remove.
20323 * config/rx/rx.md (cmpsi): Don't use it.
20324 * config/rx/rx-protos.h: Update.
20325
20326 * config/rx/rx-modes.def (CC_F): New mode.
20327 * config/rx/rx.c (rx_select_cc_mode): New.
20328 * config/rx/rx.h (SELECT_CC_MODE): Use it.
20329 * config/rx/rx-protos.h: Update.
20330
20331 2011-01-17 Richard Henderson <rth@redhat.com>
20332
20333 * except.c (dump_eh_tree): Fix stray ; after for statement.
20334
20335 2011-01-17 Richard Guenther <rguenther@suse.de>
20336
20337 PR tree-optimization/47313
20338 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
20339 handling before copying the body. Properly deal with
20340 by-reference result in SSA form.
20341
20342 2011-01-17 Ian Lance Taylor <iant@google.com>
20343
20344 PR target/47219
20345 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
20346 (struct_value_alias_set): Don't define.
20347 (sparc_option_override): Don't set sparc_sr_alias_set and
20348 struct_value_alias_set.
20349 (save_or_restore_regs): Use gen_frame_mem rather than calling
20350 set_mem_alias_set.
20351 (sparc_struct_value_rtx): Likewise.
20352
20353 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
20354
20355 PR target/47318
20356 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
20357 (_mm_maskstore_pd): Likewise.
20358 (_mm_maskload_ps): Likewise.
20359 (_mm_maskstore_ps): Likewise.
20360 (_mm256_maskload_pd): Change mask to __m256i.
20361 (_mm256_maskstore_pd): Likewise.
20362 (_mm256_maskload_ps): Likewise.
20363 (_mm256_maskstore_ps): Likewise.
20364
20365 * config/i386/i386-builtin-types.def: Updated.
20366 (ix86_expand_special_args_builtin): Likewise.
20367
20368 * config/i386/i386.c (bdesc_special_args): Update
20369 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
20370 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
20371 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
20372 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
20373
20374 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
20375 Use <avxpermvecmode> on mask register.
20376 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
20377
20378 2011-01-17 Olivier Hainque <hainque@adacore.com>
20379 Michael Haubenwallner <michael.haubenwallner@salomon.at>
20380 Eric Botcazou <ebotcazou@adacore.com>
20381
20382 PR target/46655
20383 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
20384 if <= USHRT_MAX in 32-bit mode.
20385
20386 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20387
20388 * doc/install.texi (Configuration, Specific): Wrap long
20389 lines in examples. Allow line wrapping in long options
20390 and URLs where beneficial for PDF output.
20391
20392 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
20393
20394 * config/mips/mips.c (mips_classify_symbol): Don't return
20395 SYMBOL_PC_RELATIVE for nonlocal labels.
20396
20397 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
20398
20399 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
20400
20401 2011-01-15 Jan Hubicka <jh@suse.cz>
20402
20403 PR tree-optimization/47276
20404 * ipa.c (function_and_variable_visibility): Do not try to mark alias
20405 declarations as needed.
20406
20407 2011-01-15 Martin Jambor <mjambor@suse.cz>
20408
20409 * common.opt (fdevirtualize): New flag.
20410 * doc/invoke.texi (Option Summary): Document it.
20411 * opts.c (default_options_table): Add devirtualize flag.
20412 * ipa-prop.c (detect_type_change): Return immediately if
20413 devirtualize flag is not set.
20414 (detect_type_change_ssa): Likewise.
20415 (compute_known_type_jump_func): Likewise.
20416 (ipa_analyze_virtual_call_uses): Likewise.
20417
20418 2011-01-14 Martin Jambor <mjambor@suse.cz>
20419
20420 PR tree-optimization/45934
20421 PR tree-optimization/46302
20422 * ipa-prop.c (type_change_info): New type.
20423 (stmt_may_be_vtbl_ptr_store): New function.
20424 (check_stmt_for_type_change): Likewise.
20425 (detect_type_change): Likewise.
20426 (detect_type_change_ssa): Likewise.
20427 (compute_complex_assign_jump_func): Check for dynamic type change.
20428 (compute_complex_ancestor_jump_func): Likewise.
20429 (compute_known_type_jump_func): Likewise.
20430 (compute_scalar_jump_functions): Likewise.
20431 (ipa_analyze_virtual_call_uses): Likewise.
20432 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
20433
20434 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20435
20436 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
20437 * config/i386/i386.opt (msse5): New Alias.
20438
20439 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20440
20441 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
20442 * config/sparc/linux64.h (CC1_SPEC): Likewise.
20443 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
20444 * config/sparc/sparc.h (CC1_SPEC): Likewise.
20445
20446 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20447
20448 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
20449 -mcpu options.
20450 * config/sparc/linux64.h (CC1_SPEC): Likewise.
20451 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
20452 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
20453 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
20454 Likewise.
20455 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
20456
20457 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20458
20459 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
20460
20461 2011-01-14 Mike Stump <mikestump@comcast.net>
20462
20463 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
20464 * config/fr30/fr30.md: Likweise
20465 (movsi_push): Likewise.
20466 (movsi_pop): Likewise.
20467 (enter_func): Likewise.
20468 * config/moxie/moxie.md (movsi_push): Likewise.
20469 (movsi_pop): Likewise.
20470
20471 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20472
20473 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
20474 %{no_archive} %{exact_version}.
20475 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
20476 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
20477 %{no_archive} %{exact_version}.
20478 * config/mips/openbsd.h (LINK_SPEC): Likewise.
20479 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
20480 * config/mips/vxworks.h: Likewise.
20481
20482 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20483
20484 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
20485
20486 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20487
20488 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
20489 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
20490
20491 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20492
20493 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
20494 -nodefaultlib.
20495
20496 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20497
20498 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
20499 for mcpu not cpu.
20500 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
20501 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
20502 not cpu.
20503 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
20504 Don't handle -shlib.
20505
20506 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20507
20508 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
20509 (CC1_SPEC): Don't handle -profile.
20510
20511 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20512
20513 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
20514 * config/mips/mips.h (CC1_SPEC): Likewise.
20515
20516 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20517
20518 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
20519 * config/mips/mips.h (CC1_SPEC): Likewise.
20520
20521 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20522
20523 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
20524 * config/m32r/linux.h (LINK_SPEC): Likewise.
20525 * config/mips/linux.h (LINK_SPEC): Likewise.
20526 * config/mips/linux64.h (LINK_SPEC): Likewise.
20527 * config/sparc/linux.h (LINK_SPEC): Likewise.
20528 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
20529 LINK_SPEC): Likewise.
20530 * config/xtensa/linux.h (LINK_SPEC): Likewise.
20531
20532 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20533
20534 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
20535 %{version:-v}.
20536 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
20537
20538 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20539
20540 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
20541 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20542
20543 2011-01-14 Joseph Myers <joseph@codesourcery.com>
20544
20545 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
20546
20547 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20548
20549 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
20550 supports -Bstatic/-Bdynamic.
20551 * configure: Regenerate.
20552
20553 2011-01-14 Jan Hubicka <jh@suse.cz>
20554 Jack Howarth <howarth@bromo.med.uc.edu>
20555
20556 PR target/46037
20557 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
20558 when checking debug_info_level. Test write_symbols instead of
20559 debug_hooks->var_location when setting flag_var_tracking_uninit.
20560
20561 2011-01-14 Richard Guenther <rguenther@suse.de>
20562
20563 PR tree-optimization/47179
20564 * target.def (ref_may_alias_errno): New target hook.
20565 * targhooks.h (default_ref_may_alias_errno): Declare.
20566 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
20567 (default_ref_may_alias_errno): New function.
20568 * target.h (struct ao_ref_s): Declare.
20569 * tree-ssa-alias.c: Include target.h.
20570 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
20571 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
20572 (targhooks.o): Likewise.
20573 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
20574 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
20575
20576 2011-01-14 Richard Guenther <rguenther@suse.de>
20577
20578 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
20579
20580 2011-01-14 Richard Guenther <rguenther@suse.de>
20581
20582 PR tree-optimization/47280
20583 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
20584 return CFG changes.
20585 (tree_ssa_forward_propagate_single_use_vars): Deal with
20586 CFG changes from associate_plusminus.
20587
20588 2011-01-14 Richard Guenther <rguenther@suse.de>
20589
20590 PR middle-end/47281
20591 Revert
20592 2011-01-11 Richard Guenther <rguenther@suse.de>
20593
20594 PR tree-optimization/46076
20595 * tree-ssa.c (useless_type_conversion_p): Conversions from
20596 unprototyped to empty argument list function types are useless.
20597
20598 2011-01-14 Richard Guenther <rguenther@suse.de>
20599
20600 PR tree-optimization/47286
20601 * tree-ssa-structalias.c (new_var_info): Register variables are global.
20602
20603 2011-01-14 Martin Jambor <mjambor@suse.cz>
20604
20605 PR middle-end/46823
20606 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
20607
20608 2011-01-13 Anatoly Sokolov <aesok@post.ru>
20609
20610 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
20611 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20612 * config/xtensa/xtensa.c (xtensa_libcall_value,
20613 xtensa_function_value_regno_p): New functions.
20614 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20615
20616 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
20617
20618 PR c++/47213
20619 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
20620 PE specific hook.
20621 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
20622 New function prototype.
20623 * config/i386/winnt.c (i386_pe_assemble_visibility):
20624 Warn only if attribute was specified by user.
20625
20626 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
20627
20628 PR target/47251
20629 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
20630 floating point.
20631 (floatunsdidf2_fcfidu): Ditto.
20632
20633 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20634
20635 * config/s390/s390.c (print_operand_address): Replace 'error' with
20636 'output_operand_lossage'.
20637 (print_operand): Likewise.
20638
20639 2011-01-13 Jeff Law <law@redhat.com>
20640
20641 PR rtl-optimization/39077
20642 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
20643 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
20644 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
20645 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
20646 * gcse.c (prune_insertions_deletions): New function.
20647 (compute_pre_data): Use it.
20648
20649 2011-01-13 Dodji Seketeli <dodji@redhat.com>
20650
20651 PR debug/PR46973
20652 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
20653 static function.
20654 (prune_unused_types_mark): Use it.
20655
20656 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
20657
20658 PR rtl-optimization/45352
20659 * sel-sched.c: Update copyright years.
20660 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
20661 in the advancing loop when we have issued issue_rate insns.
20662
20663 2011-01-12 Richard Henderson <rth@redhat.com>
20664
20665 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
20666 (TARGET_MD_ASM_CLOBBERS): New.
20667
20668 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
20669 (TARGET_DELEGITIMIZE_ADDRESS): New.
20670
20671 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
20672 (clzsi2, *bsch): New patterns.
20673
20674 * config/mn10300/mn10300.md (INT): New mode iterator.
20675 (*mov<INT>_clr): New pattern, and peep2 to generate it.
20676
20677 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
20678 flag_split_wide_types.
20679
20680 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
20681 (mn10300_trampoline_init): Rewrite without a template, an immediate
20682 load and a direct branch.
20683 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
20684
20685 2011-01-12 Anatoly Sokolov <aesok@post.ru>
20686
20687 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20688 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
20689 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
20690 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20691
20692 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
20693
20694 PR debug/47209
20695 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
20696 of type.
20697
20698 2011-01-12 Jan Hubicka <jh@suse.cz>
20699
20700 PR driver/47244
20701 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
20702 (PLUGIN_COND_CLOSE): New macro.
20703 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
20704
20705 2011-01-12 Richard Guenther <rguenther@suse.de>
20706
20707 PR lto/47259
20708 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
20709 register variables in a MEM_REF.
20710
20711 2011-01-12 Joseph Myers <joseph@codesourcery.com>
20712
20713 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
20714 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
20715 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
20716 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
20717 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
20718 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
20719 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
20720 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
20721 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
20722 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
20723 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
20724 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
20725 * config/gnu-user.h: New. Copied from linux.h.
20726 (LINUX_TARGET_STARTFILE_SPEC): Rename to
20727 GNU_USER_TARGET_STARTFILE_SPEC.
20728 (LINUX_TARGET_ENDFILE_SPEC): Rename to
20729 GNU_USER_TARGET_ENDFILE_SPEC.
20730 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
20731 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
20732 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
20733 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
20734 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
20735 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
20736 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
20737 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
20738 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
20739 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
20740 * config/arm/linux-eabi.h (CC1_SPEC): Use
20741 GNU_USER_TARGET_CC1_SPEC.
20742 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
20743 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
20744 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
20745 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
20746 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
20747 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
20748 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
20749 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
20750
20751 2011-01-12 Richard Guenther <rguenther@suse.de>
20752
20753 PR other/46946
20754 * doc/invoke.texi (ffast-math): Document it is turned on
20755 with -Ofast.
20756
20757 2011-01-12 Jan Hubicka <jh@suse.cz>
20758
20759 PR tree-optimization/47233
20760 * opts.c (common_handle_option): Disable ipa-reference with profile
20761 feedback.
20762
20763 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20764
20765 * c-parser.c (c_parser_objc_at_property_declaration): Improved
20766 error message.
20767
20768 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20769
20770 * c-parser.c (c_lex_one_token): Updated and reindented some
20771 comments. No changes in code.
20772
20773 2011-01-11 Ian Lance Taylor <iant@google.com>
20774
20775 * godump.c (go_output_var): Don't output the variable if there is
20776 already a type with the same name.
20777
20778 2011-01-11 Ian Lance Taylor <iant@google.com>
20779
20780 * godump.c (go_format_type): Don't generate float80.
20781
20782 2011-01-11 Richard Henderson <rth@redhat.com>
20783
20784 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
20785 declaration. Rewrite for both speed and size.
20786 (mn10300_address_cost_1): Remove.
20787 (mn10300_register_move_cost): New.
20788 (mn10300_memory_move_cost): New.
20789 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
20790 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
20791 extensions, shifts, BSWAP, CLZ.
20792 (mn10300_wide_const_load_uses_clr): Remove.
20793 (TARGET_REGISTER_MOVE_COST): New.
20794 (TARGET_MEMORY_MOVE_COST): New.
20795 * config/mn10300/mn10300-protos.h: Update.
20796 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
20797
20798 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
20799 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
20800 * config/mn10300/mn10300-protos.h: Update.
20801 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
20802 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
20803 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
20804 (*test_int_bitfield, *test_byte_bitfield): Remove.
20805 (*bit_test, *subreg_bit_test): Remove.
20806 * config/mn10300/predicates.md (const_8bit_operand): Remove.
20807
20808 * config/mn10300/constraints.md ("c"): Rename from "A".
20809 ("A", "D"): New constraint letters.
20810 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
20811 (fmssf4, fnmasf4, fnmssf4): Likewise.
20812
20813 * config/mn10300/mn10300.md (isa): New attribute.
20814 (enabled): New attribute.
20815
20816 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
20817 (abssf2, negsf2): Define only for hardware fp.
20818 (sqrtsf2): Reformat.
20819 (addsf3, subsf3, mulsf3): Merge expander and insn.
20820
20821 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
20822 (DEBUGGER_AUTO_OFFSET): Remove.
20823 (DEBUGGER_ARG_OFFSET): Remove.
20824
20825 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
20826 Emit register stores with the same offsets as the hardware.
20827 (mn10300_store_multiple_operation): Don't check that the register
20828 save offsets are monotonic.
20829 * config/mn10300/mn10300-protos.h: Update.
20830
20831 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
20832
20833 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
20834 in terms of the value on the stack, not the MDR register.
20835
20836 2011-01-11 Jan Hubicka <jh@suse.cz>
20837
20838 PR lto/45721
20839 PR lto/45375
20840 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
20841 (symbol_alias_set_destroy, symbol_alias_set_contains,
20842 propagate_aliases_backward): Declare.
20843 * lto-streamer-out.c (struct sets): New sturcture.
20844 (trivally_defined_alias): New function.
20845 (output_alias_pair_p): Rewrite.
20846 (output_unreferenced_globals): Fix output of alias pairs.
20847 (produce_symtab): Likewise.
20848 * ipa.c (function_and_variable_visibility): Set weak alias destination
20849 as needed in lto.
20850 * varasm.c (symbol_alias_set_t): Remove.
20851 (symbol_alias_set_destroy): Export.
20852 (propagate_aliases_forward, propagate_aliases_backward): New functions
20853 based on ...
20854 (compute_visible_aliases): ... this one; remove.
20855 (trivially_visible_alias): New
20856 (trivially_defined_alias): New.
20857 (remove_unreachable_alias_pairs): Rewrite.
20858 (finish_aliases_1): Reorganize code checking if alias is defined.
20859 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
20860 in LTO mode.
20861
20862 2011-01-11 Richard Guenther <rguenther@suse.de>
20863
20864 PR tree-optimization/46076
20865 * tree-ssa.c (useless_type_conversion_p): Conversions from
20866 unprototyped to empty argument list function types are useless.
20867
20868 2011-01-11 Richard Guenther <rguenther@suse.de>
20869
20870 PR middle-end/45235
20871 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
20872 volatile MEMs as MEM_READONLY_P.
20873
20874 2011-01-11 Richard Guenther <rguenther@suse.de>
20875
20876 PR tree-optimization/47239
20877 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
20878
20879 2011-01-11 Jeff Law <law@redhat.com>
20880
20881 PR tree-optimization/47086
20882 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
20883 IVs from statements that might throw.
20884
20885 2011-01-10 Jan Hubicka <jh@suse.cz>
20886
20887 PR lto/45375
20888 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
20889
20890 2011-01-10 Jan Hubicka <jh@suse.cz>
20891
20892 PR lto/45375
20893 * profile.c (read_profile_edge_counts): Ignore profile inconistency
20894 when correcting profile.
20895
20896 2011-01-10 Jan Hubicka <jh@suse.cz>
20897
20898 PR lto/46083
20899 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
20900 DECL_FINI_PRIORITY.
20901 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
20902 Restore DECL_FINI_PRIORITY.
20903
20904 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20905
20906 * doc/gimple.texi: Fix quoting of multi-word return values in
20907 @deftypefn statements. Ensure presence of return value. Wrap
20908 overlong @deftypefn lines.
20909 (is_gimple_operand, is_gimple_min_invariant_address): Remove
20910 descriptions of removed functions.
20911 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
20912 of multi-word return value in @deftypefn statement.
20913
20914 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20915
20916 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
20917 (Conditional Expressions, Logical Operators)
20918 (Statement and operand traversals): Do not indent smallexample
20919 code. Fix duplicate function argument in example.
20920
20921 2011-01-10 Jeff Law <law@redhat.com>
20922
20923 PR tree-optimization/47141
20924 * ipa-split.c (split_function): Handle case where we are
20925 returning a value and the return block has a virtual operand phi.
20926
20927 2011-01-10 Jan Hubicka <jh@suse.cz>
20928
20929 PR tree-optimization/47234
20930 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
20931 (pass_feedback_split_functions): Declare.
20932 * passes.c (init_optimization_passes): Add ipa-split as subpass of
20933 tree-profile.
20934 * ipa-split.c (gate_split_functions): Update comments; disable
20935 split-functions for profile_arc_flag and branch_probabilities.
20936 (gate_feedback_split_functions): New function.
20937 (execute_feedback_split_functions): New function.
20938 (pass_feedback_split_functions): New global var.
20939
20940 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
20941
20942 PR lto/46760
20943 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
20944 calling gimple_call_set_cannot_inline.
20945
20946 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
20947
20948 * config/darwin-sections.def: Remove unused section.
20949
20950 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
20951
20952 PR c++/47218
20953 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
20954
20955 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
20956
20957 PR objc/47232
20958 * c-parser.c (c_parser_declaration_or_fndef): Improved
20959 error message.
20960
20961 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
20962
20963 * config/i386/winnt.c (i386_pe_start_function): Make sure
20964 to switch back to function's section.
20965
20966 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
20967
20968 PR gcc/46902
20969 PR testsuite/46912
20970 * plugin.c: Move include of dlfcn.h from here...
20971 * system.h: ... to here.
20972
20973 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20974
20975 * doc/cpp.texi (C++ Named Operators): Fix markup for header
20976 file name.
20977 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
20978 two extra empty pages in PDF output.
20979
20980 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
20981
20982 PR objc/47078
20983 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
20984 for error recovery purposes behave as if it was not specified so
20985 that the default type is usd.
20986
20987 2011-01-07 Jan Hubicka <jh@suse.cz>
20988
20989 PR tree-optmization/46469
20990 * ipa.c (function_and_variable_visibility): Clear needed flags on
20991 nodes with external decls; handle weakrefs merging correctly.
20992
20993 2011-01-07 Joseph Myers <joseph@codesourcery.com>
20994
20995 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
20996 not false.
20997
20998 2011-01-07 Jan Hubicka <jh@suse.cz>
20999
21000 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
21001 and no longer claim that gold is required for linker plugin.
21002 * configure: Regenerate.
21003 * gcc.c (PLUGIN_COND): New macro.
21004 (LINK_COMMAND_SPEC): Use it.
21005 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
21006 * config.in (HAVE_LTO_PLUGIN): New.
21007 * configure.ac (--with-lto-plugin): New parameter; autodetect
21008 HAVE_LTO_PLUGIN.
21009
21010 2011-01-07 Jan Hubicka <jh@suse.cz>
21011
21012 PR tree-optimization/46367
21013 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
21014 when we can update original.
21015 (cgraph_mark_inline_edge): Sanity check.
21016 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
21017
21018 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21019
21020 * config/spu/spu.h (ASM_COMMENT_START): Define.
21021
21022 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
21023
21024 PR driver/42445
21025 * gcc.c (%>S): New.
21026 (SWITCH_KEEP_FOR_GCC): Likewise.
21027 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
21028 (do_spec_1): Handle "%>".
21029
21030 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
21031
21032 2011-01-07 Jakub Jelinek <jakub@redhat.com>
21033
21034 PR target/47201
21035 * config/i386/i386.c (ix86_delegitimize_address): If
21036 simplify_gen_subreg fails, return orig_x.
21037
21038 PR bootstrap/47187
21039 * value-prof.c (gimple_stringop_fixed_value): Handle
21040 lhs of the call properly.
21041
21042 2011-01-07 Jan Hubicka <jh@suse.cz>
21043
21044 PR lto/45375
21045 * lto-opt.c (lto_reissue_options): Set flag_shlib.
21046
21047 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
21048
21049 * target.def (function_switched_text_sections): New hook.
21050 * doc/tm.texi: Regenerated.
21051 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
21052 * final.c (default_function_switched_text_sections): New.
21053 (final_scan_insn): Call function_switched_text_sections when a
21054 mid-function section change occurs.
21055 * output.h (default_function_switched_text_sections): Declare.
21056 * config/darwin-protos.h (darwin_function_switched_text_sections):
21057 Likewise.
21058 * config/darwin.c (darwin_function_switched_text_sections): New.
21059 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
21060
21061 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
21062
21063 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
21064 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
21065 the secondary code fragment when outputting for DWARF == 2.
21066
21067 2011-01-07 Anatoly Sokolov <aesok@post.ru>
21068
21069 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21070 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
21071 Remove.
21072 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
21073 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21074
21075 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
21076
21077 PR debug/46704
21078 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
21079 when it is not empty.
21080
21081 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
21082
21083 Bobcat Enablement
21084 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
21085 (case ${target}): Add btver1.
21086 * config/i386/driver-i386.c (host_detect_local_cpu): Let
21087 -march=native recognize btver1 processors.
21088 * config/i386/i386-c.c (ix86_target_macros_internal): Add
21089 btver1 def_and_undef
21090 * config/i386/i386.c (struct processor_costs btver1_cost): New
21091 btver1 cost table.
21092 (m_BTVER1): New definition.
21093 (m_AMD_MULTIPLE): Includes m_BTVER1.
21094 (initial_ix86_tune_features): Add btver1 tune.
21095 (processor_target_table): Add btver1 entry.
21096 (static const char *const cpu_names): Add btver1 entry.
21097 (software_prefetching_beneficial_p): Add btver1.
21098 (ix86_option_override_internal): Add btver1 instruction sets.
21099 (ix86_issue_rate): Add btver1.
21100 (ix86_adjust_cost): Add btver1.
21101 * config/i386/i386.h (TARGET_BTVER1): New definition.
21102 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
21103 (enum processor_type): Add PROCESSOR_BTVER1.
21104 * config/i386/i386.md (define_attr "cpu"): Add btver1.
21105
21106 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21107
21108 PR target/43309
21109 * config/i386/i386.c (legitimize_tls_address)
21110 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
21111 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
21112 (tls_initial_exec_64_sun): New pattern.
21113
21114 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
21115
21116 * doc/invoke.texi (Overall Options): Improve wording and markup
21117 of the description of -wrapper.
21118
21119 2011-01-06 Joseph Myers <joseph@codesourcery.com>
21120
21121 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
21122 rdynamic, threads): New Driver options.
21123
21124 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21125
21126 PR target/38118
21127 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
21128 if coming from .tdata.
21129 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
21130
21131 2011-01-06 Jan Hubicka <jh@suse.cz>
21132
21133 PR lto/47188
21134 * collect2.c (main): Do not enable LTOmode when plugin is active.
21135
21136 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21137
21138 PR other/45915
21139 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
21140 --version output if supported.
21141 * configure: Regenerate.
21142
21143 2011-01-06 Joseph Myers <joseph@codesourcery.com>
21144
21145 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
21146 Driver options.
21147
21148 2011-01-06 Jakub Jelinek <jakub@redhat.com>
21149
21150 PR c/47150
21151 * c-convert.c (convert): When converting a complex expression
21152 other than COMPLEX_EXPR to a different complex type, ensure
21153 c_save_expr is called instead of save_expr, unless in_late_binary_op.
21154 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
21155 when converting COMPLEX_TYPE.
21156
21157 2011-01-06 Ira Rosen <irar@il.ibm.com>
21158
21159 PR tree-optimization/47139
21160 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
21161 only the last reduction value is used outside the loop. Update
21162 documentation.
21163
21164 2011-01-05 Joseph Myers <joseph@codesourcery.com>
21165
21166 * config/rtems.opt: New.
21167 * config.gcc (*-*-rtems*): Use rtems.opt.
21168
21169 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
21170
21171 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
21172 processors do not support 3DNow instructions.
21173
21174 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21175
21176 * config/spu/spu.c (spu_option_override): Set parameter
21177 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
21178
21179 2011-01-05 Jan Hubicka <jh@suse.cz>
21180
21181 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
21182 at the command line.
21183
21184 2011-01-05 Martin Jambor <mjambor@suse.cz>
21185
21186 PR lto/47162
21187 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
21188 deltas on streamed outgoing edges.
21189 (output_node_opt_summary): Output info for outgoing edges only when
21190 the node is in new parameter set.
21191 (output_cgraph_opt_summary): New parameter set, passed to the two
21192 aforementioned functions. Update its forward declaration and its
21193 callee too.
21194
21195 2011-01-05 Tom Tromey <tromey@redhat.com>
21196
21197 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
21198 operator to c_finish_omp_atomic.
21199 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
21200 (build_unary_op): Update.
21201 (build_modify_expr): Update.
21202 (build_asm_expr): Update.
21203
21204 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21205
21206 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
21207 newly inserted insns.
21208 (pad_bb): Likewise.
21209 (spu_emit_branch_hint): Likewise.
21210 (insert_hbrp_for_ilb_runout): Likewise.
21211 (spu_machine_dependent_reorg): Call df_finish_pass after
21212 schedule_insns returns.
21213
21214 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21215
21216 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
21217
21218 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
21219
21220 PR tree-optimization/47005
21221 * tree-sra.c (struct access): Add 'non_addressable' bit.
21222 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
21223 (decide_one_param_reduction): Return 0 if the parameter is passed by
21224 reference and one of the accesses in the group is non_addressable.
21225
21226 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
21227
21228 PR tree-optimization/47056
21229 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
21230 (mark_load): Likewise. Handle FUNCTION_DECL specially.
21231 (mark_store): Likewise. Pass STMT to ipa_record_reference.
21232
21233 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
21234
21235 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
21236 initializer. Skip view conversions from aggregate types.
21237
21238 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
21239
21240 PR bootstrap/47055
21241 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
21242
21243 2011-01-04 Philipp Thomas <pth@suse.de>
21244
21245 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
21246 obvious typo.
21247
21248 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21249
21250 * function.c (thread_prologue_and_epilogue_insns): Do not crash
21251 on empty epilogue sequences.
21252
21253 2011-01-04 Joseph Myers <joseph@codesourcery.com>
21254
21255 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
21256 non-static): New Driver options.
21257
21258 2011-01-04 Jie Zhang <jie@codesourcery.com>
21259
21260 PR driver/47137
21261 * gcc.c (default_compilers[]): Set combinable field to 0
21262 for all assembly languages.
21263
21264 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
21265
21266 * config/mips/loongson3a.md: New file.
21267 * config/mips/mips.md: Include loongson3a.md.
21268 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
21269 TUNE_LOONGSON_3A.
21270
21271 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
21272
21273 PR middle-end/47017
21274 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
21275 instead of convert_memory_address_addr_space on the base expression.
21276
21277 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21278
21279 * config/spu/spu.c (spu_option_override): Update error text
21280 for bad -march= / -mtune= values.
21281
21282 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21283
21284 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
21285 if branch-hint optimization will be performed.
21286
21287 2011-01-03 Jakub Jelinek <jakub@redhat.com>
21288
21289 PR tree-optimization/47148
21290 * ipa-split.c (split_function): Convert arguments to
21291 DECL_ARG_TYPE if possible.
21292
21293 PR tree-optimization/47155
21294 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
21295 when computing uns.
21296
21297 PR rtl-optimization/47157
21298 * combine.c (try_combine): If undobuf.other_insn becomes
21299 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
21300 and set *new_direct_jump_p too.
21301
21302 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
21303
21304 PR tree-optimization/47021
21305 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
21306
21307 2011-01-03 Jakub Jelinek <jakub@redhat.com>
21308
21309 * gcc.c (process_command): Update copyright notice dates.
21310 * gcov.c (print_version): Likewise.
21311 * gcov-dump.c (print_version): Likewise.
21312 * mips-tfile.c (main): Likewise.
21313 * mips-tdump.c (main): Likewise.
21314
21315 2011-01-03 Martin Jambor <mjambor@suse.cz>
21316
21317 PR tree-optimization/46801
21318 * tree-sra.c (type_internals_preclude_sra_p): Check whether
21319 aggregate fields start at byte boundary instead of the bit-field flag.
21320
21321 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
21322
21323 PR driver/47137
21324 * gcc.c (main): Revert revision 168407.
21325
21326 2011-01-03 Martin Jambor <mjambor@suse.cz>
21327
21328 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
21329
21330 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21331
21332 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
21333 vector optab to expand vector/scalar shift, update gimple to vector.
21334
21335 2011-01-03 Martin Jambor <mjambor@suse.cz>
21336
21337 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
21338 a thunk.
21339
21340 2011-01-03 Martin Jambor <mjambor@suse.cz>
21341
21342 PR tree-optimization/46984
21343 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
21344 HOST_WIDE_INT.
21345 (cgraph_create_indirect_edge): Fixed line length.
21346 (cgraph_indirect_call_info): Declare.
21347 (cgraph_make_edge_direct) Update declaration.
21348 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
21349 (cgraph_create_indirect_edge): Use it.
21350 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
21351 callees.
21352 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
21353 the new thunk_delta representation.
21354 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
21355 HOST_WIDE_INT.
21356 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
21357 (ipa_read_indirect_edge_info): Likewise.
21358 * lto-cgraph.c (output_edge_opt_summary): New function.
21359 (output_node_opt_summary): Call it on all outgoing edges.
21360 (input_edge_opt_summary): New function.
21361 (input_node_opt_summary): Call it on all outgoing edges.
21362
21363 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
21364
21365 PR driver/47137
21366 * gcc.c (main): Don't check have_o when settting combine_inputs.
21367
21368 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
21369
21370 * regrename.c: Add general comment describing the pass.
21371 (struct du_head): Remove 'length' field.
21372 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
21373 (regrename_optimize): Do not sort chains. Rework comments, add others.
21374 Force renaming to the preferred class (if any) in the first pass and do
21375 not consider registers that belong to it in the second pass.
21376 (create_new_chain): Do not set 'length' field.
21377 (scan_rtx_reg): Likewise.
21378
21379 2011-01-02 Jakub Jelinek <jakub@redhat.com>
21380
21381 PR tree-optimization/47140
21382 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
21383 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
21384 to bit_value_binop.
21385
21386 PR rtl-optimization/47028
21387 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
21388 parm_birth_insn instead of at the beginning of first bb.
21389
21390 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
21391
21392 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
21393 Remove the word "see" before "@pxref".
21394 * doc/rtl.texi: Remove the word "see" before "@pxref".
21395
21396 2011-01-01 Jan Hubicka <jh@suse.cz>
21397
21398 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
21399 memory.
21400
21401 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
21402
21403 PR target/38662
21404 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
21405
21406 \f
21407 Copyright (C) 2011 Free Software Foundation, Inc.
21408
21409 Copying and distribution of this file, with or without modification,
21410 are permitted in any medium without royalty provided the copyright
21411 notice and this notice are preserved.