Basic support for Intel Core i7
[gcc.git] / gcc / ChangeLog
1 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
2 Maxim Kuvyrkov <maxim@codesourcery.com>
3 H.J. Lu <hjl.tools@gmail.com>
4
5 Basic support for Intel Core i7
6
7 * i386.c (ix86_option_override_internal): Add entry for corei7, use
8 generic tuning. Use generic32 when compiling for 32-bit ABI.
9
10 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
11
12 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
13 sections and call darwin_asm_dwarf_section() to handle them.
14 (darwin_asm_dwarf_section): New.
15 (darwin_file_start): Remove code emitting dwarf section symbols.
16
17 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
18
19 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
20 explicitly disable stack protection when building libgcc.
21 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
22
23 2010-11-01 Jason Merrill <jason@redhat.com>
24
25 * fold-const.c (fold_indirect_ref_1): Handle folding
26 POINTER_PLUS_EXPR to ARRAY_REF.
27
28 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
29
30 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
31 (sh_delegitimize_address): New function.
32
33 2010-11-01 Joseph Myers <joseph@codesourcery.com>
34
35 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
36 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
37 (CC1_SPEC): Don't handle -target.
38 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
39 options.
40 * config/darwin.opt (Zallowable_client, Zbundle_loader,
41 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
42 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
43 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
44 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
45 Zweak_reference_mismatches, client_name, compatibility_version,
46 current_version, dylinker_install_name, pagezero_size,
47 read_only_relocs, seg1addr, segs_read_only_addr,
48 segs_read_write_addr, sub_library, sub_umbrella): New.
49 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
50 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
51 * config/freebsd.opt: New.
52 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
53 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
54 * config/rpath.opt: New.
55 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
56 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
57 Use rpath.opt.
58
59 2010-11-01 Joseph Myers <joseph@codesourcery.com>
60
61 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
62 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
63 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
64 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
65 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
66 Document that options in .opt files do not need to be included.
67 * doc/tm.texi: Regenerate.
68 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
69 * opts-common.c: Update comment on tm.h include.
70 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
71 * system.h (SWITCH_TAKES_ARG): Poison.
72 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
73 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
74 in darwin.opt.
75 (LINK_COMMAND_SPEC_A): Don't include %{x}.
76 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG):
77 Remove.
78 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
79 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
80 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG):
81 Remove.
82 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
83 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
84 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T
85 options.
86 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
87 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG):
88 Remove.
89 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
90 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
91 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
92 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
93 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
94 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
95 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
96 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
97 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
98 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
99 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
100 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
101 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
102 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
103
104 2010-11-01 Paul Koning <ni1d@arrl.net>
105
106 * config/pdp11/pdp11.md: Use iterators.
107 (addqi3, subqi3, iorsi3, xorsi3): Delete.
108
109 2010-11-01 Steve Ellcey <sje@cup.hp.com>
110
111 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
112 GCC_INSN_FLAGS_H.
113 * libgcov.c (__gcov_indirect_call_profiler): Set
114 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
115 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
116
117 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
118
119 PR tree-optimization/46259
120
121 Revert:
122
123 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
124
125 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
126 build_vector_from_val.
127
128 2010-11-01 DJ Delorie <dj@redhat.com>
129
130 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
131 as well as an assertion.
132
133 2010-11-01 Paul Koning <ni1d@arrl.net>
134
135 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
136 complex modes in memory.
137
138 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
139
140 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
141
142 2010-11-01 Jakub Jelinek <jakub@redhat.com>
143
144 PR target/45250
145 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
146 (cfa_base_offset): New variable.
147 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
148 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
149 is NULL.
150 (vt_init_cfa_base): Initialize cfa_base_offset.
151
152 2010-11-01 Alan Modra <amodra@gmail.com>
153
154 PR target/46030
155 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
156 and savres_strategy.
157 (stack_info): New file scope var.
158 (rs6000_init_machine_status): Init stack_info.
159 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
160 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
161 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
162 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
163 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
164 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
165 (rs6000_savres_strategy): Rewrite.
166 (rs6000_stack_info): Use "stack_info" in place of local "info".
167 Return cached stack info when reload_completed unless ENABLE_CHECKING
168 in which case confirm newly calculated stack info matches old info.
169 Delay calculation of lr_save_p, set it for out of line gp save/restore
170 as well as fp. Call rs6000_savres_strategy from here..
171 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
172 (rs6000_output_function_prologue): Use info->savres_strategy to
173 determine whether fp save/restore externs need to be emitted.
174
175 2010-10-31 Jason Merrill <jason@redhat.com>
176
177 * tree.h (EXPR_LOC_OR_HERE): New macro.
178 * builtins.c (c_strlen): Use it.
179 * c-decl.c (build_enumerator): Likewise.
180 * gimplify.c (internal_get_tmp_var): Likewise.
181 (shortcut_cond_expr): Likewise.
182 (gimplify_one_sizepos): Likewise.
183
184 2010-10-31 Richard Henderson <rth@redhat.com>
185
186 * config/i386/cygming.h (TARGET_SEH): New.
187 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
188 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
189 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
190 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
191 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
192 (ASM_DECLARE_FUNCTION_SIZE): New.
193 * config/i386/i386-protos.h: Update.
194 * config/i386/i386.c (ix86_option_override_internal): Enable
195 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
196 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
197 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
198 (ix86_compute_frame_layout): For SEH, disable
199 use_fast_prologue_epilogue, move frame pointer to the end of
200 the frame. Initialize hfp_save_offset.
201 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
202 at end of prologue for SEH.
203 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
204 emit blockage at beginning of epilogue.
205 (ix86_expand_binary_operator): After reload, emit LEA if needed.
206 (ix86_output_call_insn): New.
207 * config/i386/i386.h (TARGET_SEH): New.
208 (struct machine_function): Add member seh.
209 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
210 * config/i386/winnt.c (struct seh_frame_state): New.
211 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
212 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
213 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
214 i386_pe_start_function, i386_pe_end_function): New.
215
216 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
217 as CFA_STORE in rules 12 and 13.
218
219 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
220
221 PR tree-optimization/46142
222 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
223 accommodate third function argument.
224
225 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
226
227 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
228
229 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
230
231 * fold-const.c (build_zero_vector): Use build_vector_from_val.
232 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
233 (get_initial_def_for_reduction): Likewise.
234 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
235 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
236 * tree.c (build_one_cst): Likewise.
237 (build_vector_from_val): Use types_compatible_p for assert.
238
239 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
240
241 * emit-rtl.c (mark_used_flags): New function.
242 (set_used_flags, reset_used_flags): Call it.
243
244 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
245
246 PR middle-end/44569
247 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
248 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
249
250 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
251
252 PR target/46195
253 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
254 (ix86_compat_aligned_value_p): This.
255 (ix86_old_function_arg_boundary): Renamed to ...
256 (ix86_compat_function_arg_boundary): This. Updated.
257 (ix86_contains_aligned_value_p): New.
258 (ix86_function_arg_boundary): Align long double parameters on
259 stack to 4byte in 32bit.
260
261 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
262
263 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
264 * c-parser.c (c_parser_objc_at_property_declaration): Removed
265 parsing of RID_COPIES and RID_IVAR. Updated call to
266 objc_add_property_declaration.
267 * c-typecheck.c (build_component_ref): Call
268 objc_maybe_build_component_ref instead of objc_build_setter_call.
269 Use objc_is_property_ref to improve Objective-C checks.
270 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
271 of objc_build_getter_call.
272
273 2010-10-29 Paul Koning <ni1d@arrl.net>
274
275 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
276 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
277 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
278 (REG_OK_STRICT): Move description.
279
280 2010-10-29 Paul Koning <ni1d@arrl.net>
281
282 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
283
284 2010-10-29 Paul Koning <ni1d@arrl.net>
285
286 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
287
288 2010-10-29 Paul Koning <ni1d@arrl.net>
289
290 PR/41822
291 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
292
293 2010-10-29 Richard Henderson <rth@redhat.com>
294
295 PR rtl-opt/46226
296 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
297 for asm goto.
298
299 2010-10-29 Paul Koning <ni1d@arrl.net>
300
301 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
302 register to register move.
303
304 2010-10-29 Paul Koning <ni1d@arrl.net>
305
306 * config/pdp11/pdp11.c (print_operand_address): Correct handling
307 of integer constant addresses, delete vax-only logic.
308
309 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
310
311 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
312 a conditional expression.
313
314 2010-10-29 Paul Koning <ni1d@arrl.net>
315
316 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
317 instruction encoding.
318
319 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
320 Andrew Pinski <pinskia@gmail.com>
321
322 * tree.h (build_vector_from_val): Declare.
323 * tree.c (build_vector_from_val): New function.
324 * c-typeck.c (build_binary_op): Handle vector shifting.
325 * doc/extend.texi: Description of the vector shifting operation.
326
327 2010-10-29 Paul Koning <pkoning@equallogic.com>
328
329 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
330 pdp11_secondary_memory_needed): Declare.
331 * config/pdp11/predicates.md (float_operand): New predicate.
332 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
333 (cbranchdf4, movdf): Change predicate.
334 (movsf): Handle FPU register case.
335 (truncdfsf2, extendsfdf2): Add FPU register case.
336 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
337 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
338 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
339 (pdp11_register_move_cost): Update cost matrix.
340 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
341 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
342 pdp11_secondary_memory_needed): New function.
343 (pdp11_return_in_memory): Add other float types.
344 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
345 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
346 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
347 REGISTER_MOVE_COST): Delete.
348 (BASE_RETURN_VALUE_REG): Add other float types.
349
350 2010-10-29 Nick Clifton<nickc@redhat.com>
351
352 * doc/invoke.texi: Document -mam34 and -mtune options.
353 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
354 (mn10300_tune_cpu): New variable.
355 (mn10300_handle_option): Handle -mam34 and -mtune options.
356 (mn10300_option_override): Convert tune string into tune cpu variable.
357 (mn10300_legitimate_constant_p): Delete unused local variable.
358 (is_load_insn): New function.
359 (is_store_insn): New function.
360 (mn10300_adjust_schedule_cost): New function.
361 (TARGET_SCHED_ADJUST_COST): Define.
362 * config/mn10300/mn10300.opt (mam34): New option.
363 (mtune): New option.
364 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
365 (enum processor_type): Add AM34.
366 (TARGET_AM34): Define.
367 * config/mn10300/mn10300.md (attr cpu): Add am34.
368 Add pipeline description.
369 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
370 Remove unneeded alternatives. Add timing attribute.
371 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
372 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
373 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
374 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
375 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
376 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
377 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
378 float_conditional_branch, jump, indirect_jump, tablejump,
379 call_internal, call_value_internal, zero_extendqisi2_am33,
380 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
381 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
382 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
383 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
384 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
385 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
386 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
387 return_internal_regs, store_movm, return, call_next_insn):
388 Add timing attribute.
389 (am33_subsi3): Add missing clobber of CC_REG.
390 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
391 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
392 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
393 extendqisi2): Fix predicates.
394 (call_internal, call_internal_value): Separate alternatives.
395 * config/mn10300/t-mn10300: Add AM34 multilib.
396
397 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
398
399 * config/sh/sh.c (sh_promote_function_mode): Use
400 default_promote_function_mode if !sh_promote_prototypes.
401
402 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
403
404 * recog.c (split_all_insns): Remove dead code.
405
406 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
407
408 * config/microblaze/microblaze-protos.h (function_arg): Delete.
409 (function_arg_advance): Delete.
410 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
411 (FUNCTION_ARG): Delete.
412 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
413 (microblaze_function_arg_advance): ...this. Make static. Take a
414 const_tree and a bool.
415 (function-arg): Rename to...
416 (microblaze_function_arg): ...this. Make static. Take a const_tree
417 and a bool.
418 (microblaze_expand_prologue): Call targetm.calls.function_arg and
419 targetm.calls.function_arg_advance.
420 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
421
422 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
423
424 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
425
426 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
427
428 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
429 (FUNCTION_ARG_ADVANCE): Delete.
430 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
431 functions.
432 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
433 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
434 (TARGET_FUNCTION_ARG_ADVANCE): Define.
435
436 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
437
438 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
439 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
440 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
441 Take a const_tree and a bool.
442 (mcore_function_arg_advance): New function.
443 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
444
445 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
446
447 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
448 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
449 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
450 Take a const_tree and a bool.
451 (mcore_function_arg_advance): New function.
452 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
453
454 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
455
456 * config/h8300/h8300-protos.h (function_arg): Delete.
457 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
458 * config/h8300/h8300.c (function_arg): Rename to...
459 (h8300_function_arg): ...this. Make static. Take a const_tree and
460 a bool.
461 (h8300_function_arg_advance): New function.
462 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
463
464 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
465
466 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
467 to...
468 * config/arc/arc.c (arc_function_arg): ...here and...
469 (arc_function_arg_advance): ...here. New functions.
470 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
471
472 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
473
474 * config/crx/crx-protos.h (crx_function_arg): Delete.
475 (crx_function_arg_advance): Delete.
476 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
477 * config/crx/crx.c (crx_function_arg): Make static. Take a
478 const_tree and a bool.
479 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
480 (enough_regs_for_param): Take a const_tree.
481 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
482
483 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
484
485 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
486 (m68hc11_function_arg_advance): Delete.
487 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
488 (FUNCTION_ARG_ADVANCE): Delete.
489 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
490 Take a const_tree and a bool.
491 (m68hc11_function_arg_advance): Likewise.
492 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
493
494 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
495
496 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
497 (xstormy16_function_arg_advance): Delete.
498 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
499 (FUNCTION_ARG_ADVANCE): Delete.
500 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
501 Take a const_tree and a bool.
502 (xstormy16_function_arg_advance): Likewise. Return void, updating
503 the CUM parameter instead.
504 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
505
506 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
507
508 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
509 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
510 (MOXIE_FUNCTION_ARG_SIZE): Move to...
511 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
512 (moxie_function_arg): Make static. Take a const_tree and a bool.
513 (moxie_function_arg_advance): New function.
514 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
515
516 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
517
518 * config/mn10300/mn10300-protos.h (function_arg): Delete.
519 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
520 (FUNCTION_ARG_ADVANCE): Delete.
521 * config/mn10300/mn10300.c (function_arg): Rename to...
522 (mn10300_function_arg): ...this. Make static. Take a const_tree
523 and a bool.
524 (mn10300_function_arg_advance): New function.
525 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
526
527 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
528
529 * config/iq2000/iq2000-protos.h (function_arg): Delete.
530 (function_arg_advance): Delete.
531 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
532 * config/iq2000/iq2000.c (function_arg): Rename to...
533 (iq2000_function_arg): ...this. Make static. Take a const_tree and
534 a bool.
535 (function_arg_advance): Rename to...
536 (iq2000_function_arg_advance): ...this. Make static. Take a
537 const_tree and a bool.
538 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
539 iq2000_function_arg.
540 (iq2000_pass_by_reference): Call iq2000_function_arg).
541 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
542
543 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
544
545 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
546 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
547 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
548 const_tree.
549 (fr30_function_arg): New function.
550 (fr30_function_arg_advance): New function.
551 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
552
553 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
554
555 * config/frv/frv-protos.h (frv_function_arg): Delete.
556 (frv_function_arg_advance): Delete.
557 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
558 * config/frv/frv.c (frv_function_arg): Rename to...
559 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
560 (frv_function_arg, frv_function_incoming_arg): New functions.
561 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
562 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
563 (TARGET_FUNCTION_ARG_ADVANCE): Define.
564
565 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
566
567 PR target/46153
568 * config/i386/sse.md (sse_movhlps_exp): Use destination
569 returned from ix86_fixup_binary_operands to expand insn.
570 (sse_movlhps_exp): Ditto.
571 (sse_loadhps_exp): Ditto.
572 (sse_loadlps_exp): Ditto.
573 (sse2_loadhpd_exp): Ditto.
574 (sse2_loadlpd_exp): Ditto.
575
576 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
577
578 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
579 constants in thumb2.
580
581 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
582
583 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
584 arithmetics in masking operations.
585 (contains_muldiv): Likewise.
586 (try_combine): Likewise.
587 (find_split_point): Likewise.
588 (combine_simplify_rtx): Likewise.
589 (simplify_if_then_else): Likewise.
590 (simplify_set): Likewise.
591 (expand_compound_operation): Likewise.
592 (expand_field_assignment): Likewise.
593 (make_extraction): Likewise.
594 (extract_left_shift): Likewise.
595 (make_compound_operation): Likewise.
596 (force_to_mode): Likewise.
597 (make_field_assignment): Likewise.
598 (reg_nonzero_bits_for_combine): Likewise.
599 (simplify_shift_const_1): Likewise.
600 (simplify_comparison): Likewise.
601
602 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
603
604 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
605 (ia64_function_arg_advance): Delete.
606 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
607 (FUNCTION_ARG_ADVANCE): Delete.
608 * config/ia64/ia64.c (ia64_function_arg): Rename to...
609 (ia64_function_arg_1): ...this. Make static. Take const_tree and
610 bool arguments.
611 (ia64_function_arg, ia64_function_incoming_arg): New functions.
612 (ia64_function_arg_advance): Make static. Take a const_tree and
613 a bool.
614 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
615 (TARGET_FUNCTION_ARG_ADVANCE): Define.
616
617 2010-10-27 Steve Ellcey <sje@cup.hp.com>
618
619 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
620 (TARGET_GET_RAW_ARG_MODE): New.
621 * doc/tm.texi: Regenerate.
622 * target.def (get_raw_result_mode): New.
623 (get_raw_arg_mode): New.
624 * targhooks.c (default_get_reg_raw_mode): New.
625 * targhooks.h (default_get_reg_raw_mode): New.
626 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
627 (apply_result_size): Ditto.
628 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
629 (TARGET_GET_RAW_RESULT_MODE): Define.
630 (TARGET_GET_RAW_ARG_MODE): Ditto.
631
632 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
633
634 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
635 for newer Solaris 10 release.
636 (sparc_fallback_frame_state): Likewise.
637
638 2010-10-27 Jason Merrill <jason@redhat.com>
639
640 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
641 variables sooner.
642
643 2010-10-27 Jie Zhang <jie@codesourcery.com>
644 Maxim Kuvyrkov <maxim@codesourcery.com>
645
646 * haifa-sched.c (ISSUE_POINTS): Remove.
647 (max_issue): Don't issue more than issue_rate instructions.
648
649 2010-10-27 Ian Lance Taylor <iant@google.com>
650
651 PR target/46197
652 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
653 (split_stack_return): Replace UNSPEC_STACK_CHECK with
654 UNSPECV_SPLIT_STACK_RETURN.
655
656 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
657
658 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
659
660 * config/i386/i386.c (block_info): New.
661 (BLOCK_INFO): Likewise.
662 (call_avx256_state): Likewise.
663 (check_avx256_stores): Likewise.
664 (move_or_delete_vzeroupper_2): Likewise.
665 (move_or_delete_vzeroupper_1): Likewise.
666 (move_or_delete_vzeroupper): Likewise.
667 (use_avx256_p): Likewise.
668 (function_pass_avx256_p): Likewise.
669 (flag_opts): Add -mvzeroupper.
670 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
671 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
672 is disabled.
673 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
674 generate vzeroupper.
675 (init_cumulative_args): Add an int to indicate caller. Set
676 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
677 based on return type.
678 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
679 caller_pass_avx256_p based on argument type.
680 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
681 is used, but not returned by caller.
682 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
683 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
684 is used.
685 (ix86_minimum_alignment): Likewise.
686 (ix86_expand_special_args_builtin): Set target to
687 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
688 (ix86_reorg): Run the vzeroupper optimization if needed.
689
690 * config/i386/i386.h (ix86_args): Add caller.
691 (INIT_CUMULATIVE_ARGS): Updated.
692 (machine_function): Add use_vzeroupper_p, use_avx256_p,
693 caller_pass_avx256_p, caller_return_avx256_p,
694 callee_pass_avx256_p and callee_return_avx256_p.
695
696 * config/i386/i386.opt (-mvzeroupper): New.
697
698 * config/i386/predicates.md (vzeroupper_operation): Removed.
699
700 * config/i386/sse.md (avx_vzeroupper): Removed.
701 (*avx_vzeroupper): Removed.
702 (avx_vzeroupper): New.
703
704 * doc/invoke.texi: Document -mvzeroupper.
705
706 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
707
708 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
709 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
710 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
711
712 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
713 Olivier Hainque <hainque@adacore.com>
714
715 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
716 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
717 fs->signal_frame instead.
718
719 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
720
721 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
722 parsing of RID_COPIES and RID_IVAR.
723
724 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
725
726 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
727 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
728 Do not use objc_set_property_attr, but use local variables
729 instead. Detect repeated usage of setter, getter and ivar
730 attributes. Improved error processing when a setter name does not
731 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
732 that the token is a keyword. Updated call to
733 objc_add_property_declaration.
734
735 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
736
737 * c-parser.c (c_parser_objc_at_property): Renamed to
738 c_parser_objc_at_property_declaration. Updated calls to
739 objc_add_property_variable, now objc_add_property_declaration.
740 Code rewritten to be much more robust in recovering from syntax
741 errors. Added comments.
742 (c_parser_objc_property_attrlist): Removed.
743 (c_parser_external_declaration): Updated calls to
744 c_parser_objc_at_property, now
745 c_parser_objc_at_property_declaration.
746 (c_parser_objc_methodprotolist): Same change.
747
748 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
749
750 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
751
752 2010-10-26 Jan Hubicka <jh@suse.cz>
753
754 * ipa.c (process_references): Enqueue all referenced nodes;
755 mark as reachable only non-external nodes.
756 (cgraph_remove_unreachable_nodes): All referenced nodes should
757 be enqueued; remove bogues node->needed check.
758
759 2010-10-26 Jan Hubicka <jh@suse.cz>
760
761 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
762 to represent OMP.
763
764 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
765
766 * config/i386/i386.md (split_stack_return): Replace
767 unspec_volatile with unspec.
768
769 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
770
771 * doc/install.texi: Fix typo in --with-sysroot description.
772
773 2010-10-26 Jan Hubicka <jh@suse.cz>
774
775 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
776 Use info provided by linker plugin.
777
778 2010-10-26 Jason Merrill <jason@redhat.com>
779
780 * varasm.c (constructor_static_from_elts_p): Don't require a
781 CONSTRUCTOR to have elements to be suitable for static
782 initialization. Allow ARRAY_TYPE as well.
783
784 2010-10-26 Jan Hubicka <jh@suse.cz>
785
786 PR middle-end/45736
787 * cgraph.c (cgraph_set_readonly_flag): Rename to...
788 (cgraph_set_const_flags) ... this one; get also looping argument;
789 clear constructor/destructor flags.
790 (cgraph_set_pure_flag): Likewise.
791 (cgraph_set_looping_const_or_pure_flag): Remove.
792 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
793 to optimize away static ctors/dtors; it does not work on inline clones;
794 external functions can always be rmeoved.
795 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
796 inline clones; in LTO external functions always can go.
797 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
798 (cgraph_mark_address_taken_node): Assert that we are not taking
799 address of inline clone.
800 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
801 external functions.
802 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
803 address taken.
804 (ipcp_initialize_node_lattices): Only local functions can be
805 handled without cloning.
806 * cgraph.h (cgraph_set_readonly_flag,
807 cgraph_set_looping_const_or_pure_flag): Remove.
808 (cgraph_set_const_flag): Declare.
809 (cgraph_set_pure_flag): Update.
810 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
811 flags setting code.
812 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
813 look at inline clones; fix handling of external definitions.
814 (cgraph_postorder): Do not look at inline clones in the first pass.
815 (function_and_variable_visibility): Drop constructors/destructor
816 flags at pure and const functions.
817 * tree-profile.c (tree_profiling): Update.
818 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
819 address taken; external functions do not account to whole program size.
820 (cgraph_decide_inlining): Likewise; do not try to inline
821 functions already inlined.
822
823 2010-10-26 Jie Zhang <jie@codesourcery.com>
824
825 * doc/invoke.texi: Improve documentation of
826 -fstrict-volatile-bitfields.
827
828 2010-10-26 Ira Rosen <irar@il.ibm.com>
829
830 PR tree-optimization/46167
831 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
832 is basic block for the statement.
833
834 2010-10-26 Paul Koning <ni1d@arrl.net>
835
836 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
837 current definition of struct_real_format.
838
839 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
840
841 PR target/44948
842 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
843 (ix86_function_arg_boundary): Always align parameters on stack
844 in 64bit and align parameters with alignment >= 16byte on stack
845 in 32bit. Warn alignment change.
846
847 2010-10-26 Ian Lance Taylor <iant@google.com>
848
849 PR middle-end/45687
850 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
851 offset.
852
853 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
854
855 Implement opaque-enum-specifiesr for C++0x
856 * tree.h (ENUM_IS_OPAQUE): New.
857 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
858
859 2010-10-26 Jie Zhang <jie@codesourcery.com>
860
861 * stor-layout.c (layout_decl): Use the field's type to
862 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
863 * config/arm/arm.c (arm_override_options): Default to
864 -fstrict-volatile-bitfields.
865
866 2010-10-25 Paul Koning <ni1d@arrl.net>
867
868 * config/pdp11/pdp11.md: Add define_constants for register
869 numbers, branch offset limits.
870 * config/pdp11/pdp11.c: Use named constants instead of numbers.
871 * config/pdp11.pdp11.h: Ditto.
872
873 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
874
875 * configure.ac: Use $cpu_type instead of $target to define the nop.
876 * configure: Regenerate.
877
878 2010-10-25 Jie Zhang <jie@codesourcery.com>
879
880 * combine.c (try_combine): If insns need to be kept around, check that
881 they can be copied in the merged instruction.
882
883 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
884
885 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
886 has been modified.
887 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
888 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
889 it has been modified.
890
891 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
892
893 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
894
895 2010-10-24 Paul Koning <ni1d@arrl.net>
896
897 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
898 * config/pdp11/pdp11.c (output_jump): Ditto.
899
900 2010-10-24 Ian Lance Taylor <iant@google.com>
901
902 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
903
904 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
905
906 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
907 least one insn with a locus corresponding to an edge's goto_locus,
908 disregard non-fallthru edges to the exit block and merge the blocks
909 created for the same goto_locus.
910
911 2010-10-23 Joseph Myers <joseph@codesourcery.com>
912
913 * gcc.c (n_switches_alloc_debug_check): New.
914 (set_option_handlers): New.
915 (process_command): Use set_option_handlers.
916 (do_self_spec): Pass spec-generated options through option handlers.
917 (main): Also save and restore n_switches_alloc when swapping
918 switch arrays.
919
920 2010-10-23 Richard Henderson <rth@redhat.com>
921
922 PR target/46144
923 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
924 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
925 Honor matching operands when splitting to XOR.
926
927 2010-10-23 Ian Lance Taylor <iant@google.com>
928
929 * tree-vrp.c (extract_range_from_binary_expr): If
930 flag_non_call_exceptions don't eliminate division by zero.
931 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
932
933 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
934
935 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
936 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
937 __ORDER_PDP_ENDIAN__.
938 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
939 (struct DWstruct): Define based on __BYTE_ORDER__.
940 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
941 (struct INTstruct): Define based on __BYTE_ORDER__.
942 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
943 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
944 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
945 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
946 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
947 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
948 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
949 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
950 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
951 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
952 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
953 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
954 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
955 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
956 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
957 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
958 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
959 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
960 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
961 * doc/tm.texi: Regenerate.
962 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
963 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
964
965 2010-10-23 Jie Zhang <jie@codesourcery.com>
966
967 PR rtl-optimization/37360
968 * config/mips/mips.c (cached_can_issue_more): New local variable.
969 (mips_sched_reorder_1): New.
970 (mips_sched_reorder): Use mips_sched_reorder_1.
971 (mips_sched_reorder2): New.
972 (mips_variable_issue): Set cached_can_issue_more.
973 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
974 instead of mips_sched_reorder.
975
976 Revert:
977 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
978 PR rtl-optimization/37360
979 * haifa-sched.c (max_issue): Do not assert that we never issue more
980 insns than issue_rate. Add comment.
981
982 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
983
984 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
985 location info of the expression.
986
987 2010-10-22 DJ Delorie <dj@redhat.com>
988
989 * doc/extend.texi (Named Address Spaces): Document the M32C named
990 address space.
991
992 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
993 __far address space.
994 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
995 "__far" address space for R8C and M16C processor variants.
996 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
997 (far_addr_space_p): New.
998 (encode_pattern_1): Add sign and zero extend support.
999 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
1000 (m32c_extra_constraint_p2): Add SF constraint.
1001 (m32c_legitimate_address_p): Support __far addresses.
1002 (m32c_addr_space_pointer_mode): New.
1003 (m32c_addr_space_address_mode): New.
1004 (m32c_addr_space_legitimate_address_p): New.
1005 (m32c_addr_space_legitimize_address): New.
1006 (m32c_addr_space_subset_p): New.
1007 (m32c_addr_space_convert): New.
1008 (conversions): Add __far operand patterns.
1009 (m32c_prepare_move): Force constants into registers for __far moves.
1010 (m32c_split_move): __far moves are always split.
1011 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
1012 * config/m32c/mov.md (mov<mode>_far_op1): New.
1013 (mov<mode>_far_op2): New.
1014 (movqi_op): Add __far (SF) support.
1015 (movhi_op): Likewise.
1016 (movsi_splittable): Split A1A0 also.
1017
1018 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1019 Andrew Pinski <pinskia@gmail.com>
1020
1021 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
1022 * doc/extend.texi: New paragraph
1023
1024 2010-10-22 Paul Koning <ni1d@arrl.net>
1025
1026 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
1027
1028 2010-10-22 DJ Delorie <dj@redhat.com>
1029
1030 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
1031
1032 2010-10-22 Paul Koning <ni1d@arrl.net>
1033
1034 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
1035
1036 2010-10-22 Richard Henderson <rth@redhat.com>
1037
1038 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
1039 cases for __builtin_fma and __builtin_fmaf.
1040
1041 2010-10-22 Richard Henderson <rth@redhat.com>
1042
1043 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
1044 NEG+USE for vectors as well.
1045 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
1046 and splitter.
1047
1048 2010-10-22 Joseph Myers <joseph@codesourcery.com>
1049
1050 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
1051 SWITCH_CURTAILS_COMPILATION): Remove.
1052 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
1053 * doc/tm.texi: Regenerate.
1054 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
1055
1056 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1057
1058 * config/i386/bdver1.md: New file.
1059 * config/i386/i386.md (include "bdver1.md"): Invoke the
1060 pipeline description for bdver1.
1061 (x86_sahf_1): Add "bdver1_decode" attribute.
1062 (*cmpfp_i_mixed): Likewise.
1063 (*cmpfp_i_sse): Likewise.
1064 (*cmpfp_i_i387): Likewise.
1065 (*cmpfp_iu_mixed): Likewise.
1066 (*cmpfp_iu_sse): Likewise.
1067 (*cmpfp_iu_387): Likewise.
1068 (*swap<mode>,*swap<mode>_1): Likewise.
1069 (fixuns_trunc<mode>hi2): Likewise.
1070 (fix_trunc<mode>si_sse): Likewise.
1071 (x86_fnstcw_1): Likewise.
1072 (x86_fldcw_1): Likewise.
1073 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
1074 (*floatsi<mode>2_vector_mixed): Likewise.
1075 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
1076 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
1077 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
1078 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
1079 (*floatsi<mode>2_vector_sse): Likewise.
1080 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
1081 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
1082 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
1083 (*mul<mode>3_1): Likewise.
1084 (*mulsi3_1_zext): Likewise.
1085 (*mulhi3_1): Likewise.
1086 (*mulqi3_1): Likewise.
1087 (*<u>mul<mode><dwi>3_1): Likewise.
1088 (*<u>mulqihi3_1): Likewise.
1089 (*<s>muldi3_highpart_1): Likewise.
1090 (*<s>mulsi3_highpart_1): Likewise.
1091 (*<s>mulsi3_highpart_zext): Likewise.
1092 (x86_64_shld): Likewise.
1093 (x86_shld): Likewise.
1094 (x86_64_shrd): Likewise.
1095 (x86_shrd): Likewise.
1096 (sqrtxf2): Likewise.
1097 (sqrt_extend<mode>xf2_i387): Likewise.
1098 (*sqrt<mode>2_sse): Likewise.
1099 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
1100 (sse_cvtsi2ssq): Likewise.
1101 (sse_cvtss2si): Likewise.
1102 (sse_cvtss2si_2): Likewise.
1103 (sse_cvtss2siq): Likewise.
1104 (sse_cvtss2siq_2): Likewise.
1105 (sse_cvttss2si): Likewise.
1106 (sse_cvttss2siq): Likewise.
1107 (sse2_cvtpi2pd): Likewise.
1108 (sse2_cvttpd2pi): Likewise.
1109 (sse2_cvtsi2sd): Likewise.
1110 (sse2_cvtsi2sdq): Likewise.
1111 (sse2_cvtsd2si): Likewise.
1112 (sse2_cvtsd2si_2): Likewise.
1113 (sse2_cvtsd2siq): Likewise.
1114 (sse2_cvtsd2siq_2): Likewise.
1115 (sse2_cvttsd2si): Likewise.
1116 (sse2_cvttsd2siq): Likewise.
1117 (*sse2_cvtpd2dq): Likewise.
1118 (*sse2_cvttpd2dq): Likewise.
1119 (sse2_cvtsd2ss): Likewise.
1120 (sse2_cvtss2sd): Likewise.
1121 (*sse2_cvtpd2ps): Likewise.
1122 (sse2_cvtps2pd): Likewise.
1123
1124 2010-10-22 Richard Guenther <rguenther@suse.de>
1125
1126 PR middle-end/46137
1127 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
1128 remove the virtual operands if they are not needed.
1129
1130 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1131
1132 * config/i386/i386.c (processor_costs bdver1_cost): Update
1133 insn costs and architectural parameters for bdver1.
1134
1135 2010-10-22 Richard Guenther <rguenther@suse.de>
1136
1137 * gimple.h (gimple_register_canonical_type): Declare.
1138 * gimple.c (gimple_canonical_types): New global hashtable.
1139 (struct gimple_type_leader_entry_s): New type.
1140 (gimple_type_leader): New global cache.
1141 (gimple_lookup_type_leader): New function.
1142 (gtc_visit): Query the proper cache.
1143 (gimple_types_compatible_p): Likewise.
1144 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
1145 (gimple_canonical_type_eq): New function.
1146 (gimple_register_canonical_type): Likewise.
1147 (print_gimple_types_stats): Adjust for gimple_canonical_types.
1148 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
1149 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
1150 gimple_types_compatible_p for LTO.
1151
1152 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
1153
1154 PR target/46098
1155 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
1156 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
1157 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
1158 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
1159 (<sse>_movu<ssemodesuffix>): New expander.
1160 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
1161 (avx_movdqu<avxmodesuffix>): New expander.
1162 (*sse2_movdqu): Rename from sse2_movdqu.
1163 (sse2_movdqu): New expander.
1164
1165 2010-10-22 Richard Guenther <rguenther@suse.de>
1166
1167 PR tree-optimization/45720
1168 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
1169 Handle negative step.
1170 (vect_enhance_data_refs_alignment): Likewise.
1171 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
1172 (vect_create_cond_for_align_checks): Likewise.
1173 (vect_create_cond_for_alias_checks): Likewise.
1174
1175 2010-10-22 Ira Rosen <irar@il.ibm.com>
1176
1177 PR tree-optimization/46126
1178 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
1179 vectorizable_shift in case of basic block vectorization.
1180
1181 2010-10-22 Joseph Myers <joseph@codesourcery.com>
1182
1183 * target.h (enum opt_levels, struct default_options): New.
1184 * target.def (handle_ofast): Remove hook.
1185 (target_option.optimization): Change to
1186 target_option.optimization_table.
1187 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
1188 TARGET_OPTION_OPTIMIZATION_TABLE.
1189 (CAN_DEBUG_WITHOUT_FP): Remove.
1190 * doc/tm.texi: Regenerate.
1191 * opts.c (maybe_default_option, maybe_default_options,
1192 default_options_table): New.
1193 (default_options_optimization): Take extra parameters. Don't
1194 assert that global_options and global_options_set are in use. Use
1195 maybe_default_options.
1196 (decode_options): Pass extra parameters to
1197 default_options_optimization.
1198 * common.opt (falign-loops): Use value 0 with Var.
1199 (frerun-cse-after-loop, ftree-ter): Remove Init.
1200 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
1201 TARGET_OPTION_OPTIMIZATION): Remove.
1202 * targhooks.c (empty_optimization_table): New.
1203 * targhooks.h (empty_optimization_table): Declare.
1204 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
1205 * config/alpha/alpha.c (alpha_option_optimization_table,
1206 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1207 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
1208 * config/arm/arm.c (arm_option_optimization: Change to
1209 arm_option_optimization_table.
1210 (TARGET_OPTION_OPTIMIZATION): Change to
1211 TARGET_OPTION_OPTIMIZATION_TABLE.
1212 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
1213 * config/avr/avr.c (avr_option_optimization_table,
1214 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1215 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
1216 * config/cris/cris.c (cris_option_optimization): Change to
1217 cris_option_optimization_table.
1218 (TARGET_OPTION_OPTIMIZATION): Change to
1219 TARGET_OPTION_OPTIMIZATION_TABLE.
1220 * config/crx/crx.c (crx_option_optimization): Change to
1221 crx_option_optimization_table.
1222 (TARGET_OPTION_OPTIMIZATION): Change to
1223 TARGET_OPTION_OPTIMIZATION_TABLE.
1224 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
1225 * config/fr30/fr30.c (fr30_option_optimization_table,
1226 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1227 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
1228 * config/frv/frv.c (frv_option_optimization_table,
1229 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1230 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
1231 * config/h8300/h8300.c (h8300_option_optimization): Change to
1232 h8300_option_optimization_table.
1233 (TARGET_OPTION_OPTIMIZATION): Change to
1234 TARGET_OPTION_OPTIMIZATION_TABLE.
1235 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
1236 * config/i386/i386.c (ix86_option_optimization): Change to
1237 ix86_option_optimization_table.
1238 (TARGET_OPTION_OPTIMIZATION): Change to
1239 TARGET_OPTION_OPTIMIZATION_TABLE.
1240 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
1241 as initializer.
1242 * config/ia64/ia64.c (ia64_option_optimization): Change to
1243 ia64_option_optimization_table.
1244 (TARGET_OPTION_OPTIMIZATION): Change to
1245 TARGET_OPTION_OPTIMIZATION_TABLE.
1246 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
1247 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
1248 initializer.
1249 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1250 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1251 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
1252 * config/lm32/lm32.c (lm32_option_optimization_table,
1253 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1254 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
1255 * config/m32r/m32r.c (m32r_option_optimization): Change to
1256 m32r_option_optimization_table.
1257 (TARGET_OPTION_OPTIMIZATION): Change to
1258 TARGET_OPTION_OPTIMIZATION_TABLE.
1259 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
1260 CAN_DEBUG_WITHOUT_FP): Remove.
1261 * config/mcore/mcore.c (mcore_option_optimization): Change to
1262 mcore_option_optimization_table.
1263 (TARGET_OPTION_OPTIMIZATION): Change to
1264 TARGET_OPTION_OPTIMIZATION_TABLE.
1265 * config/mep/mep.c (mep_option_optimization): Change to
1266 mep_option_optimization_table.
1267 (TARGET_OPTION_OPTIMIZATION): Change to
1268 TARGET_OPTION_OPTIMIZATION_TABLE.
1269 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
1270 * config/microblaze/microblaze.c
1271 (microblaze_option_optimization_table,
1272 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1273 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
1274 * config/mips/mips.c (mips_option_optimization_table,
1275 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1276 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
1277 * config/mmix/mmix.c (mmix_option_optimization): Change to
1278 mmix_option_optimization_table.
1279 (TARGET_OPTION_OPTIMIZATION): Change to
1280 TARGET_OPTION_OPTIMIZATION_TABLE.
1281 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
1282 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1283 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1284 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
1285 * config/pa/pa.c (pa_option_optimization_table,
1286 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1287 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
1288 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
1289 pdp11_option_optimization_table.
1290 (TARGET_OPTION_OPTIMIZATION): Change to
1291 TARGET_OPTION_OPTIMIZATION_TABLE.
1292 * config/picochip/picochip.c (picochip_option_optimization_table,
1293 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1294 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
1295 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
1296 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1297 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
1298 * config/rx/rx.c (rx_option_optimization_table,
1299 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1300 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
1301 * config/s390/s390.c (s390_option_optimization): Change to
1302 s390_option_optimization_table.
1303 (s390_option_override): Update comment.
1304 (TARGET_OPTION_OPTIMIZATION): Change to
1305 TARGET_OPTION_OPTIMIZATION_TABLE.
1306 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
1307 * config/score/score.c (score_option_optimization_table,
1308 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1309 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
1310 * config/sh/sh.c (sh_option_optimization): Change to
1311 sh_option_optimization_table.
1312 (TARGET_OPTION_OPTIMIZATION): Change to
1313 TARGET_OPTION_OPTIMIZATION_TABLE.
1314 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
1315 (sh_option_override, expand_block_move, multcosts, find_barrier,
1316 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
1317 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
1318 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
1319 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
1320 instead of TARGET_SMALLCODE.
1321 * config/sh/sh.opt (mspace): Make into an alias for -Os.
1322 * config/sparc/sparc.c (sparc_option_optimization_table,
1323 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1324 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
1325 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1326 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1327 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
1328 * config/v850/v850.c (v850_option_optimization): Change to
1329 v850_option_optimization_table.
1330 (TARGET_OPTION_OPTIMIZATION): Change to
1331 TARGET_OPTION_OPTIMIZATION_TABLE.
1332 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
1333 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
1334 xtensa_option_optimization_table.
1335 (TARGET_OPTION_OPTIMIZATION): Change to
1336 TARGET_OPTION_OPTIMIZATION_TABLE.
1337 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
1338
1339 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
1340
1341 Based on the CFString implementation in FSF apple/trunk branch.
1342
1343 * target.def (objc_construct_string): New Hook.
1344 * doc/tm.texi (objc_construct_string): Document.
1345 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
1346 * config/t-darwin: Amend build rules for darwin.o.
1347 * config/darwin.opt: Add cfstrings flags.
1348 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
1349 (darwin_objc_construct_string): New.
1350 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
1351 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
1352 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
1353 (darwin_fold_builtin): Likewise.
1354 (darwin_build_constant_cfstring): Likewise.
1355 (darwin_objc_construct_string): Likewise.
1356 (darwin_cfstring_p): Likewise.
1357 (darwin_enter_string_into_cfstring_table): Likewise.
1358 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
1359 * config/darwin.c (darwin_running_cxx): New var.
1360 (machopic_select_section): Return cfstring_constant_object_section.
1361 (darwin_override_options): Set darwin_running_cxx.
1362 (add_builtin_field_decl): New.
1363 (darwin_init_cfstring_builtins): New.
1364 (darwin_build_constant_cfstring): New.
1365 (darwin_fold_builtin): New.
1366 (cfstring_hash): New.
1367 (cfstring_eq): New.
1368 (darwin_enter_string_into_cfstring_table): New.
1369 * config/darwin-sections.def (cfstring_constant_object_section): New.
1370 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
1371 (TARGET_OBJC_CONSTRUCT_STRING): Define.
1372
1373 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1374
1375 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
1376 TYPE_STUB_DECL instead of TREE_CHAIN.
1377 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
1378 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
1379 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
1380 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
1381 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
1382 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
1383 Likewise.
1384 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
1385
1386 2010-10-22 Jie Zhang <jie@codesourcery.com>
1387
1388 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
1389 (copy_blkmode_from_reg): Likewise.
1390 (read_complex_part): Likewise.
1391 (expand_expr_real_1): Calculate packedp and pass it to
1392 extract_bit_field.
1393 * expr.h (extract_bit_field): Update declaration.
1394 * calls.c (store_unaligned_arguments_into_pseudos): Update call
1395 to extract_bit_field.
1396 * expmed.c (extract_fixed_bit_field): Update calls to
1397 extract_fixed_bit_field.
1398 (store_split_bit_field): Likewise.
1399 (extract_bit_field_1): Add new argument packedp.
1400 (extract_bit_field): Add new argument packedp.
1401 (extract_fixed_bit_field): Add new argument packedp and let
1402 packed attribute override volatile.
1403 * stmt.c (expand_return): Update call to extract_bit_field.
1404
1405 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1406
1407 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
1408
1409 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1410
1411 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
1412 of gcc_checking_assert.
1413 * sel-sched.c (code_motion_process_successors): Likewise.
1414
1415 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
1416
1417 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
1418 when stopping because of a different locus on edge or insn.
1419 (try_optimize_cfg): Add comment.
1420 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
1421 block is a forwarder block, propagate locus on the edge.
1422 (cfg_layout_merge_blocks): Likewise.
1423
1424 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
1425
1426 PR target/45946
1427 * config/i386/i386.md (*pushti2): New insn pattern.
1428 (pushti2 splitter): New insn splitter.
1429 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
1430 DWI mode iterator.
1431
1432 2010-10-21 Paul Koning <ni1d@arrl.net>
1433
1434 * config/pdp11/pdp11-protos.md (arith_operand,
1435 const_immediate_operand, expand_shift_operand,
1436 immediate15_operand): Delete
1437 * config/pdp11/pdp11.c: Ditto.
1438 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
1439 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
1440 EXTRA_CONSTRAINT): Delete.
1441 * config/pdp11/pdp11.md (various): Use standard constraints
1442 instead of removed ones.
1443 * config/pdp11/constraints.md: New file.
1444 * config/pdp11/predicates.md: New file.
1445
1446 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
1447
1448 PR c/45834
1449 * alias.c (true_dependence_1): Remove obsolete check for QImode.
1450 (may_alias_p): Ditto.
1451
1452 2010-10-21 Martin Jambor <mjambor@suse.cz>
1453
1454 PR tree-optimization/45875
1455 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
1456
1457 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1458
1459 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
1460 variables.
1461 (create_new_def_for): Likewise.
1462
1463 2010-10-21 Nick Clifton <nickc@redhat.com>
1464
1465 * config/mn10300/mn10300.c: Fold code to 80-character width.
1466 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1467 MEM, CONST_INT and CONST_DOUBLE.
1468 (targetm): Move initialization to end of file.
1469 (print_operand): Rename to mn10300_print_operand.
1470 (print_operand_address): Rename to mn10300_print_operand_address.
1471 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
1472 (expand_prologue): Rename to mn10300_expand_prologue.
1473 (expand_epilogue): Rename to mn10300_expand_epilogue.
1474 (initial_offset): Rename to mn10300_initial_offset.
1475 (function_arg): Rename to mn10300_function_arg.
1476 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
1477 (symbolic_operand): Rename to mn10300_symbolic_operand.
1478 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
1479 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
1480 * config/mn10300/mn10300-protos.h: Update prototypes.
1481 * config/mn10300/mn10300.h: Fold code to 80-character width.
1482 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1483 MEM, CONST_INT and CONST_DOUBLE.
1484 (CPP_SPEC): Move to...
1485 (TARGET_CPU_CPP_BUILTINS): ... here.
1486 * config/mn10300/mn10300.md: Fold code to 80-character width.
1487 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1488 MEM, CONST_INT and CONST_DOUBLE.
1489
1490 2010-10-21 Ira Rosen <irar@il.ibm.com>
1491
1492 PR tree-optimization/46049
1493 PR tree-optimization/46052
1494 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
1495 (vect_get_slp_defs): Add arguments.
1496 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
1497 operands to vect_get_slp_defs.
1498 (vectorizable_reduction): Fix comment, pass scalar operands to
1499 vect_get_slp_defs.
1500 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
1501 type to determine number of units in the created vector.
1502 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
1503 (vectorizable_conversion): Fix comment.
1504 (vectorizable_shift): New function.
1505 (vectorizable_operation): Move code that handles shifts to
1506 vectorizable_shift.
1507 (vectorizable_type_demotion): Fix comment, pass scalar operands to
1508 vect_get_slp_defs.
1509 (vectorizable_type_promotion, vectorizable_store): Likewise.
1510 (vectorizable_condition): Fix comment.
1511 (vect_analyze_stmt): Call vectorizable_shift.
1512 (vect_transform_stmt): Likewise.
1513 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
1514 Use it as the operand to create vectors for, except reduction
1515 initial definition and store. Use operands type.
1516 (vect_get_slp_defs): Add new arguments. Pass them to
1517 vect_get_constant_vectors.
1518
1519 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1520
1521 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
1522 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
1523 * cfghooks.c (fixup_reorder_chain): Likewise.
1524 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
1525 * cgraph.c (cgraph_add_thunk): Likewise.
1526 (cgraph_create_edge_1): Likewise.
1527 (cgraph_create_virtual_clone): Likewise.
1528 * ddg.c (add_cross_iteration_register_deps): Likewise.
1529 * dwarf2out.c (modified_type_die): Likewise.
1530 * emit-rtl.c (set_mem_alias_set): Likewise.
1531 * ggc-zone.c (zone_allocate_marks): Likewise.
1532 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
1533 * gimple.c (iterative_hash_gimple_type): Likewise.
1534 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
1535 (create_single_exit_edge): Likewise.
1536 * haifa-sched.c (choose_ready): Likewise.
1537 * lto-streamer-in.c (input_gimple_stmt): Likewise.
1538 * passes.c (execute_todo): Likewise.
1539 * sched-ebb.c (begin_schedule_ready): Likewise.
1540 * sel-sched.c (code_motion_process_successors): Likewise.
1541 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
1542 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
1543 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
1544 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
1545 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
1546 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
1547 (ssa_conflicts_add): Likewise.
1548 * tree-ssa-copy.c (replace_exp): Likewise.
1549 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
1550 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
1551 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1552 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
1553 (compute_antic): Likewise.
1554 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
1555 (add_dependence): Likewise.
1556 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
1557 * tree-vrp.c (supports_overflow_infinity): Likewise.
1558 (make_overflow_infinity, negative_overflow_infinity): Likewise.
1559 (avoid_overflow_infinity, register_new_assert_for): Likewise.
1560 (process_assert_insertions_for): Likewise.
1561 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
1562 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
1563 (intersect_loc_chains, variable_merge_over_cur): Likewise.
1564
1565 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1566
1567 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
1568 * reload1.c (has_nonexceptional_receiver): Likewise.
1569 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
1570 (create_new_def_for): Likewise.
1571 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
1572 (merge_phi_nodes): Likewise.
1573 (has_abnormal_incoming_edge_p): Delete.
1574
1575 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
1576
1577 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
1578
1579 2010-10-21 Richard Guenther <rguenther@suse.de>
1580 Michael Matz <matz@suse.de>
1581
1582 PR tree-optimization/45764
1583 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1584 Adjust initial misalignment for negative DR_STEP.
1585 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
1586 do not have the same alignment over the whole iteration domain.
1587
1588 2010-10-21 Richard Guenther <rguenther@suse.de>
1589
1590 PR tree-optimization/46111
1591 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
1592
1593 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1594
1595 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
1596
1597 2010-10-21 Tristan Gingold <gingold@adacore.com>
1598
1599 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
1600 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
1601
1602 2010-10-21 Tristan Gingold <gingold@adacore.com>
1603
1604 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
1605 signal_frame.
1606 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
1607
1608 2010-10-21 Tristan Gingold <gingold@adacore.com>
1609
1610 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
1611 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
1612
1613 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
1614
1615 * basic-block.h (find_fallthru_edge): Define.
1616 * cfgcleanup.c (merge_blocks_move): Use it.
1617 (try_crossjump_bb): Likewise.
1618 * cfglayout.c (fixup_reorder_chains): Likewise.
1619 (fixup_fallthru_exit_predecessor): Likewise.
1620 * cfgrtl.c (rtl_split_edge): Likewise.
1621 (rtl_verify_flow_info): Likewise.
1622 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1623 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
1624 * ifcvt.c (block_fallthru): Likewise.
1625 * reload1.c (fixup_abnormal_edges): Likewise.
1626 * sched-ebb.c (being_schedule_ready): Likewise.
1627 (schedule_ebb): Likwise.
1628 * sched-rgn.c (find_single_block_region): Likewise.
1629 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
1630 * tree-complex.c (expand_complex_move): Likewise.
1631 * sched-int.h (find_fallthru_edge): Rename to...
1632 (find_fallthru_edge_from): ...this.
1633 * haifa-sched.c (find_fallthru_edge): Rename to...
1634 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
1635 (init_before_recovery): Call find_fallthru_edge_from.
1636 * sel-sched-ir.c (merge_fences): Likewise.
1637 * sel-sched.c (in_fallthru_bb_p): Likewise.
1638 (move_cond_jump): Likewise.
1639
1640 2010-10-20 Paul Koning <ni1d@arrl.net>
1641
1642 * config/pdp11/pdp11.md (various): Fix conditions on a number of
1643 insn to check for target 11/40 or higher.
1644
1645 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1646
1647 * parser.c (c_parser_objc_method_type): Mark inline. Return a
1648 bool instead of a tree.
1649 (c_parser_objc_method_decl): Added bool argument. Updated call to
1650 objc_build_method_signature.
1651 (c_parser_objc_method_definition): Do not call
1652 objc_set_method_type. Updated calls to c_parser_objc_method_type,
1653 c_parser_objc_method_decl and objc_start_method_definition.
1654 (c_parser_objc_methodproto): Do not call objc_set_method_type.
1655 Updated calls to c_parser_objc_method_type,
1656 c_parser_objc_method_decl and objc_add_method_declaration.
1657
1658 2010-10-20 Jakub Jelinek <jakub@redhat.com>
1659
1660 PR tree-optimization/45919
1661 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
1662 array members.
1663
1664 PR tree-optimization/46066
1665 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
1666 instead of gsi_last_bb.
1667
1668 2010-10-20 DJ Delorie <dj@redhat.com>
1669
1670 * config/m32c/m32c.c (m32c_option_override): Always disable
1671 function-cse in 16-bit mode. Indirect calls are always worse than
1672 direct calls as there is no 16-bit indirect call opcode.
1673 (m32c_override_options_after_change): New, likewise.
1674
1675 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
1676
1677 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
1678 emitting the conditional move in the inner mode of the SUBREG.
1679
1680 2010-10-20 Anatoly Sokolov <aesok@post.ru>
1681
1682 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
1683 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
1684 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1685 (ia64_preferred_reload_class): Make static. Change rclass argument
1686 and result types from enum reg_class to reg_class_t.
1687
1688 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
1689
1690 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
1691 call for single operand expression.
1692
1693 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
1694
1695 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
1696 if there is a call statement to pure or const function in the block.
1697
1698 2010-10-20 Paul Koning <pkoning@equallogic.com>
1699
1700 Fix several build errors for pdp11 target.
1701 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
1702 (cbranchdf4): Conditional on TARGET_FPU.
1703 (movdf): Ditto; correct alternatives check.
1704 (movmemhi): Fix predicate and constraint.
1705 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
1706
1707 2010-10-20 Richard Guenther <rguenther@suse.de>
1708
1709 PR lto/45667
1710 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
1711 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
1712 (verify_gimple_assign_single): Disable ADDR_EXPR type check
1713 when in LTO.
1714
1715 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
1716
1717 PR fortran/42169
1718 * ira-emit.c (store_can_be_removed_p): Return false instead of
1719 gcc_unreachable.
1720
1721 2010-10-20 Dmitry Melnik <dm@ispras.ru>
1722
1723 * fold-const.c (fold_binary_loc): New transformation.
1724
1725 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
1726
1727 PR target/46085
1728 * config/i386/sse.md (reduc_splus_v8sf): Updated.
1729 (reduc_splus_v4df): Likewise.
1730
1731 2010-10-20 Richard Guenther <rguenther@suse.de>
1732
1733 PR tree-optimization/45860
1734 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
1735 conditional store replacement for non-register type stores.
1736
1737 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
1738
1739 * stor-layout.c (skip_simple_constant_arithmetic): New function.
1740 (self_referential_size): Use it instead of skip_simple_arithmetic.
1741
1742 2010-10-20 Olivier Hainque <hainque@adacore.com>
1743
1744 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
1745 If the current function calls eh_return, claim live all registers
1746 that we need to check for liveness otherwise.
1747
1748 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1749
1750 * c-decl.c (c_write_global_declarations): Call
1751 objc_write_global_declarations when compiling Objective-C.
1752 * c-lang.c (finish_file): Removed.
1753
1754 2010-10-19 DJ Delorie <dj@redhat.com>
1755
1756 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
1757 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
1758 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
1759 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
1760 * doc/tm.texi: Regenerate.
1761 * targhooks.h (default_label_align_after_barrier_max_skip,
1762 default_loop_align_max_skip, default_label_align_max_skip,
1763 default_jump_align_max_skip): Declare.
1764 * target.def (label_align_after_barrier_max_skip): New.
1765 (loop_align_max_skip): New.
1766 (label_align_max_skip): New.
1767 (jump_align_max_skip): New.
1768 * system.h (poison): Add those macros to the list.
1769 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
1770 (LOOP_ALIGN_MAX_SKIP): Remove.
1771 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
1772 (JUMP_ALIGN_MAX_SKIP): Remove.
1773 (default_label_align_after_barrier_max_skip): New.
1774 (default_loop_align_max_skip): New.
1775 (default_label_align_max_skip): New.
1776 (default_jump_align_max_skip): New.
1777 (compute_alignments): Use the new hooks.
1778 (shorten_branches): Likewise.
1779
1780 2010-10-19 Richard Henderson <rth@redhat.com>
1781
1782 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
1783 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
1784 (fma4i_fmadd_<mode>): New.
1785 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
1786 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
1787 standard fma patterns.
1788 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
1789 enable for FMA.
1790 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
1791 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
1792 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
1793
1794 2010-10-19 Paul Koning <pkoning@equallogic.com>
1795
1796 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
1797 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
1798
1799 2010-10-19 Richard Henderson <rth@redhat.com>
1800
1801 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
1802 (fmadf4, *fmsdf4, *nfmadf4): New.
1803 (fmaxf4, *fmsxf4, *nfmaxf4): New.
1804
1805 2010-10-19 Michael Eager <eager@eagercon.com>
1806
1807 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
1808 Use sjlj unwind info for exceptions.
1809
1810 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
1811
1812 PR fortran/43414
1813 * dwarf2out.c (add_calling_convention_attribute): Flag main
1814 Fortran subroutine with DW_AT_main_subprogram.
1815
1816 2010-10-19 Nick Clifton <nickc@redhat.com>
1817
1818 * config/rx/rx.c (rx_function_value): Small integer types are
1819 promoted to SImode.
1820 (rx_promote_function_mode): New function.
1821 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1822
1823 2010-10-19 Nick Clifton <nickc@redhat.com>
1824
1825 * config/mep/mep.c (mep_print_operand): Use
1826 targetm.strip_name_encoding.
1827 (mep_output_aligned_common): Likewise.
1828
1829 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
1830
1831 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
1832
1833 2010-10-18 Richard Henderson <rth@redhat.com>
1834
1835 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
1836 (fma (neg a) (neg b) c) and (fma a (neg b) c).
1837
1838 2010-10-18 Richard Henderson <rth@redhat.com>
1839
1840 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
1841 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
1842 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
1843 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
1844 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
1845 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
1846 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
1847 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
1848 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
1849 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
1850 (bdesc_multi_arg): Remove the corresponding builtins.
1851 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
1852 (UNSPEC_FMA4_FMSUBADD): Remove.
1853 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
1854 * config/i386/sse.md (FMA4MODEF4): Remove.
1855 (FMAMODE): Add.
1856 (fma<mode>4): New expander.
1857 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
1858 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
1859 (*fma4i_fmsub_<mode>): Similarly.
1860 (*fma4i_fnmadd_<mode>): Similarly.
1861 (*fma4i_fnmsub_<mode>): Similarly.
1862 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
1863 with the first operand.
1864 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
1865 of explicit arithmetic. Macroize with AVXMODEF2P.
1866 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
1867 (xop_frcz<mode>2): Macroize with FMAMODE.
1868 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
1869 the first operand.
1870 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
1871 extra negations.
1872 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
1873 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
1874 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
1875 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
1876 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
1877 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
1878 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
1879 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
1880
1881 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
1882
1883 PR rtl-optimization/45966
1884 * combine.c (try_combine): If added_sets_2, deal with the case
1885 where i0 feeds i1 and i1 feeds i2.
1886
1887 2010-10-18 Jan Hubicka <jh@suse.cz>
1888
1889 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
1890 preserve flags before trying to guess on visibility.
1891 (varpool_externally_visible_p): New function.
1892 (function_and_variable_visibility): Use it.
1893
1894 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1895
1896 Implemented parsing @synthesize and @dynamic for Objective-C.
1897 * c-parser.c (c_parser_external_declaration): Recognize
1898 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1899 (c_parser_objc_at_synthesize_declaration): New.
1900 (c_parser_objc_at_dynamic_declaration): New.
1901
1902 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1903
1904 * c-parser.c (c_parser_objc_class_declaration): After finding an
1905 error, parse the whole declaration then reset parser->error.
1906
1907 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1908
1909 PR target/46041
1910 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
1911 * builtins.c (mode_has_fma): Ditto.
1912
1913 2010-10-18 Steve Ellcey <sje@cup.hp.com>
1914
1915 PR target/36898
1916 PR middle-end/43760
1917 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
1918
1919 2010-10-18 Joseph Myers <joseph@codesourcery.com>
1920
1921 * config/i386/i386.c (ix86_option_override_internal): Define and
1922 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
1923 default.
1924 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1925 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
1926
1927 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1928
1929 Merge from 'apple/trunk' branch on FSF servers.
1930 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
1931 following Objective-C change:
1932
1933 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
1934
1935 Radar 4301047
1936 * c-parse.in (objc_quals): Build objc qualifier list same way
1937 as gcc-3.3
1938
1939 2010-10-18 Jan Hubicka <jh@suse.cz>
1940
1941 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
1942 function_and_variable_visibility): Revert accidental commit.
1943
1944 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1945
1946 Merge from 'apple/trunk' branch on FSF servers.
1947 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
1948 the following Objective-C change:
1949
1950 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
1951
1952 Radar 4204796
1953 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
1954 'volatilized' type used in a typeof operator.
1955
1956 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1957
1958 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
1959 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
1960 rewrite modelled on gimple_purge_dead_eh_edges.
1961 (gimple_purge_all_dead_abnormal_call_edges): New function.
1962 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
1963 directly instead of through gimple_purge_dead_abnormal_call_edges.
1964 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
1965 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
1966 removed AB side-effects from one of its statements.
1967 (init_pre): Initialize need_ab_cleanup.
1968 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
1969 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
1970
1971 2010-10-18 Jakub Jelinek <jakub@redhat.com>
1972
1973 PR c/46015
1974 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
1975 on computed goto argument.
1976
1977 2010-10-18 Richard Guenther <rguenther@suse.de>
1978
1979 PR tree-optimization/45967
1980 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
1981 (could_have_pointers): Likewise.
1982 (handle_rhs_call, handle_const_call, handle_pure_call,
1983 find_func_aliases, intra_create_variable_infos): Remove calls to them.
1984 (struct fieldoff): Add must_have_pointers field.
1985 (type_must_have_pointers): New function.
1986 (field_must_have_pointers): Likewise.
1987 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
1988 Adjust field merging.
1989 (create_function_info_for): May-have-pointers of varinfo is
1990 almost always true.
1991 (create_variable_info_for_1): Likewise.
1992
1993 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
1994
1995 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
1996 of operands to vec_concat.
1997
1998 2010-10-18 Richard Guenther <rguenther@suse.de>
1999
2000 PR lto/44950
2001 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
2002 also clear references to entries of it.
2003
2004 2010-10-18 Andi Kleen <ak@linux.intel.com>
2005
2006 PR other/43448
2007 * gccbug.in: Remove.
2008 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
2009 (doc, distclean, install-common): Remove reference to gccbug.
2010 * configure: Regenerate.
2011 * configure.ac (all_outputs): Remove gccbug.
2012 * doc/configfiles.texi: Remove references to gccbug.
2013 * doc/sourcebuild.texi: Dito.
2014
2015 2010-10-18 Jakub Jelinek <jakub@redhat.com>
2016
2017 PR middle-end/46019
2018 * fold-const.c (fold_binary_loc): If integer_pow2p has
2019 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
2020
2021 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
2022 Jeremie Salvucci <jeremie.salvucci@free.fr>
2023
2024 * gengtype.c (verbosity_level): Add variable.
2025 (set_gc_used): Count variables for verbosity.
2026 (close_output_files): Backing up files, counting written ones
2027 verbosily.
2028 (write_types): Count emitted functions for verbosity. Added
2029 debug messages.
2030 (write_enum_defn): Count structures for verbosity. Added debug
2031 messages.
2032 (gengtype_long_options): Add "verbose" & "backupdir".
2033 (print_usage): Ditto.
2034 (main): Verbose display of parsed files.
2035
2036 * gengtype.h (verbosity_level): Add declaration.
2037
2038 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
2039
2040 * gengtype.c (parse_program_options): Add allocation of
2041 plugin_files, and correct test on nb_plugin_files.
2042
2043 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2044
2045 Merge from 'apple/trunk' branch on FSF servers.
2046
2047 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2048
2049 Radar 4133425
2050 * c-decl.c (undeclared_variable): Issue diagnostic on
2051 private 'ivar' access.
2052
2053 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
2054
2055 PR target/46051
2056 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
2057 generated sequence to match *avx_vperm2f128<mode>_nozero.
2058 (vec_interleave_lowv4df): Ditto.
2059 (vec_interleave_highv8sf): Ditto.
2060 (vec_interleave_lowv8sf): Ditto.
2061
2062 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
2063
2064 * libgcov.c (create_file_directory): Enable it for win32 case.
2065 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
2066 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
2067 (GCOV_PREFIX_SKIP): Likewise.
2068
2069 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2070
2071 * doc/objc.texi (GNU Objective-C runtime API): New section.
2072 (Modern GNU Objective-C runtime API): New section.
2073 (Traditional GNU Objective-C runtime API): New section.
2074 (Executing code before main): Mention that this section is
2075 specific to the GNU Objective-C runtime.
2076 (Garbage Collection): Same.
2077
2078 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
2079
2080 * c-parser.c (c_parser_for_statement): Move initialization of
2081 cond and incr before if.
2082
2083 2010-10-17 Anatoly Sokolov <aesok@post.ru>
2084
2085 * target.def (preferred_output_reload_class): New hook.
2086 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
2087 * doc/tm.texi: Regenerate.
2088 * targhooks.c (default_preferred_output_reload_class): New function.
2089 * targhooks.h (default_preferred_output_reload_class): Declare.
2090 * reload.c (find_dummy_reload): Change rclass argument type from
2091 enum reg_class to reg_class_t. Change this_alternative array type
2092 from enum reg_class to reg_class_t.
2093 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2094 (push_reload): Change preferred_class variable type to reg_class_t.
2095 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2096 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
2097 argument type from enum reg_class to reg_class_t. Use
2098 HARD_REGISTER_NUM_P predicate.
2099 * recog.h (reg_fits_class_p): Update prototype.
2100
2101 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2102 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
2103 Remove.
2104 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
2105 static. Change regclass argument and result types from enum reg_class
2106 to reg_class_t.
2107 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2108
2109 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2110
2111 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
2112 visibility enum, and handle @package.
2113
2114 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2115
2116 * doc/objc.texi (What you can and what you cannot do in +load):
2117 Document that sending messages to constant string objects in +load
2118 is not guaranteed to work.
2119
2120 2010-10-16 Jan Hubicka <jh@suse.cz>
2121
2122 PR middle-end/44206
2123 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
2124 existence of refrences before removing the function.
2125
2126 2010-10-16 Jan Hubicka <jh@suse.cz>
2127
2128 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
2129 only_called_at_startup and only_called_at_exit.
2130 (cgraph_propagate_frequency): Compute only_called_at_startup and
2131 only_called_at_exit.
2132 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
2133 only_called_at_exit.
2134 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
2135 flags.
2136 * predict.c (compute_function_frequency): Initialize the new flags.
2137
2138 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
2139
2140 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
2141 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
2142 on the bounds of its domain.
2143 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
2144
2145 2010-10-16 Anatoly Sokolov <aesok@post.ru>
2146
2147 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
2148 * config/avr/avr-protos.h (preferred_reload_class): Remove.
2149 * config/avr/avr.c (preferred_reload_class): Remove.
2150 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
2151 * config/pa/pa.c (emit_move_sequence): Update comment
2152 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
2153 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
2154 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
2155 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
2156 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
2157 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
2158 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
2159 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
2160 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
2161 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
2162 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
2163 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
2164 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
2165
2166 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2167
2168 * opts.c (set_fast_math_flags,
2169 set_unsafe_math_optimizations_flags): Make static.
2170 * toplev.h (set_fast_math_flags,
2171 set_unsafe_math_optimizations_flags): Remove prototypes.
2172
2173 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2174
2175 * config/arm/arm.c (arm_option_optimization): Set
2176 flag_section_anchors to 1 not 2.
2177 * config/i386/i386.c (ix86_option_override_internal): Check
2178 global_options_set.x_flag_zee and
2179 global_options_set.x_flag_omit_frame_pointer.
2180 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
2181 flag_zee to 2.
2182 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
2183 global_options_set.x_flag_omit_frame_pointer.
2184 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
2185 opts->x_flag_section_anchors to 1 not 2.
2186 * config/sh/sh.c (sh_option_optimization): Don't set
2187 flag_schedule_insns to 2.
2188 (sh_option_override): Check
2189 global_options_set.x_flag_schedule_insns.
2190 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
2191
2192 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
2193
2194 * configure.ac: Make sure inhibit_libc remains false for mingw targets
2195 as cross.
2196 * configure: Regenerated.
2197
2198 2010-10-15 Xinliang David Li <davidxl@google.com>
2199
2200 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
2201 function.
2202 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
2203 into a recursive function.
2204
2205 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
2206
2207 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
2208 (*movdfcc_1): ditto.
2209
2210 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2211
2212 * target.def (target_option.init_struct): New hook.
2213 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
2214 * doc/tm.texi: Regenerate.
2215 * hooks.c (hook_void_gcc_optionsp): New.
2216 * hooks.h (hook_void_gcc_optionsp): Declare.
2217 * langhooks-def.h (lhd_init_options_struct): Remove.
2218 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
2219 * langhooks.c (lhd_init_options_struct): Remove.
2220 * opts.c (init_options_struct): Also call
2221 targetm.target_option.init_struct.
2222 * config/i386/i386.c (ix86_option_init_struct,
2223 TARGET_OPTION_INIT_STRUCT): New.
2224 (ix86_option_optimization): Move some settings to
2225 ix86_option_init_struct.
2226 * config/pdp11/pdp11.c (pdp11_option_init_struct,
2227 TARGET_OPTION_INIT_STRUCT): New.
2228 (pdp11_option_optimization): Move some settings to
2229 pdp11_option_init_struct.
2230 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
2231 rs6000_option_init_struct. Use options structure pointer.
2232 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
2233 * config/s390/s390.c (s390_option_init_struct,
2234 TARGET_OPTION_INIT_STRUCT): New.
2235 (s390_option_optimization): Don't set
2236 flag_asynchronous_unwind_tables here.
2237 * config/sh/sh.c (sh_option_init_struct,
2238 TARGET_OPTION_INIT_STRUCT): New.
2239 (sh_option_optimization): Don't set flag_finite_math_only here.
2240 * config/spu/spu.c (spu_option_optimization): Replace by
2241 spu_option_optimization. Use options structure pointer.
2242 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
2243
2244 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2245
2246 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
2247
2248 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
2249 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
2250 (Standard names): Document fma.
2251
2252 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
2253 __FP_FAST_FMAF, __FP_FAST_FMAL.
2254
2255 * builitns.c (expand_builtin_mathfn_ternary): New function for
2256 expanding ternary math functions, like fma.
2257 (expand_builtin): Call it for the fma builtins.
2258
2259 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
2260 ops at present.
2261
2262 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
2263 vectorizable functions to support vectorizing fma.
2264
2265 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
2266 Handle fma builtins.
2267
2268 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
2269 (UNSPEC_VSX_MSUB): Ditto.
2270 (UNSPEC_VSX_NMADD): Ditto.
2271 (UNSPEC_VSX_NMSUB): Ditto.
2272 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
2273 of UNSPEC. Renumber combiner patterns.
2274 (vsx_fmsub<mode>4*): Ditto.
2275 (vsx_fnmadd<mode>4*): Ditto.
2276 (vsx_fnmsub<mode>4*): Ditto.
2277
2278 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
2279 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
2280 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
2281 (altivec_vmaddfp_1): Ditto.
2282 (altivec_vmaddfp_2): Ditto.
2283 (atlivec_mulv4sf3): Ditto.
2284 (altivec_vnmsubfp): Ditto.
2285 (altivec_vnmsubfp_1): Ditto.
2286 (altivec_vnmsubfp_2): Ditto.
2287 (altivec_vnmsubfp_3): Delete.
2288
2289 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
2290 (fmasf4_fpr): Ditto.
2291 (fmssf4_fpr): Ditto.
2292 (fnmasf4_fpr): Ditto.
2293 (fnmssf4_fpr): Ditto.
2294 (fmadf4): Ditto.
2295 (fmadf4_fpr): Ditto.
2296 (fmsdf4_fpr): Ditto.
2297 (fnmadf4_fpr): Ditto.
2298 (fnmsdf4_fpr): Ditto.
2299
2300 * optabs.h (OTI_fma): Add fma optab.
2301 (fma_optab): Ditto.
2302
2303 * genopinit.c (optabs): Set fma optab.
2304
2305 * rtl.def (FMA): Add FMA rtl.
2306
2307 * tree.h (mode_has_fma): New function to return if MODE supports a
2308 fast multiply and add instruction.
2309 * builtins.c (mode_has_fma): Ditto.
2310
2311 2010-10-15 Jan Hubicka <jh@suse.cz>
2312
2313 * lto-streamer-out.c (write_symbol): Use pointer set of seen
2314 objects instead of bitmap.
2315 (produce_symtab): Likewise; output defined symbols first.
2316
2317 2010-10-15 Jie Zhang <jie@codesourcery.com>
2318
2319 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
2320 Option Summary and Index.
2321
2322 2010-10-15 Richard Guenther <rguenther@suse.de>
2323
2324 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
2325 for automatic variables again.
2326
2327 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2328
2329 * doc/extend.texi (Variable Length): Don't refer to VLAs not
2330 conforming to C99.
2331
2332 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2333
2334 * config/rx/rx.c (rx_option_optimization): Change to
2335 rx_override_options_after_change. Don't change
2336 flag_lto_compression_level. Don't check for changes to whether
2337 FPU instructions can be used. Check and set only
2338 flag_finite_math_only, not other fast-math flags.
2339 (rx_option_override): Call rx_override_options_after_change.
2340 (TARGET_OPTION_OPTIMIZATION): Remove.
2341 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2342
2343 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2344
2345 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
2346 disable section anchors for lang_hooks.name[4] != 'O'.
2347
2348 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2349
2350 * config/frv/frv.c (frv_option_optimization,
2351 TARGET_OPTION_OPTIMIZATION): Remove.
2352 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
2353
2354 2010-10-15 Michael Matz <matz@suse.de>
2355
2356 * cgraphunit.c (clone_of_p): Define unconditionally.
2357
2358 2010-10-15 Richard Guenther <rguenther@suse.de>
2359
2360 PR lto/45957
2361 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
2362
2363 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
2364
2365 * ifcvt.c (find_active_insn_before): New function.
2366 (find_active_insn_after): New function.
2367 (cond_exec_process_if_block): Use new functions to replace
2368 prev_active_insn() and next_active_insn().
2369
2370 2010-10-14 Yao Qi <yao@codesourcery.com>
2371
2372 PR target/45447
2373 * config/arm/arm.c (arm_build_builtin_va_list): Assign
2374 va_list_name to TYPE_STUB_DECL (va_list_type).
2375
2376 2010-10-14 Jan Hubicka <jh@suse.cz>
2377
2378 PR middle-end/45621
2379 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
2380 redirected to clone, be happy.
2381 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
2382 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
2383 former_clone_of unconditionally.
2384
2385 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2386
2387 Merge from FSF apple 'trunk' branch.
2388 2006 Fariborz Jahanian <fjahanian@apple.com>
2389
2390 Radars 4436866, 4505126, 4506903, 4517826
2391 * c-parser.c (c_parser, objc_property_attr_context) New flag.
2392 (c_lex_one_token): Handle property attributes.
2393 (c_parser_external_declaration): Handle @property.
2394 (c_parser_declaration_or_fndef): Warn on invalid attributes before
2395 @alias, @class, @end and @property objc keywords.
2396 (c_parser_objc_methodprotolist): Handle @property.
2397 (c_parser_objc_property_attrlist): New.
2398 (c_parser_objc_at_property): New.
2399 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
2400 (build_modify_expr): Likewise.
2401
2402 2010-10-14 Jakub Jelinek <jakub@redhat.com>
2403
2404 PR tree-optimization/46008
2405 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
2406
2407 2010-10-14 Richard Guenther <rguenther@suse.de>
2408
2409 PR tree-optimization/44913
2410 * tree-data-ref.c (disjoint_objects_p): Remove.
2411 (dr_may_alias_p): Simplify. Only hand the base object to
2412 the alias-oracle.
2413 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2414 some more trees, bail out instead of asserting.
2415 (ptr_derefs_may_alias_p): Likewise. Export.
2416 (refs_may_alias_p_1): Handle STRING_CSTs.
2417 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
2418
2419 2010-10-14 Joseph Myers <joseph@codesourcery.com>
2420
2421 PR c/45969
2422 * c-typeck.c (build_binary_op): Don't try to compute a semantic
2423 type with excess precision for boolean operations.
2424
2425 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
2426 Basile Starynkevitch <basile@starynkevitch.net>
2427
2428 * gengtype.c: Include getopt.h and version.h.
2429
2430 (lang_bitmap, struct outf, outf_p)
2431 (get_output_file_with_visibility, oprintf): Definitions moved to
2432 gengtype.h
2433 (output_files, header_file, srcdir, srcdir_len, this_file)
2434 (do_dump): No more static variables.
2435 (do_debug): New.
2436 (dbgprint_count_type_at): Added new function.
2437 (gengtype_long_options): New.
2438 (print_usage, print_version, parse_program_options): New.
2439 (main): Call parse_program_options, and removed old option
2440 handling code. Added some debug output.
2441
2442 * gengtype.h: Updated copyright year.
2443 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
2444 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
2445 Moved from gengtype.c to here.
2446 (do_debug, read_state_filename, write_state_filename): New variables.
2447 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
2448
2449 * Makefile.in:
2450 (REVISION): Always defined.
2451 (version.o): Removed ifdef REVISION_c.
2452 (s-gtype): Pass arguments to build/gengtype program.
2453 (build/version.o): Added building rule.
2454 (build/gengtype$(build_exeext)): Added build/version.o.
2455
2456 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2457
2458 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
2459 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
2460 __strong macros.
2461
2462 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
2463
2464 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
2465 may_trap_or_fault_p instead of may_trap_p predicate.
2466 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
2467 (substitute_placeholder_in_expr): Likewise.
2468 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
2469 flag on MEM_REF nodes.
2470 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
2471 flags on INDIRECT_REF nodes.
2472
2473 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
2474
2475 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
2476 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
2477 (arm*-*-eabi*) <tm_file>: Likewise.
2478 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
2479 (frv-*-*linux*) <tm_file>: Likewise.
2480 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
2481 and associated helper macros.
2482 * config/frv/frv-abi.h: Delete.
2483
2484 2010-10-14 Richard Guenther <rguenther@suse.de>
2485
2486 PR lto/44561
2487 * tree.def (NULLPTR_TYPE): New tree code.
2488 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
2489 * dwarf2out.c (is_base_type): Likewise.
2490 (gen_type_die_with_usage): Likewise.
2491 * sdbout.c (plain_type_1): Likewise.
2492 * tree.c (build_int_cst_wide): Likewise.
2493 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
2494
2495 2010-10-14 Joseph Myers <joseph@codesourcery.com>
2496
2497 * params.c (params_finished): New.
2498 (add_params): Assert !params_finished.
2499 (finish_params): New.
2500 (set_param_value_internal): Take params and params_set
2501 parameters. Assert params_finished.
2502 (set_param_value, maybe_set_param_value): Take params and
2503 params_set parameters. Update calls to set_param_value_internal.
2504 (set_default_param_value): Assert !params_finished. Don't use
2505 set_param_value_internal.
2506 (default_param_value, init_param_values): New.
2507 * params.h (struct param_info): Change value to default_value.
2508 Remove set.
2509 (set_param_value, maybe_set_param_value): Add params and
2510 params_set parameters.
2511 (PARAM_VALUE): Get parameters from global_options.
2512 (PARAM_SET_P): Remove.
2513 (finish_params, default_param_value, init_param_values): New.
2514 * common.opt (param_values): New Variable.
2515 * config/arm/arm.c (arm_option_override): Pass extra arguments to
2516 maybe_set_param_value.
2517 * config/i386/i386.c (ix86_option_override_internal): Pass extra
2518 arguments to maybe_set_param_value.
2519 * config/picochip/picochip.c (picochip_option_override): Pass
2520 extra arguments to maybe_set_param_value.
2521 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
2522 extra arguments to maybe_set_param_value.
2523 * config/s390/s390.c (s390_option_override): Use
2524 maybe_set_param_value instead of set_param_value. Pass extra
2525 arguments to maybe_set_param_value.
2526 * config/sparc/sparc.c (sparc_option_override): Pass extra
2527 arguments to maybe_set_param_value.
2528 * config/spu/spu.c (spu_option_override): Pass extra arguments to
2529 maybe_set_param_value.
2530 * opts.c (handle_param): Take opts and opts_set parameters.
2531 Update call to set_param_value.
2532 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
2533 initial_loop_invariant_max_bbs_in_loop): Remove.
2534 (init_options_once): Don't set them.
2535 (init_options_struct): Initialize parameters structures.
2536 (default_options_optimization): Use default_param_value when
2537 restoring defaults. Update calls to maybe_set_param_value.
2538 (finish_options): Update calls to maybe_set_param_value.
2539 (common_handle_option): Update calls to handle_param and
2540 set_param_value.
2541 * toplev.c (DEFPARAM): Update definition for changes to param_info.
2542 (general_init): Call finish_params.
2543
2544 2010-10-14 Nick Clifton <nickc@redhat.com>
2545
2546 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
2547 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
2548 (FIRST_PSEUDO_REGISTER): Increase by one.
2549 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
2550 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
2551 (MODES_TIEABLE): Call mn10300_modes_tieable.
2552 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
2553 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
2554 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
2555 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
2556 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
2557 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
2558 (mn10300_cc_status_mdep): Delete.
2559 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
2560 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
2561 the combine-stack-adjust pass.
2562 (print_operand): Use the mode of the comparison operation to
2563 select the comparison suffix.
2564 (notice_update_cc): Delete.
2565 (mn10300_secondary_reload_class): Remove test for stack pointer
2566 based arithmetic.
2567 (output_tst): Rename to mn10300_output_cmp.
2568 (impossible_plus_operand): Move into predicates.md.
2569 (mn10300_legitimize_address): Make static.
2570 (mn10300_legitimate_address_p): Make static. Only allow SI sized
2571 constant pic operands.
2572 (mn10300_legitimate_constant_p): New function.
2573 (mn10300_case_values_threshold): Make static.
2574 (mn10300_hard_regno_mode_ok): New function.
2575 (mn10300_modes_tieable): New function.
2576 (mn10300_select_cc_mode): New function.
2577 * config/mn10300/predicates.md (impossible_plus_operand): Define.
2578 * config/mn10300/mn10300-protos.h: Tidy.
2579 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
2580 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
2581 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
2582 with clobbers or sets of CC_REG.
2583 (CC_REG): Define.
2584 (mov*): Remove use of CLR instruction.
2585 (cbranch_si4_<code>): New pattern/split.
2586 (integer_conditional_branch): New pattern.
2587 (cbranch_sf4_<code>): New pattern/split.
2588 (float_conditional_branch): New pattern.
2589 (casesi): Use addsi3 pattern instead of movsi pattern to add and
2590 move a value at the same time.
2591 (cc0 peepholes): Remove.
2592
2593 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2594
2595 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
2596 on RTX_FRAME_RELATED_P insns and the insn to which
2597 NOTE_INSN_EPILOGUE_BEG is attached.
2598 * sched-vis.c (print_value): Allow NULL value.
2599
2600 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2601
2602 PR rtl-optimization/45570
2603 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
2604 assert that we are pipelining outer loops. Allow returning
2605 zero predecessors.
2606
2607 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2608
2609 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
2610 (tidy_control_flow): Tidy vertical space.
2611 (sel_remove_bb): New variable idx. Use it to remember the basic
2612 block index before deleting the block.
2613 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
2614 (sel_merge_blocks): ... here.
2615 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
2616
2617 2010-10-14 Jakub Jelinek <jakub@redhat.com>
2618
2619 * cse.c (is_dead_reg): Change into inline function that is not
2620 called through for_each_rtx.
2621 (set_live_p): Adjust caller.
2622 (insn_live_p): Don't reset DEBUG_INSNs here.
2623 (struct dead_debug_insn_data): New data.
2624 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
2625 (delete_trivially_dead_insns): If there is just one setter for the
2626 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
2627 and add DEBUG_INSN for it right before the removed setter and
2628 use the DEBUG_EXPR instead of the dead pseudo.
2629
2630 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
2631
2632 * et-forest.c (et_nca): Return NULL immediately when
2633 the dominance forest has disjoint components.
2634
2635 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
2636
2637 * ira.c (setup_class_hard_regs): Fix typo in indexing
2638 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
2639
2640 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
2641
2642 * graph.c (inbb): New variable.
2643 (start_bb): Set inbb to 1 if output is inside of a building block.
2644 (end_bb): Check if output is inside of a building block.
2645
2646 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
2647
2648 PR rtl-optimization/45912
2649 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
2650 regno of registers instead of their index to compute the alignment.
2651
2652 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
2653
2654 * config/i386/i386.c (ix86_build_const_vector): Check vector
2655 mode instead of scalar mode.
2656 (ix86_build_signbit_mask): Likewise.
2657 (ix86_expand_fp_absneg_operator): Updated.
2658 (ix86_expand_copysign): Likewise.
2659 (ix86_expand_int_vcond): Likewise.
2660 (ix86_emit_swdivsf): Likewise.
2661 (ix86_sse_copysign_to_positive): Likewise.
2662 (ix86_expand_sse_fabs): Likewise.
2663 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
2664 * config/i386/sse.md (copysign<mode>3): Likewise.
2665 (sse2_cvtudq2ps): Likewise.
2666 (vec_unpacku_float_hi_v4si): Likewise.
2667 (vec_unpacku_float_lo_v4si): Likewise.
2668
2669 * config/i386/i386.c (ix86_builtins): Add
2670 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
2671 (bdesc_args): Likewise.
2672 (ix86_builtin_vectorized_function): Support
2673 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
2674 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
2675 and IX86_BUILTIN_CVTPS2DQ256.
2676 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
2677
2678 * config/i386/sse.md (STORENT_MODE): New.
2679 (VEC_FLOAT_MODE): Likewise.
2680 (VEC_EXTRACT_MODE): Likewise.
2681 (*avx_cvtdq2pd256_2): Likewise.
2682 (vec_pack_trunc_v4df): Likewise.
2683 (vec_interleave_highv8sf): Likewise.
2684 (vec_interleave_lowv8sf): Likewise.
2685 (storent<mode>): Macroized.
2686 (<code><mode>2: absneg): Likewise.
2687 (copysign<mode>3): Likewise.
2688 (vec_extract<mode>): Likewise.
2689
2690 PR target/44180
2691 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
2692 for V8SFmode.
2693
2694 2010-10-13 Richard Guenther <rguenther@suse.de>
2695 H.J. Lu <hongjiu.lu@intel.com>
2696
2697 * config/i386/sse.md (reduc_splus_v8sf): Add.
2698 (reduc_splus_v4df): Likewise.
2699 (vec_unpacks_hi_v8sf): Likewise.
2700 (vec_unpacks_lo_v8sf): Likewise.
2701 (*avx_cvtps2pd256_2): Likewise.
2702 (vec_unpacks_float_hi_v8si): Likewise.
2703 (vec_unpacks_float_lo_v8si): Likewise.
2704 (vec_interleave_highv4df): Likewise.
2705 (vec_interleave_lowv4df): Likewise.
2706
2707 2010-10-13 Richard Guenther <rguenther@suse.de>
2708
2709 PR objc/45878
2710 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
2711 alone if there are no virtual methods.
2712
2713 2010-10-13 Richard Henderson <rth@redhat.com>
2714
2715 * expr.c (build_personality_function): Take parameter LANG instead
2716 of parameter NAME. Build the name based on the lang prefix and the
2717 unwind method in use.
2718 * tree.c (lhd_gcc_personality): Update call to
2719 build_personality_function.
2720
2721 2010-10-13 Richard Guenther <rguenther@suse.de>
2722
2723 PR objc/45878
2724 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
2725
2726 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
2727
2728 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
2729 Canonicalize input operands of ASM_OPERANDS insns.
2730
2731 2010-10-13 Richard Guenther <rguenther@suse.de>
2732
2733 PR tree-optimization/45788
2734 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
2735 EH update until fixup-cfg.
2736
2737 2010-10-13 Julian Brown <julian@codesourcery.com>
2738
2739 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
2740 from CORE_REGS and GENERAL_REGS classes.
2741 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
2742 final constraint for register preferencing.
2743
2744 2010-10-13 Richard Guenther <rguenther@suse.de>
2745
2746 PR tree-optimization/45970
2747 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
2748 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
2749 (stmt_kills_ref_p): Likewise.
2750 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
2751
2752 2010-10-13 Richard Guenther <rguenther@suse.de>
2753
2754 PR tree-optimization/45982
2755 * tree-ssa-structalias.c (make_constraints_to): New function.
2756 (make_constraint_to): Implement in terms of make_constraints_to.
2757 (find_func_aliases): Properly make return values of pure/const
2758 functions escape if they assign to sth that is not a pointer.
2759
2760 2010-10-13 Richard Guenther <rguenther@suse.de>
2761
2762 PR middle-end/45874
2763 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
2764 Fixup the CFG when EH was fixed up.
2765
2766 2010-10-13 Ira Rosen <irar@il.ibm.com>
2767
2768 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
2769 Use operand's type for POINTER_PLUS_EXPR.
2770
2771 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
2772
2773 * c-parser.c (c_parser_for_statement): Initialize incr.
2774
2775 2010-10-12 Xinliang David Li <davidxl@google.com>
2776
2777 PR tree-optimization/45972
2778 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
2779 with too many arguments.
2780
2781 2010-10-12 Jakub Jelinek <jakub@redhat.com>
2782
2783 PR fortran/45636
2784 * tree-ssa-forwprop.c: Include expr.h.
2785 (constant_pointer_difference, simplify_builtin_call): New functions.
2786 (tree_ssa_forward_propagate_single_use_vars): Call
2787 simplify_builtin_call on builtin calls.
2788
2789 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
2790
2791 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
2792 (*adddi3_extend_sp32): Likewise.
2793 (*subdi3_insn_sp32): Likewise.
2794 (*subdi3_extend_sp32): Likewise.
2795 (*negdi2_sp32): Use negative test for consistency.
2796
2797 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
2798
2799 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
2800 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
2801 * config/fixed-bit.h: Likewise.
2802 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
2803 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
2804 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
2805 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
2806 (DF_SIZE): Likewise.
2807 * doc/tm.texi: Regenerate.
2808
2809 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
2810
2811 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
2812 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
2813 (*isel_reversed_unsigned_<mode>): New.
2814 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
2815 as valid comparisons and adjust operands and output appropriately.
2816 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
2817
2818 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
2819
2820 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
2821 DATA_ALIGNMENT and add COND parameter. Update comments above.
2822 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
2823 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
2824
2825 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
2826
2827 PR bootstrap/45958
2828 * exec-tool.in: Support '-plugin' as the second option to the linker.
2829
2830 2010-10-12 Richard Henderson <rth@redhat.com>
2831
2832 PR middle-end/45962
2833 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
2834 (expand_stack_vars): Assert large base allocated when used.
2835
2836 2010-10-12 Richard Guenther <rguenther@suse.de>
2837
2838 * tree-ssa-structalias.c (get_constraint_for_1): Constants
2839 only point to nonlocal, not anything.
2840
2841 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
2842
2843 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
2844 unwind info for exceptions.
2845
2846 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2847
2848 PR testsuite/45851
2849 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
2850 Document optional target selector.
2851
2852 2010-10-12 Joseph Myers <joseph@codesourcery.com>
2853
2854 * flag-types.h: New.
2855 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
2856 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
2857 options.h.
2858 (OPTIONS_H): Define.
2859 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
2860 of options.h.
2861 * configure.ac (tm_include_list): Include options.h not flags.h.
2862 * configure: Regenerate.
2863 * flags.h: Include flag-types.h. Include options.h at top of file
2864 again.
2865 (enum debug_info_type, enum debug_info_level, enum
2866 debug_info_usage, enum symbol_visibility, struct visibility_flags,
2867 enum ira_algorithm, enum ira_region, enum excess_precision, enum
2868 graph_dump_types, enum stack_check_type,
2869 enum warn_strict_overflow_code): Move to flag-types.h
2870 * opth-gen.awk: Include flag-types.h in options.h.
2871
2872 2010-10-12 Jakub Jelinek <jakub@redhat.com>
2873
2874 * expr.c (store_expr): Share code for STRING_CST and
2875 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
2876 check if target is a MEM.
2877
2878 * rtl.h: Include hashtab.h.
2879 (iterative_hash_rtx): New prototype.
2880 * rtl.c (iterative_hash_rtx): New function.
2881 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
2882 (output_loc_list): Return immediately if emitted is set, set it.
2883 (hash_loc_operands, hash_locs, hash_loc_list,
2884 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
2885 optimize_location_lists_1, optimize_location_lists): New function.
2886 (dwarf2out_finish): Call optimize_location_lists.
2887 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
2888
2889 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2890
2891 PR testsuite/45974
2892 Revert:
2893 * Makefile.in ($(lang_checks_parallel))
2894 ($(lang_checks_parallelized)): Use single quotes for
2895 $(RUNTESTFLAGS), to allow passing quoted content.
2896
2897 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2898
2899 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
2900 actual_oldval. Use __builtin_expect.
2901 (SUBWORD_VAL_CAS): Likewise.
2902
2903 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
2904
2905 * recog.c (nonmemory_operand): Call immediate_operand for
2906 CONSTANT_P operands.
2907
2908 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
2909
2910 * config/i386/i386.md (movmem<mode>): Macroize expander from
2911 movmem{si,di} using SWI48 mode iterator.
2912 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
2913 *strmovsi_rex_1 using P mode iterator.
2914 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
2915 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
2916 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
2917 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
2918 (setmem<mode>): Macroize expander from setmem{si,di} using
2919 SWI48 mode iterator.
2920 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
2921 *strsetsi_rex_1 using P mode iterator.
2922 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
2923 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
2924 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
2925 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
2926 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
2927 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
2928 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
2929 mode iterator.
2930 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
2931 *strlenqi_rex_1 using P mode iterator.
2932
2933 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
2934
2935 PR bootstrap/45445
2936 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
2937 static functions.
2938 (mark_ref_live, mark_ref_dead): Use them.
2939 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
2940 Save the original reg, and use the new functions.
2941 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
2942 changed.
2943 (check_and_make_def_conflict): Save the original reg.
2944
2945 2010-10-11 Martin Jambor <mjambor@suse.cz>
2946
2947 PR middle-end/45699
2948 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
2949 thunks.
2950
2951 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2952
2953 * Makefile.in ($(lang_checks_parallel))
2954 ($(lang_checks_parallelized)): Use single quotes for
2955 $(RUNTESTFLAGS), to allow passing quoted content.
2956
2957 PR bootstrap/35855
2958 * opt-functions.awk (BEGIN): New section.
2959 (lower, upper, digit, alnum): New variables.
2960 (static_var, opt_sanitized_name): Use alnum instead of character
2961 classes, for non-C locale.
2962 * optc-gen.awk: Likewise.
2963 * opth-gen.awk: Likewise.
2964
2965 2010-10-11 Anatoly Sokolov <aesok@post.ru>
2966
2967 * target.def (preferred_reload_class): New hook.
2968 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
2969 * doc/tm.texi: Regenerate.
2970 * targhooks.c (default_preferred_reload_class): New function.
2971 * targhooks.h (default_preferred_reload_class): Declare.
2972 * reload.c (find_dummy_reload): Change preferred_class variable type
2973 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
2974 target hook.
2975 (find_reloads): Change goal_alternative array type from int to
2976 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
2977 (push_reload, find_reloads_address_part): Use
2978 TARGET_PREFERRED_RELOAD_CLASS target hook.
2979 * reload1.c (emit_input_reload_insns): Ditto.
2980 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
2981 hook. Change rclass argument and secondary_class variable types from
2982 'enum reg_class' to reg_class_t.
2983
2984 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
2985 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
2986 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
2987 Change regclass argument and result types from enum reg_class to
2988 reg_class_t.
2989 (TARGET_PREFERRED_RELOAD_CLASS): Define.
2990
2991 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
2992
2993 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
2994 in masking operations.
2995 (simplify_const_unary_operation): Likewise.
2996 (simplify_binary_operation_1): Likewise.
2997 (simplify_const_binary_operation): Likewise.
2998 (simplify_const_relational_operation): Likewise.
2999 (simplify_ternary_operation): Likewise.
3000 (simplify_immed_subreg): Likewise.
3001
3002 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3003
3004 PR middle-end/45862
3005 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
3006 (TARGET_SUPPORTS_WEAK): New.
3007 * doc/tm.texi: Regenerate.
3008 * defaults.h (SUPPORTS_WEAK): Update comment.
3009 (TARGET_SUPPORTS_WEAK): New.
3010 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
3011 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
3012 SUPPORTS_WEAK.
3013 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
3014 make_decl_one_only): Likewise.
3015 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
3016 TARGET_SUPPORTS_WEAK.
3017 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
3018 instead of SUPPORTS_WEAK.
3019
3020 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3021
3022 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
3023
3024 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
3025
3026 * vec.h (VEC_qsort): Define.
3027 * dbxout.c (output_used_types): Use it.
3028 * df-scan.c (df_sort_and_compress_refs): Likewise.
3029 (df_sort_and_compress_mws): Likewise.
3030 * genautomata.c (uniq_sort_alt_states): Likewise.
3031 (evaluate_equiv_classes): Likewise.
3032 (output_trans_table): Likewise.
3033 (output_state): Likewise.
3034 * gimplify.c (compare_case_labels): Likewise.
3035 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
3036 * ipa.c (build_cdtor_fns): Likewise.
3037 * lto.c (lto_wpa_write_files): Likewise.
3038 * sel-sched.c (fill_vec_av_set): Likewise.
3039 * tree-predcom.c (determine_roots_comp): Likewise.
3040 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
3041 (splice_param_accesses): Likewise.
3042 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
3043 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
3044 (reassociate_bb): Likewise.
3045 * tree-ssa-sccvn.c (sort_scc): Likewise.
3046 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
3047
3048 2010-10-11 Ian Lance Taylor <iant@google.com>
3049
3050 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
3051 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
3052 TREE_THIS_NOTRAP when appropriate.
3053 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
3054 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
3055 newly created MEM_REF.
3056
3057 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3058
3059 Nathan Froyds patch to hooks FUNCTION_ARG etc.
3060 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
3061 (picochip_incoming_function_arg): Delete.
3062 (picochip_arg_advance): Delete.
3063 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
3064 (FUNCTION_INCOMING_ARG): Delete.
3065 (FUNCTION_ARG_ADVANCE): Delete.
3066 * config/picochip/picochip.c (picochip_function_arg): Take a
3067 const_tree and a bool.
3068 (picochip_incoming_function_arg): Likewise.
3069 (picochip_arg_advance): Likewise.
3070 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3071 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3072
3073 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3074
3075 PR middle-end/45955
3076 * ipa.c (build_cdtor): Delete endless loop.
3077
3078 2010-10-07 Andi Kleen <ak@linux.intel.com>
3079
3080 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
3081 checksum-options.
3082 (checksum-options): Add.
3083 (cc1-dummy): Remove.
3084 (cc1-checksum): Change to run checksum over object files
3085 and options only.
3086 * dummy-checksum.c: Remove.
3087 * genchecksum.c: Update copyright.
3088 (usage): Allow multiple arguments.
3089 (BLOCKSIZE): Add.
3090 (dosum): Change for incremental checksum. Remove C output.
3091 (main): Iterate over all argument files. Add C output.
3092
3093 2010-10-11 Joseph Myers <joseph@codesourcery.com>
3094
3095 * params.c (set_param_value_internal): New.
3096 (set_param_value): Use set_param_value_internal.
3097 (maybe_set_param_value, set_default_param_value): New.
3098 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
3099 (maybe_set_param_value, set_default_param_value): Declare.
3100 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
3101 * config/i386/i386.c (ix86_option_override_internal): Use
3102 maybe_set_param_value.
3103 * config/ia64/ia64.c (ia64_option_default_params,
3104 TARGET_OPTION_DEFAULT_PARAMS): New.
3105 (ia64_option_optimization): Move some code to
3106 ia64_option_default_params.
3107 * config/picochip/picochip.c (picochip_option_override): Use
3108 maybe_set_param_value.
3109 * config/rs6000/rs6000.c (rs6000_option_default_params,
3110 TARGET_OPTION_DEFAULT_PARAMS): New.
3111 (rs6000_option_override_internal): Use maybe_set_param_value.
3112 (rs6000_option_optimization): Move some code to
3113 rs6000_option_default_params.
3114 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
3115 * config/sh/sh.c (sh_option_default_params,
3116 TARGET_OPTION_DEFAULT_PARAMS): New.
3117 (sh_option_optimization): Move some code to sh_option_default_params.
3118 * config/sparc/sparc.c (sparc_option_override): Use
3119 maybe_set_param_value.
3120 * config/spu/spu.c (spu_option_default_params,
3121 TARGET_OPTION_DEFAULT_PARAMS): New.
3122 (spu_option_optimization): Move some code to spu_option_default_params.
3123 (spu_option_override): Use maybe_set_param_value.
3124 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
3125 * doc/tm.texi: Regenerate.
3126 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
3127 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
3128 compiler_params.
3129 (default_options_optimization): Use maybe_set_param_value.
3130 (finish_options): Use maybe_set_param_value.
3131 * target.def (target_option.default_params): New hook.
3132 * toplev.c (general_init): Call targetm.target_option.default_params.
3133
3134 2010-10-11 Ira Rosen <irar@il.ibm.com>
3135
3136 PR tree-optimization/45902
3137 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
3138 vector type for constants, unless it's a pointer.
3139
3140 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3141
3142 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
3143
3144 2010-10-11 Jakub Jelinek <jakub@redhat.com>
3145
3146 PR target/45870
3147 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
3148 (ix86_delegitimize_address): Use it.
3149
3150 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
3151
3152 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
3153
3154 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
3155
3156 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
3157 to cum struct in the call to function_arg_advance.
3158 (alpha_function_arg_advance): Mark named as unused.
3159
3160 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
3161
3162 * config/mips/mips.c (mips_handle_option): Make "value" with
3163 ATTRIBUTE_UNUSED.
3164
3165 2010-10-09 Richard Henderson <rth@redhat.com>
3166
3167 PR rtl-opt/33721
3168 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
3169 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
3170 required_align, tidy the code a bit. Emit split_stack code in the
3171 right place. Mark the return value with the alignment properly.
3172 * expr.h (allocate_dynamic_stack_space): Update decl.
3173 * builtins.c (expand_builtin_apply): Update call to
3174 allocate_dynamic_stack_space.
3175 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
3176 * calls.c (initialize_argument_information): Update call to
3177 allocate_dynamic_stack_space.
3178 (expand_call): Likewise.
3179
3180 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
3181 Don't update_stack_alignment here.
3182 (alloc_stack_frame_space): Make ALIGN unsigned.
3183 (stack_var_cmp): Sort by alignment too.
3184 (partition_stack_vars): Don't merge large and small alignment vars.
3185 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
3186 Take care when BASE is not virtual_stack_vars_rtx.
3187 (expand_stack_vars): Allocate dynamic stack space for large
3188 alignment variables.
3189 (expand_one_stack_var): Update all to expand_one_stack_var_at.
3190 (defer_stack_allocation): True for large alignment vars.
3191 (update_stack_alignment): Merge into ...
3192 (expand_one_var): ... here.
3193 (gimple_expand_cfg): Place code from expand_stack_vars.
3194
3195 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3196
3197 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3198 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
3199 (pdp11_function_arg_advance): New function.
3200 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3201
3202 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3203
3204 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
3205 * libgcc2.c: Likewise.
3206
3207 2010-10-09 Richard Guenther <rguenther@suse.de>
3208
3209 PR lto/45956
3210 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
3211 Properly check if a decl is an automatic var.
3212
3213 2010-10-09 Richard Guenther <rguenther@suse.de>
3214
3215 PR lto/45947
3216 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
3217
3218 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3219
3220 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
3221 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3222 * config/mmix/mmix.c (mmix_function_arg): Rename to...
3223 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
3224 bool arguments.
3225 (mmix_function_arg): New function.
3226 (mmix_function_incoming_arg): New function.
3227 (mmix_function_arg_advance): New function.
3228 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3229 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3230
3231 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3232
3233 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3234 * config/vax/vax.c (vax_function_arg): New function.
3235 (vax_function_arg_advance): New function.
3236 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3237
3238 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3239
3240 * config/pa/pa-protos.h (function_arg): Delete.
3241 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3242 * config/pa/pa.c (function_arg): Rename to...
3243 (pa_function_arg): ...this. Make static. Take a const_tree and
3244 a bool.
3245 (pa_function_arg_advance): New function.
3246 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3247
3248 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3249
3250 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3251 * config/m68k/m68k.c (m68k_function_arg): New function.
3252 (m68k_function_arg_advance): New function.
3253 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3254
3255 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3256
3257 * config/avr/avr-protos.h (function_arg): Delete.
3258 (function_arg_advance): Delete.
3259 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3260 * config/avr/avr.c (function_arg): Rename to...
3261 (avr_function_arg): ...this. Make static. Take a const_tree and
3262 a bool.
3263 (function_arg_advance): Rename to...
3264 (avr_function_arg_advance): ...this. Make static. Take a
3265 const_tree and a bool.
3266 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3267
3268 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3269
3270 * config/alpha/alpha-protos.h (function_arg): Delete.
3271 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3272 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
3273 * config/alpha/alpha.c (function_arg): Rename to...
3274 (alpha_function_arg): ...this. Make static. Take a const_tree and
3275 a bool. Delete TARGET_ABI_UNICOSMK code.
3276 (alpha_function_arg_advance): New function.
3277 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3278
3279 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3280
3281 * config/mep/mep-protos.h (mep_function_arg): Delete.
3282 (mep_function_arg_advance): Delete.
3283 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3284 * config/mep/mep.c (mep_function_arg): Make static. Take a
3285 const_tree and a bool.
3286 (mep_function_arg_advance): Likewise.
3287 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3288
3289 2010-10-09 Richard Guenther <rguenther@suse.de>
3290
3291 PR tree-optimization/45945
3292 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
3293
3294 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
3295
3296 PR tree-optimization/45612
3297 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
3298 Test LABEL_DECLs as well. Fix formatting issues.
3299 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
3300 whose label is present in NON_SSA_VARS.
3301 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
3302 as well. Fix formatting issues.
3303 (visit_bb): Fix typos and formatting issue.
3304
3305 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3306
3307 PR tree-optimization/45950
3308 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
3309 before initializing vno->op.
3310
3311 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
3312
3313 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
3314 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
3315
3316 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
3317
3318 PR target/45913
3319 * config/i386/i386.c (ix86_binary_operator_ok): Support
3320 "andhi/andsi/anddi" as a zero-extending move.
3321
3322 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3323
3324 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
3325 into a temporary array.
3326
3327 2010-10-08 Jakub Jelinek <jakub@redhat.com>
3328
3329 PR tree-optimization/45903
3330 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
3331 of {A,L}SHIFTRT of MEM.
3332
3333 2010-10-08 Richard Guenther <rguenther@suse.de>
3334
3335 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
3336 Re-construct BLOCK_VARS.
3337 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
3338 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
3339 * tree.c (free_lang_data_in_block): Remove.
3340 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
3341 Do not touch the BLOCK tree.
3342 * expr.c (expand_expr_real_1): Allow externals.
3343
3344 2010-10-08 Richard Guenther <rguenther@suse.de>
3345
3346 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
3347 Do not output BLOCK_SUBBLOCKS.
3348 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
3349 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
3350 Re-construct BLOCK_SUBBLOCKS of parent block.
3351 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
3352 for BINFO_BASE_ACCESSES.
3353
3354 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3355
3356 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
3357 (TREE_H): Include $(FLAGS_H) instead of options.h.
3358 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
3359 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3360 * common.opt (flag_complex_method, flag_evaluation_order,
3361 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
3362 Variable declarations.
3363 * configure.ac (tm_include_list): Include flags.h instead of options.h.
3364 * configure: Regenerate.
3365 * flags.h: Condition out contents for target libraries. Include
3366 options.h at end of file.
3367 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
3368 flag_evaluation_order, flag_warn_unused_result): Remove.
3369 * gcc.c (main): Intialize global_options with global_options_init.
3370 * langhooks-def.h (lhd_init_options_struct): Declare.
3371 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3372 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
3373 * langhooks.c (lhd_init_options_struct): New.
3374 * langhooks.h (struct lang_hooks): Add init_options_struct.
3375 Update comment on init_options.
3376 * optc-gen.awk: Generate initializer for global_options_init, not
3377 global_options.
3378 * opth-gen.awk: Condition out structure declarations for target
3379 libraries. Declare global_options_init.
3380 * opts-common.c: Include flags.h instead of options.h.
3381 * opts.c (flag_warn_unused_result): Remove.
3382 (read_cmdline_options): Take gcc_options parameters. Pass them to
3383 read_cmdline_option.
3384 (initial_lang_mask, initial_min_crossjump_insns,
3385 initial_max_fields_for_field_sensitive,
3386 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
3387 (init_options_once): New. Split out of decode_options.
3388 (init_options_struct): New. Split out of decode_options.
3389 (decode_cmdline_options_to_array_default_mask): New.
3390 (default_options_optimization): New. Split out of decode_options.
3391 (decode_options): Move most code to other functions. Update call
3392 to read_cmdline_options.
3393 (finish_options): New. Split out of decode_options.
3394 * opts.h (decode_options): Add gcc_options parameters.
3395 (init_options_once, init_options_struct,
3396 decode_cmdline_options_to_array_default_mask): New.
3397 * toplev.c (flag_complex_method, flag_ira_algorithm,
3398 flag_ira_region, flag_evaluation_order): Remove.
3399 (general_init): Use global_options_init for initial flag values
3400 for global_dc.
3401 (toplev_main): Call init_options_once, init_options_struct,
3402 lang_hooks.init_options_struct,
3403 decode_cmdline_options_to_array_default_mask and
3404 lang_hooks.init_option before decode_options. Update arguments to
3405 decode_options.
3406 * tree.h: Include flags.h instead of options.h.
3407
3408 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3409
3410 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3411
3412 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3413
3414 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
3415 Delete.
3416 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
3417 (FUNCTION_INCOMING_ARG): Delete.
3418 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
3419 (function_arg_slotno): Likewise. Take bool arguments.
3420 (sparc_arg_partial_bytes): Update call to it.
3421 (function_arg): Rename to...
3422 (sparc_function_arg_1): ...this. Take bool arguments.
3423 (sparc_function_arg, sparc_function_incoming_arg): New functions.
3424 (function_arg_advance): Rename to...
3425 (sparc_function_arg_advance): ...this. Take bool argument.
3426 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
3427 (TARGET_FUNCTION_INCOMING_ARG): Define.
3428
3429 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3430
3431 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
3432 Delete.
3433 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3434 * config/bfin/bfin.c (function_arg_advance): Rename to...
3435 (bfin_function_arg_advance): ...this. Make static. Take const_tree
3436 and bool arguments.
3437 (function_arg): Rename to...
3438 (bfin_function_arg): ...this. Make static. Take const_tree and bool
3439 arguments.
3440 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3441
3442 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3443
3444 * config/score/score-protos.h (score_function_arg): Delete.
3445 (score_function_arg_advance): Delete.
3446 * config/score/score3.h (score3_function_arg_advance): Take a
3447 const_tree and a bool.
3448 (score3_function_arg): Likewise.
3449 * config/score/score7.h (score7_function_arg_advance): Likewise.
3450 (score7_function_arg): Likewise.
3451 * config/score/score3.c (score3_classify_arg): Likewise.
3452 (score3_function_arg_advance, score3_function_arg): Likewise.
3453 * config/score/score7.c (score7_classify_arg): Likewise.
3454 (score7_function_arg_advance, score7_function_arg): Likewise.
3455 * config/score/score.c (score_function_arg_advance): Likewise.
3456 (score_function_arg): Likewise. De-const-ify `cum' argument.
3457 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3458
3459 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3460
3461 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
3462 (s390_function_arg): Delete.
3463 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3464 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
3465 (s390_function_arg_integer): Likewise.
3466 (s390_function_arg_advance): Make static. Take a const_tree and
3467 a bool.
3468 (s390_function_arg): Likewise.
3469 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3470
3471 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3472
3473 * config/spu/spu-protos.h (spu_function_arg): Delete.
3474 * config/spu/spu.h (FUNCTION_ARG): Delete.
3475 (FUNCTION_ARG_ADVANCE): Move code to ...
3476 * config/spu/spu.c (spu_function_arg_advance): New function.
3477 (spu_function_arg): Make static. Take a const_tree and a bool.
3478 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
3479 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3480
3481 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3482
3483 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3484
3485 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3486
3487 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
3488 (init_vn_nary_op_from_op): New function.
3489 (init_vn_nary_op_from_stmt): New function.
3490 (vn_nary_op_lookup_1): New function.
3491 (sizeof_vn_nary_op): New function.
3492 (alloc_vn_nary_op_noinit): New function.
3493 (alloc_vn_nary_op): New function.
3494 (vn_nary_op_insert_into): New function.
3495 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
3496 (vn_nary_op_lookup): Likewise.
3497 (vn_nary_op_lookup_stmt): Likewise.
3498 (vn_nary_op_insert_pieces): Likewise.
3499 (vn_nary_op_insert): Likewise.
3500 (vn_nary_op_insert_stmt): Likewise.
3501 (copy_nary): Likewise.
3502 (set_value_id_for_result): New function.
3503 (set_hashtable_value_ids): Call it.
3504
3505 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3506
3507 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3508 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
3509
3510 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3511
3512 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
3513 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3514
3515 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
3516
3517 PR debug/45656
3518 * cse.c (cse_extended_basic_block): Preserve cc0 info across
3519 debug isnsn. Skip them when searching for cc0 setter.
3520 (set_live_p): Skip debug insns when searching for cc0 user.
3521
3522 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
3523
3524 PR debug/45673
3525 PR debug/45604
3526 PR debug/45419
3527 PR debug/45408
3528 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
3529 type of MEM_REFs to INTEGER_CSTs.
3530
3531 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
3532
3533 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
3534 m68hc11_print_operand_address.
3535
3536 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
3537
3538 * builtins.c (rewrite_call_expr): Move code to...
3539 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
3540 (rewrite_call_expr_array): New function.
3541 (fold_builtin_sprintf_chk_1): New function.
3542 (fold_builtin_sprintf_chk): Call it.
3543 (gimple_fold_builtin_sprintf_chk): Likewise.
3544 (fold_builtin_snprintf_chk_1): New function.
3545 (fold_builtin_snprintf_chk): Call it.
3546 (gimple_fold_builtin_snprintf_chk): Likewise.
3547 (gimple_rewrite_call_expr): Delete.
3548
3549 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3550
3551 * config.host: Update copyright year.
3552
3553 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3554
3555 * config.host (host_lto_plugin_soname): New shell variable.
3556 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
3557 * config.in: Regenerate.
3558 * configure: Regenerate.
3559 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
3560 LTO plugin shared library.
3561
3562 2010-10-07 Richard Henderson <rth@redhat.com>
3563
3564 * target.h (enum unwind_info_type): Move ...
3565 * coretypes.h: ... here.
3566
3567 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
3568
3569 * doc/objc.texi (Fast enumeration protocol): Mention that
3570 'unsigned int' can also be used instead of 'unsigned long' in
3571 countByEnumeratingWithState:objects:count:.
3572
3573 2010-10-07 Martin Jambor <mjambor@suse.cz>
3574
3575 * tree-sra.c (struct access): New field grp_assignment_write.
3576 (dump_access): Dump grp_assignment_write.
3577 (build_accesses_from_assign): Set grp_assignment_write.
3578 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
3579 (mark_read_status): Renamed to mark_rw_status, individual values
3580 renamed too.
3581 (analyze_access_subtree): Changed type of mark_write to
3582 mark_read_status. Fixed propagating of mark_read and
3583 mark_write. Changed benefit estimate. Updated comment.
3584
3585 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
3586
3587 PR Tree-Vect/45847
3588 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
3589 check for vectype_out returned by get_vectype_for_scalar_type().
3590
3591 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
3592
3593 PR target/45805
3594 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
3595 constraint, add register specifier in instruction template.
3596 (neon_vec_pack_trunc_<mode>): Likewise.
3597 (neon_vec_<US>mult_<mode>): Add register specifier to
3598 instruction template.
3599
3600 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3601
3602 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
3603 cygwin2.o.
3604 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
3605 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
3606 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
3607 (cygwin2.o): Likewise.
3608 * config/i386/cygwin1.c: Delete file.
3609 * config/i386/cygwin2.c: Likewise.
3610 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
3611 make all {%!mno-cygwin} ones unconditional.
3612 (STARTFILE_SPEC): Likewise.
3613 (REAL_LIBGCC_SPEC): Likewise.
3614 (LIB_SPEC): Likewise.
3615 (CXX_WRAP_SPEC): Likewise.
3616 (LINK_SPEC): Likewise.
3617 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
3618 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
3619 (cygwin_gplusplus_include_dir): Delete now-unused array.
3620 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
3621 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
3622 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
3623 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
3624 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
3625 (cygwin_local_include_dir): Delete now-unused array.
3626 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
3627 (cygwin_cross_include_dir): Delete now-unused array.
3628 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
3629 (cygwin_tool_include_dir): Delete now-unused array.
3630 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
3631 (cygwin_standard_include_dir): Delete now-unused array.
3632 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
3633 (GEN_CVT_ARRAY): Delete now-unused macro definition.
3634 (cvt_to_mingw): Delete now-unused array.
3635 (mingw_scan): Remove prototype of deleted function.
3636 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
3637 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
3638 * doc/invoke.texi (-mcygwin): Don't document removed option.
3639 (-mno-cygwin): Likewise.
3640
3641 2010-10-07 Richard Guenther <rguenther@suse.de>
3642
3643 * machmode.h (mode_for_vector): Declare.
3644 * stor-layout.c (mode_for_vector): New function, split out from ...
3645 (layout_type): ... here.
3646 * tree-vectorizer.h (current_vector_size): Declare.
3647 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
3648 mask vector type is available.
3649 (get_vectype_for_scalar_type): Rename to ...
3650 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
3651 size argument.
3652 (get_vectype_for_scalar_type): New wrapper around
3653 get_vectype_for_scalar_type_and_size using current_vector_size.
3654 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
3655 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
3656 of vect_analyze_loop here.
3657 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
3658 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
3659 to autodetect.
3660 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
3661 V8SF to V8SI conversion builtin.
3662
3663 2010-10-07 Richard Guenther <rguenther@suse.de>
3664
3665 * target.def (autovectorize_vector_sizes): New target hook.
3666 * targhooks.c (default_autovectorize_vector_sizes): New function.
3667 * targhooks.h (default_autovectorize_vector_sizes): Declare.
3668 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3669 Document.
3670 * doc/tm.texi: Update.
3671 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
3672 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
3673
3674 2010-10-07 Richard Guenther <rguenther@suse.de>
3675
3676 * target.def (units_per_simd_word): Rename to ...
3677 (preferred_simd_mode): ... this. Return mode instead of size.
3678 * targhooks.c (default_units_per_simd_word): Rename to ...
3679 (default_preferred_simd_mode): ... this. Return word_mode.
3680 * targhooks.h (default_preferred_simd_mode): Declare.
3681 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
3682 (arm_preferred_simd_mode): ... this. Re-implement.
3683 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
3684 (ix86_preferred_simd_mode): ... this. Re-implement.
3685 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
3686 (sparc_preferred_simd_mode): ... this. Re-implement.
3687 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
3688 (mips_preferred_simd_mode): ... this. Re-implement.
3689 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
3690 (rs6000_preferred_simd_mode): ... this. Re-implement.
3691 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
3692 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
3693 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
3694 * doc/tm.texi: Update.
3695
3696 2010-10-07 Richard Guenther <rguenther@suse.de>
3697
3698 PR middle-end/45869
3699 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
3700 of pointers.
3701
3702 2010-10-07 Alan Modra <amodra@gmail.com>
3703
3704 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
3705 rather than sign extension by hand.
3706
3707 2010-10-07 Jan Hubicka <jh@suse.cz>
3708
3709 PR middle-end/45926
3710 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
3711
3712 2010-10-07 Richard Guenther <rguenther@suse.de>
3713
3714 PR bootstrap/45914
3715 * configure.ac: Fix typo.
3716 * configure: Regenerated.
3717
3718 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3719
3720 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
3721 define_builtin_std where it's unnecessary.
3722 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
3723
3724 2010-10-06 Anatoly Sokolov <aesok@post.ru>
3725
3726 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
3727 * doc/tm.texi.in: Regenerate.
3728 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
3729 * targhooks.c (default_class_likely_spilled_p): Don't use the
3730 CLASS_LIKELY_SPILLED_P macro.
3731
3732 * config/arm/arm.md: Update comment.
3733
3734 2010-10-06 Jan Hubicka <jh@suse.cz>
3735
3736 * ipa.c (cgraph_remove_unreachable_nodes): External references can
3737 always be removed.
3738 (cgraph_externally_visible_p): We can not bring local comdats that
3739 are known to linker; fix handling of internal visibility.
3740 (function_and_variable_visibility): Likewise.
3741
3742 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
3743
3744 PR rtl-optimization/45394
3745 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
3746 (struct rtx_subst_pair): Remove AFTER field.
3747 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
3748 (propagate_for_debug): Remove MOVE parameter and adjust.
3749 (try_combine): In the special case where I2 is a PARALLEL, combine only
3750 destinations of SETs and set I2SRC to the I2 source.
3751 Adjust calls to propagate_for_debug throughout.
3752 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
3753 insns.
3754
3755 2010-10-06 Olivier Hainque <hainque@adacore.com>
3756
3757 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
3758 switch on insn codes as sequence of ifs.
3759
3760 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
3761
3762 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
3763 be UI_NONE for picochip.
3764 (picochip_option_override): Do not disable exception flags.
3765 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
3766 Declare.
3767
3768 2010-10-06 Richard Guenther <rguenther@suse.de>
3769
3770 * Makefile.in (regmove.o): Depend on $(TARGET_H).
3771
3772 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3773
3774 Implemented fast enumeration for Objective-C.
3775 * c-parser.c (objc_could_be_foreach_context): New.
3776 (c_lex_one_token): Recognize RID_IN keyword in a potential
3777 Objective-C foreach context.
3778 (c_parser_declaration_or_fndef): Added parameter. Accept
3779 Objective-C RID_IN keyword as terminating a declaration; in that
3780 case, return the declaration in the new parameter.
3781 (c_parser_extenral_declaration): Updated calls to
3782 c_parser_declaration_or_fndef.
3783 (c_parser_declaration_or_fndef): Same change.
3784 (c_parser_compound_statement_nostart): Same change.
3785 (c_parser_label): Same change.
3786 (c_parser_objc_methodprotolist): Same change.
3787 (c_parser_omp_for_loop): Same change.
3788 (c_parser_for_statement): Detect and parse Objective-C foreach
3789 statements.
3790 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
3791 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
3792 fast enumeration parsing code to turn off the c99 error but still
3793 perform checks on the loop declarations.
3794 * c-tree.h (check_for_loop_decls): Updated declaration.
3795 * doc/objc.texi: Document fast enumeration.
3796
3797 2010-10-06 Nick Clifton <nickc@redhat.com>
3798
3799 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
3800 (MDR_REGNUM): Define.
3801 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
3802 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
3803 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
3804 (REGISTER_NAMES): Add MDR.
3805 (DWARF2_DEBUGGING_INFO): Define to 1.
3806 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3807 (F): New function. Sets RTX_FRAME_RELATED_P.
3808 (mn10300_gen_multiple_store): Use F.
3809 (expand_prologue): Use F. Use gen_movsf() to push floating
3810 point registers.
3811 (expand_epilogue): Use gen_movsf() to pop floating point registers.
3812 (mn10300_option_override): Disable combine stack adjust pass.
3813
3814 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
3815
3816 PR target/45901
3817 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
3818 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
3819
3820 2010-10-06 Jakub Jelinek <jakub@redhat.com>
3821
3822 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
3823 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
3824 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
3825 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
3826 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
3827 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
3828 BUILT_IN_TOUPPER): Mark as leaf.
3829
3830 PR middle-end/45838
3831 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
3832 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
3833 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
3834 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
3835 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
3836 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
3837 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
3838
3839 2010-10-05 Anatoly Sokolov <aesok@post.ru>
3840
3841 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
3842 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3843 (m68hc11_class_likely_spilled_p): New function.
3844
3845 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
3846
3847 * c-parser.c (c_parser_objc_method_definition): Updated comment.
3848
3849 2010-10-05 Jan Hubicka <jh@suse.cz>
3850
3851 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
3852 Document.
3853 * opts.c (decode_options): Handle lto partitions.
3854 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
3855 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
3856
3857 2010-10-05 Jan Hubicka <jh@suse.cz>
3858
3859 * cgraphunit.c (assemble_function): Output thunks and aliases before
3860 the function itself.
3861
3862 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
3863
3864 * config/picochip/picochip.c (picochip_option_override): Disable
3865 exception flags for picochip.
3866
3867 2010-10-05 Joseph Myers <joseph@codesourcery.com>
3868
3869 * opts-common.c (handle_option, handle_generated_option,
3870 read_cmdline_option, set_option): Add diagnostic_context
3871 parameter. Update calls among these functions.
3872 (set_option): Don't use global_dc.
3873 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
3874 (decode_options): Pass global_dc to enable_warning_as_error.
3875 (common_handle_option): Pass global_dc to enable_warning_as_error.
3876 (enable_warning_as_error): Add diagnostic_context parameter.
3877 Document parameters. Don't use global_dc. Pass
3878 diagnostic_context parameter to handle_generated_option.
3879 * opts.h (set_option, handle_option, handle_generated_option,
3880 read_cmdline_option, enable_warning_as_error): Add
3881 diagnostic_context parameter.
3882 * Makefile.in (lto-opts.o): Update dependencies.
3883 * coretypes.h (struct diagnostic_context, diagnostic_context):
3884 Declare here.
3885 * diagnostic.h (diagnostic_context): Don't declare typedef here.
3886 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
3887 * langhooks-def.h (struct diagnostic_context): Don't declare here.
3888 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
3889 using diagnostic_context typedef.
3890 * langhooks.c (lhd_initialize_diagnostics): Declare using
3891 diagnostic_context typedef.
3892 * langhooks.h (struct diagnostic_context): Don't declare here.
3893 (initialize_diagnostics, print_error_function): Declare using
3894 diagnostic_context typedef.
3895 * lto-opts.c: Include diagnostic.h.
3896 (lto_reissue_options): Pass global_dc to set_option. Pass
3897 DK_UNSPECIFIED not 0.
3898 * plugin.c (plugins_internal_error_function): Declare using
3899 diagnostic_context typedef.
3900 * plugin.h (struct diagnostic_context): Don't declare here.
3901 (plugins_internal_error_function): Declare using
3902 diagnostic_context typedef.
3903
3904 2010-10-05 Olivier Hainque <hainque@adacore.com>
3905 Nicolas Roche <roche@adacore.com>
3906
3907 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
3908 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
3909
3910 2010-10-05 Ira Rosen <irar@il.ibm.com>
3911
3912 PR tree-optimization/45752
3913 * tree-vect-slp.c (vect_get_mask_element): Remove static
3914 variables, make them function arguments.
3915 (vect_transform_slp_perm_load): Pass new arguments to
3916 vect_get_mask_element.
3917
3918 2010-10-05 Richard Guenther <rguenther@suse.de>
3919
3920 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
3921 (gimple_mod_pow2): Likewise.
3922 (gimple_mod_subtract): Likewise.
3923 (gimple_ic): Likewise.
3924 (gimple_stringop_fixed_value): Likewise.
3925 * tree-profile.c (tree_init_edge_profiler): Mark profile
3926 functions nothrow and leaf.
3927 (add_abnormal_goto_call_edges): Remove.
3928 (tree_gen_edge_profiler): Work on SSA form.
3929 (tree_gen_ic_profiler): Likewise. Simplify.
3930 (do_tree_profiling): Update SSA form.
3931 (pass_tree_profile): Remove.
3932 (do_tree_profiling): Likewise.
3933 (gate_tree_profile_ipa): New function.
3934 (pass_ipa_tree_profile): New.
3935 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
3936 state of instrumented functions.
3937 * passes.c (init_optimization_passes): Remove early non-SSA
3938 inlining. Move profiling after early optimizations.
3939 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
3940 (pass_ipa_early_inline): Likewise.
3941 * tree-pass.h (pass_ipa_early_inline): Remove.
3942 (pass_tree_profile): Likewise.
3943 (pass_ipa_tree_profile): Declare.
3944
3945 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3946 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
3947
3948 * gcc/config/s390/s390.c (z196_cost): New.
3949 (s390_handle_arch_option): Add -march=z196.
3950 (s390_option_override): Use the new cost function and use the z10
3951 defaults also for z196.
3952 (legitimate_reload_constant_p): Adjust comment.
3953 (legitimate_reload_fp_constant_p): New function.
3954 (s390_preferred_reload_class): Distingiush between FP and Int constants.
3955 (preferred_la_operand_p): Avoid la with index on z196.
3956 (s390_adjust_priority): Trigger also for z196.
3957 (s390_issue_rate): Issue rate for z196 is 3.
3958 (s390_z10_fix_long_loop_prediction): Rename to ...
3959 (s390_fix_long_loop_prediction): ... this.
3960 (s390_reorg): Apply the z10 adjustments also for z196.
3961 (s390_loop_unroll_adjust): Do this also for z196.
3962 * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
3963 (enum processor_flags): Add PF_Z196.
3964 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
3965 (TARGET_CPU_Z196, TARGET_Z196): New macros.
3966 * gcc/config.gcc: Enable z196 for --with-arch.
3967 * gcc/config/s390/2817.md: New file.
3968 * gcc/config/s390/2084.md: New type for multiply and add.
3969 * gcc/config/s390/2097.md: Likewise.
3970 * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
3971 (UNSPECV_ATOMIC_OP): New constants.
3972 (fmadddf, fmaddsf): New values for type attribute.
3973 (z196prop): New insn attribute.
3974 (cpu, cpu_facility): Add z196.
3975 (ATOMIC_Z196): New code iterator.
3976 (noxa): New code attribute.
3977 (gk): New mode attribute.
3978 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
3979 Support load zero for fp constants.
3980 (fixuns_truncdddi2, fixuns_trunctddi2)
3981 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
3982 for z196.
3983 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
3984 (popcounthi2, popcountqi2): New expander.
3985 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
3986 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
3987 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
3988 insn definition.
3989 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
3990 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
3991 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
3992 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
3993 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
3994 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
3995 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
3996 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
3997 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
3998 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
3999 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
4000 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
4001 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
4002 Support new z196 instructions.
4003
4004 2010-10-05 Richard Guenther <rguenther@suse.de>
4005
4006 PR middle-end/45877
4007 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
4008 case where gimplification optimizes away the stmt.
4009
4010 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4011
4012 PR debug/45849
4013 * var-tracking.c (strip_pointer_flags): New function.
4014 (emit_note_insn_var_location): If rtx_equal_p check failed,
4015 retry on locations simplified with simplify_replace_fn_rtx
4016 and strip_pointer_flags as its callback.
4017
4018 2010-10-04 Jan Hubicka <jh@suse.cz>
4019
4020 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
4021 (can_refer_decl_in_current_unit_p): ... this one; reverse return
4022 value; handle comdats too.
4023 (canonicalize_constructor_val): Use it; handle function_decls
4024 correctly.
4025 (gimple_fold_obj_type_ref_known_binfo): Likewise.
4026 * gimple.c (get_base_address): Accept all kinds of decls.
4027
4028 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4029
4030 * flags.h (g_switch_value, g_switch_set): Remove.
4031 * opts.c (g_switch_value, g_switch_set): Remove.
4032 * config/g.opt (G): Add Var(g_switch_value).
4033 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
4034 (alpha_option_override): Check global_options_set.x_g_switch_value
4035 instead of g_switch_set.
4036 (alpha_in_small_data_p): Remove cast in comparison with
4037 g_switch_value.
4038 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
4039 g_switch_value to unsigned HOST_WIDE_INT.
4040 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
4041 with g_switch_value.
4042 (frv_handle_option): Don't handle -G here.
4043 (frv_option_override): Check global_options_set.x_g_switch_value
4044 instead of g_switch_set. Don't modify g_switch_set.
4045 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
4046 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
4047 g_switch_value to unsigned HOST_WIDE_INT.
4048 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
4049 (ia64_option_override): Check global_options_set.x_g_switch_value
4050 instead of g_switch_set.
4051 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
4052 Remove.
4053 (lm32_in_small_data_p): Remove cast in comparison with
4054 g_switch_value.
4055 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
4056 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
4057 HOST_WIDE_INT.
4058 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
4059 (m32r_init): Check global_options_set.x_g_switch_value instead of
4060 g_switch_set.
4061 (m32r_in_small_data_p): Remove cast in comparison with
4062 g_switch_value.
4063 (m32r_file_start): Format g_switch_value with %d.
4064 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
4065 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
4066 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
4067 handle -G here.
4068 (microblaze_option_override): Check
4069 global_options_set.x_g_switch_value instead of g_switch_set.
4070 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
4071 (mips_option_override): Check global_options_set.x_g_switch_value
4072 instead of g_switch_set.
4073 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
4074 (rs6000_file_start): Format g_switch_value with %d.
4075 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
4076 comparisons with g_switch_value.
4077 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
4078 global_options_set.x_g_switch_value instead of g_switch_set.
4079 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4080 global_options_set.x_g_switch_value instead of g_switch_set.
4081 * config/score/score.c (score_handle_option): Don't handle -G here.
4082 * config/score/score3.c (score3_option_override): Check
4083 global_options_set.x_g_switch_value instead of g_switch_set.
4084 * config/score/score7.c (score7_option_override): Check
4085 global_options_set.x_g_switch_value instead of g_switch_set.
4086
4087 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4088
4089 * common.opt (fira-coalesce): Remove.
4090
4091 * doc/invoke.texi (flag_ira_coalesce): Remove.
4092
4093 * ira-color.c (allocno_coalesced_p): Move before
4094 copy_freq_compare_func.
4095 processed_coalesced_allocno_bitmap): Ditto.
4096 (update_conflict_hard_regno_costs): Don't use
4097 ALLOCNO_FIRST_COALESCED_ALLOCNO.
4098 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
4099 (assign_hard_reg): Assume no coalesced allocnos.
4100 (get_coalesced_allocnos_attributes): Remove.
4101 (bucket_allocno_compare_func): Assume no coalesced allocnos.
4102 (push_allocno_to_stack): Ditto.
4103 (remove_allocno_from_bucket_and_push): Use
4104 ira_print_expanded_allocno instead of print_coalesced_allocno.
4105 (push_allocnos_to_stack): Assume uncoalesced allocnos.
4106 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
4107 all_conflicting_hard_regs.
4108 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
4109 (setup_allocno_left_conflicts_size): Ditto.
4110 (put_allocno_into_bucket): Ditto.
4111 (copy_freq_compare_func): Remove.
4112 (copy_freq_compare_func, merge_allocnos): Move before
4113 coalesced_pseudo_reg_freq_compare.
4114 coalesced_allocno_conflict_p): Ditto.
4115 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
4116 parameter. Assume it true.
4117 (color_allocnos): Assume uncoalesced allocnos. Use
4118 ira_print_expanded_allocno instead of print_coalesced_allocno.
4119 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
4120 parameter.
4121
4122 * ira.c: Remove comment about coalescing.
4123
4124 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4125
4126 * config/mips/mips.h (target_flags_explicit): Declare for
4127 GENERATOR_FILE.
4128
4129 2010-10-04 Andi Kleen <ak@linux.intel.com>
4130
4131 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
4132 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
4133
4134 2010-10-04 Matthias Klose <doko@ubuntu.com>
4135
4136 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
4137 multilib osdirname if it exists.
4138 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
4139
4140 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4141
4142 PR middle-end/45876
4143 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
4144 arg0's type or its unsigned counterpart as utype. Convert
4145 arg1 to utype unconditionally.
4146
4147 2010-10-04 Julian Brown <julian@codesourcery.com>
4148
4149 * expr.c (expand_assignment): Add assertion to prevent emitting
4150 null rtx for movmisalign pattern.
4151 (expand_expr_real_1): Likewise.
4152 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
4153 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
4154 (arm_vector_alignment_reachable): New.
4155 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
4156 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
4157 (arm_print_operand): Include alignment qualifier in %A.
4158 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
4159 (movmisalign<mode>): New expander.
4160 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
4161 insn patterns.
4162
4163 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4164
4165 * optc-gen.awk: Define global_options_set. Don't define
4166 target_flags_explicit.
4167 * opth-gen.awk: Declare global_options_set. Define
4168 target_flags_explicit as macro.
4169 * opts-common.c (handle_option): Take opts_set and generated_p
4170 parameters.
4171 (handle_generated_option, read_cmdline_option, set_option): Take
4172 opts_set parameter.
4173 (set_option): Use opts_set instead of hardcoding target_flags and
4174 target_flags_explicit.
4175 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
4176 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
4177 flag_value_profile_transformations_set, flag_peel_loops_set,
4178 flag_branch_probabilities_set, flag_inline_functions_set,
4179 flag_ipa_cp_set, flag_ipa_cp_clone_set,
4180 flag_predictive_commoning_set, flag_unswitch_loops_set,
4181 flag_gcse_after_reload_set): Remove.
4182 (common_handle_option, lang_handle_option, target_handle_option):
4183 Take opts_set parameter. Assert that it is &global_options_set.
4184 (common_handle_option): Don't set _set variables. Check opts_set
4185 instead of such variables.
4186 (enable_warning_as_error): Pass &global_options_set to
4187 handle_generated_option.
4188 * opts.h (cl_option_handler_func.handler, set_option,
4189 handle_option, handle_generated_option, read_cmdline_option): Add
4190 opts_set parameters.
4191 (handle_option): Add generated_p parameter.
4192 * config/i386/i386.c (ix86_function_specific_save,
4193 ix86_function_specific_restore): Updat for renaming of
4194 target_flags_explicit field.
4195 * config/i386/i386.opt (target_flags_explicit): Rename to
4196 ix86_target_flags_explicit.
4197 * config/ia64/ia64.c (ia64_override_options_after_change): Check
4198 global_options_set.x_flag_selective_scheduling and
4199 global_options_set.x_flag_selective_scheduling2, not
4200 sel_sched_switch_set.
4201 * flags.h (sel_sched_switch_set,
4202 flag_speculative_prefetching_set): Remove.
4203 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
4204 that it is &global_options_set.
4205 (process_command): Pass &global_options_set to read_cmdline_option.
4206 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
4207 set_option.
4208 * toplev.c (target_flags_explicit): Remove.
4209
4210 2010-10-04 Jan Hubicka <jh@suse.cz>
4211
4212 PR middle-end/45871
4213 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
4214 use get_ref_base_and_offset to handle references.
4215 (fold_const_aggregate_ref): Update.
4216
4217 2010-10-04 Martin Jambor <mjambor@suse.cz>
4218
4219 PR tree-optimization/45572
4220 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
4221 ipa_check_create_node_params.
4222 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
4223
4224 2010-10-04 Yao Qi <yao@codesourcery.com>
4225
4226 * doc/passes.texi: Clean up.
4227
4228 2010-10-03 Ian Lance Taylor <iant@google.com>
4229
4230 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
4231 referring to a field using a typedef name.
4232 (find_anonymous_field_with_type): New static function.
4233 (convert_to_anonymous_field): New static function.
4234 (convert_for_assignment): If -fplan9-extensions, permit converting
4235 pointer to struct to pointer to anonymous field.
4236 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
4237 (is_duplicate_field): New static function.
4238 (detect_field_duplicates_hash): If -fplan9-extensions, check for
4239 typedef names duplicating field names.
4240 (detect_field_duplicates): Likewise.
4241 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
4242 (C Dialect Options): Document -fplan9-extensions.
4243 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
4244
4245 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
4246
4247 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
4248 revision 164914.
4249 (vect_create_data_ref_ptr): Likewise.
4250 * tree-vect-stmts.c (vectorizable_store): Likewise.
4251 (perm_mask_for_reverse): Likewise.
4252 (reverse_vec_elements): Likewise.
4253 (vectorizable_load): Likewise.
4254
4255 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4256
4257 * cppbuiltin.c: New file.
4258 * cppbuiltin.h: New file.
4259 * Makefile.in: Take into account cppbuiltin.{h,c}.
4260
4261 2010-10-03 Andi Kleen <ak@linux.intel.com>
4262
4263 * lto-cgraph.c (input_cgraph): Check for missing sections.
4264
4265 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
4266
4267 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
4268 to nonimmediate_operand. Force operand 2 to register when allowed.
4269 (*<shiftrt_insn><mode>3_mask): Ditto.
4270 (*<rotate_insn><mode>3_mask): Ditto.
4271
4272 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
4273
4274 PR tree-optimization/45720
4275 PR tree-optimization/45764
4276 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
4277 Don't accept backwards consecutive accesses.
4278 (vect_create_data_ref_ptr): Disallow negative steps.
4279
4280 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
4281 (perm_mask_for_reverse): Removed.
4282 (reverse_vec_elements): Likewise.
4283 (vectorizable_load): Don't handle negative steps.
4284
4285 2010-10-02 Jan Hubicka <jh@suse.cz>
4286
4287 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
4288 call destination is known.
4289
4290 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4291
4292 PR target/45820
4293 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
4294 earlier.
4295
4296 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4297
4298 * doc/install.texi (Configuration): Document build_configargs,
4299 host_configargs, target_configargs.
4300
4301 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
4302
4303 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
4304 (*<shiftrt_insn><mode>3_mask): Ditto.
4305 (*<rotate_insn><mode>3_mask): Ditto.
4306
4307 2010-10-01 Steve Ellcey <sje@cup.hp.com>
4308
4309 PR tree-optimization/44716
4310 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4311 (HOT_TEXT_SECTION_NAME): Define.
4312
4313 2010-10-01 Nick Clifton <nickc@redhat.com>
4314
4315 * common.opt: Add -fcombine-stack-adjustments.
4316 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
4317 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
4318 flag_combine_stack_adjustments.
4319 * doc/invoke.texi: Document the new option.
4320
4321 2010-10-01 Richard Guenther <rguenther@suse.de>
4322
4323 PR tree-optimization/45854
4324 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
4325
4326 2010-10-01 Anthony Green <green@moxielogic.com>
4327
4328 * config.gcc: Fix moxie-*-rtems* configuration.
4329
4330 2010-10-01 Richard Guenther <rguenther@suse.de>
4331
4332 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
4333 (gen_decl_die): Likewise.
4334
4335 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4336
4337 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
4338 to the function code for SPU MD builtins.
4339 (spu_expand_builtin): Update.
4340 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
4341
4342 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4343
4344 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
4345 sjlj_except_unwind_info.
4346
4347 2010-10-01 Tristan Gingold <gingold@adacore.com>
4348
4349 * configure.ac: Define the nop insn for avr*-*-*
4350 * configure: Regenerate.
4351
4352 2010-10-01 Alan Modra <amodra@gmail.com>
4353
4354 PR target/45807
4355 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
4356 extend toc_restore_insn.
4357
4358 2010-09-30 Richard Guenther <rguenther@suse.de>
4359
4360 PR tree-optimization/43959
4361 * function.c (gimplify_parameters): Use create_tmp_reg instead of
4362 create_tmp_var.
4363
4364 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
4365
4366 * config/sh/sh.c (sh_expand_prologue): Set
4367 current_function_static_stack_size.
4368
4369 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4370
4371 * configure.ac: Check for Solaris 8 ld with .hidden support.
4372 * configure: Regenerate.
4373
4374 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4375
4376 PR middle-end/45758
4377 * graphite.c (graphite_initialize): Call scev_reset.
4378
4379 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4380
4381 * sese.h (scev_analyzable_p): Return false for real or floating
4382 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
4383
4384 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4385
4386 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
4387 and ps.
4388 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
4389 domain.
4390 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
4391 Do not allocate ub_expr, it is passed in initialized.
4392
4393 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4394
4395 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
4396 (build_cloog_prog): Dump CLooG input file when
4397 flag_graphite_dump_cloog is set. This is disabled on trunk.
4398 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
4399
4400 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4401
4402 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
4403 verify_dominators for CDI_POST_DOMINATORS.
4404 * sese.h: Remove comment about CDI_POST_DOMINATORS.
4405 (recompute_all_dominators): Remove call to free_dominance_info
4406 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
4407 for CDI_POST_DOMINATORS.
4408
4409 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4410
4411 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
4412 over pbb_dim_iter_domain.
4413
4414 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4415
4416 * graphite-flattening.c: Fix comments.
4417
4418 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4419
4420 * Makefile.in (OBJS-common): Add graphite-flattening.o.
4421 (graphite-flattening.o): New rule.
4422 * common.opt (floop-flatten): New flag.
4423 * doc/invoke.texi (-floop-flatten): Documented.
4424 * graphite-flattening.c: New.
4425 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
4426 * graphite-poly.h (flatten_all_loops): Declared.
4427 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
4428 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
4429 is set, also set flag_graphite.
4430
4431 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4432
4433 * graphite-poly.c (cloog_checksum): New.
4434 * graphite-poly.h (cloog_checksum): Declared.
4435
4436 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4437
4438 * graphite-poly.c (pbb_number_of_iterations): Removed.
4439 (pbb_number_of_iterations_at_time): Correctly compute the number
4440 of iterations in the transformed loop.
4441 * graphite-poly.h (pbb_number_of_iterations): Removed.
4442
4443 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4444
4445 * graphite-poly.h (lst_update_scattering_seq): Removed.
4446 (lst_update_scattering): Correctly handle outermost loop dewey
4447 renumbering.
4448
4449 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4450
4451 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
4452 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
4453 * graphite-poly.h (lst_niter_for_loop): New.
4454
4455 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4456
4457 * graphite-poly.c (apply_poly_transforms): Do not abort when the
4458 transform read from disk is not legal. Call fatal_error instead.
4459
4460 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4461
4462 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
4463 (print_scop_header): Removed. Inlined in the only call place...
4464 (print_scop): ... here.
4465
4466 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4467
4468 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
4469
4470 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4471
4472 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
4473
4474 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4475
4476 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
4477 (dot_deps_stmt): Same.
4478 * graphite-poly.c (dot_lst): Same.
4479
4480 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4481
4482 * graphite-blocking.c (scop_do_strip_mine): Do not call
4483 graphite_legal_transform.
4484 (scop_do_block): Same.
4485
4486 2010-09-30 Vladimir Kargov <kargov@gmail.com>
4487
4488 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
4489 description.
4490
4491 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4492
4493 * tree-scalar-evolution.c (instantiate_array_ref): New.
4494 (instantiate_scev_r): Also handle ARRAY_REFs.
4495
4496 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4497
4498 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4499 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
4500 RESULT_DECL, and FIELD_DECL. Return false for an
4501 SSA_NAME_IS_DEFAULT_DEF.
4502 (compute_scalar_evolution_in_loop): Do not further analyze the
4503 scalar evolution when no_evolution_in_loop_p returns true.
4504
4505 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4506
4507 * tree-chrec.h (evolution_function_is_affine_p): Do not check
4508 whether CHREC_LEFT is invariant. A function is affine when
4509 CHREC_RIGHT is invariant.
4510
4511 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4512
4513 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
4514 is_gimple_reg.
4515 (rewrite_degenerate_phi): Same.
4516 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
4517
4518 2010-09-30 Vladimir Kargov <kargov@gmail.com>
4519
4520 * graphite-scop-detection.c (graphite_can_represent_scev,
4521 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
4522 graphite_can_represent_loop): Remove outermost_loop.
4523
4524 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4525
4526 PR middle-end/45229
4527 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
4528 handle GIMPLE_CALLs with no LHS.
4529
4530 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4531
4532 * graphite-poly.c (init_graphite_out_file): New.
4533 (init_graphite_in_file): New.
4534 (apply_poly_transforms): Updated to enable reading and writing of
4535 multiple scop files.
4536
4537 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
4538
4539 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
4540 redundant checks.
4541
4542 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4543
4544 * graphite-clast-to-gimple.c (precision_for_value): Adjust
4545 computation of precision by 1.
4546
4547 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4548
4549 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
4550 (openscop_read_polyhedron_matrix): New.
4551 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
4552 (openscop_read_N_int): Same.
4553 * graphite-poly.c (openscop_read_N_int): New.
4554 (openscop_read_one_int): New.
4555 (openscop_read_N_string): New.
4556 (openscop_read_one_string): New.
4557 (openscop_read_powerset_matrix): New.
4558 (graphite_read_transforms): Remove.
4559 (graphite_read_scatt): New.
4560 (graphite_read_scop_file): New.
4561 (apply_poly_transforms): Updated to call graphite_read_scop_file.
4562
4563 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4564
4565 * graphite-poly.c: Change include order.
4566
4567 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4568
4569 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
4570 (cloog_matrix_nrows): New.
4571
4572 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4573
4574 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
4575 from matrix lines.
4576 * graphite-poly.c (openscop_print_scattering_function_1): Same.
4577 (print_scattering_function_1): Same.
4578 (openscop_print_pbb_domain): Same.
4579 (openscop_print_scop_context): Same.
4580 (print_scop_context): Same.
4581
4582 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4583
4584 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
4585 (openscop_print_pdr_polyhedron): Print pph.
4586
4587 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4588
4589 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
4590 priority signed types.
4591
4592 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4593
4594 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
4595 the call to lang_hooks.types.type_for_size. Call
4596 build_nonstandard_integer_type.
4597
4598 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4599
4600 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
4601 (openscop_print_polyhedron_matrix): New.
4602 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
4603 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
4604 (openscop_print_pdr_powerset): New.
4605 (openscop_print_powerset_matrix): New.
4606 (openscop_print_scattering_function_1): New.
4607 (print_scattering_function): Add support for scattering names and
4608 OpenScop format.
4609 (graphite_write_transforms): Remove.
4610 (print_pdr_access_layout): Updated to support OpenScop format.
4611 (print_pdr): Same.
4612 (openscop_print_pbb_domain): New.
4613 (print_pbb_body): Added a parameter to allow indicating that pbb_body
4614 is not provided.
4615 (print_pbb): Updated to call the new print_pbb_body.
4616 (openscop_print_scop_context): New.
4617 (print_scop_header): New.
4618 (print_scop): Updated to call print_scop_header.
4619 * graphite-poly.h: Document OpenScop format.
4620
4621 2010-09-30 Anatoly Sokolov <aesok@post.ru>
4622
4623 * config/cris/m32c.c (cris_memory_move_cost): New.
4624 (cris_register_move_cost): Make static. Change arguments type from
4625 enum reg_class to reg_class_t.
4626 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4627 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4628 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
4629
4630 2010-09-30 Jakub Jelinek <jakub@redhat.com>
4631
4632 PR target/45843
4633 * config/i386/i386.c (ix86_gimplify_va_arg): Use
4634 INTVAL (XEXP (slot, 1)) as prev_size.
4635
4636 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
4637
4638 PR target/45837
4639 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
4640 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
4641 defined.
4642 * config/rs6000/option-defaults.h (toplevel): Change #if
4643 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
4644 global option changes.
4645
4646 2010-09-30 Jakub Jelinek <jakub@redhat.com>
4647
4648 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
4649
4650 PR tree-optimization/31261
4651 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
4652 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
4653
4654 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4655
4656 PR bootstrap/45796
4657 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
4658 special-casing for generators and turn into ...
4659 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
4660 rule, for better error messages in case of toplevel dependency errors.
4661 (genprog): Add hooks, rename to ...
4662 (genprogerr): ... this, and let genprog also contain check,
4663 checksum, condmd.
4664 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
4665 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
4666 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
4667
4668 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
4669 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4670
4671 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
4672 for GMP, MPFR and MPC.
4673
4674 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4675
4676 * config/sparc/sparc.opt (mimpure-text): Move ...
4677 * config/sol2.opt: ... here. Correct description.
4678 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
4679 * doc/invoke.texi (Option Summary, SPARC Options): Move
4680 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
4681 (Option Summary, Solaris 2 Options): ... here.
4682 (Submodel Options, Solaris 2 Options): New menu entry.
4683 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
4684 (Solaris 2 Options): ... here.
4685
4686 2010-09-30 Michael Eager <eager@eagercon.com>
4687
4688 * extend.texi (interrupt_handler): Add MicroBlaze to list.
4689 (save_volatiles): Describe option for MicroBlaze.
4690 * invoke.texi: Add MicroBlaze Options.
4691 * contrib.texi: Add acknowledgment.
4692 * md.texi: Add MicroBlaze d and z constraints.
4693 * install.texi: Add microblaze-*-elf.
4694 * configure.ac: Add microblaze-*-* to target list.
4695 * configure: Regenerate.
4696 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
4697 * config/microblaze/microblaze-protos.h: New.
4698 * config/microblaze/crti.s: New.
4699 * config/microblaze/predicates.md: New.
4700 * config/microblaze/linux.h: New.
4701 * config/microblaze/microblaze.md: New.
4702 * config/microblaze/constraints.md: New.
4703 * config/microblaze/crtn.s: New.
4704 * config/microblaze/microblaze.opt: New.
4705 * config/microblaze/microblaze-c.c: New.
4706 * config/microblaze/t-microblaze: New.
4707 * config/microblaze/microblaze.c: New.
4708 * config/microblaze/microblaze.h: New.
4709
4710 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4711
4712 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
4713 parse @optional/@required and set the flags as appropriate.
4714
4715 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
4716
4717 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
4718
4719 2010-09-30 Joseph Myers <joseph@codesourcery.com>
4720
4721 * opt-functions.awk (static_var): Update comment.
4722 (var_ref): Return offsetof expression or -1, not variable address.
4723 * optc-gen.awk: Generate structure field initializers instead of
4724 static variables. Expect -1 for missing variables instead of null
4725 pointer. Add gcc_options parameters to generated functions.
4726 * opth-gen.awk: Generate structure fields for static variables.
4727 Add gcc_options parameters to generated functions.
4728 * common.opt (optimize, optimize_size): Add variables.
4729 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
4730 &global_options to cl_target_option_restore.
4731 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
4732 &global_options to cl_optimization_restore, cl_target_option_save
4733 and cl_target_option_restore.
4734 (ix86_set_current_function): Pass &global_options to
4735 cl_target_option_restore.
4736 * config/pdp11/pdp11.h (optimize): Remove.
4737 * config/rs6000/rs6000.h (optimize): Remove.
4738 * config/sh/sh.h (optimize): Remove.
4739 * config/xtensa/xtensa.h (optimize): Remove.
4740 * coretypes.h (struct gcc_options): Declare.
4741 * diagnostic.c (diagnostic_initialize): Initialize
4742 context->option_state.
4743 (diagnostic_report_diagnostic): Pass option_state to
4744 option_enabled hook.
4745 * diagnostic.h (diagnostic_context.option_enabled): Add void *
4746 parameter.
4747 (diagnostic_context.option_state): New field.
4748 * final.c (final_start_function, final, final_scan_insn): Rename
4749 optimize parameter to optimize_p.
4750 * flags.h (optimize, optimize_size): Remove.
4751 * function.c (invoke_set_current_function_hook): Pass
4752 &global_options to cl_optimization_restore.
4753 * gcc.c (driver_handle_option): Take gcc_options parameter.
4754 Assert that it is &global_options.
4755 (process_command): Pass &global_options to read_cmdline_option.
4756 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
4757 option_enabled.
4758 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
4759 &global_options to set_option.
4760 * opts-common.c (handle_option, handle_generated_option,
4761 read_cmdline_option, set_option): Take explicit gcc_options
4762 parameters. Use option_flag_var.
4763 (option_flag_var): New.
4764 * opts.c (common_handle_option, lang_handle_option,
4765 target_handle_option): Take gcc_options parameter. Assert that it
4766 is &global_options.
4767 (read_cmdline_options): Pass &global_options to read_cmdline_option.
4768 (print_filtered_help): Use option_flag_var. Pass &global_options
4769 to option_enabled.
4770 (common_handle_option): Use option_flag_var.
4771 (option_enabled): Take opts parameter. Use option_flag_var.
4772 (get_option_state): Take gcc_options parameter. Use
4773 option_flag_var. Pass gcc_options parameter to option_enabled.
4774 (enable_warning_as_error): Pass &global_options to
4775 handle_generated_option.
4776 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
4777 (cl_option_handler_func.handler): Take gcc_options parameter.
4778 (option_enabled, get_option_state, set_option, handle_option,
4779 handle_generated_option, read_cmdline_option): Take gcc_options
4780 parameters.
4781 * toplev.c (optimize, optimize_size): Remove.
4782 (print_switch_values): Pass &global_options to option_enabled.
4783 (option_affects_pch_p): Use option_flag_var. Pass &global_options
4784 to get_option_state.
4785 (general_init): Initialize global_dc->option_state.
4786 * tree.c (build_optimization_node): Pass &global_options to
4787 cl_optimization_save.
4788 (build_target_option_node): Pass &global_options to
4789 cl_target_option_save.
4790
4791 2010-09-30 Martin Jambor <mjambor@suse.cz>
4792
4793 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
4794 zero sized bit-fields.
4795
4796 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4797
4798 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
4799 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
4800 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
4801 (c_parser_objc_class_declaration): Same change.
4802 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
4803 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
4804 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
4805 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
4806 and RID_AT_PUBLIC instead of RID_PUBLIC.
4807 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
4808 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
4809
4810 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
4811
4812 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
4813 Add links to current providers of packages for Solaris and IRIX.
4814
4815 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4816
4817 Merge from 'apple/trunk' branch on FSF servers.
4818 * c-parser.c: Applied change originally in c-parse.in.
4819
4820 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4821
4822 Radar 4281748
4823 * c-decl.c (start_decl): Check for redeclaration of class name.
4824 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
4825
4826 2010-09-29 Steve Ellcey <sje@cup.hp.com>
4827
4828 * config/ia64/ia64.c (ia64_builtin_decl): New.
4829 (TARGET_BUILTIN_DECL): Define.
4830 (ia64_builtins): New.
4831 (ia64_init_builtins): Save decls in ia64_builtins.
4832
4833 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
4834
4835 PR target/40457
4836 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
4837 (move2add_use_add3_insn): Likewise.
4838 (reload_cse_move2add): Likewise.
4839 * rtlanal.c (get_full_rtx_cost): New function.
4840 * rtl.h (struct full_rtx_costs): New.
4841 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
4842 costs_add_n_insns): New inline functions.
4843 (get_full_rtx_cost): Declare.
4844
4845 PR c/45054
4846 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
4847 invariants. Check for reg_equiv_invariant.
4848 (reload): Assert that spilled_pseudos is empty when returning.
4849
4850 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
4851
4852 * config/i386/mingw32.h (TARGET_64BIT): replaced by
4853 TARGET_64BIT_DEFAULT in #if check.
4854
4855 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
4856
4857 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
4858
4859 2010-09-29 Mike Stump <mikestump@comcast.net>
4860
4861 * config/darwin.h (flag_mkernel): Remove.
4862 (flag_apple_kext): Likewise.
4863
4864 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4865 Jack Howarth <howarth@bromo.med.uc.edu>
4866
4867 * config/darwin.opt (undefined): Add.
4868
4869 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
4870
4871 PR testsuite/45664
4872 * configure.ac: Add --enable-indirect-function option.
4873 * config.gcc: Add default_gnu_indirect_function.
4874 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
4875 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
4876 * varasm.c (do_assemble_alias): Adjust for macro name change.
4877 * configure: Rebuilt.
4878 * doc/install.texi: Document --enable-indirect-function.
4879
4880 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4881
4882 * doc/options.texi (Variable, Var, Init): Update documentation
4883 without reference to VarExists.
4884 (VarExists): Remove.
4885 * common.opt, config/i386/i386.opt, config/linux.opt,
4886 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
4887 Don't use VarExists.
4888
4889 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4890
4891 * optc-gen.awk: Generate global_options initializer instead of
4892 individual variables. Add x_ prefix to names of structure members.
4893 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
4894 names of structure members.
4895 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4896 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
4897 * doc/tm.texi: Regenerate.
4898 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4899 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
4900 * c-parser.c (disable_extension_diagnostics,
4901 restore_extension_diagnostics): Update names of cpp_options members.
4902 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4903 * common.opt (fcompare-debug-second): Don't use Var.
4904 * config/alpha/alpha.h (target_flags): Remove.
4905 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4906 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
4907 * config/bfin/bfin.h (target_flags): Remove.
4908 * config/cris/cris.h (target_flags): Remove.
4909 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
4910 cl_target_option members.
4911 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
4912 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
4913 ix86_can_inline_p): Update names of cl_target_option members.
4914 * config/i386/i386.h (ix86_isa_flags): Remove.
4915 * config/lm32/lm32.h (target_flags): Remove.
4916 * config/mcore/mcore.h (mcore_stack_increment): Remove.
4917 * config/mcore/mcore.md (addsi3): Remove extern declaration of
4918 flag_omit_frame_pointer.
4919 * config/mep/mep.h (target_flags): Remove.
4920 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4921 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
4922 * config/mmix/mmix.h (target_flags): Remove.
4923 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
4924 flag_expensive_optimizations): Remove.
4925 * config/s390/s390.h (flag_pic): Remove.
4926 * config/score/score-conv.h (target_flags): Remove.
4927 * config/sh/sh.h (sh_fixed_range_str): Remove.
4928 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
4929 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
4930 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4931 * diagnostic.c (diagnostic_initialize): Update names of
4932 diagnostic_context members.
4933 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
4934 warn_system_headers.
4935 (diagnostic_report_warnings_p): Update for new names.
4936 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
4937 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
4938 HARD_FRAME_POINTER_IS_ARG_POINTER.
4939 * flags.h (flag_compare_debug): Declare.
4940 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4941 * opts.c (flag_compare_debug): Define.
4942 (common_handle_option): Update names of diagnostic_context
4943 members. Handle -fcompare-debug-second.
4944 (fast_math_flags_struct_set_p): Update names of cl_optimization
4945 members.
4946 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4947 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4948 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4949 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4950 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4951 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4952 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
4953 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4954 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
4955
4956 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
4957
4958 * config/picochip/picochip.c (picochip_output_internal_label):
4959 This function can now be called for debug CFI labels, which can come
4960 in the middle of a vliw instruction. Postpone until end of vliw.
4961
4962 2010-09-29 Richard Guenther <rguenther@suse.de>
4963
4964 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
4965 (DECL_FILE_SCOPE_P): Use it.
4966 (TYPE_FILE_SCOPE_P): New macro.
4967
4968 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4969
4970 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
4971 a CPP_NAME which is a reserved word, clearly separate cases for
4972 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
4973
4974 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4975
4976 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
4977 token->value with the canonical spelling. Do exactly like C and
4978 C++ and leave it as it is.
4979
4980 2010-09-28 Richard Henderson <rth@redhat.com>
4981
4982 * config/alpha/alpha.c (alpha_builtins): New.
4983 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
4984 (alpha_builtin_function): New.
4985 (alpha_add_builtins, alpha_init_builtins): Use it.
4986
4987 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
4988
4989 * doc/standards.texi (Standards): Expanded the section on
4990 Objective-C and Objective-C++.
4991
4992 2010-09-28 DJ Delorie <dj@redhat.com>
4993
4994 PR target/45800
4995 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
4996 volatile MEMs.
4997
4998 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4999
5000 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
5001 attributes on methods.
5002 (c_parser_objc_method_definition): Handle attributes.
5003 (c_parser_objc_methodproto): Likewise.
5004 (c_parser_objc_maybe_method_attributes): New.
5005 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
5006 missing definition, similar to that in ObjC++.
5007
5008 2010-09-28 Richard Henderson <rth@redhat.com>
5009
5010 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
5011 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5012 (CONFIG_SJLJ_EXCEPTIONS): Remove.
5013 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
5014 (STACK_CHECK_PROTECT): Likewise.
5015 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
5016 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
5017 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
5018 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
5019 (dwarf2out_assembly_start): Likewise.
5020 * except.c (init_eh): Use targetm.except_unwind_info.
5021 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
5022 (output_one_function_exception_table): Likewise.
5023 * final.c: Unconditionally include dwarf2out.h.
5024 (final_start_function): Unconditionally call dwarf2out routines.
5025 (final_end_function, final_scan_insn): Likewise.
5026 * function.c (expand_function_end): Use targetm.except_unwind_info.
5027 * opts.c (decode_options): Use targetm.except_unwind_info.
5028 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
5029 * target.def (debug_unwind_info, except_unwind_info): New.
5030 * target.h (enum unwind_info_type): New.
5031 * targhooks.c (default_debug_unwind_info): New.
5032 (default_except_unwind_info): New.
5033 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
5034 * targhooks.h: Declare them.
5035 * tree-tailcall.c: Include "target.h"
5036 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
5037 * Makefile.in (tree-tailcall.o): Update.
5038 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
5039 (lhd_gcc_personality): Likewise.
5040
5041 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
5042 (TARGET_EXCEPT_UNWIND_INFO): New.
5043 (DWARF2_UNWIND_INFO): Update.
5044 (TARGET_DEBUG_UNWIND_INFO): New.
5045 * doc/tm.texi: Rebuild.
5046
5047 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
5048 targetm.except_unwind_info.
5049
5050 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
5051 (arm_except_unwind_info): New.
5052 (arm_compute_func_type): Use it.
5053 (arm_expand_prologue, thumb_pushpop): Likewise.
5054 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
5055 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
5056 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
5057 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
5058 (DWARF2_UNWIND_INFO): Remove.
5059 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5060 (ARM_EABI_UNWIND_TABLES): Remove.
5061
5062 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
5063 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
5064 (ia64_except_unwind_info): New.
5065 (ia64_output_function_prologue): Use it.
5066 (ia64_add_bundle_selector_before): Likewise.
5067 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
5068 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
5069 (TARGET_UNWIND_INFO): Remove.
5070
5071 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
5072
5073 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5074
5075 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
5076 (c_parser_objc_protocol_definition): Likewise.
5077 (c_parser_external_declaration): Provide dummy attribute arguments.
5078 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
5079 (c_parser_objc_class_definition): Handle attributes.
5080 (c_parser_objc_protocol_definition): Likewise.
5081
5082 2010-09-28 Tobias Burnus <burnus@net-b.de>
5083
5084 PR fortran/40569
5085 PR fortran/40568
5086 * toplev.h (save_decoded_options, save_decoded_options_count):
5087 New global variables.
5088 * toplev.c (save_decoded_options, save_decoded_options_count):
5089 Export variables.
5090
5091 2010-09-28 Ian Lance Taylor <iant@google.com>
5092
5093 * config/i386/i386.c (ix86_supports_split_stack): Test
5094 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
5095
5096 2010-09-28 Ian Lance Taylor <iant@google.com>
5097
5098 PR target/45815
5099 * opts.c (decode_options): Don't test whether the target supports
5100 split stack if flag_split_stack == 0.
5101
5102 2010-09-28 Jan Hubicka <jh@suse.cz>
5103
5104 * builtin-attrs.def (ATTR_LEAF): New attribute.
5105 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
5106 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
5107 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
5108 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
5109 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
5110 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
5111 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
5112 * sync-builtins.def: Annotate all builtins by leaf.
5113 * omp-builtins.def: Annotate all builtins by leaf.
5114 * builtins.def: Annotate relevant builtins with leaf attribute.
5115 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
5116 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
5117 leaf.
5118
5119 2010-09-28 Jan Hubicka <jh@suse.cz>
5120
5121 * tree-ssa-ccp.c (fold_ctor_reference): New function.
5122 (fold_const_aggregate_ref): Use it.
5123 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
5124 into external static.
5125
5126 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5127
5128 PR target/44452
5129 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
5130 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
5131 (ix86_solaris_return_in_memory): Remove.
5132 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
5133 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5134 (TARGET_SUBTARGET_DEFAULT): Redefine.
5135 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
5136 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5137 (TARGET_SUBTARGET_DEFAULT): Redefine.
5138 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
5139 -mvect8-ret-in-mem.
5140 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
5141
5142 2010-09-29 Alan Modra <amodra@gmail.com>
5143
5144 PR target/45807
5145 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
5146 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
5147 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
5148 Delete.
5149 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
5150 (rs6000_emit_prologue): Don't just create frame save info for r2,
5151 actually save r2.
5152
5153 2010-09-28 Richard Henderson <rth@redhat.com>
5154
5155 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
5156 when 8 bytes are requested.
5157
5158 2010-09-28 Tristan Gingold <gingold@adacore.com>
5159
5160 * config/avr/avr.c (expand_prologue): Set
5161 current_function_static_stack_size.
5162
5163 2010-09-28 Tristan Gingold <gingold@adacore.com>
5164
5165 * config/alpha/alpha.md: Change the initial condition of the
5166 probing loop.
5167
5168 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
5169
5170 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
5171 Split from *avx_<maxmin:code><mode>3.
5172 (*avx_<smaxmin:code><mode>3): Ditto.
5173 * config/i386/i386.md (maxmin): Remove code iterator.
5174
5175 2010-09-27 Ian Lance Taylor <iant@google.com>
5176
5177 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
5178 requires assembler support for CFI directives.
5179
5180 2010-09-27 Richard Henderson <rth@redhat.com>
5181
5182 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
5183
5184 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
5185
5186 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
5187 that AFTER is not in the range FROM..TO, inclusive.
5188
5189 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
5190 Bernd Schmidt <bernds@codesourcery.com>
5191
5192 PR rtl-optimization/45792
5193 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
5194 If not all insns are to be merged, for each edge, stash the
5195 next candidate after the to-be-merged insns before doing the
5196 merge, and use them for the retry at the new insertion point.
5197 Handle CC0 targets when retrying.
5198
5199 2010-09-27 Ian Lance Taylor <iant@google.com>
5200
5201 * common.opt (fsplit-stack): New option.
5202 * opts.c (decode_options): Set flag_split_stack to final value.
5203 * target.def (supports_split_stack): New hook.
5204 * gcc.c (STACK_SPLIT_SPEC): Define.
5205 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
5206 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
5207 (Code Gen Options): Document -fsplit-stack.
5208 * doc/extend.texi (Function Attributes): Mention no_split_stack.
5209 (Function Attributes): Document no_split_stack.
5210 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
5211 TARGET_SUPPORTS_SPLIT_STACK.
5212 * doc/tm.texi: Rebuild.
5213 * function.c (thread_prologue_and_epilogue_insns): If
5214 flag_split_stack, add split stack prologue.
5215 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
5216 * varasm.c (saw_no_split_stack): New static variable.
5217 (assemble_start_function): Set saw_no_split_stack if the function
5218 has the no_split_stack attribute.
5219 (file_end_indicate_split_stack): New function.
5220 * output.h (file_end_indicate_split_stack): Declare.
5221 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
5222 and function.
5223 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
5224 routines.
5225 * config/i386/i386.c (ix86_option_override_internal): Don't set
5226 expand_builtin_va_start to NULL if -fsplit-stack.
5227 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
5228 -fsplit-stack.
5229 (ix86_va_start): If -fsplit-stack, get overflow pointer from
5230 scratch register set by prologue.
5231 (ix86_code_end): If -fsplit-stack, call
5232 file_end_indicate_split_stack.
5233 (ix86_supports_split_stack): New static function.
5234 (SPLIT_STACK_AVAILABLE): Define.
5235 (split_stack_prologue_scratch_regno): New static function.
5236 (split_stack_fn): New static variable.
5237 (ix86_expand_split_stack_prologue): New function.
5238 (ix86_live_on_entry): New static function.
5239 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
5240 (output_pic_addr_const): Likewise.
5241 (i386_asm_output_addr_const_extra): Likewise.
5242 (ix86_expand_call): Change return type to rtx. Return the new
5243 call instruction.
5244 (TARGET_SUPPORTS_SPLIT_STACK): Define.
5245 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5246 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
5247 (split_stack_prologue, split_stack_return): New insns.
5248 (split_stack_space_check): New insn.
5249 * config/i386/i386.h (struct machine_function): Add
5250 split_stack_varargs_pointer field.
5251 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
5252 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5253 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5254 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5255 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
5256 Declare.
5257 (ix86_expand_call): Update declaration.
5258
5259 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5260
5261 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
5262 code. Added byref, which was missing in the list of codes.
5263 Explain that enumeration values are encoded as the integer type
5264 that the compiler uses to store them. Explain and make examples
5265 of how 'const' interacts with pointers, and the complication of
5266 the encoding of 'const char *'.
5267 (Legacy type encoding): New subsection, explaining that GCC emits
5268 incorrect type encodings for the NeXT runtime for compatibility
5269 reasons.
5270 (@@encode): New subsection, explaining @encode and particularly
5271 that protocol qualifiers are not recognized inside an @encode()
5272 expression.
5273 (Method signatures): New subsection, explaining how method
5274 signatures are encoded.
5275
5276 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5277
5278 Merge from 'apple/trunk' branch on FSF servers. Removed small
5279 change in build_conditional_expr that had been added when fixing
5280 PR objc/27377 and which did the same check in a less complete way.
5281
5282 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5283
5284 Radar 4229905
5285 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
5286 looking for objective-c common pointer types.
5287
5288 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5289
5290 Radar 4154928
5291 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
5292 use their ObjC common type.
5293
5294 2010-09-27 Richard Guenther <rguenther@suse.de>
5295
5296 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
5297
5298 2010-09-27 Jie Zhang <jie@codesourcery.com>
5299
5300 * print-tree.c (print_node): Print in-constant-pool.
5301
5302 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
5303
5304 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
5305 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
5306 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
5307 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
5308
5309 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
5310
5311 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
5312 from pro_epilogue_adjust_stack_<mode>_{1,2}.
5313 (pro_epilogue_adjust_stack_<mode>_add): Rename from
5314 pro_epilogue_adjust_stack_<mode>_3.
5315 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
5316 renamed pro_epilogue_adjust_stack_{si,di}_add.
5317 (ix86_expand_prologue): Use indirect functions. Update for renamed
5318 pro_epilogue_adjust_stack_{si,di}_sub.
5319
5320 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
5321
5322 * config/i386/i386.md (movmsk_df): New insn.
5323 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
5324 sequence for TARGET_SSE_MATH.
5325
5326 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
5327
5328 * config/mips/mips.c (mips_builtin_decls): Declare.
5329 (mips_init_builtins): Store function declarations in
5330 mips_builtin_decls.
5331 (mips_builtin_decl): New function.
5332 (TARGET_BUILTIN_DECL): Define.
5333
5334 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
5335 Richard Henderson <rth@redhat.com>
5336
5337 * config/i386/cygwin.asm: Include auto-host.h.
5338 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
5339 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
5340 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
5341 alignment code from the 64-bit path. Use gas local labels.
5342 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
5343 from _di_2. Remove the useless constant integer argument.
5344 (pro_epilogue_adjust_stack_<mode>_3): New.
5345 (allocate_stack_worker_probe_<mode>): Macroize from
5346 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
5347 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
5348 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
5349 (__chkstk_ms): New function.
5350 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
5351 * gcc/config/i386/t-interix: Likewise.
5352 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
5353 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
5354 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
5355 * configure, config.in: Rebuild.
5356
5357 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
5358
5359 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
5360 statements because of the return slot optimization.
5361
5362 2010-09-25 Anatoly Sokolov <aesok@post.ru>
5363
5364 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
5365 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
5366 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5367 (class_likely_spilled_p): Rename to...
5368 (avr_class_likely_spilled_p): ...this. Make static. Change argument
5369 type to reg_class_t.
5370
5371 2010-09-24 Jan Hubicka <jh@suse.cz>
5372
5373 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
5374 (lto_symtab_resolve_symbols): Set it.
5375 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
5376 store resolution field in cgraph/varpool.
5377 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
5378 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
5379 (cgraph_dump_node): Drop used_from_object_file.
5380 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
5381 (cgraph_function_body_availability): Use decl_replaceable_p.
5382 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
5383 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
5384 cgraph_used_from_object_file_p.
5385 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
5386 cgraph_used_from_object_file_p.
5387 (resolution_used_from_other_file_p): New functoin.
5388 (cgraph_used_from_object_file_p): New predicate.
5389 * cgraph.h: Include plugin-api.h
5390 (struct cgraph_local_info): Remove used_from_object_file.
5391 (struct cgraph_node): Add resolution field.
5392 (struct varpool_node): Likewise; remove used_from_object_file;
5393 reove const_value_known.
5394 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
5395 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
5396 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5397 varpool_used_from_object_file_p): Declare.
5398 (varpool_get_node, varpool_extra_name_alias): Update prototype.
5399 * tree.h (DECL_REPLACEABLE_P): Remove.
5400 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
5401 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
5402 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5403 input_overwrite_node, input_node, input_varpool_node): Stream
5404 resolution.
5405 * expr.c (expand_expr_real_1): Use const_value_known_p
5406 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
5407 const_value_known.
5408 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
5409 (function_and_variable_visibility): Set resolution for local vars
5410 and functions; use varpool_used_from_object_file_p.
5411 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
5412 static functions.
5413 (default_binds_local_p_1): Use resolutoin info.
5414 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
5415 * varpool.c (varpool_get_node): Constify.
5416 (const_value_known_p): Do not use vnode->const_value_known;
5417 use decl_replaceable_p.
5418 (varpool_finalize_decl): Do not set const_value_known.
5419 (cgraph_variable_initializer_availability): Use decl_replaceable_p
5420 (varpool_extra_name_alias): Return new node.
5421 (varpool_used_from_object_file_p): New function.
5422
5423 2010-09-24 Richard Henderson <rth@redhat.com>
5424
5425 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
5426 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
5427 (do_spill): Use REG_CFA_OFFSET.
5428 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
5429 as appropriate.
5430 (ia64_expand_epilogue): Likewise.
5431 (process_set): Split into ...
5432 (process_cfa_adjust_cfa): this,
5433 (process_cfa_register): this,
5434 (process_cfa_offset): and this new function.
5435 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
5436 instead of REG_FRAME_RELATED_EXPR.
5437
5438 2010-09-24 Olivier Hainque <hainque@adacore.com>
5439
5440 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
5441
5442 2010-09-24 Jan Hubicka <jh@suse.cz>
5443
5444 * doc/extend.texi: (attribute leaf): Document.
5445 * tree.c (local_define_builtin): Handle ECF_LEAF.
5446 (build_common_builtin_nodes): Set ECF_LEAF where needed.
5447 * tree.h (ECF_LEAF): New.
5448 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
5449 overwrittable and unavailable functions.
5450 (ipa_init): Put all_module_statics into optimization_summary_obstack.
5451 (copy_global_bitmap): Do not copy all_module_statics.
5452 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
5453 (propagate): Handle overwritable and unavailable leaf functions;
5454 initialize global info for overwritable and unavailable leaf functions;
5455 do not free all module statics.
5456 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
5457 local statics.
5458 * calls.c (flags_from_decl_or_type): Handle leaf.
5459 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
5460 abnormal gotos.
5461
5462 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
5463
5464 * gengtype.c: Reindented.
5465 * gengtype.h: Reindented.
5466 * gengtype-parse.c: Reindented.
5467
5468 2010-09-24 Jan Hubicka <jh@suse.cz>
5469
5470 PR tree-optimization/45738
5471 PR tree-optimization/45741
5472 * expr.c (string_constant): Allow CONST_DECL too;
5473 check that DECL_INITIAL is set.
5474 * varpool.c (const_value_known_p): Only look into VAR_DECL
5475 and CONST_DECL.
5476
5477 2010-09-24 Joseph Myers <joseph@codesourcery.com>
5478
5479 * common.opt (undef): New.
5480
5481 2010-09-24 Jakub Jelinek <jakub@redhat.com>
5482
5483 PR middle-end/45234
5484 * rtl.h (enum global_rtl_index): Add
5485 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
5486 (LAST_VIRTUAL_POINTER_REGISTER): Define.
5487 (virtual_preferred_stack_boundary_rtx,
5488 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
5489 (LAST_VIRTUAL_REGISTER): Increase by one.
5490 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
5491 instead of LAST_VIRTUAL_REGISTER.
5492 * function.c (instantiate_new_reg): Handle
5493 virtual_preferred_stack_boundary_rtx.
5494 * emit-rtl.c (init_virtual_regs): Handle
5495 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
5496 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
5497 * explow.c (round_push): If crtl->preferred_stack_boundary
5498 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
5499 virtual_preferred_stack_boundary_rtx alignment instead of
5500 crtl->preferred_stack_boundary alignment.
5501 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
5502 macros. Never decrease crtl->preferred_stack_boundary,
5503 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
5504 instead of PREFERRED_STACK_BOUNDARY. Don't modify
5505 stack_pointer_delta in dynamic allocation, even when size
5506 is constant.
5507 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
5508 macro.
5509 * print-rtl.c (print_rtx): Handle
5510 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
5511 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
5512 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
5513 * config/frv/frv.c (frv_emit_movsi): Likewise.
5514 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
5515 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
5516 Likewise.
5517
5518 Revert:
5519 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
5520
5521 PR middle-end/45234
5522 * calls.c (expand_call): Make sure that all variable sized
5523 adjustments are multiple of preferred stack boundary after
5524 stack alignment.
5525
5526 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
5527 Dominique Dhumieres <dominiq@lps.ens.fr>
5528
5529 PR bootstrap/45751
5530 * gcc/config/darwin-driver.c (darwin_default_min_version):
5531 Adjust size passed to memcpy in two places.
5532
5533 2010-09-24 Richard Guenther <rguenther@suse.de>
5534
5535 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
5536 Make sure to not call set_type_context with error_mark_node.
5537 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
5538
5539 2010-09-24 Richard Guenther <rguenther@suse.de>
5540
5541 * Makefile.in (OBJS-onestep): Remove.
5542 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
5543 (libbackend.a): Remove onestep support.
5544 (libbackend.o): Remove.
5545 * configure.ac (--enable-intermodule): Remove.
5546 * configure: Regenerate.
5547
5548 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
5549
5550 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
5551 reaching the end of a block if it occurs at a DEBUG_INSN.
5552
5553 2010-09-09 Tristan Gingold <gingold@adacore.com>
5554
5555 PR target/44242
5556 * config/vms/vms-crt0-64.c: Removed.
5557 * config/vms/vms-crt0.c: Removed.
5558 * config/vms/vms-psxcrt0-64.c: Removed.
5559 * config/vms/vms-psxcrt0.c: Removed.
5560 * config/vms/vms-ucrt0.c: New file.
5561 * config/vms/t-vms64: Removed.
5562 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
5563 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
5564 * config.gcc (alpha-dec-vms): Use t-vms.
5565
5566 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
5567
5568 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
5569 underfull hbox in DVI output.
5570 (-fobjc-class-cxx-cdtors): Same change.
5571 (-fobjc-exceptions): Tidied up documentation. Explain what the
5572 option does, but moved the (lenghty) description of the exception
5573 syntax into objc.texi.
5574 (-fobjc-gc): Explain that the option is not useful with the GNU
5575 runtime.
5576 (-fzero-link): Explain that the GNU runtime always works in
5577 "zero-link" mode.
5578 * doc/objc.texi: All sections: simplified @node declarations
5579 removing specification of next, previous, up node.
5580 (Objective-C): Updated introduction.
5581 (Garbage Collection): Updated. The bohem-gc library is now
5582 included in gcc itself. Mention that this section only applies to
5583 the GNU Objective-C runtime.
5584 (compatibility_alias): Small tidy up.
5585 (Exceptions): New section mostly containing text previously in the
5586 description of the -fobjc-exception command-line option.
5587 (Synchronization): Same.
5588
5589 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
5590
5591 * config/i386/i386.md (ix86_code_end): Move the initialization of
5592 xops array near the consumer. Use AX_REG and SP_REG instead of
5593 numerical constants.
5594
5595 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
5596
5597 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
5598 method [methodname]' for an Objective-C method instead of the less
5599 satisfactory 'too many arguments to function' (with no method name).
5600
5601 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
5602
5603 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
5604 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
5605 (execute_update_addresses_taken): Remove parameter. Execute the
5606 optimization unconditionally.
5607 * passes.c (execute_function_todo): Call execute_update_addresses_taken
5608 unconditionally if TODO_rebuild_alias is set, else only when optimizing
5609 if TODO_update_address_taken is set.
5610
5611 2010-09-23 Anatoly Sokolov <aesok@post.ru>
5612
5613 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5614 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
5615 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5616 (arm_output_addr_const_extra): Make static.
5617
5618 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
5619
5620 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
5621 define as unspec_volatile.
5622 ("nops"): Define as unspec_volatile. Use fputs to write to
5623 asm_out_file directly. Output NOPs on separate lines using while loop.
5624 * config/i386/i386.c (ix86_code_end): Use fputs to write to
5625 asm_out_file directly. Output NOPs on separate lines using while loop.
5626
5627 2010-09-23 Richard Guenther <rguenther@suse.de>
5628
5629 PR tree-optimization/45565
5630 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
5631 Make sure to adjust the fndecl before replacing the stmt.
5632
5633 2010-09-23 Richard Guenther <rguenther@suse.de>
5634
5635 PR middle-end/45750
5636 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
5637 gimplifying MEM_REF.
5638
5639 2010-09-23 Alan Modra <amodra@gmail.com>
5640
5641 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
5642 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
5643
5644 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
5645
5646 PR rtl-optimization/44374
5647 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
5648 * df-core.c (df_set_bb_dirty): Set it.
5649 * ifcvt.c (find_memory): Remove function.
5650 (dead_or_predicable): Use can_move_insns_across.
5651 * df.h (can_move_insns_across): Declare function.
5652 * cfgcleanup.c (block_was_dirty): New static variable.
5653 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
5654 than df_get_bb_dirty.
5655 (try_head_merge_bb): New static function.
5656 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
5657 is set.
5658 * df-problems.c: Include "target.h"
5659 (df_simulate_find_uses): New static function.
5660 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
5661 (find_memory, find_memory_store): New static functions.
5662 (can_move_insns_across): New function.
5663 * Makefile.in (df-problems.o): Update dependencies.
5664
5665 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
5666
5667 PR java/44095
5668 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
5669 is specified and the suffix of the file isn't ".c".
5670 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5671
5672 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5673
5674 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
5675 * doc/cppopts.texi: Fix markup of index entry.
5676 * doc/extend.texi (Constructing Calls): Fix markup of
5677 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
5678 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
5679 (Vague Linkage, C++ Attributes): Fix markup of index entries and
5680 keywords.
5681 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
5682 avoid long lines.
5683 (C Dialect Options, C++ Dialect Options, Warning Options)
5684 (Debugging Options, Spec Files, Darwin Options)
5685 (i386 and x86-64 Options, MIPS Options)
5686 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
5687 index entries, avoid abbreviations, allow URLs to wrap, avoid
5688 long lines, avoid overlong pages from long @itemx lists.
5689 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
5690 * doc/standards.texi (Standards): Likewise.
5691 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
5692
5693 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5694
5695 * opts-common.c (prune_options): Make static. Work with decoded
5696 options.
5697 (decode_cmdline_options_to_array): Call prune_options. Don't
5698 resize option array here.
5699 * opts.h (prune_options): Remove prototype.
5700 * gcc.c (process_command): Take decoded options; don't call
5701 decode_cmdline_options_to_array here. Use decoded options for argv[0].
5702 (main): Call decode_cmdline_options_to_array here instead of
5703 prune_options. Update call to process_command.
5704 * config/darwin-driver.c: Include opts.h.
5705 (darwin_default_min_version): Work with decoded options. Don't
5706 handle -b or -V here.
5707 * config/darwin.h (darwin_default_min_version): Update prototype.
5708 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
5709 darwin_default_min_version.
5710 * config/i386/cygwin.h (mingw_scan): Update prototype.
5711 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
5712 * config/i386/cygwin1.c: Include opts.h.
5713 (mingw_scan): Work with decoded options.
5714 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
5715 * config/t-darwin (darwin-driver.o): Update dependencies.
5716
5717 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5718
5719 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
5720 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
5721 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
5722 -force-link, -force-link=, -language, -language=,
5723 -library-directory, -library-directory=, -no-canonical-prefixes,
5724 -no-standard-libraries, -no-warnings, -optimize, -output,
5725 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
5726 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
5727 -print-file-name=, -print-libgcc-file-name,
5728 -print-multi-directory, -print-multi-lib,
5729 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
5730 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
5731 -profile, -save-temps, -shared, -specs, -specs=, -static,
5732 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
5733 symbolic): New.
5734 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
5735 * gcc.c (A Short Introduction to Adding a Command-Line Option):
5736 Remove comment.
5737 (cc1_options): Correct specs for passing down --help,
5738 --target-help and --help=*. Add spec for passing down --version.
5739 (struct option_map, option_map, target_option_translations,
5740 translate_options): Remove.
5741 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
5742 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
5743 OPT_fhelp_ and OPT_ftarget_help.
5744 (process_command): Don't call translate_options. Call
5745 decode_cmdline_options_to_array before checking for
5746 -no-canonical-prefixes using decoded options.
5747 * opts-common.c (tm.h): Update comment on #include.
5748 (find_opt): Allow abbreviations of long options.
5749 (struct option_map, option_map): New.
5750 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
5751 and -mno handling.
5752 (target_option_translations): New.
5753 (decode_cmdline_options_to_array): Handle
5754 TARGET_OPTION_TRANSLATE_TABLE in driver.
5755 * opts.c (common_handle_option): Don't handle OPT_fhelp,
5756 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
5757
5758 2010-09-22 Richard Guenther <rguenther@suse.de>
5759
5760 * tree-inline.c (optimize_inline_calls): Schedule cleanups
5761 only if we inlined something. Block compaction and conditional
5762 folding are done by cfg cleanup. Schedule update-address-taken.
5763 (tree_function_versioning): Remove redundant call to number_blocks.
5764 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
5765 folding is done by cfg cleanup.
5766 * passes.c (init_optimization_passes): Remove update-address-taken
5767 pass after IPA inlining.
5768
5769 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5770
5771 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
5772 to update conditions. Fix reg_mode[] check.
5773
5774 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
5775
5776 * config/picochip/picochip.md (movhicc): Use expand to check whether
5777 movhicc is available and split it after reload.
5778
5779 2010-09-22 Richard Guenther <rguenther@suse.de>
5780
5781 * tree-ssanames.c (release_dead_ssa_names): Do not remove
5782 callee edges here.
5783 * passes.c (init_optimization_passes): Remove early CFG cleanup.
5784 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
5785 (pass_cleanup_cfg): Likewise.
5786 (execute_fixup_cfg): Cleanup.
5787 * tree-pass.h (pass_cleanup_cfg): Remove.
5788
5789 2010-09-22 Martin Jambor <mjambor@suse.cz>
5790
5791 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
5792 builtins if it is true.
5793 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
5794 parameter.
5795
5796 2010-09-22 Martin Jambor <mjambor@suse.cz>
5797
5798 * tree-sra.c (struct access): New field grp_no_warning.
5799 (create_access_replacement): Set TREE_NO_WARNING according to
5800 grp_no_warning.
5801 (create_artificial_child_access): Use build_ref_for_model and set
5802 grp_no_warning if build_user_friendly_ref_for_offset fails.
5803 (propagate_subaccesses_across_link): Likewise.
5804
5805 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
5806
5807 PR target/35664
5808 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
5809 ('f'): Likewise.
5810
5811 2010-09-22 Tristan Gingold <gingold@adacore.com>
5812
5813 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
5814
5815 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
5816
5817 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
5818 * config/i386/i386.c (decide_alg): Update for rename.
5819
5820 2010-09-22 Jakub Jelinek <jakub@redhat.com>
5821
5822 PR rtl-optimization/45739
5823 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
5824 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
5825
5826 2010-09-21 Anatoly Sokolov <aesok@post.ru>
5827
5828 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
5829 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
5830 Remove.
5831 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
5832 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5833
5834 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5835
5836 PR objc/23710
5837 * c-parser.c (c_parser_objc_method_definition): Check the return
5838 value of objc_start_method_definition and if false is returned,
5839 parse the method definition but emit no code.
5840
5841 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5842
5843 PR objc/25965
5844 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
5845 call objc_get_interface_ivars ().
5846
5847 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
5848
5849 PR target/45694
5850 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
5851 static chain-register is used for 64-bit.
5852
5853 2010-09-21 Richard Guenther <rguenther@suse.de>
5854
5855 * dwarf2out.c (is_cu_die): New function.
5856 (add_pubtype): Use it.
5857 (gen_subprogram_die): Likewise.
5858 (gen_struct_or_union_type_die): Likewise.
5859 (dwarf2out_finish): Likewise.
5860 (comp_unit_die): Rename to ...
5861 (single_comp_unit_die): ... this.
5862 (comp_unit_die): New function lazily constructing and
5863 returning single_comp_unit_die.
5864 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
5865 base_type_die, subrange_type_die, modified_type_die,
5866 lower_bound_default, add_bound_info, add_prototyped_attribute,
5867 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
5868 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
5869 force_decl_die, gen_namespace_die, dwarf2out_decl,
5870 dwarf2out_start_source_file, dwarf2out_end_source_file,
5871 prune_unused_types, dwarf2out_finish): Use it.
5872 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
5873 the global list of translation-unit decls.
5874 (dwarf2out_init): Do not create single_comp_unit_die here.
5875 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
5876
5877 2010-09-21 Richard Guenther <rguenther@suse.de>
5878
5879 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
5880 for bool for C++.
5881
5882 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
5883
5884 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
5885 (qhs_extenddi_cstr): Likewise.
5886 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
5887 them for the source operand.
5888
5889 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
5890
5891 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
5892 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
5893 (ix86_split_ashr): Ditto.
5894 (ix86_split_lshr): Ditto.
5895
5896 2010-09-21 Richard Guenther <rguenther@suse.de>
5897
5898 PR tree-optimization/45580
5899 * tree-ssa-propagate.c (substitute_and_fold): Always replace
5900 regular uses.
5901 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
5902 virtuals fold the call into a regular indirect one.
5903
5904 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
5905
5906 PR rtl-optimization/42775
5907 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
5908 scheduling is enabled.
5909
5910 2010-09-20 Jakub Jelinek <jakub@redhat.com>
5911
5912 PR rtl-optimization/45728
5913 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
5914 gen_lowpart_common first and if that fails, force_reg first
5915 before calling gen_lowpart.
5916
5917 PR middle-end/45678
5918 * cfgexpand.c (expand_one_stack_var_at): Use
5919 crtl->max_used_stack_slot_alignment as max_align, instead
5920 of maximum of that and PREFERRED_STACK_BOUNDARY.
5921 Don't call update_stack_alignment.
5922
5923 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
5924
5925 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
5926 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
5927 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
5928 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
5929 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
5930 (build_nonstandard_integer_type): Likewise.
5931 (build_range_type_1): New function, built from...
5932 (build_range_type): ...this. Call build_range_type_1.
5933 (build_nonshared_range_type): New function.
5934 (build_array_type_1): New function, built from...
5935 (build_array_type: ...this. Call build_array_type_1.
5936 (build_nonshared_array_type): New function.
5937 * tree.h (build_nonshared_range_type): Declare.
5938 (build_nonshared_array_type): Likewise.
5939
5940 2010-09-20 Anatoly Sokolov <aesok@post.ru>
5941
5942 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
5943 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5944 (arm_class_likely_spilled_p): New function.
5945
5946 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
5947
5948 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
5949 indirect functions.
5950 (ix86_split_ashl): Ditto.
5951 (ix86_split_ashr): Ditto.
5952 (ix86_split_lshr): Ditto.
5953 (ix86_adjust_counter): Ditto.
5954
5955 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
5956
5957 * c-family/c-common.h (constant_string_class): Documented with
5958 comment identical to the one already in c-common.c.
5959
5960 2010-09-20 Jakub Jelinek <jakub@redhat.com>
5961
5962 * dwarf2out.c (any_cfis_emitted): New static variable.
5963 (add_fde_cfi): Set it.
5964 (dwarf2out_frame_debug): Clear it before processing,
5965 if it is set afterwards, flush any queued reg saves.
5966
5967 PR debug/45124
5968 * dwarf2out.c (add_accessibility_attribute): Assume
5969 DW_ACCESS_private as the default for dwarf_version > 2
5970 and DW_TAG_class_type parent.
5971 (gen_inheritance_die): Assume DW_ACCESS_public as the default
5972 for dwarf_version > 2 and parent other than DW_TAG_class_type.
5973
5974 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
5975
5976 PR target/45726
5977 * arm.md (arm_movt): Only enable on machines with MOVT.
5978
5979 2010-09-20 Jie Zhang <jie@codesourcery.com>
5980
5981 * config/arm/arm.c (arm_address_offset_is_imm): New.
5982 (arm_early_store_addr_dep): New.
5983 (arm_early_load_addr_dep): New.
5984 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
5985 (arm_early_load_addr_dep): Declare.
5986 (arm_address_offset_is_imm): Declare.
5987 * config/arm/cortex-m4.md: New file.
5988 * config/arm/cortex-m4-fpu.md: New file.
5989 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
5990 (attr generic_sched): Exclude cortexm4.
5991 (attr generic_vfp): Exclude cortexm4.
5992
5993 2010-09-20 Richard Guenther <rguenther@suse.de>
5994
5995 PR middle-end/45704
5996 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
5997
5998 2010-09-20 Jan Hubicka <jh@suse.cz>
5999
6000 PR tree-optimize/45605
6001 * cgraph.h (const_value_known_p): Declare.
6002 (varpool_decide_const_value_known): Remove.
6003 * tree-ssa-ccp.c (get_base_constructor): Use it.
6004 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
6005 * expr.c (string_constant): Likewise.
6006 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
6007 * ipa.c (ipa_discover_readonly_nonaddressable_var,
6008 function_and_variable_visibility): Likewise.
6009 * gimplify.c (gimplify_call_expr): Likewise.
6010 * gimple-fold.c (get_symbol_constant_value): Likewise.
6011 * varpool.c (varpool_decide_const_value_known): Replace by...
6012 (const_value_known_p): ... this one; handle other kinds of DECLs
6013 too and work for automatic vars.
6014 (varpool_finalize_decl): Use const_value_known_p.
6015
6016 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
6017
6018 PR target/45726
6019 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
6020
6021 2010-09-20 Richard Guenther <rguenther@suse.de>
6022
6023 PR tree-optimization/45705
6024 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
6025
6026 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6027
6028 PR rtl-optimization/45695
6029 * combine.c (try_combine): When splitting a two set pattern,
6030 make sure the pattern which will be put into i2 doesn't use REGs
6031 or MEMs set by insns in between i2 and i3.
6032
6033 2010-09-19 Jan Hubicka <jh@suse.cz>
6034
6035 PR lto/44246
6036 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
6037 processing same node twice.
6038
6039 2010-09-19 Anatoly Sokolov <aesok@post.ru>
6040
6041 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
6042 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6043 (bfin_class_likely_spilled_p): New function
6044
6045 2010-09-19 Ira Rosen <irar@il.ibm.com>
6046
6047 PR tree-optimization/45714
6048 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
6049 created in vectorizable_call instead of the original statement in
6050 def stmt updates.
6051
6052 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
6053
6054 * config/i386/i386-protos.h (split_double_mode): New prototype.
6055 (split_di, split_ti): Remove prototypes.
6056 * config/i386/i386.c (split_double_mode): New function.
6057 (split_di, split_ti): Remove.
6058 (ix86_expand_branch): Use split_double_mode.
6059 (ix86_split_to_parts): Ditto.
6060 (ix86_split_ashl): Ditto.
6061 (ix86_split_ashr): Ditto.
6062 (ix86_split_lshr): Ditto.
6063 (ix86_force_to_memory): Ditto.
6064 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
6065
6066 2010-09-18 Jan Hubicka <jh@suse.cz>
6067
6068 PR tree-optimization/45453
6069 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
6070 virtual functions are reachable.
6071 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
6072 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
6073 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
6074 when modifying function.
6075
6076 2010-09-18 Jan Hubicka <jh@suse.cz>
6077
6078 PR tree-optimization/45605
6079 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
6080 * gimple-fold.c (static_object_in_other_unit_p): New function.
6081 (canonicalize_constructor_val): Use it.
6082 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
6083 returning NULL.
6084 (gimple_fold_obj_type_ref_known_binfo): Use
6085 static_object_in_other_unit_p.
6086
6087 2010-09-18 Richard Guenther <rguenther@suse.de>
6088
6089 PR tree-optimization/45709
6090 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
6091 insertions until after all PHI nodes of the block are processed.
6092
6093 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
6094
6095 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
6096
6097 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
6098
6099 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
6100
6101 2010-09-18 Richard Guenther <rguenther@suse.de>
6102
6103 PR tree-optimization/45709
6104 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
6105
6106 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6107
6108 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
6109 (dot_deps_stmt): Same.
6110 * graphite-poly.c (dot_lst): Same.
6111 * graphite-scop-detection.c (dot_all_scops): Same.
6112 (dot_scop): Same.
6113
6114 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6115
6116 Revert:
6117 2009-12-16 Ben Elliston <bje@au.ibm.com>
6118
6119 * tree-data-ref.c (dot_rdg_1): Added back.
6120 (dot_rdg): Same. Added "#if 0" around system call.
6121
6122 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6123 Richard Henderson <rth@redhat.com>
6124
6125 * config/i386/i386.c (initial_ix86_tune_features): Add
6126 X86_TUNE_PAD_SHORT_FUNCTION.
6127 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
6128 (ix86_count_insn): New.
6129 (ix86_pad_short_function): Likewise.
6130 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
6131
6132 * config/i386/i386.h (ix86_tune_indices): Add
6133 X86_TUNE_PAD_SHORT_FUNCTION.
6134 (TARGET_PAD_SHORT_FUNCTION): New.
6135
6136 * config/i386/i386.md (UNSPEC_NOPS): New.
6137 (nops): Likewise.
6138
6139 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6140
6141 PR middle-end/45234
6142 * calls.c (expand_call): Make sure that all variable sized
6143 adjustments are multiple of preferred stack boundary after
6144 stack alignment.
6145
6146 2010-09-17 DJ Delorie <dj@redhat.com>
6147
6148 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
6149 passed an invalid value, print an error instead of ICEing.
6150 (valid_psw_flag): New.
6151 (rx_expand_builtin): Call it for setpsw/clrpsw.
6152 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
6153
6154 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
6155 (bitclr_in_memory): Likewise.
6156 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
6157
6158 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6159
6160 PR middle-end/45678
6161 * cfgexpand.c (update_stack_alignment): New.
6162 (get_decl_align_unit): Use it.
6163 (expand_one_stack_var_at): Call update_stack_alignment.
6164
6165 2010-09-17 Richard Guenther <rguenther@suse.de>
6166
6167 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
6168 Properly copy the read string.
6169
6170 2010-09-17 Joseph Myers <joseph@codesourcery.com>
6171
6172 * doc/options.texi (Variable): Document.
6173 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
6174 generate target_flags declarations explicitly. Don't define
6175 VarExists variables for the driver.
6176 * common.opt (target_flags): New Variable record.
6177 (flag_dump_unnumbered, flag_dump_unnumbered_links,
6178 flag_var_tracking, flag_var_tracking_assignments,
6179 flag_var_tracking_assignments_toggle): Don't mark variables with
6180 VarExists.
6181 * config/i386/i386.c (ix86_isa_flags): Don't define here.
6182 * config/i386/i386.opt (ix86_isa_flags): Define here.
6183 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
6184 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
6185 VarExists.
6186 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
6187 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
6188 Only define for generator programs.
6189 * rtlanal.c (target_flags): Remove.
6190 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
6191 flag_var_tracking_assignments_toggle): Remove.
6192
6193 2010-09-17 Michael Matz <matz@suse.de>
6194
6195 PR tree-optimization/43432
6196 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
6197 Accept backwards consecutive accesses.
6198 (vect_create_data_ref_ptr): If step is negative generate
6199 decreasing IVs.
6200 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
6201 (perm_mask_for_reverse, reverse_vec_elements): New functions.
6202 (vectorizable_load): Handle loads with negative steps when easily
6203 possible.
6204
6205 2010-09-03 Jan Hubicka <jh@suse.cz>
6206
6207 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
6208
6209 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
6210
6211 * config/v850/v850.c (v850_function_value_regno_p): Make static.
6212 Adjust comments. Declare.
6213 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
6214 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
6215
6216 2010-09-17 Richard Guenther <rguenther@suse.de>
6217
6218 * common.opt (combine): Remove.
6219 * gcc.c (default_compilers): Remove specs testing combine.
6220 The C compilers no longer can combine.
6221 (option_map): Remove -combine.
6222 (display_help): Remove -combine.
6223 (driver_handle_option): Remove OPT_combine handling.
6224 (compile_input_file_p): Remove.
6225 (do_spec): Remove code concerning combine.
6226 (main): Likewise.
6227 * doc/invoke.texi: Remove traces of -combine.
6228 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
6229
6230 2010-09-17 Richard Guenther <rguenther@suse.de>
6231
6232 PR middle-end/45678
6233 * builtins.c (fold_builtin_memory_op): Always properly adjust
6234 alignment of memory accesses.
6235
6236 2010-09-16 Jan Hubicka <jh@suse.cz>
6237
6238 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
6239 processing clone.
6240
6241 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
6242
6243 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
6244
6245 * config/i386/i386.c (predict_jump): Add prototype.
6246 (flag_opts): Add -m8bit-idiv.
6247 (ix86_split_idivmod): New.
6248
6249 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
6250 Add 2 splitters for SI/DI mode divide.
6251 (divmod<mode>4_1): New pattern.
6252 (udivmod<mode>4_1): Likewise.
6253 (testdi_ccno_1): Likewise.
6254
6255 * config/i386/i386.opt (m8bit-idiv): New.
6256
6257 * doc/invoke.texi: Document -m8bit-idiv.
6258
6259 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
6260
6261 PR bootstrap/45680
6262 * config/i386/i386.c (min_insn_size): Moved out of the
6263 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
6264
6265 2010-09-16 Jan Hubicka <jh@suse.cz>
6266
6267 * lto-cgraph.c (lto_output_node): Fix handling of clones.
6268 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
6269 unreachable clones with reachable clones.
6270 * tree-inline.c (copy_bb): Fix sanity checking when producing
6271 unreachable clone.
6272
6273 2010-09-16 Anatoly Sokolov <aesok@post.ru>
6274
6275 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
6276 (TARGET_MEMORY_MOVE_COST): Define.
6277 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
6278
6279 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
6280
6281 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
6282 maybe_tidy_empty_bb.
6283
6284 Revert:
6285 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
6286 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
6287
6288 2010-09-16 Joseph Myers <joseph@codesourcery.com>
6289
6290 * target.def (target_option.optimization): New hook.
6291 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
6292 TARGET_OPTION_OPTIMIZATION hook.
6293 * doc/tm.texi: Regenerate.
6294 * hooks.c (hook_void_int_int): New.
6295 * hooks.h (hook_void_int_int): Declare.
6296 * opts.c: Don't include tm_p.h.
6297 (decode_options): Use targetm.target_option.optimization instead
6298 of OPTIMIZATION_OPTIONS.
6299 * system.h (OPTIMIZATION_OPTIONS): Poison.
6300 * config/arm/arm-protos.h (arm_optimization_options): Remove.
6301 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
6302 (arm_optimization_options): Rename to arm_option_optimization.
6303 Make static.
6304 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
6305 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
6306 (cris_option_optimization): New.
6307 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
6308 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
6309 (crx_option_optimization): New.
6310 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
6311 * config/frv/frv-protos.h (frv_optimization_options): Remove.
6312 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
6313 (frv_optimization_options): Rename to frv_option_optimization.
6314 Make static.
6315 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
6316 * config/h8300/h8300.c (h8300_option_optimization): New.
6317 (TARGET_OPTION_OPTIMIZATION): Define.
6318 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
6319 * config/i386/i386-protos.h (optimization_options): Remove.
6320 * config/i386/i386.c (optimization_options): Rename to
6321 ix86_option_optimization. Make static.
6322 (TARGET_OPTION_OPTIMIZATION): Define.
6323 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
6324 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
6325 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
6326 (ia64_optimization_options): Rename to ia64_option_optimization.
6327 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
6328 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
6329 commented-out definition.
6330 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
6331 instead of OPTIMIZATION_OPTIONS.
6332 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
6333 (m32r_option_optimization): New.
6334 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
6335 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
6336 Remove.
6337 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
6338 (mcore_option_optimization): New.
6339 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
6340 * config/mep/mep-protos.h (mep_optimization_options): Remove.
6341 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
6342 (mep_optimization_options): Rename to mep_option_optimization.
6343 Make static. Take unused level and size parameters.
6344 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
6345 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
6346 (mmix_option_optimization): New.
6347 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
6348 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
6349 (pdp11_option_optimization): New.
6350 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
6351 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
6352 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
6353 (optimization_options): Rename to rs6000_option_optimization.
6354 Make static.
6355 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
6356 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
6357 * config/rx/rx.c (rx_set_optimization_options): Rename to
6358 rx_option_optimization. Make static. Take unused level and size
6359 parameters.
6360 (TARGET_OPTION_OPTIMIZATION): Define.
6361 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
6362 * config/s390/s390-protos.h (optimization_options): Remove.
6363 * config/s390/s390.c (optimization_options): Rename to
6364 s390_option_optimization. Make static. Don't mark size parameter
6365 unused.
6366 (TARGET_OPTION_OPTIMIZATION): Define.
6367 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
6368 * config/sh/sh-protos.h (sh_optimization_options): Remove.
6369 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
6370 (sh_optimization_options): Rename to sh_option_optimization. Make
6371 static. Don't mark parameters unused.
6372 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
6373 * config/spu/spu-protos.h (spu_optimization_options): Remove.
6374 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
6375 (spu_optimization_options): Rename to spu_option_optimization.
6376 Make static.
6377 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
6378 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
6379 (v850_option_optimization): New.
6380 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
6381 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
6382 (xtensa_option_optimization): New.
6383 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
6384
6385 2010-09-16 Joseph Myers <joseph@codesourcery.com>
6386
6387 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
6388 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
6389 * doc/tm.texi: Regenerate.
6390 * system.h (OVERRIDE_OPTIONS): Poison.
6391 * target.def (override): Default to hook_void_void.
6392 * targhooks.c (default_target_option_override): Remove.
6393 * genmodes.c, machmode.def: Update comments mentioning
6394 OVERRIDE_OPTIONS.
6395 * config/alpha/alpha-modes.def: Update comment mentioning
6396 alpha_override_options.
6397 * config/alpha/alpha-protos.h (override_options): Remove.
6398 * config/alpha/alpha.c (override_options): Rename to
6399 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
6400 (TARGET_OPTION_OVERRIDE): Define.
6401 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
6402 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
6403 of OVERRIDE_OPTIONS.
6404 * config/arc/arc-protos.h (arc_init): Remove.
6405 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
6406 (arc_init): Rename to arc_option_override. Make static.
6407 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
6408 (OVERRIDE_OPTIONS): Remove.
6409 * config/arm/arm-protos.h (arm_override_options): Remove.
6410 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
6411 (arm_override_options): Rename to arm_option_override. Make
6412 static. Call SUBTARGET_OVERRIDE_OPTIONS.
6413 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
6414 * config/arm/arm.md: Update comment referring to arm_override_options.
6415 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
6416 instead of OVERRIDE_OPTIONS.
6417 * config/avr/avr-protos.h (avr_override_options): Remove.
6418 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
6419 (avr_override_options): Rename to avr_option_override. Make static.
6420 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
6421 * config/bfin/bfin-protos.h (override_options): Remove (twice).
6422 * config/bfin/bfin.c (override_options): Rename to
6423 bfin_option_override. Make static.
6424 (TARGET_OPTION_OVERRIDE): Define.
6425 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
6426 * config/cris/cris-protos.h (cris_override_options): Remove.
6427 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
6428 (cris_override_options): Rename to cris_option_override. Make static.
6429 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
6430 * config/frv/frv-protos.h (frv_override_options): Remove.
6431 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
6432 (frv_override_options): Rename to frv_option_override. Make static.
6433 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
6434 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
6435 * config/h8300/h8300.c (h8300_init_once): Rename to
6436 h8300_option_override. Make static.
6437 (TARGET_OPTION_OVERRIDE): Define.
6438 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
6439 * config/i386/i386-protos.h (override_options): Remove.
6440 * config/i386/i386.c (override_options): Rename to
6441 ix86_option_override_internal. Make static. Comments referring
6442 to this function and callers changed.
6443 (ix86_option_override): New.
6444 (TARGET_OPTION_OVERRIDE): Define.
6445 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
6446 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
6447 * config/ia64/ia64.c (ia64_file_start): Update comment referring
6448 to ia64_override_options.
6449 * config/iq2000/iq2000-protos.h (override_options): Remove.
6450 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
6451 (override_options): Rename to iq2000_option_override. Make static.
6452 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
6453 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
6454 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
6455 (lm32_override_options): Rename to lm32_option_override. Make static.
6456 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
6457 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
6458 (m32r_option_override): New.
6459 (m32r_init): Update comment.
6460 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
6461 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
6462 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
6463 (m68hc11_override_options): Rename to m68hc11_option_override.
6464 Make static. Return void.
6465 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
6466 * config/m68k/m68k-protos.h (override_options): Remove.
6467 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
6468 (override_options): Rename to m68k_option_override. Make static.
6469 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
6470 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
6471 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
6472 (mcore_override_options): Rename to mcore_option_override. Make
6473 static.
6474 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
6475 * config/mep/mep-protos.h (mep_override_options): Remove.
6476 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
6477 (mep_override_options): Rename to mep_option_override. Make static.
6478 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
6479 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
6480 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
6481 (mmix_override_options): Rename to mmix_option_override. Make static.
6482 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
6483 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
6484 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
6485 (mn10300_override_options): Rename to mn10300_option_override.
6486 Make static.
6487 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
6488 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
6489 * config/moxie/moxie.c (moxie_override_options): Rename to
6490 moxie_option_override. Make static.
6491 (TARGET_OPTION_OVERRIDE): Define.
6492 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
6493 * config/picochip/picochip-protos.h (picochip_override_options):
6494 Remove. Update comment referring to picochip_override_options.
6495 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
6496 (picochip_override_options): Rename to picochip_option_override.
6497 Make static. Update comment and definition of
6498 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
6499 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
6500 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6501 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6502 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6503 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6504 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6505 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
6506 instead of OVERRIDE_OPTIONS.
6507 * config/rs6000/rs6000-modes.def: Update comment referring to
6508 rs6000_override_options.
6509 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
6510 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
6511 (rs6000_override_options): Rename to
6512 rs6000_option_override_internal. Make static. Commented
6513 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
6514 (rs6000_option_override): New.
6515 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
6516 instead of OVERRIDE_OPTIONS.
6517 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6518 * config/s390/s390-protos.h (override_options): Remove.
6519 * config/s390/s390.c (override_options): Rename to
6520 s390_option_override. Make static.
6521 (TARGET_OPTION_OVERRIDE): Define.
6522 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
6523 * config/score/score-protos.h (score_override_options): Remove.
6524 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
6525 (score_override_options): Rename to score_option_override. Make
6526 static.
6527 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
6528 Update comment referring to override_options.
6529 * config/score/score3.c (score3_override_options): Rename to
6530 score3_option_override.
6531 * config/score/score3.h (score3_override_options): Rename to
6532 score3_option_override.
6533 * config/score/score7.c (score7_override_options): Rename to
6534 score7_option_override.
6535 * config/score/score7.h (score7_override_options): Rename to
6536 score7_option_override.
6537 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
6538 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
6539 (sparc_override_options): Rename to sparc_option_override. Make
6540 static. Call SUBTARGET_OVERRIDE_OPTIONS.
6541 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
6542 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
6543 instead of OVERRIDE_OPTIONS.
6544 * config/spu/spu-protos.h (spu_override_options): Remove.
6545 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
6546 (spu_override_options): Rename to spu_option_override. Make
6547 static.
6548 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
6549 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
6550 OVERRIDE_OPTIONS.
6551 * config/vax/vax-protos.h (override_options): Remove.
6552 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
6553 (override_options): Rename to vax_option_override. Make static.
6554 Call SUBTARGET_OVERRIDE_OPTIONS.
6555 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
6556 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
6557 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
6558 * config/xtensa/xtensa-protos.h (override_options): Remove.
6559 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
6560 (override_options): Rename to xtensa_option_override. Make static.
6561 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
6562
6563 2010-09-16 Richard Guenther <rguenther@suse.de>
6564
6565 PR tree-optimization/45623
6566 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
6567 (get_constraint_for_component_ref): If computing a constraint
6568 for the rhs handle type punning through unions.
6569 (get_constraint_for_address_of): Adjust.
6570 (get_constraint_for_1): Likewise.
6571 (get_constraint_for): Likewise.
6572 (get_constraint_for_rhs): New function.
6573 (do_structure_copy): Adjust.
6574 (make_constraint_to): Likewise.
6575 (handle_const_call): Likewise.
6576 (find_func_aliases): Likewise.
6577 (process_ipa_clobber): Likewise.
6578 (create_variable_info_for): Likewise.
6579
6580 2010-09-16 Ira Rosen <irar@il.ibm.com>
6581
6582 * tree-vectorizer.c: Fix documentation.
6583 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
6584 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
6585 is_pattern_stmt_p, is_loop_header_bb_p,
6586 stmt_vinfo_set_inside_of_loop_cost,
6587 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
6588 known_alignment_for_access_p): Likewise.
6589 * tree-vect-loop.c: Fix documentation.
6590 (vect_get_cost): Start function name from new line.
6591 * tree-vect-data-refs.c: Fix documentation.
6592 * tree-vect_stmts.c: Likewise.
6593 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
6594 (vectorizable_store): Free vec_oprnds if allocated.
6595 (vectorizable_condition): Initialize several variables to avoid
6596 warnings.
6597 * tree-vect-slp.c: Fix documentation.
6598
6599 2010-09-16 Richard Guenther <rguenther@suse.de>
6600
6601 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
6602 is TS_TRANSLATION_UNIT_DECL.
6603 (initialize_tree_contains_struct): Adjust.
6604 (all_translation_units): New global vector.
6605 (build_translation_unit_decl): New function.
6606 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
6607 (struct tree_translation_unit_decl): New.
6608 (all_translation_units): Declare.
6609 (union tree_node): Add translation_unit_decl member.
6610 (build_translation_unit_decl): Declare.
6611 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
6612 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
6613 New function.
6614 (pack_value_fields): Call it.
6615 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
6616 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
6617 (lto_output_tree_pointers): Call it.
6618 * lto-streamer-in.c (lto_input_tree_ref): Handle references
6619 to TRANSLATION_UNIT_DECL.
6620 (unpack_ts_translation_unit_decl_value_fields): New function.
6621 (unpack_value_fields): Call it.
6622 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
6623 (lto_input_tree_pointers): Call it.
6624 * lto-streamer.c (check_handled_ts_structures): Adjust.
6625 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
6626 * c-decl.c (all_translation_units): Remove.
6627 (pop_scope): Use build_translation_unit_decl.
6628 (collect_all_refs): Adjust.
6629 (for_each_global_decl): Likewise.
6630 (c_write_global_declarations): Likewise.
6631
6632 2010-09-16 Jakub Jelinek <jakub@redhat.com>
6633
6634 PR bootstrap/45686
6635 * fold-const.c (fold_checksum_tree): Change slot from const void **
6636 to void **, use CONST_CAST_TREE to store into *slot.
6637
6638 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
6639
6640 * config/i386/i386.md: Remove unneeded empty conditions and
6641 preparation statements from expanders.
6642 * config/i386/mmx.md: Ditto.
6643 * config/i386/sse.md: Ditto.
6644
6645 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
6646
6647 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
6648
6649 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
6650
6651 PR rtl-optimization/45593
6652 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
6653 insns that were in delay slots as stand-alone insns.
6654
6655 2010-09-15 Ian Lance Taylor <iant@google.com>
6656
6657 * incpath.c (remove_duplicates): If name is not a directory, issue
6658 a warning rather than an error.
6659
6660 2010-09-15 Martin Jambor <mjambor@suse.cz>
6661
6662 PR middle-end/45644
6663 * tree-sra.c (create_access): Check for bit-fields directly.
6664
6665 2010-09-15 Jakub Jelinek <jakub@redhat.com>
6666
6667 PR tree-optimization/45633
6668 * tree-cfg.c (verify_gimple_assign_binary): Allow
6669 MINUS_EXPR with lhs and rhs1 pointer vector and
6670 rhs2 sizetype vector.
6671 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
6672 or vector pointer use TER to optimize pointer subtraction.
6673
6674 2010-09-15 Jie Zhang <jie@codesourcery.com>
6675
6676 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
6677 fcmpd to fcmps.
6678
6679 2010-09-15 Ian Lance Taylor <iant@google.com>
6680
6681 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
6682
6683 2010-09-15 Ian Lance Taylor <iant@google.com>
6684
6685 * function.c (get_arg_pointer_save_area): Set
6686 arg_pointer_save_area_init to true.
6687
6688 2010-09-15 Martin Jambor <mjambor@suse.cz>
6689
6690 * tree-sra.c (generate_subtree_copies): Updated comment.
6691 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
6692 obtained from the statement iterator instead.
6693 (load_assign_lhs_subreplacements): Removed parameters lhs and
6694 right_offset, which is obtained from top_racc instead. Parameter lacc
6695 is now expected to be the root of the processed tree rather than root's
6696 first child. Updated all callers.
6697
6698 2010-09-15 Joseph Myers <joseph@codesourcery.com>
6699
6700 * config/pdp11/pdp11.c (register_move_cost): Rename to
6701 pdp11_register_move_cost.
6702 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
6703 pdp11_register_move_cost.
6704 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
6705 pdp11_register_move_cost instead of register_move_cost.
6706
6707 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
6708
6709 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
6710 pattern for vmovn. Expansion in case of non
6711 -mvectorize-with-neon-quad.
6712 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
6713 non- -mvectorize-with-neon-quad case.
6714 (move_lo_quad_<mode>): New expansion to vmov into low part.
6715 (move_hi_quad_<mode>): New expansion to vmov into high part.
6716 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
6717 (move_lo_quad_v4sf): Likewise.
6718 (move_lo_quad_v8hi): Likewise.
6719 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
6720 low part.
6721 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
6722 high part.
6723 * config/arm/iterators.md (ANY128): New mode iterator.
6724 (V_narrow_pack): New mode attribute.
6725 (V_HALF): Add attribute.
6726 (V_DOUBLE): Add attribute.
6727 (V_mode_nunits): Add attribute.
6728
6729 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
6730
6731 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
6732 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
6733
6734 2010-09-15 Olivier Hainque <hainque@adacore.com>
6735 Jose Ruiz <ruiz@adacore.com>
6736
6737 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
6738 * config/alpha/osf5-unwind.h: New file.
6739
6740 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6741
6742 PR bootstrap/45672
6743 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
6744 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
6745 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
6746
6747 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6748
6749 * c-lang.h (struct lang_type): Add variable_size GTY option.
6750
6751 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6752
6753 PR bootstrap/45672
6754 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
6755
6756 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6757
6758 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
6759 result isn't used in memory address.
6760
6761 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6762
6763 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
6764 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
6765 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6766 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6767 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6768 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6769
6770 * target.def: Add units_per_simd_word to vectorize.
6771
6772 * targhooks.c (default_units_per_simd_word): New.
6773 * targhooks.h (default_units_per_simd_word): Likewise.
6774 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
6775 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6776 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
6777 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6778 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
6779 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6780 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
6781 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6782
6783 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
6784 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
6785
6786 * tree-vect-stmts.c: Don't include "tm_p.h".
6787 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
6788 with targetm.vectorize.units_per_simd_word.
6789
6790 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
6791
6792 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
6793
6794 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
6795 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
6796
6797 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
6798 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
6799
6800 * doc/tm.texi: Regenerated.
6801
6802 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6803
6804 * tree-vect-stmts.c: Include "tm_p.h".
6805
6806 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
6807 out of RTX_CODE.
6808
6809 2010-09-14 Martin Jambor <mjambor@suse.cz>
6810
6811 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
6812 location of generated statement. Changed all callers.
6813 (build_ref_for_model): New parameter loc which used to set location of
6814 all generated expressions. Changed all callers.
6815 (generate_subtree_copies): Likewise.
6816 (init_subtree_with_zero): Likewise.
6817 (sra_modify_expr): Set locations of all generated statements and
6818 expressions to the location the original statement.
6819 (handle_unscalarized_data_in_subtree): Likewise.
6820 (load_assign_lhs_subreplacements): Likewise.
6821 (sra_modify_constructor_assign): Likewise.
6822 (sra_modify_assign): Likewise.
6823
6824 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
6825
6826 PR target/45277
6827 PR target/45363
6828 PR target/45407
6829 * doc/install.texi (sparc*-*-*): New section.
6830 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
6831
6832 2010-09-14 Jakub Jelinek <jakub@redhat.com>
6833
6834 PR middle-end/45567
6835 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
6836 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
6837 (expand_builtin): Adjust caller.
6838 (expand_builtin_unop): Only use subtarget if it has the right mode.
6839
6840 2010-09-14 Tristan Gingold <gingold@adacore.com>
6841
6842 * configure.ac (plugins): Fix typos.
6843 * configure: Regenerate.
6844
6845 2010-09-14 Jakub Jelinek <jakub@redhat.com>
6846
6847 PR debug/45660
6848 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
6849 gen_type_die for function/method return type.
6850
6851 2010-09-14 Ira Rosen <irar@il.ibm.com>
6852
6853 PR tree-optimization/45470
6854 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6855 can throw an exception.
6856 * tree-vect-stmts.c (vectorizable_call): Likewise.
6857
6858 2010-09-14 DJ Delorie <dj@redhat.com>
6859
6860 PR target/44749
6861 * config/mep/mep-protos.h (mep_save_register_info,
6862 mep_reinit_regs, mep_init_regs): Declare.
6863
6864 * config/mep/mep.c: Move all target definitions to the end of the
6865 file to avoid the need for duplicate declarations.
6866 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
6867 (mep_reorg_erepeat): Remove unused variables.
6868 (mep_expand_builtin): Likewise.
6869
6870 * config/mep/mep-pragma.c: Don't include rtl.h.
6871 (INVALID_REGNUM): New.
6872 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
6873 functions.
6874 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
6875 Avoid enum/integer math.
6876
6877 2010-09-13 Joseph Myers <joseph@codesourcery.com>
6878
6879 PR target/44749
6880 * config/mep/t-mep (GTM_H): Add insn-constants.h.
6881 * config/mep/mep.c (mep_conditional_register_usage): Take no
6882 parameters.
6883 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
6884 prototype.
6885 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
6886 call to mep_conditional_register_usage.
6887
6888 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
6889
6890 PR debug/43937
6891 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
6892 the DECL as well.
6893
6894 2010-09-13 Jakub Jelinek <jakub@redhat.com>
6895
6896 PR rtl-optimization/45617
6897 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
6898 even if low N bits of X aren't known to be zero.
6899
6900 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
6901
6902 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
6903
6904 * config/i386/i386.c (initial_ix86_tune_features): Add
6905 X86_TUNE_VECTORIZE_DOUBLE.
6906 (ix86_units_per_simd_word): New.
6907
6908 * config/i386/i386.h (ix86_tune_indices): Add
6909 X86_TUNE_VECTORIZE_DOUBLE.
6910 (TARGET_VECTORIZE_DOUBLE): New.
6911 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
6912
6913 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
6914
6915 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
6916 (new_temp_expr_table): Allocate call_cnt vector.
6917 (free_temp_expr_table): Free it.
6918 (process_replaceable): Add call_cnt parm and set in vector.
6919 (find_replaceable_in_bb): Skip replacement if def/use span a call.
6920 (debug_ter): Dump call_cnt value, remove stderr uses.
6921
6922 2010-09-13 Jan Hubicka <jh@suse.cz>
6923
6924 * tree.c (build_zero_cst): New.
6925 * tree.h (build_zero_cst): Declare.
6926 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
6927 (get_base_constructor): Break out from ...
6928 (fold_const_aggregate_ref): Here; handle empty constructors.
6929
6930 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6931
6932 * config/arm/arm.md: (define_attr "conds"): Update comment.
6933 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
6934 conds attribute to clob.
6935 (arm_sync_compare_and_swapsi): Likewise.
6936 (arm_sync_compare_and_swap<mode>): Likewise.
6937 (arm_sync_lock_test_and_setsi): Likewise.
6938 (arm_sync_lock_test_and_set<mode>): Likewise.
6939 (arm_sync_new_<sync_optab>si): Likewise.
6940 (arm_sync_new_nandsi): Likewise.
6941 (arm_sync_new_<sync_optab><mode>): Likewise.
6942 (arm_sync_new_nand<mode>): Likewise.
6943 (arm_sync_old_<sync_optab>si): Likewise.
6944 (arm_sync_old_nandsi): Likewise.
6945 (arm_sync_old_<sync_optab><mode>): Likewise.
6946 (arm_sync_old_nand<mode>): Likewise.
6947
6948 2010-09-13 Olivier Hainque <hainque@adacore.com>
6949
6950 * fwprop.c (forward_propagate_and_simplify): Only attach a
6951 REG_EQUAL note to an insn if the destination is a register.
6952 * gcse.c (try_replace_reg): Likewise.
6953
6954 2010-09-13 Richard Guenther <rguenther@suse.de>
6955
6956 PR tree-optimization/45611
6957 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
6958 (copy_ref_info): Likewise.
6959
6960 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
6961
6962 PR debug/45604
6963 PR debug/45419
6964 PR debug/45408
6965 * tree-pretty-print.c (dump_generic_node): Disregard top-level
6966 types of MEM_REF pointer types to the same type.
6967
6968 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
6969
6970 PR rtl-optimization/41087
6971 * ifcvt.c (noce_get_condition): Don't allow conditions with
6972 side-effects.
6973
6974 2010-09-12 Anatoly Sokolov <aesok@post.ru>
6975
6976 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6977 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
6978 * config/frv/frv.c (frv_register_move_cost): Make static. Change
6979 arguments type to reg_class_t. Add mode argument.
6980 (frv_memory_move_cost): New.
6981 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
6982
6983 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
6984
6985 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
6986 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
6987
6988 2010-09-10 Jan Hubicka <jh@suse.cz>
6989
6990 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
6991
6992 2010-09-10 Richard Guenther <rguenther@suse.de>
6993
6994 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
6995 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
6996 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
6997 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
6998 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
6999
7000 2010-09-10 Richard Guenther <rguenther@suse.de>
7001
7002 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
7003 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
7004 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
7005 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
7006
7007 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
7008
7009 PR middle-end/45634
7010 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
7011 of string folding is of integral type.
7012
7013 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
7014
7015 * doc/invoke.texi (-x): Fix typo.
7016
7017 2010-09-10 Richard Guenther <rguenther@suse.de>
7018
7019 PR debug/44115
7020 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
7021 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7022 Output DECL_DEBUG_EXPR.
7023 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7024 Input DECL_DEBUG_EXPR.
7025
7026 2010-09-10 Richard Guenther <rguenther@suse.de>
7027
7028 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
7029 (build_index_type): Implement in terms of build_range_type.
7030 (build_range_type): Do not allow NULL_TREE type, improve
7031 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
7032 if we didn't hash.
7033 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
7034 create a distinct copy of the type.
7035
7036 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
7037
7038 * configure: Regenerated.
7039 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
7040
7041 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7042
7043 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
7044 * config/arm/cortex-a9-neon.md: New and partially generated.
7045 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
7046
7047 2010-09-10 Richard Guenther <rguenther@suse.de>
7048
7049 * tree.h (build_index_2_type): Remove.
7050 * tree.c (build_index_2_type): Remove.
7051
7052 2010-09-10 Jakub Jelinek <jakub@redhat.com>
7053
7054 PR bootstrap/45630
7055 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
7056 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
7057 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
7058
7059 2010-09-10 Martin Jambor <mjambor@suse.cz>
7060
7061 PR tree-optimization/44972
7062 * tree-sra.c: Include toplev.h.
7063 (build_ref_for_offset): Entirely reimplemented.
7064 (build_ref_for_model): New function.
7065 (build_user_friendly_ref_for_offset): New function.
7066 (analyze_access_subtree): Removed build_ref_for_offset check.
7067 (propagate_subaccesses_across_link): Likewise.
7068 (create_artificial_child_access): Use
7069 build_user_friendly_ref_for_offset.
7070 (propagate_subaccesses_across_link): Likewise.
7071 (ref_expr_for_all_replacements_p): Removed.
7072 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
7073 (sra_modify_expr): Use build_ref_for_model.
7074 (load_assign_lhs_subreplacements): Likewise.
7075 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
7076 checks for return values of build_ref_for_offset.
7077 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
7078 build_ref_for_offset.
7079 * ipa-prop.h: Include gimple.h
7080 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
7081 (ipa_analyze_indirect_call_uses): Update comment.
7082 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
7083 (IPA_PROP_H): Likewise.
7084
7085 2010-09-10 Martin Jambor <mjambor@suse.cz>
7086
7087 PR tree-optimization/44972
7088 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
7089 calling build_ref_for_offset.
7090
7091 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7092
7093 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
7094 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
7095 * config/arm/arm-tune.md: Regenerate.
7096 * doc/invoke.texi (ARM Options): Document it.
7097
7098 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
7099
7100 * config/i386/i386.c: Include sched-int.h.
7101 (TARGET_SCHED_DISPATCH): Defined.
7102 (TARGET_SCHED_DISPATCH_DO): Defined.
7103 (DISPATCH_WINDOW_SIZE): Defined.
7104 (MAX_DISPATCH_WINDOWS): Defined.
7105 (MAX_INSN): Defined.
7106 (MAX_IMM): Defined.
7107 (MAX_IMM_SIZE): Defined.
7108 (MAX_IMM_32): Defined.
7109 (MAX_IMM_64): Defined.
7110 (MAX_LOAD): Defined.
7111 (MAX_STORE): Defined.
7112 (BIG): Defined.
7113 (dispatch_group): New.
7114 (num_allowable_groups): New.
7115 (group_name): New.
7116 (sched_insn_info_s): New.
7117 (dispatch_windows_s): New.
7118 (imm_info_s): New.
7119 (dispatch_window_list): New.
7120 (dispatch_window_list1): New.
7121 (get_mem_group): New.
7122 (is_cmp): New.
7123 (dispatch_violation): New.
7124 (is_branch): New.
7125 (is_prefetch): New.
7126 (init_window): New.
7127 (allocate_window): New.
7128 (init_dispatch_sched): New.
7129 (is_end_basic_block): New.
7130 (process_end_window): New.
7131 (allocate_next_window): New.
7132 (find_constant_1): New.
7133 (find_constant): New.
7134 (get_num_immediates): New.
7135 (has_immediate): New.
7136 (get_insn_path): New.
7137 (get_insn_group): New.
7138 (count_num_restricted): New.
7139 (fits_dispatch_window): New.
7140 (add_insn_window): New.
7141 (add_to_dispatch_window): New.
7142 (debug_dispatch_window_file): New.
7143 (debug_dispatch_window): New.
7144 (debug_insn_dispatch_info_file): New.
7145 (debug_ready_dispatch): New.
7146 (do_dispatch): New.
7147 (has_dispatch): New.
7148 * config/i386/i386.h (debug_ready_dispatch): Declared.
7149 (debug_dispatch_window): Declared.
7150 * config/i386/i386.opt (mdispatch-scheduler): New flag.
7151 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
7152 (TARGET_SCHED_DISPATCH_DO): New.
7153 * doc/tm.texi: Regererated.
7154 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
7155 ready_remove_first_dispatch
7156 (schedule_block): Call targetm.sched.dispatch and
7157 targetm.sched.dispatch_do.
7158 (sched_init): Call targetm.sched.dispatch and
7159 targetm.sched.dispatch_do.
7160 (ready_remove_first_dispatch): New.
7161 (number_in_ready): New.
7162 (get_ready_element): New.
7163 * hooks.c (hook_bool_rtx_int_false): New.
7164 (hook_void_rtx_int): New.
7165 * hooks.h (hook_bool_rtx_int_false): Declared.
7166 (hook_void_rtx_int): Declared.
7167 * sched-int.h (IS_DISPATCH_ON): Defined.
7168 (IS_CMP): Defined.
7169 (DISPATCH_VIOLATION): Defined.
7170 (FITS_DISPATCH_WINDOW): Defined.
7171 (DISPATCH_INIT): Defined.
7172 (ADD_TO_DISPATCH_WINDOW): Defined.
7173 (get_ready_element): Declared.
7174 (number_in_ready): Declared.
7175 * target.def (dispatch): Defined.
7176 (dispatch_do): Defined.
7177
7178 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7179
7180 PR middle-end/45312
7181 * reload1.c (merge_assigned_reloads): Remove.
7182 (reload_as_needed): Don't call it.
7183
7184 2010-09-09 Anatoly Sokolov <aesok@post.ru>
7185
7186 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
7187 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7188 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7189
7190 2010-09-09 Matthias Klose <doko@ubuntu.com>
7191
7192 PR bootstrap/43847
7193 * configure.ac (--enable-plugin): Enhance for cross builds.
7194 * configure: Regenerate.
7195
7196 2010-09-09 Jan Hubicka <jh@suse.cz>
7197
7198 PR tree-optimization/45598
7199 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
7200 string folding is of integral type.
7201
7202 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
7203
7204 * configure.ac (gnu_indirect_function): New test.
7205 * configure: Rebuilt.
7206 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
7207 * defaults.h (IFUNC_ASM_TYPE): Provide default.
7208
7209 * doc/extend.texi (Function Attributes): Document ifunc.
7210 * varasm.c (do_assemble_alias): Deal with ifuncs too.
7211
7212 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
7213
7214 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
7215 epilogue instruction move.
7216
7217 2010-09-09 Jan Hubicka <jh@suse.cz>
7218
7219 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
7220 command line to allow more partitions than input files.
7221
7222 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7223
7224 PR middle-end/44554
7225 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
7226
7227 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7228
7229 PR middle-end/40386
7230 * ira.c (pseudo_for_reload_consideration_p): Don't use
7231 flag_ira_share_spill_slots.
7232
7233 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7234
7235 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
7236 point zero operands that fit into a single GPR.
7237 (s390_preferred_reload_class): Ensure we only return general-purpose
7238 register classes.
7239 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
7240 floating-point zero operands into GPRs.
7241 ("*mov<mode>_64"): Likewise.
7242 ("mov<mode>"): Likewise using lhi.
7243
7244 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7245
7246 * config/s390/s390.c (s390_symref_operand_p): Return false for
7247 literal pool references.
7248 (s390_check_qrst_address): Update caller.
7249
7250 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
7251
7252 * config/i386/predicates.md (ext_register_operand): Check that
7253 SUBREG_REG is really a register before looking for REGNO.
7254 (reg_not_xmm0_operand): Handle SUBREGs correctly.
7255 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
7256
7257 2010-09-09 Jakub Jelinek <jakub@redhat.com>
7258
7259 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
7260 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
7261 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
7262 * print-rtl.c (print_rtx): Likewise.
7263 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7264 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
7265 for ADDR_EXPR with non-addressable object.
7266 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
7267 (struct dw_val_struct): Add v.val_decl_ref.
7268 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
7269 Handle DW_OP_GNU_implicit_pointer.
7270 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
7271 (get_ref_die_offset_label): New function.
7272 (implicit_ptr_descriptor): New function.
7273 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
7274 (loc_descriptor): Likewise.
7275 (gen_variable_die): Put even definitions into decl_die_table.
7276 (resolve_addr_in_expr): Resolve still unresolved
7277 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
7278 return false.
7279 (dwarf2out_finish): Call output_location_lists after outputting
7280 .debug_info and .debug_abbrev instead of before.
7281
7282 2010-09-09 Roland McGrath <roland@redhat.com>
7283
7284 * dwarf2out.c (DWARF_REF_SIZE): Define.
7285 (size_of_loc_descr): Use it for DW_OP_call_ref.
7286
7287 2010-09-09 Alan Modra <amodra@gmail.com>
7288
7289 * doc/invoke.text: Reinstate mcmodel=medium.
7290 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7291 CMODEL_MEDIUM as default.
7292 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
7293 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
7294 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
7295 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
7296
7297 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7298
7299 PR target/45250
7300 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
7301 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
7302 (builtin_longjmp): Likewise.
7303 (allocate_stack): Use hard_frame_pointer_rtx instead of
7304 frame_pointer_rtx.
7305 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
7306 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
7307 (pa_can_eliminate): Likewise.
7308 (TARGET_INTERNAL_ARG_POINTER): Define.
7309 (TARGET_CAN_ELIMINATE): Define.
7310 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
7311 pointer.
7312 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
7313 (pa_internal_arg_pointer, pa_can_eliminate,
7314 pa_initial_elimination_offset): New.
7315 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
7316 (HARD_FRAME_POINTER_REGNUM): Set to register three.
7317 (INITIAL_FRAME_POINTER_OFFSET): Delete.
7318 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
7319 Define.
7320 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
7321 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
7322 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
7323 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
7324 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
7325 new soft frame pointer.
7326 * config/pa/pa64-regs.h: Likewise.
7327
7328 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
7329
7330 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
7331 numerical constant.
7332 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
7333
7334 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
7335
7336 PR debug/45531
7337 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
7338
7339 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
7340
7341 PR debug/45419
7342 PR debug/45408
7343 * tree-pretty-print.c (dump_generic_node): Disregard top-level
7344 qualifiers in otherwise equal MEM_REF pointer types.
7345 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
7346 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
7347
7348 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7349
7350 PR target/44392
7351 * config/arm/arm.md (bswapsi2): Handle condition correctly
7352 for armv6 and optimize_size.
7353
7354 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7355
7356 PR other/18555
7357 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
7358
7359 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
7360
7361 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
7362 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
7363 ix86_expand_strlen, legitimate_pic_address_disp_p,
7364 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
7365 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
7366 ix86_check_movabs, ix86_secondary_memory_needed): Change function
7367 prototype to bool.
7368 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
7369 return_in_memory_ms_64, ix86_check_movabs,
7370 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
7371 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
7372 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
7373 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
7374 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
7375 ix86_secondary_memory_needed): Change to bool. Return
7376 "true" and "false" values.
7377 * config/i386/i386.md: Return "true" and "false" values.
7378
7379 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7380
7381 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7382 run_expensive_tests.
7383
7384 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7385
7386 * toplev.c (output_stack_usage): Use lbasename instead of basename.
7387
7388 2010-09-08 Martin Jambor <mjambor@suse.cz>
7389
7390 PR other/45443
7391 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
7392 at -O3.
7393
7394 2010-09-08 Richard Guenther <rguenther@suse.de>
7395
7396 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
7397 (visit): Adjust.
7398 (iterative_hash_gimple_type): Likewise.
7399 (gimple_type_hash): Likewise.
7400 (gimple_register_type): Likewise.
7401 (print_gimple_types_stats): Likewise.
7402 (free_gimple_type_tables): Likewise.
7403
7404 2010-09-08 Michael Matz <matz@suse.de>
7405
7406 PR tree-optimization/43430
7407 * tree-vect-stmts.c (vectorizable_condition): Support multiple
7408 copies for conditional statements if it's not part of a reduction.
7409
7410 2010-09-08 Michael Matz <matz@suse.de>
7411
7412 PR tree-optimization/33244
7413 * tree-ssa-sink.c (statement_sink_location): Don't sink into
7414 empty loop latches.
7415
7416 2010-09-08 Richard Guenther <rguenther@suse.de>
7417
7418 PR tree-optimization/45578
7419 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
7420 Be more careful when transfering alignment information to
7421 the new induction variable.
7422 (copy_ref_info): Likewise.
7423
7424 2010-09-08 Richard Guenther <rguenther@suse.de>
7425
7426 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
7427 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
7428
7429 2010-09-08 Arnaud Charlet <charlet@adacore.com>
7430
7431 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
7432 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
7433
7434 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7435
7436 PR doc/45587
7437 * doc/md.texi: Fixed modes on several standard pattern names.
7438
7439 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
7440
7441 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
7442 (ashl<mode>3): ...this.
7443 (loongson_psra<V_suffix>): Rename to...
7444 (ashr<mode>3): ...this.
7445 (loongson_psrl<V_suffix>): Rename to...
7446 (lshr<mode>3): ...this.
7447 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
7448 (CODE_FOR_loongson_psllw): Define.
7449 (CODE_FOR_loongson_psrlh): Define.
7450 (CODE_FOR_loongson_psrlw): Define.
7451 (CODE_FOR_loongson_psrah): Define.
7452 (CODE_FOR_loongson_psraw): Define.
7453
7454 2010-09-07 Richard Henderson <rth@redhat.com>
7455
7456 * tree-vect-data-refs.c: Include tm_p.h.
7457 * Makefile.in (tree-vect-data-refs.o): Update deps.
7458 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
7459 Move delarations outside #ifdef RTX_CODE.
7460
7461 2010-09-07 Richard Henderson <rth@redhat.com>
7462
7463 * final.c (rest_of_handle_final): Unconditionally do
7464 output_function_exception_table before assemble_end_function.
7465
7466 2010-09-07 Jan Hubicka <jh@suse.cz>
7467
7468 * tree-inline.c (tree_inlinable_function_p): Do not test
7469 DECL_REPLACEABLE_P.
7470 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
7471 update_callee_keys, cgraph_decide_inlining): Test function availability.
7472 * cif-code.def (OVERWRITABLE): New code.
7473
7474 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
7475 Jack Howarth <howarth@bromo.med.uc.edu>
7476
7477 PR target/36502
7478 PR target/42313
7479 PR target/44651
7480 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
7481 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
7482 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
7483 MAX macro.
7484
7485 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7486
7487 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
7488 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
7489
7490 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7491
7492 * config.gcc: Don't append t-android for Android targets.
7493
7494 * config/t-android: Removed.
7495
7496 2010-09-07 Richard Henderson <rth@redhat.com>
7497
7498 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
7499 * doc/tm.texi.in: Add doc marker.
7500 * doc/tm.texi: Rebuild.
7501 * except.c (switch_to_exception_section): Always build.
7502 (output_one_function_exception_table): Move section switch,
7503 personality output, and label output ...
7504 (output_function_exception_table): ... here. Use the new
7505 personality hook.
7506
7507 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
7508 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
7509 TARGET_ASM_INIT_SECTIONS): New.
7510 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
7511 make static.
7512 (TARGET_ASM_UNWIND_EMIT): Update to match.
7513 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
7514
7515 * config/arm/arm.c (arm_asm_emit_except_personality): New.
7516 (arm_asm_init_sections): New.
7517 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
7518
7519 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7520
7521 * config/arm/arm.md: Remove unused variable.
7522
7523 2010-09-07 Anatoly Sokolov <aesok@post.ru>
7524
7525 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7526 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
7527 (m32r_memory_move_cost): New function.
7528
7529 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7530
7531 * config.gcc: Append t-android for Android targets.
7532
7533 * config/t-android: New.
7534
7535 2010-09-07 Richard Henderson <rth@redhat.com>
7536
7537 * target.def (unwind_emit_before_insn): New hook.
7538 * doc/tm.texi.in: Add @hook marker for it.
7539 * doc/tm.texi: Rebuild.
7540 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
7541
7542 2010-09-07 Martin Jambor <mjambor@suse.cz>
7543
7544 PR fortran/43665
7545 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
7546 are any type attributes.
7547
7548 2010-09-07 Jan Hubicka <jh@suse.cz>
7549
7550 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
7551 array_ref_low_bound in string access folding.
7552
7553 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
7554
7555 PR target/45206
7556 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
7557 eh_return fixup sequence.
7558
7559 2010-09-07 Jan Hubicka <jh@suse.cz>
7560
7561 * gimple-fold.c (maybe_fold_reference): Verify that operand is
7562 gimple_min_invariant.
7563
7564 2010-09-07 Richard Guenther <rguenther@suse.de>
7565
7566 PR middle-end/45569
7567 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
7568 nor CONSTRUCTOR can trap.
7569 * tree-complex.c (update_complex_assignment): Update EH info.
7570
7571 2010-09-07 Richard Guenther <rguenther@suse.de>
7572
7573 PR middle-end/45569
7574 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
7575 * passes.c (execute_function_todo): Do not verify anything if
7576 we saw errors.
7577
7578 2010-09-07 Richard Guenther <rguenther@suse.de>
7579
7580 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
7581
7582 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
7583
7584 PR target/43137
7585 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
7586 New define_mode_attrs.
7587 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
7588 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
7589 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
7590 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
7591 Remove pool_range attribute.
7592 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
7593 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
7594 pool_range and neg_pool_range attributes.
7595 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
7596 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
7597 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
7598
7599 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
7600
7601 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
7602 check glibc.
7603
7604 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
7605
7606 PR target/22152
7607 * config/i386/mmx.md (*mov<mode>_internal_rex64,
7608 *mov<mode>_internal_avx, *mov<mode>_internal,
7609 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
7610 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
7611
7612 2010-09-06 Mark Mitchell <mark@codesourcery.com>
7613
7614 * c-typeck.c (do_warn_double_promotion): Remove.
7615 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
7616 Objective-C++ too.
7617
7618 2010-09-06 Anatoly Sokolov <aesok@post.ru>
7619
7620 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
7621 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
7622 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
7623 argument type to reg_class_t. Change result type to bool.
7624 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7625
7626 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
7627
7628 PR libobjc/19850
7629 * gthr-posix.h (__gthread_objc_thread_detach): Use
7630 _objc_thread_attribs when detaching a thread.
7631 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
7632
7633 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
7634
7635 PR target/45524
7636 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
7637 * configure: Regenerated.
7638
7639 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7640
7641 * combine.c (try_combine): Set subst_low_luid to i0.
7642
7643 2010-09-06 Richard Guenther <rguenther@suse.de>
7644
7645 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
7646 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
7647 (build_aligned_type): Declare.
7648 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
7649 (check_aligned_type): New function.
7650 (build_aligned_type): Likewise.
7651 * expr.c (expand_assignment): Handle misaligned stores via
7652 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
7653 (expand_expr_real_1): Likewise.
7654 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
7655 * tree-vect-stmts.c (vectorizable_store): Do not build
7656 MISALIGNED_INDIRECT_REF but initialize alignment information.
7657 (vectorizable_load): Likewise.
7658 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
7659 handling.
7660 * cfgexpand.c (expand_debug_expr): Likewise.
7661 * dwarf2out.c (loc_list_from_tree): Likewise.
7662 * fold-const.c (maybe_lvalue_p): Likewise.
7663 (operand_equal_p): Likewise.
7664 (build_fold_addr_expr_with_type_loc): Likewise.
7665 * gimplify.c (gimplify_addr_expr): Likewise.
7666 (gimplify_expr): Likewise.
7667 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
7668 (verify_gimple_assign_single): Likewise.
7669 * tree-dump.c (dequeue_and_dump): Likewise.
7670 (tree_could_trap_p): Likewise.
7671 * tree-predcom.c (ref_at_iteration): Likewise.
7672 * tree-pretty-print.c (dump_generic_node): Likewise.
7673 (op_code_prio): Likewise.
7674 (op_symbol_code): Likewise.
7675 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
7676 * tree-ssa-loop-im.c (for_each_index): Likewise.
7677 (gen_lsm_tmp_name): Likewise.
7678 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
7679 (find_interesting_uses_address): Likewise.
7680 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
7681 * tree-ssa-operands.c (get_expr_operands): Likewise.
7682 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7683 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7684 (ao_ref_init_from_vn_reference): Likewise.
7685 * tree.c (staticp): Likewise.
7686 (build1_stat): Likewise.
7687 (reference_alias_ptr_type): Likewise.
7688 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7689 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
7690 MISALIGNED_INDIRECT_REF handling.
7691
7692 2010-09-06 Richard Guenther <rguenther@suse.de>
7693
7694 PR tree-optimization/45534
7695 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
7696 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
7697 on the target.
7698 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
7699 valid on the target.
7700
7701 2010-09-06 Andreas Schwab <schwab@redhat.com>
7702
7703 * configure.ac: Quote argument of AC_MSG_WARN.
7704 * configure: Regenerate.
7705
7706 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
7707
7708 * sel-sched.c (move_cond_jump): Correct arguments to
7709 maybe_tidy_empty_bb.
7710 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
7711
7712 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
7713
7714 PR rtl-optimization/44919
7715 * sel-sched.c (move_cond_jump): Remove assert, check that
7716 the several blocks case can only happen with mutually exclusive
7717 insns instead. Rewrite the movement code to support moving through
7718 several basic blocks.
7719
7720 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
7721
7722 * config/i386/i386.md (iptrsize): New mode attribute.
7723 (tp_seg): Ditto.
7724 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
7725 mode iterator.
7726 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
7727 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
7728 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
7729 (stack_tls_protect_set_<mode>): Ditto from
7730 stack_tls_protect_set_{si,di}. Use %@ to output segment register
7731 of thread base pointer load.
7732 (stack_tls_protect_test_<mode>): Ditto from
7733 stack_tls_protect_test_{si,di}. Use %@ to output segment register
7734 of thread base pointer load.
7735 (stack_protect_set): Rewrite using indirect functions.
7736 (stack_protect_test): Ditto.
7737 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
7738 (ix86_print_operand): Handle '@'.
7739
7740 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
7741
7742 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
7743 MINUS_EXPR.
7744
7745 2010-09-05 Mark Mitchell <mark@codesourcery.com>
7746
7747 * doc/invoke.texi: Document -Wdouble-promotion.
7748 * c-typeck.c (convert_arguments): Check for implicit conversions
7749 from float to double.
7750 (do_warn_double_promotion): New function.
7751 (build_conditional_expr): Use it.
7752 (build_binary_op): Likewise.
7753
7754 2010-09-05 Richard Guenther <rguenther@suse.de>
7755
7756 PR tree-optimization/45535
7757 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
7758 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
7759 dereferencing it.
7760 (indirect_refs_may_alias_p): Likewise.
7761
7762 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
7763
7764 * config/sh/sh.c (sh_option_override): Make static.
7765 Adjust comments. Declare.
7766 (sh_function_value_regno_p): Likewise.
7767 (sh_register_move_cost): Modify the arguments, make static.
7768 Adjust comments. Declare.
7769 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
7770 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7771 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
7772 REGISTER_MOVE_COST): Delete.
7773 * config/sh/sh-protos.h (sh_override_options): Delete.
7774 (sh_register_move_cost): Delete.
7775 (sh_function_value_regno_p): Delete.
7776
7777 2010-09-04 Anatoly Sokolov <aesok@post.ru>
7778
7779 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
7780 m32r_function_value_regno_p): New functions.
7781 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7782 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
7783 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
7784 FUNCTION_VALUE_REGNO_P): Remove.
7785
7786 2010-09-04 Jan Hubicka <jh@suse.cz>
7787
7788 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
7789 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
7790 fold_read_from_constant_string.
7791
7792 * gimple.h (canonicalize_constructor_val): Declare.
7793 * gimple-fold.c (canonicalize_constructor_val): New function.
7794 (get_symbol_constant_value):Use it.
7795 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
7796
7797 2010-09-04 Jan Hubicka <jh@suse.cz>
7798
7799 * tree-switch-conversion.c (build_one_array): Set constructor to be
7800 static.
7801 * varpool.c (varpool_finalize_decl): Compute const_value_known.
7802
7803 2010-09-04 Richard Guenther <rguenther@suse.de>
7804
7805 PR bootstrap/45519
7806 * tree-flow.h (force_gimple_operand_1): Declare.
7807 (force_gimple_operand_gsi_1): Likewise.
7808 * gimplify.c (force_gimple_operand_1): New worker taking a
7809 gimple predicate for ...
7810 (force_gimple_operand): ... which now wraps it.
7811 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
7812 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
7813 last change.
7814 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
7815 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
7816 (create_mem_ref): Likewise.
7817
7818 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
7819
7820 * config/i386/predicates.md (sse_reg_operand): New predicate.
7821 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
7822 predicate for operand 1.
7823 (XFmode push splitter): Use fp_register_operand predicate
7824 for operand 1.
7825 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
7826 (SF-DF float_extend push splitter): Add reload_completed insn
7827 predicate.
7828 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
7829 MODEF mode macro. Add reload_completed insn predicate.
7830
7831 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
7832
7833 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
7834 (struct df_extract_ref): Remove.
7835 (union df_ref_d): Remove extract_ref member.
7836 (df_ref_create): Remove last three arguments.
7837 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
7838 * df-scan.c (df_ref_record): Remove last three arguments, do not
7839 pass them to df_ref_create_structure.
7840 (df_uses_record): Remove first and last three arguments. Replace
7841 first argument with DF_REF_REGULAR, adjust calls to remove the
7842 width, offset and mode. Always call recursively on the second
7843 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
7844 (df_ref_create_structure): Remove first argument.
7845 (struct df_scan_problem_data): Remove ref_extract_pool.
7846 (df_scan_free_internal): Do not free it.
7847 (df_scan_alloc): Do not allocate it.
7848 (df_ref_create): Remove last three arguments, do not pass them to
7849 df_ref_create_structure.
7850 (df_free_ref): Remove DF_REF_EXTRACT case.
7851 (df_notes_rescan): Adjust call to df_uses_record.
7852 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
7853 Remove DF_REF_EXTRACT case.
7854 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
7855 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
7856 and SUBREG definitions.
7857 (df_get_conditional_uses): Remove references to width/offset/mode,
7858 adjust call to df_ref_create_structure.
7859 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
7860 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
7861 calls to df_uses_record and df_ref_record.
7862 * fwprop.c (update_df): Remove references to width/offset/mode,
7863 adjust call to df_ref_create.
7864
7865 2010-09-03 Jan Hubicka <jh@suse.cz>
7866
7867 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
7868 (build_cdtor_fns): Update use of build_cdtor.
7869
7870 2010-09-03 Joseph Myers <joseph@codesourcery.com>
7871
7872 * doc/options.texi (SeparateAlias): Document.
7873 * opt-functions.awk (switch_flags): Handle SeparateAlias.
7874 * opth-gen.awk: Generate enumeration names for options marked
7875 SeparateAlias, but not for those marked Ignore.
7876 * opts-common.c (generate_canonical_option): Don't output separate
7877 argument for options marked CL_SEPARATE_ALIAS.
7878 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
7879 * opts.h (CL_SEPARATE_ALIAS): New.
7880 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
7881 CL_COMMON): Adjust definitions.
7882 * config/i386/darwin.opt, config/mips/sde.opt: New.
7883 * common.opt (fdump-final-insns): New.
7884 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7885 i386/darwin.opt.
7886 (mips*-sde-elf*): Add mips/sde.opt.
7887 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
7888 -mno-data-in-code and -mcode-xonly here.
7889 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
7890 * gcc.c (option_map): Add "j" to --dump entry.
7891 (translate_options): Don't translate -d to -foutput-class-dir= here.
7892
7893 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
7894
7895 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
7896 DR_IS_WRITE.
7897 (compute_all_dependences): Same.
7898 (create_rdg_edge_for_ddr): Same.
7899 * tree-data-ref.h (DR_IS_WRITE): New.
7900 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
7901 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
7902 (write_memrefs_written_at_least_once): Same.
7903 * tree-predcom.c (suitable_component_p): Same.
7904 (determine_roots_comp): Same.
7905 (execute_load_motion): Same.
7906 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
7907 (vect_enhance_data_refs_alignment): Same.
7908 (vect_analyze_group_access): Same.
7909
7910 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
7911
7912 PR testsuite/42843
7913 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
7914 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
7915
7916 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
7917
7918 * dwarf2out.c (file scope): Remove #if0'd code.
7919 (gen_subprogram_die): Same.
7920
7921 2010-09-03 Jakub Jelinek <jakub@redhat.com>
7922
7923 PR middle-end/45484
7924 * dwarf2out.c (flush_queued_reg_saves): Rename to...
7925 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
7926 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
7927 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
7928 * config/i386/i386.c (output_set_got): Call it.
7929
7930 2010-09-03 Michael Matz <matz@suse.de>
7931
7932 PR middle-end/45415
7933 * tree-sra.c (sra_modify_assign): If we modify the statement,
7934 say so.
7935
7936 * tree-ssa.c (verify_ssa): Check number of operands and links
7937 per statement to agree.
7938
7939 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
7940 Iain Sandoe <iains@gcc.gnu.org>
7941
7942 PR target/45476
7943 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
7944 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
7945 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
7946
7947 2010-09-03 Richard Guenther <rguenther@suse.de>
7948
7949 * lto-streamer-out.c (output_function): Output function
7950 start and end loci.
7951 * lto-streamer-in.c (input_function): Input function start
7952 and end loci.
7953
7954 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7955
7956 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
7957 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
7958 * configure: Regenerate.
7959 * aclocal.m4: Regenerate.
7960
7961 2010-09-03 Jan Hubicka <jh@suse.cz>
7962
7963 PR lto/44812
7964 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
7965 on functions/variables in other partition.
7966
7967 2010-09-03 Jan Hubicka <jh@suse.cz>
7968
7969 * cgraph.h (struct varpool_node): Add const_value_known.
7970 (varpool_decide_const_value_known): Declare.
7971 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
7972 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
7973 (input_varpool_node): Restore const_value_known.
7974 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
7975 initializer folding.
7976 * ipa.c (ipa_discover_readonly_nonaddressable_var,
7977 function_and_variable_visibility): Compute const_value_known.
7978 * gimple-fold.c (get_symbol_constant_value): Use varpool for
7979 initializer folding.
7980 * varpool.c (varpool_decide_const_value_known): New function.
7981
7982 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
7983
7984 * config/i386/i386.md: Remove empty preparation statements
7985 from splitters.
7986
7987 2010-09-03 Jan Hubicka <jh@suse.cz>
7988
7989 * passes.c (rest_of_decl_compilation): Do not add local vars into
7990 varpool.
7991 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
7992 static or extern vars are in varpool.
7993 (varpool_finalize_decl): Sanity check that only static vars are
7994 finalized.
7995
7996 2010-09-03 Jakub Jelinek <jakub@redhat.com>
7997
7998 PR debug/45500
7999 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
8000 not just generic vectors with BLKmode.
8001
8002 2010-09-03 Richard Guenther <rguenther@suse.de>
8003
8004 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
8005 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
8006 * tree.h (TMR_SYMBOL): Remove.
8007 (TMR_BASE, TMR_OFFSET): Adjust.
8008 (TMR_INDEX2): New.
8009 * alias.c (ao_ref_from_mem): Use TMR_BASE.
8010 * builtins.c (get_object_alignment): Merge TMR_BASE and
8011 TMR_SYMBOL handling.
8012 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
8013 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
8014 handling. Also allow TARGET_MEM_REF as base address.
8015 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
8016 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
8017 base. Gimplify TMR_INDEX2.
8018 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
8019 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8020 (get_addr_base_and_unit_offset): Likewise.
8021 * tree-eh.c (tree_could_trap_p): Likewise.
8022 * tree-pretty-print.c (dump_generic_node): Likewise.
8023 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
8024 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
8025 base to index2.
8026 (get_address_description): Reconstruct addres description
8027 from merged TMR_BASE and TMR_INDEX2.
8028 (maybe_fold_tmr): Fold propagated addresses.
8029 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
8030 MEM_REF and TARGET_MEM_REF paths.
8031 (indirect_refs_may_alias_p): Likewise.
8032 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
8033 instead of TMR_SYMBOL.
8034 * tree-ssa-operands.c (get_tmr_operands): Simplify.
8035 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
8036 according to changes ...
8037 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
8038 Split TARGET_MEM_REF into two fields plus the base.
8039 * tree.c (mem_ref_offset): Simplify.
8040 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
8041 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
8042 Strip NOPs when folding MEM_REF addresses.
8043 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
8044 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
8045 (fold_gimple_assign): ... not here.
8046
8047 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
8048
8049 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
8050 * config/mips/mips.c (mips_shift_truncation_mask): New function.
8051 (TARGET_SHIFT_TRUNCATION_MASK): Define.
8052
8053 2010-09-02 Richard Henderson <rth@redhat.com>
8054
8055 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
8056 instead of readelf in the test.
8057 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
8058 in the .debug_frame section for coff targets.
8059 * configure: Rebuild.
8060
8061 2010-09-02 Anatoly Sokolov <aesok@post.ru>
8062
8063 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
8064 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
8065 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8066 (m32c_class_likely_spilled_p): Make static. Change argument type to
8067 reg_class_t. Change result type to bool.
8068
8069 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8070
8071 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
8072 to convert (double)(long) into a single FRIZ instruction or not
8073 when -ffast-math is used.
8074
8075 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
8076 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
8077 or FRIZ instruction if -ffast-math.
8078 * config/rs6000/rs6000.md (friz): Ditto.
8079
8080 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
8081
8082 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8083
8084 * opth-gen.awk (quote, comma): Remove unused variables.
8085
8086 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
8087
8088 * arm.c (arm_override_options): Correct fall-back code to use
8089 SUBTARGET_CPU_DEFAULT.
8090
8091 2010-09-02 Julian Brown <julian@codesourcery.com>
8092
8093 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
8094 unspecs.
8095 (vcond<mode>, vcondu<mode>): New expanders.
8096 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
8097 comparisons with zero.
8098 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
8099 * config/arm/constraints.md (Dz): New constraint.
8100
8101 2010-09-02 Anatoly Sokolov <aesok@post.ru>
8102
8103 * target.def (class_likely_spilled_p): New hook.
8104 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
8105 * doc/tm.texi: Regenerate.
8106 * targhooks.c (default_class_likely_spilled_p): New function.
8107 * targhooks.h (default_class_likely_spilled_p): Declare.
8108 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
8109 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
8110 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
8111 Use fixed_reg_set instead of fixed_regs.
8112 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8113 * calls.c (avoid_likely_spilled_reg): Ditto.
8114 * ira-conflicts.c (ira_build_conflicts): Ditto.
8115 * ira.c (update_equiv_regs): Ditto.
8116 * mode-switching.c (create_pre_exit): Ditto.
8117 * regmove.c (find_matches): Ditto.
8118 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8119 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
8120 (small_register_class_p): New inline function.
8121 (push_secondary_reload, find_reusable_reload, find_reloads): Use
8122 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
8123
8124 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
8125 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
8126 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8127
8128 2010-09-02 Richard Guenther <rguenther@suse.de>
8129
8130 PR tree-optimization/44937
8131 PR tree-optimization/45412
8132 * ipa-split.c (split_function): Properly remove PHI nodes.
8133
8134 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8135
8136 * opts.h (struct cl_option): Add warn_message field.
8137 (struct cl_decoded_option): Add warn_message field.
8138 * doc/options.texi (Ignore, Warn): Document.
8139 * opt-functions.awk (needs_state_p): Don't consider aliases or
8140 ignored options to need state saved.
8141 * optc-gen.awk: Handle Warn and Ignore.
8142 * opth-gen.awk: Output OPT_SPECIAL_ignore.
8143 * opts-common.c (decode_cmdline_option): Set warn_message field.
8144 Handle ignored options.
8145 (decode_cmdline_options_to_array, generate_option,
8146 generate_option_input_file): Set warn_message field.
8147 (read_cmdline_option): Generate warnings from warn_message field.
8148 Handle ignored options.
8149 * common.opt (Wunreachable-code, fargument-alias,
8150 fargument-noalias, fargument-noalias-global,
8151 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
8152 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
8153 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
8154 ftree-salias): Mark Ignore.
8155 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
8156 -mintel-syntax and -mno-intel-syntax here.
8157 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
8158 using Warn.
8159 * opts.c (common_handle_option): Don't handle options marked as
8160 ignored.
8161 (enable_warning_as_error): Handle ignored options.
8162
8163 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8164
8165 PR driver/44076
8166 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
8167 alias_target fields.
8168 * opt-functions.awk (opt_sanitized_name): Don't handle
8169 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
8170 * optc-gen.awk: Generate alias fields.
8171 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
8172 Don't generate such constants for aliases.
8173 * opts-common.c (generate_canonical_option): New.
8174 (decode_cmdline_option): Handle aliases. Use
8175 generate_canonical_option for known options instead of copying the
8176 input option text.
8177 * doc/options.texi (Alias): Document.
8178 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
8179 fstack-check, specs): Mark as aliases.
8180 * gcc.c (driver_handle_option): Canonicalize -L options to joined
8181 arguments.
8182 (driver_handle_option): Don't handle OPT_specs.
8183 * opts.c (common_handle_option): Don't handle options marked as
8184 aliases.
8185 (enable_warning_as_error): Handle aliases.
8186 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
8187 OPT_Wlarger_than_eq.
8188 * tree-optimize.c (tree_rest_of_compilation): Use
8189 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
8190
8191 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
8192
8193 * config/i386/i386.md (nonmemory_operand): New mode attribute.
8194 (push memory peephole2): Macroize peepholes using SWI mode iterator.
8195 (move immediate to memory peephole2): Macroize peepholes using
8196 SWI124 mode iterator.
8197 (non-pairable NOT peephole2): Macroize peepholes using SWI124
8198 mode iterator.
8199 (simple lea add peephole2): Macroize peepholes using SWI48
8200 mode iterator.
8201 (simple lea mult peephole2): Ditto.
8202 (imul by 3,5,9 to lea peephole2): Ditto.
8203 (mov $-1, reg peephole2): Macroize peepholes using SWI248
8204 mode iterator.
8205 (imul $32bit_imm,mem,reg peephole2): Ditto.
8206 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
8207
8208 2010-09-02 Ian Bolton <ian.bolton@arm.com>
8209
8210 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
8211
8212 2010-09-02 Olivier Hainque <hainque@adacore.com>
8213
8214 PR middle-end/44763
8215 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
8216 (allocno_priority_compare_func): Use it instead of a straight
8217 difference computation over priorities.
8218
8219 2010-09-02 Andi Kleen <ak@linux.intel.com>
8220
8221 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
8222
8223 2010-09-02 Ira Rosen <irar@il.ibm.com>
8224
8225 * tree-vectorizer.h (get_later_stmt): New function.
8226 (vect_analyze_data_ref_dependences): Add argument.
8227 * tree-vect-loop.c (vect_analyze_loop): Update call to
8228 vect_analyze_data_ref_dependences.
8229 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
8230 New function.
8231 (vect_analyze_data_ref_dependence): Add argument for basic block
8232 dependencies. Check dependencies in basic block vectorization.
8233 (vect_analyze_data_ref_dependences): Add argument and update call to
8234 vect_analyze_data_ref_dependences.
8235 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
8236 (vect_bb_vectorizable_with_dependencies): New.
8237 (vect_slp_analyze_bb): Check dependencies in basic block.
8238 (vect_schedule_slp_instance): Insert stores before the last store in
8239 SLP instance.
8240
8241 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
8242
8243 PR target/45476
8244 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
8245 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8246
8247 2010-09-01 Jakub Jelinek <jakub@redhat.com>
8248
8249 PR middle-end/45458
8250 * bb-reorder.c (add_labels_and_missing_jumps): Treat
8251 bbs ending with throwing insns like blocks ending with a call.
8252 (fix_up_fall_thru_edges): Likewise.
8253
8254 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
8255
8256 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
8257 (m32c_function_arg_advance): Delete.
8258 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8259 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
8260 comments. Take a const_tree and a bool. Declare.
8261 (m32c_function_arg_advance): Likewise.
8262 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8263
8264 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8265
8266 PR target/45476
8267 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
8268 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
8269 * config/i386/mingw32.h: ... here.
8270
8271 2010-09-01 Andi Kleen <ak@linux.intel.com>
8272
8273 PR lto/45475
8274 * lto-streamer-in.c (lto_input_ts_target_option): Add.
8275 (lto_input_tree_pointers): Call lto_input_ts_target_option.
8276 * lto-streamer-out (lto_output_ts_target_option): Add.
8277 (lto_output_tree_pointers): Call lto_output_ts_target_option.
8278
8279 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
8280
8281 PR/target 45452
8282 * config/i386/cygwin.h: Change order of specified import libraries.
8283 * config/i386/mingw32.h: Likewise.
8284 * config/i386/t-cygwin: Likewise.
8285 * config/i386/t-mingw32: Likewise.
8286 * config/i386/t-mingw-w32: Likewise.
8287 * config/i386/t-mingw-w64: Likewise.
8288
8289 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8290
8291 * config/arm/neon-schedgen.ml (core): New type.
8292 (allCores): List of supported cores.
8293 (availability_table): Add supported cores.
8294 (collate_bypasses): Accept core as a parameter.
8295 (worst_case_latencies_and_bypasses): Accept core as a parameter.
8296 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
8297 and coreStr to get tune attribute and prefix for functional units.
8298 (emit_bypasses): Accept core name and use it.
8299 (calculate_per_core_availability_table): New.
8300 (filter_core): New.
8301 (calculate_core_availability_table): New.
8302 (main): Use calculate_core_availablity_table.
8303 * config/arm/cortex-a8-neon.md: Update copyright year.
8304 Regenerated from ml file and merged in.
8305 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
8306 cortex_a8_neon_mrc.
8307
8308 2010-09-01 Ian Bolton <ian.bolton@arm.com>
8309
8310 * Makefile.in (tree-switch-conversion.o): Update dependencies.
8311
8312 2010-09-01 Richard Guenther <rguenther@suse.de>
8313
8314 * alias.c (ao_ref_from_mem): Adjust.
8315 * builtins.c (get_object_alignment): Likewise.
8316 * cfgexpand.c (expand_debug_expr): Likewise.
8317 * gimple.c (get_base_address): Likewise.
8318 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8319 (get_addr_base_and_unit_offset): Likewise. Fix for
8320 both TMR_SYMBOL and TMR_BASE being set.
8321 * tree-eh.c (tree_could_trap_p): Likewise.
8322 * gimplify.c (gimplify_expr): Do not attempt to gimplify
8323 TMR_SYMBOL. Always gimplify TMR_BASE.
8324 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8325 TMR_BASE if there is a TMR_SYMBOL.
8326 * tree-pretty-print.c (dump_generic_node): Adjust.
8327 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
8328 (tree_mem_ref_addr): Likewise.
8329 (create_mem_ref_raw): Likewise.
8330 (move_fixed_address_to_symbol): Likewise.
8331 (create_mem_ref): Likewise.
8332 (dump_mem_address): Likewise.
8333 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
8334 Fix for both TMR_SYMBOL and TMR_BASE being set.
8335 (indirect_refs_may_alias_p): Likewise.
8336 * tree-ssa-operands.c (get_tmr_operands): Adjust.
8337 * tree.def (TARGET_MEM_REF): Adjust documentation.
8338
8339 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8340
8341 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
8342 Rename from X86_TUNE_ADD_ESP_4.
8343 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
8344 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
8345 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
8346 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
8347 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
8348 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
8349 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
8350 * config/i386/i386.c (initial_ix86_tune_features)
8351 <X86_TUNE_SINGLE_POP>: Invert members.
8352 <X86_TUNE_DOUBLE_POP>: Ditto.
8353 <X86_TUNE_SINGLE_PUSH>: Ditto.
8354 <X86_TUNE_DOUBLE_PUSH>: Ditto.
8355 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
8356 No longer exported.
8357 (push peephole2 patterns): Macroize peepholes using P mode iterator.
8358 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
8359 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
8360 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
8361
8362 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
8363
8364 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
8365 a volatile LHS if the constructor has only one element.
8366
8367 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
8368
8369 PR bootstrap/45321
8370 * tree.c (stdarg_p): Make fntype parameter const.
8371 * tree.h (stdarg_p): Likewise.
8372 (function_args_iterator): Remove unused fntype field.
8373 (function_args_iter_init): Do not initialize fntype
8374 field. Make fntype parameter const.
8375
8376 2010-09-01 Richard Guenther <rguenther@suse.de>
8377
8378 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
8379 estimate.
8380 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
8381 (execute_vrp): Compute number of iteration estimates.
8382 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
8383 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
8384 * tree-data-ref.c (estimated_loop_iterations): Adjust.
8385 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
8386 Infer loop bounds from undefined behavior based on a new parameter.
8387 (estimate_numbers_of_iterations): Likewise.
8388 (scev_probably_wraps_p): Adjust.
8389 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
8390
8391 2010-09-01 Nick Clifton <nickc@redhat.com>
8392
8393 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
8394 where appropriate.
8395 (xstormy16_legitimate_address_p): Use true and false instead of 1
8396 and 0.
8397 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
8398 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
8399 magic constant 2.
8400 (xstormy16_expand_call): Fix comment at start of function.
8401
8402 2010-09-01 Nick Clifton <nickc@redhat.com>
8403
8404 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
8405 when pushing accumulator register.
8406 (rx_get_stack_layout): Always save call clobbered registers inside
8407 interrupt handlers.
8408 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
8409
8410 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8411
8412 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
8413 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
8414
8415 * libgcc-std.ver (GCC_4.6.0): Define version.
8416
8417 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
8418
8419 * tree-nested.c (convert_all_function_calls): Iterate until after the
8420 sum of static chains in the nest doesn't change.
8421
8422 2010-08-31 Anatoly Sokolov <aesok@post.ru>
8423
8424 * config/m32c/m32c.c (classes_intersect): Remove.
8425 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
8426 reg_classes_intersect_p instead of classes_intersect.
8427 (class_can_hold_mode): Change arguments type from enum reg_class to
8428 reg_class_t. Use reg_class_contents instead of class_contents.
8429 (m32c_register_move_cost): Make static. Change arguments type from
8430 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
8431 classes_intersect. Use reg_class_contents instead of class_contents.
8432 (m32c_memory_move_cost): Make static. Change arguments type from
8433 enum reg_class to reg_class_t.
8434 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8435 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8436 * config/m32c/m32c-protos.h (m32c_register_move_cost,
8437 m32c_memory_move_cost): Remove.
8438
8439 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8440
8441 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
8442 (arm_function_arg): Delete.
8443 (arm_needs_doubleword_align): Take a const_tree.
8444 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8445 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
8446 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
8447 (arm_function_arg): Make static. Take a const_tree and a bool.
8448 (arm_function_arg_advance): Likewise.
8449 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8450
8451 2010-08-31 Andi Kleen <ak@linux.intel.com>
8452
8453 * common.opt (fwhopr=): Update for -fwhopr=jobserver
8454 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
8455 * lto-wrapper.c (run_gcc): Add jobserver mode.
8456 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
8457 argument.
8458
8459 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
8460
8461 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
8462 (popsi1): Ditto.
8463 (*popdi1_epilogue): Ditto.
8464 (*popsi1_epilogue): Ditto.
8465 (popsi, popdi peephole2 patterns): Update peepholes for changed
8466 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
8467
8468 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
8469 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
8470
8471 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
8472 (override_options): Do not initialize removed ix86_gen_pop1.
8473 (gen_pop): New static function.
8474 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
8475 (release_scratch_register_on_entry): Ditto.
8476 (ix86_restore_reg_using_pop): Ditto.
8477 (ix86_expand_epilogue): Ditto.
8478
8479 2010-08-31 Jakub Jelinek <jakub@redhat.com>
8480
8481 PR middle-end/45461
8482 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
8483
8484 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8485
8486 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
8487 semicolons.
8488
8489 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8490
8491 * doc/extend.texi: Fix documentation of the return value of
8492 __builtin_choose_expr.
8493
8494 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8495
8496 * config/v850/v850-protos.h (function_arg): Delete.
8497 * config/v850/v850.h (FUNCTION_ARG): Delete.
8498 (FUNCTION_ARG_ADVANCE): Move code to...
8499 * config/v850/v850.c (v850_function_arg_advance): ...here.
8500 (v850_function_arg): Make static. Take a const_tree and a bool.
8501 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8502
8503 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8504
8505 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
8506 these...
8507 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
8508 ...and these...
8509 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
8510 ..to here..
8511 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
8512 ...and here.
8513 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8514
8515 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8516
8517 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
8518 Delete.
8519 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8520 * config/rx/rx.c (rx_function_arg_size): Make static.
8521 (rx_function_arg): Likewise.
8522 (rx_function_arg_advance): New function.
8523 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8524
8525 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
8526
8527 * config/arm/arm.c (arm_override_options): Remove superfluous test.
8528 Fix indentation.
8529
8530 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
8531
8532 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
8533 (dwarf2out_decl) <CONST_DECL>: Likewise.
8534
8535 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
8536
8537 Stack usage support
8538 * common.opt (-fstack-usage): New option.
8539 * doc/invoke.texi (Debugging options): Document it.
8540 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
8541 allocate_dynamic_stack_space.
8542 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
8543 and propagate it to allocate_dynamic_stack_space.
8544 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
8545 * calls.c (initialize_argument_information): Pass TRUE as 4th
8546 argument to allocate_dynamic_stack_space.
8547 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
8548 to 1 when pushing a variable-sized argument onto the stack. Pass
8549 TRUE as 4th argument to allocate_dynamic_stack_space.
8550 Update current_function_pushed_stack_size.
8551 (emit_library_call_value_1): Likewise.
8552 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
8553 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
8554 attempt to find an upper bound. Remove redundant code for the
8555 SETJMP_VIA_SAVE_AREA case.
8556 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
8557 * function.h (struct stack_usage): New structure.
8558 (current_function_static_stack_size): New macro.
8559 (current_function_dynamic_stack_size): Likewise.
8560 (current_function_pushed_stack_size): Likewise.
8561 (current_function_dynamic_alloc_count): Likewise.
8562 (current_function_has_unbounded_dynamic_stack_size): Likewise.
8563 (current_function_allocates_dynamic_stack_space): Likewise.
8564 (struct function): Add new field 'su'.
8565 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
8566 add the value of the dynamic offset to the dynamic stack usage.
8567 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
8568 for variable-sized objects.
8569 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
8570 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
8571 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
8572 BUILT_IN_ALLOCA for variable-sized objects.
8573 * output.h (output_stack_usage): Declare.
8574 * toplev.c (stack_usage_file): New file pointer.
8575 (output_stack_usage): New function.
8576 (open_auxiliary_file): Likewise.
8577 (lang_dependent_init): Open file if flag_stack_usage is set.
8578 (finalize): Close file if stack_usage_file is not null.
8579 * tree.h (ALLOCA_FOR_VAR_P): New macro.
8580 * config/alpha/alpha.c (compute_frame_size): New function.
8581 (alpha_expand_prologue): Use it.
8582 (alpha_start_function): Likewise.
8583 (alpha_expand_epilogue): Likewise. Set stack usage info.
8584 * config/i386/i386.c (ix86_expand_prologue): Likewise.
8585 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
8586 * config/mips/mips.c (mips_expand_prologue): Likewise.
8587 * config/pa/pa.c (hppa_expand_prologue): Likewise.
8588 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8589 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8590
8591 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
8592
8593 PR tree-optimization/45427
8594 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
8595 Handle the case that the exit is never taken correctly.
8596 (number_of_iterations_ne): Pass exit_must_be_taken to
8597 number_of_iterations_ne_max.
8598
8599 2010-08-30 Catherine Moore <clm@codesourcery.com>
8600
8601 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
8602 Infer -mdspr2 for the the 74K.
8603
8604 2010-08-30 Jakub Jelinek <jakub@redhat.com>
8605
8606 PR debug/45419
8607 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
8608
8609 PR middle-end/45423
8610 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
8611 and TRUTH_{AND,OR,XOR}_EXPR.
8612 * c-parser.c (c_parser_omp_atomic): Handle boolean
8613 {PRE,POST}_{INC,DEC}REMENT.
8614
8615 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
8616
8617 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
8618 (function_arg): Delete.
8619 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8620 (FUNCTION_INCOMING_ARG): Delete.
8621 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
8622 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
8623 and a bool.
8624 (function_arg): Rename to...
8625 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
8626 a bool.
8627 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
8628 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8629 (TARGET_FUNCTION_INCOMING_ARG): Define.
8630
8631 2010-08-30 Richard Guenther <rguenther@suse.de>
8632
8633 PR tree-optimization/21602
8634 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
8635 using points-to information.
8636
8637 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
8638
8639 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
8640
8641 2010-08-30 Richard Guenther <rguenther@suse.de>
8642
8643 PR tree-optimization/45449
8644 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
8645 variables.
8646
8647 2010-08-30 Joseph Myers <joseph@codesourcery.com>
8648
8649 * opts.h (CL_ERR_NEGATIVE): Define.
8650 * opts.c (unknown_option_callback): Don't postpone warnings for
8651 options marked with CL_ERR_NEGATIVE.
8652 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
8653 for negative versions of CL_REJECT_NEGATIVE options.
8654
8655 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
8656
8657 * config/i386/i386.md (zero_extendsidi2_1): Rename from
8658 zero_extendsidi2_32.
8659 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
8660 using SWI12 mode iterator.
8661 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
8662 to define_insn_and_split pattern.
8663 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
8664 using SWI24 mode iterator.
8665 (*zero_extendqi<mode>2_and): Macroize insn from
8666 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
8667 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
8668 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
8669 SWI24 mode iterator.
8670 (*zero_extendqi<mode>2_movzbl): Ditto from
8671 *zero_extendqi{hi,si}2_movzbl.
8672 (extendsidi2_1): Rename from extendsidi2_32.
8673 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
8674 SWI12 mode iterator.
8675
8676 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
8677
8678 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
8679 general purpose registers.
8680 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
8681 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
8682 with general purpose registers and memory operands. Add associated
8683 CCImode post-reload splitter.
8684 * config/ia64/div.md: Change BImode to CCImode throughout.
8685
8686 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
8687
8688 * config/ia64/ia64.md (cstorebi4): Fix thinko.
8689
8690 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
8691
8692 * config/picochip/picochip.c (reorder_var_tracking_notes): This
8693 function was dropping debug insns which caused PR45299.
8694
8695 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
8696
8697 * config/i386/sse.md (extsuffix): New code attribute.
8698 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
8699 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
8700 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
8701 and sse4_1_zero_extendv4qiv4si2.
8702 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
8703 and sse4_1_zero_extendv2qiv2di2.
8704 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
8705 and sse4_1_zero_extendv4hiv4si2.
8706 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
8707 and sse4_1_zero_extendv2hiv2di2.
8708 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
8709 and sse4_1_zero_extendv2siv2di2
8710
8711 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
8712 using any_extend code iterator.
8713 (*avx_<s>mulv8hi3_highpart): Macroize insn from
8714 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
8715 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
8716
8717 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
8718 gen_sse4_1_sign_extend* functions.
8719 (struct builtin_description bdesc_args): Ditto.
8720
8721 2010-08-27 Xinliang David Li <davidxl@google.com>
8722
8723 PR/45422
8724 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
8725 (iv_ca_set_no_cp): Update used inv expr count.
8726 (iv_ca_set_cp): Ditto.
8727 (iv_ca_new): Initialize new member.
8728 (iv_ca_free): Free memory.
8729
8730 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8731
8732 * config/sh/sh-protos.h (sh_function_arg): Delete.
8733 (sh_function_arg_advance): Delete.
8734 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8735 (PASS_IN_REG_P): Eliminate cast.
8736 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
8737 const_tree and a bool.
8738 (sh_function_arg): Likewise.
8739 (sh_output_mi_thunk): Call sh_function_arg_advance) and
8740 sh_function_arg.
8741 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8742
8743 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
8744 Kaz Kojima <kkojima@gcc.gnu.org>
8745
8746 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
8747 when possible.
8748 (sh_expand_epilogue): Likewise.
8749 * config/sh/sh.md (movml_push_banked): New insn.
8750 (movml_pop_banked): Likewise.
8751
8752 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
8753
8754 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
8755 gen_regexp_oneof, gen_regexp_sequence): Use the string found
8756 in vector element 0 rather than the original string when there's
8757 only one element.
8758 (gen_regexp): Remove extra semicolon.
8759
8760 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
8761 thumb2_movsf_vfp): Set attribute "insn".
8762 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
8763 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
8764 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
8765 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
8766 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
8767 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
8768 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
8769 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
8770 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
8771 if_not_arith, if_arith_not, cond_move_not): Likewise.
8772
8773 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8774
8775 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
8776 New declaration.
8777 (rs6000_allocate_stack_temp): Ditto.
8778 (rs6000_expand_convert_si_to_sfdf): Ditto.
8779
8780 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
8781 line. Update the options set if power6 or power7 server/embedded
8782 type options are used. If we give a warning for no vsx under
8783 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
8784 (rs6000_allocate_stack_temp): New function to allocate a stack
8785 tempoary and adjust the address so it meets either REG+OFFSET or
8786 REG+REG addressing requirements.
8787 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
8788 that they can be used with the LFIWAX/LFIWZX instrucitons.
8789 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
8790 converting signed/unsigned SImode to either SFmode/DFmode.
8791
8792 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
8793 whether certain instructions can be generated.
8794 (TARGET_FCTIDZ): Ditto.
8795 (TARGET_STFIWX): Ditto.
8796 (TARGET_LFIWAX): Ditto.
8797 (TARGET_LFIWZX): Ditto.
8798 (TARGET_FCFIDS): Ditto.
8799 (TARGET_FCFIDU): Ditto.
8800 (TARGET_FCFIDUS): Ditto.
8801 (TARGET_FCTIDUZ): Ditto.
8802 (TARGET_FCTIWUZ): Ditto.
8803
8804 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
8805 (UNSPEC_FCTID): Ditto.
8806 (UNSPEC_LFIWAX): Ditto.
8807 (UNSPEC_LFIWZX): Ditto.
8808 (UNSPEC_FCTIWUZ): Ditto.
8809 (rreg): Use correct constraints.
8810 (SI_CONVERT_FP): New mode attribute for floating point conversion
8811 tests.
8812 (E500_CONVERT): Ditto.
8813 (lfiwax): New insns for converting from integer to floating point
8814 utilizing newer instructions. Attempt to optimize conversions
8815 that come from memory so that we don't load the value into a GPR,
8816 spill it to the stack and reload it into a FPR.
8817 (floatsi<mode>2_lfiwax): Ditto.
8818 (floatsi<mode>2_lfiwax_mem): Ditto.
8819 (floatsi<mode>2_lfiwax_mem2): Ditto.
8820 (lfiwzx): Ditto.
8821 (floatunssi<mode>2_lfiwzx): Ditto.
8822 (floatunssi<mode>2_lfiwzx_mem): Ditto.
8823 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
8824 (floatdidf2_mem): Ditto.
8825 (floatunsdidf2_fcfidu): Ditto.
8826 (floatunsdidf2_mem): Ditto.
8827 (floatunsdisf2): Ditto.
8828 (floatunsdisf2_fcfidus): Ditto.
8829 (floatunsdisf2_mem): Ditto.
8830 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
8831 Use FCFID on 32-bit hosts that support it.
8832 (floatsidf2_internal): Ditto.
8833 (floatunssisf2): Ditto.
8834 (floatunssidf2): Ditto.
8835 (floatunssidf2_internal): Ditto.
8836 (floatsisf2): Ditto.
8837 (floatdidf2): Ditto.
8838 (floatdidf2_fpr): Ditto.
8839 (floatunsdidf2): Ditto.
8840 (floatdisf2): Ditto.
8841 (floatdisf2_fcfids): Ditto.
8842 (floatdisf2_internal1): Ditto.
8843 (fixuns_truncsfsi2): Delete, merge into common pattern for both
8844 SF/DF. Add power7 support.
8845 (fix_truncsfsi2): Ditto.
8846 (fixuns_truncdfsi2): Ditto.
8847 (fixuns_truncdfdi2): Ditto.
8848 (fix_truncdfsi2): Ditto.
8849 (fix_truncdfsi2_internal): Ditto.
8850 (fix_truncdfsi2_internal_gfxopt): Ditto.
8851 (fix_truncdfsi2_mfpgpr): Ditto.
8852 (fctiwz): Ditto.
8853 (btruncdf2): Ditto.
8854 (btruncdf2_fpr): Ditto.
8855 (btructsf2): Ditto.
8856 (ceildf2): Ditto.
8857 (ceildf2_fpr): Ditto.
8858 (ceilsf2): Ditto.
8859 (floordf2): Ditto.
8860 (floordf2_fpr): Ditto.
8861 (floorsf2): Ditto.
8862 (rounddf2): Ditto.
8863 (rounddf2_fpr): Ditto.
8864 (roundsf2): Ditto.
8865 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
8866 (fix_trunc<mode>di2): Ditto.
8867 (fixuns_trunc<mode>si2): Ditto.
8868 (fixuns_trunc<mode>di2): Ditto.
8869 (fctiwz_<mode>): Ditto.
8870 (btrunc<mode>2): Ditto.
8871 (btrunc<mode>2_fpr): Ditto.
8872 (ceil<mode>2): Ditto.
8873 (ceil<mode>2_fpr): Ditto.
8874 (floor<mode>2): Ditto.
8875 (float<mode>2_fpr): Ditto.
8876 (round<mode>2): Ditto.
8877 (round<mode>2_fpr): Ditto.
8878 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
8879 (fixuns_trunc<mode>si2_stfiwx): Ditto.
8880 (fix_truncdfsi2_internal): Ditto.
8881 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
8882 converted value on stack, loaded into GPR, and then stored into
8883 the final destination.
8884 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
8885 FCTIDZ.
8886 (lrint<mode>di2): New insn, provide the lrint builtin functions.
8887 (ftruncdf2): Delete, unused.
8888 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
8889
8890 * config/rs6000/vsx.md (toplevel): Update copyright year.
8891 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
8892 (VSr3): Ditto.
8893
8894 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
8895 Jeremie Salvucci <jeremie.salvucci@free.fr>
8896
8897 * gengtype.c (output_type_enum): Test the right union member.
8898
8899 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
8900
8901 PR target/41484
8902 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
8903 operands for operand 1.
8904 (sse4_1_extendv4qiv4si2): Ditto.
8905 (sse4_1_extendv2qiv2di2): Ditto.
8906 (sse4_1_extendv4hiv4si2): Ditto.
8907 (sse4_1_extendv2hiv2di2): Ditto.
8908 (sse4_1_extendv2siv2di2): Ditto.
8909 (sse4_1_zero_extendv8qiv8hi2): Ditto.
8910 (sse4_1_zero_extendv4qiv4si2): Ditto.
8911 (sse4_1_zero_extendv2qiv2di2): Ditto.
8912 (sse4_1_zero_extendv4hiv4si2): Ditto.
8913 (sse4_1_zero_extendv2hiv2di2): Ditto.
8914 (sse4_1_zero_extendv2siv2di2): Ditto.
8915 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
8916 (*sse4_1_extendv4qiv4si2): Ditto.
8917 (*sse4_1_extendv2qiv2di2): Ditto.
8918 (*sse4_1_extendv4hiv4si2): Ditto.
8919 (*sse4_1_extendv2hiv2di2): Ditto.
8920 (*sse4_1_extendv2siv2di2): Ditto.
8921 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
8922 (*sse4_1_zero_extendv4qiv4si2): Ditto.
8923 (*sse4_1_zero_extendv2qiv2di2): Ditto.
8924 (*sse4_1_zero_extendv4hiv4si2): Ditto.
8925 (*sse4_1_zero_extendv2hiv2di2): Ditto.
8926 (*sse4_1_zero_extendv2siv2di2): Ditto.
8927
8928 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8929
8930 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
8931 (mips_function_arg): Delete.
8932 (mips_function_arg_boundary): Take a const_tree.
8933 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
8934 (mips_arg_info): Likewise.
8935 (mips_setup_incoming_varargs): Call mips_function_arg_advance
8936 instead of FUNCTION_ARG_ADVANCE.
8937 (mips_function_arg_advance): Adjust prototype. Make static.
8938 (mips_function_arg): Likewise.
8939 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8940 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
8941
8942 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8943
8944 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8945 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
8946 (function_arg): Delete.
8947 (function_arg_boundary): Take a const_tree.
8948 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
8949 (rs6000_spe_function_arg): Likewise.
8950 (rs6000_parm_start): Likewise.
8951 (rs6000_arg_size): Likewise.
8952 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
8953 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
8954 (rs6000_mixed_function_arg): Likewise.
8955 (function_arg): Rename to...
8956 (rs6000_function_arg): ...this.
8957 (function_arg_advance): Rename to...
8958 (rs6000_function_arg_advance_1): ...this
8959 (rs6000_function_arg_advance): New function. Call it.
8960 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
8961 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
8962 (rs6000_function_value): Likewise.
8963 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8964
8965 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8966
8967 * config/arm/arm.md (enabled): Test the value of arch_enabled
8968 rather than just using it.
8969
8970 2010-08-27 Olivier Hainque <hainque@adacore.com>
8971 Eric Botcazou <ebotcazou@adacore.com>
8972
8973 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
8974 cover all the possible offsets from this base.
8975 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
8976
8977 2010-08-26 Jakub Jelinek <jakub@redhat.com>
8978
8979 PR tree-optimization/44485
8980 * calls.c (flags_from_decl_or_type): For const or pure
8981 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
8982 together with ECF_CONST resp. ECF_PURE.
8983 * builtins.c (expand_builtin): Use flags_from_decl_or_type
8984 instead of querying flags directly.
8985 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
8986 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
8987
8988 2010-08-26 Richard Guenther <rguenther@suse.de>
8989
8990 PR tree-optimization/45255
8991 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
8992 and externals are also invariant.
8993
8994 2010-08-25 Jakub Jelinek <jakub@redhat.com>
8995
8996 PR rtl-optimization/44858
8997 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
8998 newi2pat, make sure they don't affect newpat.
8999
9000 PR rtl-optimization/45400
9001 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
9002 SUBREG_REG if both modes are of MODE_INT class.
9003
9004 2010-08-25 Julian Brown <julian@codesourcery.com>
9005
9006 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
9007 * config/arm/arm.md (generic_sched): No for Cortex-A5.
9008 (generic_vfp): Likewise.
9009 (cortex-a5.md): Include.
9010 * config/arm/cortex-a5.md: New.
9011
9012 2010-08-25 Richard Guenther <rguenther@suse.de>
9013
9014 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
9015 * gimple.c (gimple_get_alias_set): Remove special handling
9016 for pointers.
9017
9018 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
9019
9020 PR middle-end/45355
9021 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
9022 dead_or_set_p when computing i0_feeds_i2_n.
9023
9024 * combine.c (find_split_point): Undo canonicalization of multiply-add
9025 to (minus x (mult)) when it seems likely that this will increase the
9026 chances of a split.
9027
9028 2010-08-25 Richard Guenther <rguenther@suse.de>
9029
9030 PR lto/44562
9031 * lto-streamer.c (lto_record_common_node): Do not mess with
9032 TYPE_CANONICAL when not in lto.
9033 * gimple.c (gimple_register_type): Likewise.
9034
9035 2010-08-25 Richard Guenther <rguenther@suse.de>
9036
9037 PR tree-optimization/45316
9038 * tree-ssa-pre.c (eliminate): Properly clean EH info.
9039
9040 2010-08-25 Richard Guenther <rguenther@suse.de>
9041
9042 PR tree-optimization/45393
9043 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
9044 and clean EH info. Avoid SSA update.
9045 (execute_cse_sincos): Cleanup the CFG if it has changed.
9046
9047 2010-08-25 Richard Guenther <rguenther@suse.de>
9048
9049 PR middle-end/45379
9050 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
9051 TARGET_MEM_REF in alignment computation.
9052
9053 2010-08-25 Jakub Jelinek <jakub@redhat.com>
9054
9055 PR tree-optimization/45059
9056 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
9057 type conversions from newop{1,2}. Assert t is a comparison and
9058 newop{1,2} after the stripping are gimple vals.
9059
9060 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
9061
9062 * config/arm/iterators.md (VU, SE, V_widen_l): New.
9063 (V_unpack, US): New.
9064 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
9065 (vec_unpack<US>_lo_<mode>): Likewise.
9066 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
9067 (neon_vec_unpack<US>_lo_<mode>): Likewise.
9068 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
9069 (vec_widen_<US>mult_hi_<mode>): Likewise.
9070 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
9071 (neon_vec_<US>mult_hi_<mode>"): Likewise.
9072 (neon_unpack<US>_<mode>): Widening move intermediate step for
9073 vectorizing without -mvectorize-with-neon-quad.
9074 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
9075 for vectorizing without -mvectorize-with-neon-quad.
9076 * config/arm/predicates.md (vect_par_constant_high): Check for
9077 high-half lanes of a vector.
9078 (vect_par_constant_low): Check for low-half lanes of a vector.
9079
9080 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9081
9082 * tree-if-conv.c (struct ifc_dr): New.
9083 (IFC_DR): New.
9084 (DR_WRITTEN_AT_LEAST_ONCE): New.
9085 (DR_RW_UNCONDITIONALLY): New.
9086 (memref_read_or_written_unconditionally): Use the cached values
9087 when possible.
9088 (write_memref_written_at_least_once): Same.
9089 (if_convertible_loop_p): Initialize and free DR->aux fields.
9090
9091 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9092
9093 * gimple.c (gimple_could_trap_p_1): Not static anymore.
9094 Pass an extra bool parameter include_mem.
9095 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
9096 (gimple_assign_rhs_could_trap_p): Same.
9097 * gimple.h (gimple_could_trap_p_1): Declared.
9098 * tree-data-ref.h (same_data_refs_base_objects): New.
9099 (same_data_refs): New.
9100 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
9101 (write_memrefs_written_at_least_once): New.
9102 (ifcvt_memrefs_wont_trap): New.
9103 (operations_could_trap): New.
9104 (ifcvt_could_trap_p): New.
9105 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
9106 Gets a vector of data refs.
9107 (if_convertible_stmt_p): Same.
9108 (if_convertible_loop_p_1): New.
9109 (if_convertible_loop_p): Call if_convertible_loop_p_1.
9110
9111 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9112
9113 * common.opt (ftree-loop-if-convert-stores): New flag.
9114 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
9115 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
9116 the created statement before GSI.
9117 (if_convertible_phi_p): Allow virtual phi nodes when
9118 flag_loop_if_convert_stores is set.
9119 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
9120 Do not handle types that do not match is_gimple_reg_type.
9121 Remove loop and bb parameters. Call gimple_could_trap_p instead of
9122 when flag_loop_if_convert_stores is set, as LHS can contain
9123 memory refs.
9124 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
9125 to if_convertible_gimple_assign_stmt_p.
9126 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
9127 (replace_phi_with_cond_gimple_assign_stmt): Renamed
9128 predicate_scalar_phi. Do not handle virtual phi nodes.
9129 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
9130 Call predicate_scalar_phi.
9131 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
9132 just after the labels for flag_loop_if_convert_stores, otherwise
9133 insert the predicate in the end of the BB.
9134 (predicate_mem_writes): New.
9135 (combine_blocks): Call predicate_all_scalar_phis. When
9136 flag_loop_if_convert_stores is set, call predicate_mem_writes.
9137 (tree_if_conversion): Call mark_sym_for_renaming when
9138 flag_loop_if_convert_stores is set.
9139 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
9140 flag_loop_if_convert_stores is set.
9141
9142 2010-08-24 Anatoly Sokolov <aesok@post.ru>
9143
9144 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
9145 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
9146 (pa_function_value): Make static.
9147 (override_options): Rename to...
9148 (pa_option_override): ...this. Make static.
9149 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
9150 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
9151 TARGET_OPTION_OVERRIDE): Define.
9152 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
9153 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
9154 Remove.
9155 * config/pa/pa-protos.h (override_options): Remove.
9156
9157 2010-08-24 Richard Guenther <rguenther@suse.de>
9158
9159 PR middle-end/45379
9160 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
9161 if addr->index is NULL or zero.
9162 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
9163 TARGET_MEM_REF more properly.
9164 (indirect_ref_may_alias_decl_p): Likewise.
9165 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
9166 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
9167
9168 2010-08-23 Anatoly Sokolov <aesok@post.ru>
9169
9170 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
9171 (m32c_override_options): Rename to...
9172 (m32c_option_override): ...this. Make static.
9173 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
9174 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
9175 Remove.
9176 * config/m32c/m32c-protos.h (m32c_override_options,
9177 m32c_function_value_regno_p): Remove.
9178
9179 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
9180
9181 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
9182 Fix a typo in a previous commit.
9183
9184 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
9185
9186 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
9187 Pre-initialize innerloop_iters to one.
9188
9189 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
9190
9191 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
9192 existing static function global.
9193
9194 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
9195 is changed to global.
9196
9197 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
9198 may_be_nonaddressable_p on base, and don't collect this reference
9199 if the address of the base could not be taken.
9200
9201 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9202
9203 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
9204 enable the compiler to autovectorize mathmetical functions for
9205 power7 using the Mathematical Acceleration Subsystem library.
9206
9207 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
9208 handle which vector math library we have.
9209 (rs6000_override_options): Add -mveclibabi=mass support.
9210 (rs6000_builtin_vectorized_libmass): New function to handle auto
9211 vectorizing math functions that are in the MASS library.
9212 (rs6000_builtin_vectorized_function): Call it.
9213
9214 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9215 -mveclibabi=mass.
9216
9217 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9218
9219 PR boehm-gc/34544
9220 * gthr-posix.h (__gthread_active_init): Delete.
9221 (__gthread_active_p): Do activity check here.
9222 Don't include errno.h on hppa-hpux. Update comment.
9223 * gthr-posix95.h (__gthread_active_init): Delete.
9224 (__gthread_active_p): Do activity check here.
9225 Don't include errno.h on hppa-hpux. Update comment.
9226 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
9227 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
9228 add -lpthread when -mt or -pthread is specified.
9229 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
9230 (LINK_GCC_C_SEQUENCE_SPEC): Define.
9231 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
9232 (stublib.c, pthread_default_stacksize_np-stub.o,
9233 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
9234 $(T)libgcc_stub.a): Add methods.
9235 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
9236 (stublib.c, pthread_default_stacksize_np-stub.o,
9237 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
9238 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9239 pthread_mutex_unlock): New stubs.
9240
9241 2010-08-22 Joseph Myers <joseph@codesourcery.com>
9242
9243 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
9244 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
9245 options.
9246 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
9247 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
9248 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
9249 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
9250 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
9251 "-l".
9252 * cppspec.c: Include opts.h.
9253 (lang_specific_driver): Use cl_decoded_option structures.
9254 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
9255 * doc/tm.texi: Regenerate.
9256 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
9257 (driver_handle_option): Allow driver options needing no special
9258 processing.
9259 (process_command): Decode options before call to
9260 lang_specific_driver. Pass decoded options to
9261 lang_specific_driver.
9262 * gcc.h (lang_specific_driver): Update prototype.
9263 * gccspec.c: Include opts.h.
9264 (lang_specific_driver): Use cl_decoded_option structures.
9265 * opts-common.c (option_ok_for_language, generate_option,
9266 generate_option_input_file): New.
9267 (decode_cmdline_option): Use option_ok_for_language.
9268 (decode_cmdline_options_to_array): Use generate_option_input_file.
9269 (handle_generated_option): Use generate_option.
9270 * opts.h (generate_option, generate_option_input_file): Declare.
9271
9272 2010-08-22 Anatoly Sokolov <aesok@post.ru>
9273
9274 * config/mips/mips.c (mips_override_options): Rename to...
9275 (mips_option_override): ...this. Make static.
9276 (TARGET_OPTION_OVERRIDE): Define.
9277 (mips_in_small_data_p): Update comment.
9278 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
9279 (FIXED_REGISTERS): Update comment.
9280 * config/mips/mips-protos.h (mips_override_options): Remove.
9281
9282 2010-08-21 Olivier Hainque <hainque@adacore.com>
9283
9284 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
9285
9286 2010-08-21 Olivier Hainque <hainque@adacore.com>
9287
9288 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
9289 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
9290
9291 2010-08-20 Jan Hubicka <jh@suse.cz>
9292
9293 * tree-pass.h (pass_ipa_cdtor_merge): New function.
9294 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
9295 heap allocated.
9296 (record_cdtor_fn): Move to ipa.c; do not test for
9297 have_ctors_dtors.
9298 (build_cdtor): Move to ipa.c; add code avoiding construction
9299 when target have ctors/dtors and there is only one ctor/dtor at given
9300 priority.
9301 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
9302 sort; reverse order of constructors.
9303 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
9304 (cgraph_finalize_function): Do not call record_cdtor_fn.
9305 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
9306 (cgraph_build_static_cdtor): Move to ipa.c.
9307 * ipa.c: Include target.h and tree-iterator.h.
9308 (cgraph_build_static_cdtor, static_ctors, static_dtors,
9309 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
9310 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
9311 pass_ipa_cdtor_merge): New.
9312 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
9313 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
9314 bounds access.
9315
9316 2010-08-20 Jan Hubicka <jh@suse.cz>
9317
9318 PR c++/45307
9319 PR c++/17736
9320 * cgraph.h (cgraph_only_called_directly_p,
9321 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
9322 static cdtors.
9323 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
9324 are not needed.
9325 (cgraph_finalize_function): Static cdtors are reachable.
9326 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
9327
9328 2010-08-20 Jan Hubicka <jh@suse.cz>
9329
9330 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
9331 flag_wpa.
9332 * lto-streamer-out.c (lto_output): Likewise.
9333 * passes.c (ipa_write_optimization_summaries): Initialize statement
9334 uids.
9335
9336 2010-08-20 Olivier Hainque <hainque@adacore.com>
9337
9338 * tree.h (alias_diag_flags): New enum.
9339 (alias_pair): Add an 'emitted_diags' field.
9340 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
9341 (assemble_alias): Initialize emitted_diags of new pairs.
9342
9343 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
9344
9345 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
9346 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9347 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9348 (STACK_CHECK_PROTECT): Define.
9349 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
9350 (output_probe_stack_range): Likewise.
9351 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
9352 builtin stack checking is enabled.
9353 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
9354 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
9355 (probe_stack_range): New insn.
9356
9357 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
9358
9359 PR target/45336
9360 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
9361 short first.
9362
9363 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
9364 char first.
9365
9366 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9367
9368 PR target/45336
9369 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
9370 to cover zero extension into 64-bit register.
9371 (*sse2_pextrw): Likewise.
9372 (*sse4_1_pextrd_zext): New insn.
9373
9374 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
9375
9376 revert r163410, partially revert r163267.
9377 * config/rs6000/darwin.h (LIB_SPEC): Remove.
9378 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
9379 Darwin versions.
9380
9381 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9382
9383 PR middle-end/44974
9384 * builtins.c (expand_builtin): Don't optimize away
9385 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
9386
9387 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
9388
9389 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
9390 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
9391 alternative 1 of operand 2.
9392
9393 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9394 Paolo Bonzini <bonzini@gnu.org>
9395
9396 * simplify-rtx.c (simplify_unary_operation_1): Optimize
9397 (sign_extend (zero_extend (...)) and
9398 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
9399
9400 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9401
9402 PR rtl-optimization/45353
9403 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
9404 after bb_note is a BARRIER.
9405
9406 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
9407
9408 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
9409 linking libgcc.a.
9410
9411 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9412 Michael Matz <matz@suse.de>
9413
9414 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
9415
9416 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9417
9418 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
9419 (ggc_mark_roots): ...here.
9420
9421 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9422
9423 * vec.h (FOR_EACH_VEC_ELT): Define.
9424 * c-decl.c: Use it.
9425 * cfgloop.c: Likewise.
9426 * cfgloopmanip.c: Likewise.
9427 * cgraph.c: Likewise.
9428 * cgraphunit.c: Likewise.
9429 * combine.c: Likewise.
9430 * config/bfin/bfin.c: Likewise.
9431 * config/mips/mips.c: Likewise.
9432 * config/rs6000/rs6000.c: Likewise.
9433 * dbxout.c: Likewise.
9434 * df-scan.c: Likewise.
9435 * dominance.c: Likewise.
9436 * dse.c: Likewise.
9437 * dwarf2out.c: Likewise.
9438 * except.c: Likewise.
9439 * expr.c: Likewise.
9440 * function.c: Likewise.
9441 * gcse.c: Likewise.
9442 * genattr.c: Likewise.
9443 * ggc-common.c: Likewise.
9444 * gimplify.c: Likewise.
9445 * graphite-blocking.c: Likewise.
9446 * graphite-clast-to-gimple.c: Likewise.
9447 * graphite-dependences.c: Likewise.
9448 * graphite-interchange.c: Likewise.
9449 * graphite-poly.c: Likewise.
9450 * graphite-scop-detection.c: Likewise.
9451 * graphite-sese-to-poly.c: Likewise.
9452 * graphite.c: Likewise.
9453 * haifa-sched.c: Likewise.
9454 * ifcvt.c: Likewise.
9455 * implicit-zee.c: Likewise.
9456 * ipa-prop.c: Likewise.
9457 * ipa-struct-reorg.c: Likewise.
9458 * ipa.c: Likewise.
9459 * ira-build.c: Likewise.
9460 * ira-color.c: Likewise.
9461 * ira-emit.c: Likewise.
9462 * lambda-code.c: Likewise.
9463 * loop-invariant.c: Likewise.
9464 * loop-unroll.c: Likewise.
9465 * lower-subreg.c: Likewise.
9466 * lto-cgraph.c: Likewise.
9467 * lto-opts.c: Likewise.
9468 * lto-streamer-in.c: Likewise.
9469 * lto-streamer-out.c: Likewise.
9470 * lto-streamer.c: Likewise.
9471 * lto-symtab.c: Likewise.
9472 * matrix-reorg.c: Likewise.
9473 * opts.c: Likewise.
9474 * predict.c: Likewise.
9475 * print-tree.c: Likewise.
9476 * sdbout.c: Likewise.
9477 * sel-sched-dump.c: Likewise.
9478 * sel-sched-ir.c: Likewise.
9479 * sel-sched.c: Likewise.
9480 * sese.c: Likewise.
9481 * stor-layout.c: Likewise.
9482 * tree-cfg.c: Likewise.
9483 * tree-cfgcleanup.c: Likewise.
9484 * tree-chrec.c: Likewise.
9485 * tree-data-ref.c: Likewise.
9486 * tree-emutls.c: Likewise.
9487 * tree-inline.c: Likewise.
9488 * tree-into-ssa.c: Likewise.
9489 * tree-loop-distribution.c: Likewise.
9490 * tree-loop-linear.c: Likewise.
9491 * tree-mudflap.c: Likewise.
9492 * tree-outof-ssa.c: Likewise.
9493 * tree-parloops.c: Likewise.
9494 * tree-predcom.c: Likewise.
9495 * tree-pretty-print.c: Likewise.
9496 * tree-scalar-evolution.c: Likewise.
9497 * tree-ssa-live.c: Likewise.
9498 * tree-ssa-loop-im.c: Likewise.
9499 * tree-ssa-loop-ivcanon.c: Likewise.
9500 * tree-ssa-loop-ivopts.c: Likewise.
9501 * tree-ssa-loop-manip.c: Likewise.
9502 * tree-ssa-loop-niter.c: Likewise.
9503 * tree-ssa-loop-prefetch.c: Likewise.
9504 * tree-ssa-phiprop.c: Likewise.
9505 * tree-ssa-pre.c: Likewise.
9506 * tree-ssa-reassoc.c: Likewise.
9507 * tree-ssa-sccvn.c: Likewise.
9508 * tree-ssa-structalias.c: Likewise.
9509 * tree-ssa.c: Likewise.
9510 * tree-vect-data-refs.c: Likewise.
9511 * tree-vect-loop-manip.c: Likewise.
9512 * tree-vect-loop.c: Likewise.
9513 * tree-vect-patterns.c: Likewise.
9514 * tree-vect-slp.c: Likewise.
9515 * tree-vect-stmts.c: Likewise.
9516 * tree-vrp.c: Likewise.
9517 * tree.c: Likewise.
9518 * value-prof.c: Likewise.
9519 * var-tracking.c: Likewise.
9520 * varasm.c: Likewise.
9521 * vmsdbgout.c: Likewise.
9522
9523 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
9524 Richard Guenther <richard.guenther@gmail.com>
9525
9526 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
9527 copy the src value and return a copy.
9528 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
9529 (C++ Volatiles): Adjust to describe C++ semantics only.
9530
9531 2010-08-20 Joseph Myers <joseph@codesourcery.com>
9532
9533 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
9534 be zero or nonzero.
9535 * doc/tm.texi: Regenerate.
9536 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
9537 * df-scan.c (df_get_exit_block_use_set), reginfo.c
9538 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
9539 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
9540 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
9541 to 1.
9542
9543 2010-08-20 Olivier Hainque <hainque@adacore.com>
9544
9545 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
9546 an extra nop past a sibling call at the very end.
9547
9548 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
9549
9550 PR bootstrap/45350
9551 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
9552 a comment.
9553
9554 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
9555
9556 * target.def (function_arg, function_incoming_arg): Remove const
9557 qualifier on CUMULATIVE_ARGS parameter.
9558 * targhooks.h (default_function_arg, default_function_incoming_arg):
9559 Likewise.
9560 * targhooks.c (default_function_arg, default_function_incoming_arg):
9561 Likewise.
9562 * config/i386/i386.c (ix86_function_arg): Likewise.
9563
9564 2010-08-19 Jakub Jelinek <jakub@redhat.com>
9565
9566 PR target/45336
9567 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
9568 SIGN_EXTENDs or ZERO_EXTENDs.
9569
9570 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
9571
9572 PR target/42172
9573 * combine.c (combine_validate_cost): New arg I0. All callers changed.
9574 Take its cost into account if nonnull.
9575 (insn_a_feeds_b): New static function.
9576 (combine_instructions): Look for four-insn combinations.
9577 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
9578 them into account when computing all_adjacent and looking for other
9579 uses.
9580 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
9581 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
9582 (try_combine): New arg I0. Handle four-insn combinations.
9583 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
9584 like ELIM_I1.
9585
9586 2010-08-19 Jason Merrill <jason@redhat.com>
9587
9588 PR c++/45307
9589 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
9590 if ctor is empty.
9591 (gimplify_modify_expr_rhs): Adjust.
9592
9593 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
9594
9595 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
9596 bitmap_bit_p.
9597 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
9598 * dominance.c (iterate_fix_dominators): Likewise.
9599 * dse.c (set_usage_bits): Likewise.
9600 (set_position_unneeded, record_store): Likewise.
9601 * gimple-fold.c (get_maxval_strlen): Likewise.
9602 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
9603 * ipa-inline.c (update_caller_keys): Likewise.
9604 * ipa-split.c (verify_non_ssa_vars): Likewise.
9605 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
9606 (close_type_exposed_parameter, close_type_full_escape): Likewise.
9607 (close_addressof_down): Likewise.
9608 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
9609 (setup_allocno_left_conflicts_size): Likewise.
9610 (ira_reassign_conflict_allocnos): Likewise.
9611 (ira_reassign_pseudos): Likewise.
9612 * ira-emit.c (change_loop): Likewise.
9613 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
9614 * lto-streamer-out.c (write_symbol): Likewise.
9615 * predict.c (expr_expected_value_1): Likewise.
9616 * regstat.c (regstat_bb_compute_ri): Likewise.
9617 * sel-sched.c (create_block_for_bookkeeping): Likewise.
9618 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
9619 * stmt.c (expand_case): Likewise.
9620 * tree-eh.c (emit_eh_dispatch): Likewise.
9621 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
9622 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
9623 Likewise.
9624 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
9625 (rdg_build_components): Likewise.
9626 * tree-object-size.c (collect_object_sizes_for): Likewise.
9627 * tree-sra.c (convert_callers): Likewise.
9628 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
9629 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
9630 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
9631
9632 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
9633
9634 * config/i386/i386.md (*lea_1): Use P mode iterator.
9635 (lea add splitter): Also handle DImode operands.
9636 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
9637 predicate. Do not use ix86_lea_for_add_ok.
9638 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
9639 (lea ashift splitter): Also handle DImode operands.
9640 (DImode lea ashift splitter): Remove splitter.
9641
9642 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
9643
9644 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
9645 ix86_binary_operator_ok.
9646
9647 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
9648
9649 PR rtl-optimization/44691
9650 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
9651 is not a register.
9652
9653 2010-08-19 Ian Bolton <ian.bolton@arm.com>
9654
9655 PR target/45070
9656 * config/arm/arm.c (arm_output_epilogue): Ensure that return
9657 value of size 1-3 is handled correctly.
9658
9659 2010-08-19 Ian Bolton <ian.bolton@arm.com>
9660
9661 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
9662 type for the conditional has wide enough range.
9663
9664 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
9665
9666 PR target/45327
9667 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
9668 ix86_binary_operator_ok.
9669
9670 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
9671
9672 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
9673 <default>: Swap operands 1 and 2 for alternative 2 to use existing
9674 code to output insn mnemonic. Fix comment.
9675 (*addsi_1_zext): Add r-r-0 alternative 1.
9676 <TYPE_LEA>: Split insn to lea.
9677 <default>: Handle alternative 1.
9678 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
9679 multi-level if_then_else RTX to set "type" attribute.
9680 <default>: Handle alternative 2.
9681 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
9682 Use cond RTX instead of multi-level if_then_else RTX to set
9683 "type" attribute.
9684 <default>: Handle alternatives 2 and 4.
9685 (lea splitters): Update calls to ix86_lea_for_add_ok.
9686
9687 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
9688 argument.
9689 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
9690
9691 2010-08-18 Richard Guenther <rguenther@suse.de>
9692
9693 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
9694 use operand helpers.
9695
9696 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
9697
9698 PR middle-end/45292
9699 * optabs.c (expand_bool_compare_and_swap): Expand pending
9700 pops before trying the optab.
9701
9702 2010-08-18 Yao Qi <yao@codesourcery.com>
9703
9704 PR target/45094
9705 * config/arm/arm.c (output_move_double): Fix typo generating
9706 instructions ('ldr'->'str').
9707
9708 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9709
9710 PR rtl-optimization/42575
9711 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
9712 live ranges.
9713
9714 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
9715
9716 * config/arm/arm-protos.h (arm_expand_sync): New.
9717 (arm_output_memory_barrier, arm_output_sync_insn): New.
9718 (arm_sync_loop_insns): New.
9719 * config/arm/arm.c (FL_ARCH7): New.
9720 (FL_FOR_ARCH7): Include FL_ARCH7.
9721 (arm_arch7): New.
9722 (arm_print_operand): Support %C markup.
9723 (arm_legitimize_sync_memory): New.
9724 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
9725 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
9726 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
9727 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
9728 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
9729 (arm_process_output_sync_insn, arm_output_sync_insn): New.
9730 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
9731 * config/arm/arm.h (struct arm_sync_generator): New.
9732 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
9733 (TARGET_HAVE_MEMORY_BARRIER): New.
9734 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
9735 * config/arm/arm.md: Include sync.md.
9736 (UNSPEC_MEMORY_BARRIER): New.
9737 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
9738 (VUNSPEC_SYNC_OP):New.
9739 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
9740 (sync_result, sync_memory, sync_required_value): New attributes.
9741 (sync_new_value, sync_t1, sync_t2): Likewise.
9742 (sync_release_barrier, sync_op): Likewise.
9743 (length): Add logic to length attribute defintion to call
9744 arm_sync_loop_insns when appropriate.
9745 * config/arm/sync.md: New file.
9746
9747 2010-08-17 Jakub Jelinek <jakub@redhat.com>
9748
9749 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
9750 ENABLE_TREE_CHECKING.
9751 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
9752 and GCC >= 4.3.
9753
9754 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
9755
9756 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
9757 or optimizing for size, always avoid lea if possible.
9758
9759 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
9760
9761 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
9762
9763 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
9764 Dunmmy function with NULL return unless the target is
9765 OSX >= 10.6 (Darwin10).
9766
9767 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
9768
9769 * gcc.c (spec_function): Add remove-outfile.
9770 (remove_outfile_spec_function): New function.
9771 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
9772 * invoke.texi (replace-outfile): Document.
9773
9774 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
9775
9776 PR target/45296
9777 * reginfo.c (globalize_reg): Reject stack registers.
9778
9779 2010-08-17 Richard Guenther <rguenther@suse.de>
9780
9781 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
9782 list of conditional equivalences.
9783 (free_all_edge_infos): Adjust.
9784 (record_equivalences_from_incoming_edge): Likewise.
9785 (record_cond): Likewise.
9786 (build_and_record_new_cond): Likewise.
9787 (record_conditions): Likewise.
9788 (dom_opt_leave_block): Likewise.
9789
9790 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
9791
9792 * doc/invoke.texi (ms-extension): Add documentation.
9793
9794 2010-08-17 Richard Guenther <rguenther@suse.de>
9795
9796 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
9797
9798 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
9799
9800 PR c/40563
9801 * c-decl.c (diagnose_uninitialized_cst_member): New function.
9802 (finish_decl): Use it to issue a -Wc++-compat warning about
9803 uninitialized const field in struct or union.
9804
9805 (finish_struct): Use strip_array_types.
9806
9807 2010-08-17 Jakub Jelinek <jakub@redhat.com>
9808
9809 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
9810 functions.
9811 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
9812 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
9813 call block_nreverse here.
9814 (blocks_nreverse): Rename decl temporary to block.
9815
9816 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
9817
9818 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
9819 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
9820 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
9821 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
9822 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
9823 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
9824 thumb2_iorsi3): Delete.
9825 (orsi_notsi_si): No longer a named pattern.
9826 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
9827 * config/arm/predicates.md (shift_amount_operand): New.
9828 (mult_operator): New.
9829 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
9830 attr enabled): New.
9831 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
9832 arch matches t2.
9833 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
9834 (not_shiftsi_compare0): Likewise, renamed from
9835 arm_notsi_shiftsi_compare0.
9836 (not_shiftsi_compare0_scratch): Likweise, renamed from
9837 arm_notsi_shiftsi_compare0_scratch.
9838 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
9839 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
9840 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
9841 so that the register alternative is disabled when the shift_operator
9842 is MULT. Use "M" as the constraint for constants.
9843 (arith_shiftsi splitter): Enable for TARGET_32BIT.
9844 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
9845 constraint for constants.
9846 (arith_shiftsi_compare0_scratch): Likewise.
9847 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
9848 Handle Thumb2 alternative.
9849
9850 2010-08-16 Joseph Myers <joseph@codesourcery.com>
9851
9852 * doc/options.texi (NoDriverArg): Document.
9853 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
9854 -MDX and -MMDX.
9855 * opt-functions.awk (switch_flags): Handle NoDriverArg.
9856 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
9857 marking for CL_NO_DRIVER_ARG options when in the driver.
9858 * opts.h (CL_NO_DRIVER_ARG): Define.
9859 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
9860 CL_COMMON): Update values.
9861
9862 2010-08-16 Joseph Myers <joseph@codesourcery.com>
9863
9864 * common.opt: Add driver options.
9865 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
9866 * doc/options.texi (Driver, RejectDriver): Document.
9867 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
9868 print_prog_name, print_multi_directory, print_sysroot,
9869 print_multi_os_directory, print_multi_lib,
9870 print_sysroot_headers_suffix, report_times, combine_flag,
9871 use_pipes, wrapper_string): Remove.
9872 (save_switch, driver_unknown_option_callback,
9873 driver_wrong_lang_callback, driver_post_handling_callback,
9874 driver_handle_option): New.
9875 (spec_lang, last_language_n_infiles): Make file-scope static
9876 instead of local to process_command.
9877 (process_command): Use decode_cmdline_options_to_array and
9878 read_cmdline_option for option processing. Compute have_c in
9879 prescan of decoded options.
9880 * opt-functions.awk (switch_flags): Handle Driver and
9881 RejectDriver.
9882 (var_type, var_type_struct): Handle Separate options as generating
9883 const char * variables.
9884 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
9885 CL_TARGET to be passed by caller if required.
9886 (decode_cmdline_options_to_array): Update comment.
9887 * opts.c (complain_wrong_lang): Handle options only valid for the
9888 driver.
9889 (decode_options): Update call to decode_cmdline_options_to_array.
9890 (print_filtered_help): Ignore driver-only options.
9891 (print_specific_help): Ignore CL_DRIVER.
9892 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
9893 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
9894 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
9895 Update values.
9896
9897 2010-08-16 Richard Guenther <rguenther@suse.de>
9898
9899 * tree-cfg.c (verify_types_in_gimple_reference): Verify
9900 TARGET_MEM_REF a bit.
9901 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
9902 (create_mem_ref_raw): Always create TMR_OFFSET, store the
9903 alias pointer type via it.
9904 (copy_mem_ref_info): Adjust.
9905 (maybe_fold_tmr): Likewise.
9906 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
9907 (reference_alias_ptr_type): Likewise.
9908 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
9909 adjust documentation of TMR_OFFSET operand.
9910 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
9911 use the alias pointer type.
9912 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
9913 initialize mem attrs but the TMR itself.
9914 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
9915 similar to MEM_REF.
9916 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
9917 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
9918 (unshare_and_remove_ssa_names): Likewise.
9919 (copy_ref_info): Adjust.
9920 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
9921 TARGET_MEM_REF case.
9922 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
9923 at TMR_ORIGINAL.
9924 * tree.h (TMR_ORIGINAL): Remove.
9925 * gimple.c (get_base_address): For TARGET_MEM_REF with a
9926 symbol return that.
9927 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
9928 with a symbol.
9929 (get_addr_base_and_unit_offset): Likewise.
9930 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
9931 TARGET_MEM_REFs.
9932 (indirect_ref_may_alias_decl_p): Likewise.
9933 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
9934
9935 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
9936
9937 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
9938 with GCC version 4.6, the default setting (when not optimizing
9939 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
9940 been changed to -fomit-frame-pointer.
9941
9942 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
9943
9944 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
9945 Darwin10. Do not link libgcc.a for Darwin >= 9.
9946
9947 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
9948
9949 * doc/invoke.texi (Warning Options): Fix terminology and markup
9950 in the description of how unknown warning options are handled.
9951
9952 2010-08-15 Ira Rosen <irar@il.ibm.com>
9953
9954 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
9955 in basic blocks.
9956 (vect_supportable_dr_alignment): Check alignment for basic blocks.
9957 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
9958 data references.
9959 (vect_bb_vectorization_profitable_p): New function.
9960 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
9961 check if it's worthwhile to vectorize the basic block.
9962
9963 2010-08-14 Anatoly Sokolov <aesok@post.ru>
9964
9965 * reload.h (register_move_cost, memory_move_secondary_cost,
9966 secondary_reload_class): Adjust prototype.
9967 * rtl.h (reg_class_subset_p): Adjust prototype.
9968 * reload.c (secondary_reload_class): Change arguments type from
9969 enum reg_class to reg_class_t. Change result type to reg_class_t.
9970 * reginfo.c (register_move_cost, reg_class_subset_p): Change
9971 arguments type from enum reg_class to reg_class_t.
9972 (memory_move_secondary_cost): Change arguments type from
9973 enum reg_class to reg_class_t. Change type of saved_flags to
9974 reg_class_t.
9975
9976 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9977 Remove macros.
9978 (mips_cost): Remove.
9979 (struct mips_rtx_cost_data): Moved to mips.c.
9980 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
9981 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
9982 (mips_cost): Make static.
9983 (mips_canonicalize_move_class): Change argument type to reg_class_t.
9984 Change result type to reg_class_t.
9985 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
9986 type from enum reg_class to reg_class_t.
9987 (mips_register_move_cost): Make static. Change arguments
9988 type from enum reg_class to reg_class_t.
9989 (mips_memory_move_cost): New function.
9990 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9991
9992 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
9993
9994 PR rtl-optimization/43358
9995 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
9996 of a single hard register, using simplify_subreg_regno to decide
9997 what that register should be.
9998
9999 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
10000
10001 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
10002 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
10003 (loongson_pmull<V_suffix>): Rename to...
10004 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
10005
10006 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
10007
10008 * configure.ac: Enable -fomit-frame-pointer on darwin
10009 which support dwarf2.
10010 * config/i386/i386.c (override_options): Same.
10011
10012 2010-08-13 Jie Zhang <jie@codesourcery.com>
10013
10014 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
10015
10016 2010-08-12 Joseph Myers <joseph@codesourcery.com>
10017
10018 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
10019 -MMD.
10020
10021 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
10022
10023 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
10024 up dot_prod pattern searching if a stmt is outside the loop.
10025
10026 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
10027 Uros Bizjak <ubizjak@gmail.com>
10028
10029 * config.gcc: Handle --enable-frame-pointer.
10030
10031 * configure.ac: Add --enable-frame-pointer.
10032 * configure: Regenerated.
10033
10034 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
10035 (override_options): If not configured with --enable-frame-pointer,
10036 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
10037 optimizing for size), -fasynchronous-unwind-tables and
10038 -maccumulate-outgoing-args by default.
10039
10040 2010-08-12 Jakub Jelinek <jakub@redhat.com>
10041
10042 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
10043
10044 PR middle-end/45262
10045 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
10046 -a overflows. Normalize the range.
10047
10048 2010-08-12 Richard Guenther <rguenther@suse.de>
10049
10050 PR tree-optimization/45232
10051 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
10052 for types with undefined overflow.
10053 (reassociate_bb): Allow re-associating of bit and min/max
10054 operations for types with undefined overflow.
10055 * tree-ssa-forwprop.c (associate_plusminus): New function.
10056 (tree_ssa_forward_propagate_single_use_vars): Call it.
10057
10058 2010-08-12 Richard Guenther <rguenther@suse.de>
10059
10060 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
10061 * tree-ssa-alias.c (get_ptr_info): Move ...
10062 * tree-ssanames.c (get_ptr_info): ... here. Initialize
10063 align and misalign fields conservatively.
10064 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
10065 derive alignment information.
10066 (evaluate_stmt): Derive alignment information from memory
10067 allocation functions.
10068 * tree.h (get_pointer_alignment): Make unsigned.
10069 * builtins.c (get_object_alignment): Use alignment information we
10070 have computed for pointers.
10071 (get_pointer_alignment): Likewise. Make conservative, return
10072 and unsigned value.
10073 (expand_builtin_strlen): Adjust.
10074 (expand_builtin_memcmp): Likewise.
10075 (expand_builtin_strcmp): Likewise.
10076 (expand_builtin_strncmp): Likewise.
10077 (get_builtin_sync_mem): Use at least mode alignment.
10078 (fold_builtin_memset): Adjust.
10079 (fold_builtin_memory_op): Likewise.
10080 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
10081 information also dump pointer alignment knowledge.
10082 (dump_gimple_stmt): Likewise.
10083
10084 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
10085
10086 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
10087 (EMPTY_FIELD_BOUNDARY): Remove.
10088 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
10089
10090 2010-08-12 Jakub Jelinek <jakub@redhat.com>
10091
10092 PR debug/45259
10093 * caller-save.c (save_call_clobbered_regs): Only swap notes with
10094 DEBUG_INSNs if n_regs_saved.
10095
10096 2010-08-12 Wei Guozhi <carrot@google.com>
10097
10098 PR target/44999
10099 * config/arm/arm.md (andsi3): Change to zero extension if possible.
10100 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
10101
10102 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
10103
10104 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
10105
10106 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
10107
10108 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10109
10110 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
10111 the case removed in the previous patch, when the only phi argument
10112 is defined in the same loop as the phi node itself. Handle it
10113 separately from the invariant case by both propagating it outside
10114 the region and replacing the phi node with an assign.
10115
10116 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10117
10118 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
10119 constant phi nodes with one argument are is_gimple_min_invariant
10120 and SSA_NAME_IS_DEFAULT_DEF.
10121
10122 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10123
10124 * graphite-cloog-util.c (oppose_constraint):
10125 Extend loop counter's value range (CLOOG_ORG).
10126 (cloog_matrix_to_ppl_constraint): Same.
10127 (new_Constraint_System_from_Cloog_matrix): Same.
10128 * graphite-cloog-compat.h (matrix_num_type): New.
10129
10130 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10131
10132 * graphite.c (graphite_initialize): Do not initialize
10133 CLooG and initialize the Parma Polyhedra Library
10134 manually when using CLOOG_ORG.
10135 (graphite_finalize): Do not finalize CLooG and finalize
10136 the Parma Polyhedra Library manually when using CLOOG_ORG.
10137 * graphite-cloog-compat.h (cloog_initialize): Hide function
10138 when using CLOOG_ORG.
10139 (cloog_finalize): Same.
10140
10141 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10142
10143 * graphite-clast-to-gimple.c (free_scattering): Change
10144 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
10145 (CLOOG_ORG).
10146 (build_cloog_prog): Same.
10147 * graphite-cloog-compat.h (cloog_domain): Removed.
10148 (cloog_scattering): New.
10149 (cloog_set_domain): Removed.
10150 (cloog_set_scattering): New.
10151 (cloog_next_domain): Removed.
10152 (cloog_next_scattering): New.
10153 (cloog_set_next_domain): Removed.
10154 (cloog_set_next_scattering): New.
10155 (CloogScatteringList): New.
10156 (CloogScattering): New.
10157 (cloog_scattering_free): New.
10158 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
10159 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
10160 New.
10161
10162 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10163
10164 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
10165 CloogState.
10166 (set_cloog_options): Same.
10167 (print_clast_stmt): Same.
10168 (scop_to_clast): Same.
10169 (print_generated_program): Same.
10170 (gloog): Same.
10171 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
10172 (scop_to_clast): Extend with CloogState.
10173 * graphite-cloog-util.c: Include graphite-cloog-compat.h
10174 (new_Cloog_Domain_from_ppl_Polyhedron):
10175 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
10176 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
10177 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10178 * graphite-cloog-util.h (build_cloog_prog): Same.
10179 * graphite-cloog-copat.h (build_cloog_prog): New.
10180 (CloogState): New.
10181 (cloog_state_malloc): New.
10182 (cloog_state_free): New.
10183 (cloog_loop_malloc): New.
10184 (cloog_options_malloc): New.
10185 (cloog_statement_alloc): New.
10186 (cloog_domain_from_cloog_matrix): New.
10187 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
10188 (new_Cloog_Domain_from_ppl_Polyhedron): New.
10189
10190 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10191
10192 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
10193 type of NAME now depends on used CLooG version.
10194 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
10195 (gcc_type_for_clast_expr): Same.
10196 (print_clast_stmt): Replace pprint with clast_pprint.
10197 * graphite-cloog-compat.h: Provide compatibility macros for
10198 CLooG Legacy.
10199 (clast_name_p): New.
10200 (clast_expr_term): New.
10201 (clast_expr_red): New.
10202 (clast_expr_bin): New.
10203 (clast_pprint): New.
10204
10205 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10206
10207 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
10208 compatible to newer CLooG releases (CLOOG_ORG).
10209 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
10210 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
10211 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
10212 (build_cloog_prog) : New.
10213 (cloog_program_extract_scalars): New.
10214 (cloog_program_scatter): New.
10215
10216 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10217
10218 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
10219 conditionally (CLOOG_ORG).
10220 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
10221 (cloog_statement_usr): New.
10222 (cloog_domain): Same.
10223 (cloog_set_domain): Same.
10224 (cloog_next_domain): Same.
10225 (cloog_set_next_domain): Same.
10226 (cloog_program_nb_scattdims): Same.
10227 (cloog_program_set_nb_scattdims): Same.
10228 (cloog_program_names): Same.
10229 (cloog_program_set_names): Same.
10230 (cloog_program_set_context): Same.
10231 (cloog_program_set_loop): Same.
10232 (cloog_program_blocklist): Same.
10233 (cloog_program_set_blocklist): Same.
10234 (cloog_program_scaldims): Same.
10235 (cloog_program_set_scaldims): Same.
10236 (cloog_names_nb_parameters): Same.
10237 (cloog_names_set_nb_parameters): Same.
10238 (cloog_names_parameters): Same.
10239 (cloog_names_set_parameters): Same.
10240 (cloog_names_set_nb_iterators): Same.
10241 (cloog_names_set_iterators): Same.
10242 (cloog_names_set_nb_scattering): Same.
10243 (cloog_names_set_scattering): Same.
10244 (cloog_statement_set_usr): Same.
10245 (cloog_loop_set_next): Same.
10246 (cloog_loop_set_domain): Same.
10247 (cloog_loop_set_block): Same.
10248 (cloog_block_list_next): Same.
10249 (cloog_block_list_set_next):
10250 (cloog_block_list_set_block): Same.
10251
10252 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10253
10254 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
10255 a bool.
10256 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
10257 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
10258 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
10259 when something has been changed.
10260 (rewrite_commutative_reductions_out_of_ssa): Same.
10261
10262 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10263
10264 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
10265 handle the case when def is in the sese region.
10266 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
10267 for invariant expressions.
10268 (rewrite_cross_bb_phi_deps): Removed.
10269 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
10270 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
10271 rewrite_cross_bb_phi_deps.
10272
10273 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10274
10275 * graphite-sese-to-poly.c
10276 (rewrite_commutative_reductions_out_of_ssa_loop): Call
10277 scev_analyzable_p only on is_gimple_reg
10278
10279 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10280
10281 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
10282 (rewrite_close_phi_out_of_ssa): Propagate constant values or
10283 parametric expressions outside the scop region.
10284 (rewrite_cross_bb_scalar_deps): Same.
10285 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
10286
10287 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10288
10289 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
10290 SSA_NAME_DEF_STMT only on SSA_NAMEs.
10291
10292 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10293
10294 * tree-scalar-evolution.c (instantiate_scev_name): Do not
10295 instantiate default definitions.
10296
10297 2010-08-11 Vladimir Kargov <kargov@gmail.com>
10298 Sebastian Pop <sebastian.pop@amd.com>
10299
10300 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
10301 (loop_exits_from_bb_p): New.
10302 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
10303 (loop_exits_from_bb_p): Declared.
10304 * graphite-scop-detection.c (scopdet_basic_block_info): Call
10305 loop_exits_to_bb_p.
10306
10307 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10308
10309 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
10310 extra parameter for the region. Call scev_analyzable_p.
10311 (rewrite_reductions_out_of_ssa): Update call to
10312 rewrite_close_phi_out_of_ssa.
10313 (rewrite_cross_bb_phi_deps): Same.
10314 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
10315 parameter for the region. Call scev_analyzable_p.
10316 (rewrite_commutative_reductions_out_of_ssa): Update call to
10317 rewrite_commutative_reductions_out_of_ssa_loop.
10318
10319 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10320
10321 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
10322
10323 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10324
10325 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
10326 SSA scalar phi nodes that can be scev_analyzable_p.
10327
10328 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10329
10330 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
10331 handle SSA_NAME_IS_DEFAULT_DEF.
10332
10333 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10334
10335 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
10336
10337 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10338
10339 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
10340 case non close-phi nodes with one argument.
10341
10342 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10343
10344 * sese.h (scev_analyzable_p): Scevs could be expressions without
10345 chrecs and still be scev_analyzable_p.
10346
10347 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10348
10349 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10350
10351 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10352
10353 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
10354 * cfgloop.h (struct loop): Remove single_iv field.
10355 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
10356 (scop_canonicalize_loops): Removed.
10357 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
10358 over all the loop phi nodes in loop->header.
10359 (build_poly_scop): Remove use of scop_canonicalize_loops.
10360
10361 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10362
10363 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
10364 handle GIMPLE_CALL.
10365
10366 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10367
10368 * tree-chrec.c (chrec_apply): Should only apply to the specified
10369 variable. Also handle multivariate chains of recurrences that
10370 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
10371
10372 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10373
10374 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
10375 (debug_clast_name_indexes_1): Removed.
10376 (debug_clast_name_indexes): Removed.
10377 (pbb_to_depth_to_oldiv): Removed.
10378 (build_iv_mapping): Replace the use of rename_map with iv_map.
10379 (translate_clast_user): Remove uses of rename_map. Allocate and
10380 free iv_map.
10381 (translate_clast_for_loop): Remove uses of rename_map.
10382 (translate_clast_for): Same.
10383 (translate_clast_guard): Same.
10384 (translate_clast): Same.
10385 (gloog): Same.
10386 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
10387 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
10388 * sese.c (set_rename): Now static.
10389 (rename_variables_in_stmt): Removed.
10390 (rename_uses): New.
10391 (is_parameter): Removed.
10392 (is_iv): Removed.
10393 (expand_scalar_variables_call): Removed.
10394 (expand_scalar_variables_ssa_name): Removed.
10395 (expand_scalar_variables_expr): Removed.
10396 (expand_scalar_variables_stmt): Removed.
10397 (expand_scalar_variables): Removed.
10398 (rename_variables): Removed.
10399 (remove_condition): Removed.
10400 (get_true_edge_from_guard_bb): Removed.
10401 (get_false_edge_from_guard_bb): Removed.
10402 (struct igp): Removed.
10403 (default_before_guard): Removed.
10404 (convert_for_phi_arg): Removed.
10405 (add_guard_exit_phis): Removed.
10406 (insert_guard_phis): Removed.
10407 (graphite_copy_stmts_from_block): Now also uses iv_map and a
10408 region. Do not copy conditions. Do not copy induction variables.
10409 Call rename_uses.
10410 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
10411 the translated statement. Use the iv_map for the induction
10412 variable renaming.
10413 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
10414 (set_rename): Removed declaration.
10415 (scev_analyzable_p): ...here.
10416 * tree-chrec.c (chrec_apply_map): New.
10417 * tree-chrec.h (chrec_apply_map): Declared.
10418
10419 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10420
10421 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
10422 insert_loop_close_phis.
10423 * sese.c (name_defined_in_loop_p): Removed.
10424 (expr_defined_in_loop_p): Removed.
10425 (alive_after_loop): Removed.
10426 (close_phi_not_yet_inserted_p): Removed.
10427 (struct alep): Removed.
10428 (add_loop_exit_phis): Removed.
10429 (insert_loop_close_phis): Removed.
10430
10431 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10432
10433 * graphite-cloog-util.c
10434 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
10435 * graphite-poly.c
10436 (psct_scattering_dim_for_loop_depth): Same.
10437
10438 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10439
10440 * graphite-cloog-util.h: Added cloog.h.
10441 * graphite-blocking.c: Removed cloog.h.
10442 * graphite-dependences.c: Same.
10443 * graphite-interchange.c: Same.
10444 * graphite-poly.c: Same.
10445 * graphite-ppl.c: Same.
10446 * graphite-scop-detection.c: Same.
10447 * graphite-sese-to-poly.c:
10448 Removed cloog.h.
10449 Removed graphite-clast-to-gimple.h.
10450 (check_poly_representation): Removed (unused).
10451 * graphite-sese-to-poly.h
10452 (check_poly_representation): Removed (unused).
10453
10454 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10455
10456 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
10457 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
10458 (graphite-cloog-util.o): New.
10459 (graphite-ppl.o): Added graphite-cloog-util.h.
10460 * graphite-clast-to-gimple.c:
10461 Added graphite-cloog-util.h to include statements.
10462 * graphite-cloog-util.c: New.
10463 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
10464 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10465 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10466 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10467 (insert_constraint_into_matrix): Same.
10468 (ppl_Constrain_System_number_of_constraints): Same.
10469 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
10470 (oppose_constraint): Same.
10471 (cloog_matrix_to_ppl_constraint): Same.
10472 (new_Constraint_System_from_Cloog_Matrix): Same.
10473 * graphite-cloog-util.h: New.
10474 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
10475 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10476 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10477 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10478 (insert_constraint_into_matrix): Same.
10479 * graphite-ppl.c:
10480 Added graphite-cloog-util.h to include statements.
10481 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
10482 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10483 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10484 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10485 (insert_constraint_into_matrix): Same.
10486 (ppl_Constrain_System_number_of_constraints): Same.
10487 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
10488 (oppose_constraint): Same.
10489 (cloog_matrix_to_ppl_constraint): Same.
10490 (new_Constraint_System_from_Cloog_Matrix): Same.
10491 * graphite-ppl.h:
10492 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
10493 graphite-cloog-util.h.
10494 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10495 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10496 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10497 (insert_constraint_into_matrix): Same.
10498
10499 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10500
10501 * graphite-clast-to-gimple.c
10502 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
10503 (precision_for_interval): Same.
10504 (gcc_type_for_interval): Same.
10505 (compute_type_for_level): Same.
10506 * graphite-interchange.c
10507 (lst_interchange_profitable_p): Same.
10508 * graphite-poly.c
10509 (psct_scattering_dim_for_loop_depth): Same.
10510 * graphite-ppl.c
10511 (ppl_max_for_le_pointset): Same.
10512 (ppl_min_for_le_pointset): Same.
10513
10514 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10515
10516 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
10517 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
10518
10519 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10520
10521 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
10522 rewrite_close_phi_out_of_ssa.
10523
10524 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10525
10526 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
10527
10528 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10529
10530 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
10531 rename_map.
10532 * sese.c (debug_rename_map): Same.
10533 (get_rename): Same.
10534 (set_rename): Same.
10535 (rename_variables_in_stmt): Same.
10536 (expand_scalar_variables_call): Same.
10537 (expand_scalar_variables_ssa_name): Same.
10538 (expand_scalar_variables_expr): Same.
10539 (expand_scalar_variables_stmt): Same.
10540 (expand_scalar_variables): Same.
10541 (rename_variables): Same.
10542 (graphite_copy_stmts_from_block): Same.
10543 (copy_bb_and_scalar_dependences): Same.
10544
10545 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10546
10547 * graphite-clast-to-gimple.c (copy_renames): Removed.
10548 (translate_clast_for): Do not call copy_renames.
10549 (translate_clast_guard): Same.
10550
10551 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10552
10553 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
10554 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
10555 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
10556 before rewrite_cross_bb_scalar_deps.
10557
10558 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10559
10560 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
10561 Early return in when flag_associative_math is not set.
10562
10563 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10564
10565 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
10566 of SSA copies on edges except for loop->latch.
10567
10568 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10569
10570 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
10571 Split out of rewrite_reductions_out_of_ssa.
10572 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
10573 Declared.
10574 * graphite.c (graphite_transform_loops): Call it.
10575
10576 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10577
10578 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
10579
10580 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
10581
10582 * dbgcnt.def (graphite_scop): New counter.
10583 * graphite.c: Include dbgcnt.h.
10584 (graphite_transform_loops): Use new counter to limit transformations.
10585 * Makefile.in (graphite.o): Depend on DBGCNT_H.
10586
10587 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10588
10589 * passes.c (init_optimization_passes): Add pass_graphite.
10590 Schedule a pass_copy_prop before pass_graphite_transforms.
10591 * timevar.def (TV_GRAPHITE): Declared.
10592 * tree-pass.h (pass_graphite): Declared.
10593 * tree-ssa-loop.c (pass_graphite): New.
10594
10595 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10596
10597 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
10598 Remove calls to rename_nb_iterations and rename_sese_parameters.
10599 * graphite-clast-to-gimple.h (gloog): Update declaration.
10600 * graphite.c (graphite_transform_loops): Update call to gloog.
10601 * sese.c (rename_variables_in_expr): Removed.
10602 (rename_nb_iterations): Removed.
10603 (rename_sese_parameters): Removed.
10604 * sese.h (rename_nb_iterations): Removed.
10605 (rename_sese_parameters): Removed.
10606
10607 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10608
10609 * graphite-clast-to-gimple.c (gloog): Remove call to
10610 sese_adjust_liveout_phis.
10611 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
10612 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
10613 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
10614 rewrite_phi_out_of_ssa.
10615 * sese.c (get_vdef_before_sese): Removed.
10616 (sese_adjust_vphi): Removed.
10617 (sese_adjust_liveout_phis): Removed.
10618 * sese.h (sese_adjust_liveout_phis): Removed.
10619
10620 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10621
10622 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
10623 argument for the place after which to insert the out of SSA copy.
10624 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
10625 (rewrite_phi_out_of_ssa): Same.
10626 (rewrite_cross_bb_scalar_deps): Same.
10627 (insert_copyout): Removed.
10628 (insert_copyin): Removed.
10629 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
10630 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
10631 insert_copyin.
10632
10633 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10634
10635 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
10636 (rewrite_reductions_out_of_ssa): Same.
10637 (rewrite_commutative_reductions_out_of_ssa): Same.
10638 (build_poly_scop): Do not call these functions.
10639 * graphite-sese-to-poly.h (build_poly_scop): Declared.
10640 (rewrite_reductions_out_of_ssa): Declared.
10641 (rewrite_commutative_reductions_out_of_ssa): Declared.
10642 * graphite.c (graphite_transform_loops): Call on every scop
10643 rewrite_commutative_reductions_out_of_ssa before calling
10644 rewrite_reductions_out_of_ssa and build_scop_bbs.
10645
10646 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10647
10648 * graphite-dependences.c (dot_deps): Make system call to dotty run
10649 in background.
10650 (dot_deps_stmt): Same.
10651 * graphite-poly.c (dot_lst): Same.
10652
10653 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10654
10655 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
10656 phi_arg_in_outermost_loop.
10657 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
10658 (remove_invariant_phi): Same.
10659
10660 2010-08-11 Anatoly Sokolov <aesok@post.ru>
10661
10662 * target.def (output_addr_const_extra): New hook.
10663 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
10664 * doc/tm.texi: Regenerate.
10665 * targhooks.c (default_asm_output_addr_const_extra): New function.
10666 * targhooks.h (default_asm_output_addr_const_extra): Declare.
10667 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
10668 target hook.
10669
10670 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10671 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
10672 * config/i386/i386.h (output_addr_const_extra): Rename to...
10673 (i386_asm_output_addr_const_extra): ...this. Make static.
10674 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10675
10676 2010-08-11 Richard Henderson <rth@redhat.com>
10677
10678 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
10679
10680 2010-08-11 Nick Clifton <nickc@redhat.com>
10681
10682 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
10683 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
10684 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
10685 stormy16-lib2-cmpsi.c.
10686
10687 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
10688 -O2.
10689
10690 2010-08-11 Joseph Myers <joseph@codesourcery.com>
10691
10692 * opts.h (struct cl_option_handler_func): Make handler take
10693 cl_decoded_option structure as parameter, not individual elements.
10694 (struct cl_option_handlers): Make callbacks take cl_decoded_option
10695 structure as parameter, not individual elements.
10696 (handle_option): Take cl_decoded_option structure as parameter,
10697 not individual elements.
10698 (handle_generated_option): Declare.
10699 * opts-common.c (handle_option): Take cl_decoded_option structure
10700 as parameter, not individual elements. Update calls to callback
10701 and handler functions.
10702 (handle_generated_option): New.
10703 (read_cmdline_option): Update calls to callback functions and
10704 handle_option.
10705 * opts.c (common_handle_option, complain_wrong_lang,
10706 unknown_option_callback, post_handling_callback,
10707 lang_handle_option, target_handle_option): Take cl_decoded_option
10708 structure as parameter, not individual elements.
10709 (lang_handle_option, target_handle_option, common_handle_option):
10710 Assert option has at most one argument.
10711 (enable_warning_as_error): Call handle_generated_option instead of
10712 handle_option. Do not pass -Werror argument as argument of
10713 generated option.
10714
10715 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10716
10717 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
10718 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
10719 (SUBWORD_BOOL_CAS): Likewise.
10720 (SUBWORD_SYNC_OP): Likewise.
10721 (SUBWORD_TEST_AND_SET): Likewise.
10722 (FETCH_AND_OP_WORD): Parenthesise INF_OP
10723 (SUBWORD_SYNC_OP): Likewise.
10724 (OP_AND_FETCH_WORD): Likewise.
10725
10726 2010-08-10 Xinliang David Li <davidxl@google.com>
10727
10728 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
10729 compute max/min offset in address.
10730
10731 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
10732
10733 * ira-live.c: Include sbitmap.h.
10734 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
10735 Compress live ranges even more.
10736
10737 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10738
10739 * coverage.c (ctr_labels): Delete.
10740
10741 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
10742
10743 PR bootstrap/45177
10744 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
10745 test here from arm_gen_load_multiple_1.
10746 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
10747 multiple_operation_profitable_p.
10748
10749 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10750
10751 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
10752 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
10753
10754 2010-08-10 Richard Henderson <rth@redhat.com>
10755
10756 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
10757 after saving registers. Assert that SSE registers are only saved
10758 with a sufficiently aligned frame.
10759 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
10760 remove stack_realign_fp handling.
10761 (ix86_expand_prologue): Save int registers before stack_realign_fp,
10762 and do not mark the stack alignment as frame related.
10763 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
10764
10765 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
10766 saves when re-aligning the stack.
10767
10768 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10769
10770 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
10771 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
10772 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
10773
10774 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10775
10776 * dwarf2out.c (struct die_struct): Move die_tag to the end.
10777
10778 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
10779
10780 * config/arm/iterators.md: New file.
10781 * config/arm/arm.md: Include iterators.md.
10782 (QHSI): Move to new file.
10783 (LTUGEU, cnb, optab, ior_xor): Likewise.
10784 * config/arm/iwmmxt.md (VMMX): Move to new file.
10785 (VSHFT, MMX_char): Likewise.
10786 * config/arm/neon.md (VD): Move to new file.
10787 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
10788 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
10789 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
10790 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
10791 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
10792 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
10793 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
10794 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
10795 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
10796 (Is_d_reg, V_mode_nunits): Likewise.
10797 * config/arm/vec-common.md (VALL): Move to new file.
10798 (VALLW, VINT, VINTW): Likewise.
10799
10800 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
10801
10802 PR middle-end/45182
10803 * combine.c (make_compound_operation): Don't try to convert
10804 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
10805
10806 2010-08-10 Richard Guenther <rguenther@suse.de>
10807
10808 * tree.h (get_object_alignment): Adjust prototype.
10809 * builtins.c (get_object_alignment): Return unsigned int,
10810 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
10811 and TARGET_MEM_REF properly.
10812 (get_pointer_alignment): Adjust.
10813 * emit-rtl.c (get_mem_align_offset): Adjust comment.
10814 (set_mem_attributes_minus_bitpos): Adjust.
10815 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
10816
10817 2010-08-10 Richard Guenther <rguenther@suse.de>
10818
10819 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
10820 (copy_prop_visit_assignment): Simplify.
10821 (copy_prop_visit_stmt): Also visit assignments from
10822 constants.
10823 (copy_prop_visit_phi_node): Use operand_equal_p.
10824
10825 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10826
10827 * ipa-split.c (find_split_points): Free stack.
10828
10829 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10830
10831 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
10832 * tree.c (tree_node_kind): Delete corresponding entries.
10833
10834 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
10835
10836 * alias.c (may_alias_p): Remove unused ret.
10837
10838 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
10839
10840 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
10841 alias_sets_conflict_p.
10842 (walk_mems_1): Moved from alias.c.
10843 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
10844 in alias.c.
10845 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
10846 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
10847 * alias.c (walk_mems_2): Moved to ddg.c.
10848 (walk_mems_1): Ditto.
10849 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
10850 to ddg.c.
10851 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
10852 disambiguation.
10853 *(may_alias_p): New function to check whether two memory expression
10854 may alias or not. Currently used in buidling inter-iteration memory
10855 dependence.
10856 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
10857 (insn_alias_sets_conflict_p): Removed
10858 *rtl.h (may_alias_p): New function prototype.
10859
10860 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10861
10862 * tree.c (nreverse): Assert that we don't have a BLOCK.
10863
10864 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10865
10866 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
10867 * config/arm/arm.c (arm_get_pcs_model): Likewise.
10868 * config/avr/avr.c (init_cumulative_args): Likewise.
10869 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10870 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10871 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
10872 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
10873 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
10874 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10875 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10876 * dwarf2out.c (gen_subprogram_die): Likewise.
10877 * function.c (allocate_struct_function): Likewise.
10878 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
10879 (deserves_ellipsis): Delete.
10880
10881 2010-08-09 Richard Guenther <rguenther@suse.de>
10882
10883 * tree-ssa-copy.c (cached_last_copy_of): Remove.
10884 (valueize_val): New function.
10885 (get_last_copy_of): Remove.
10886 (set_copy_of_val): Simplify.
10887 (dump_copy_of): Likewise.
10888 (copy_prop_visit_cond_stmt): Use valueize_val.
10889 (copy_prop_visit_phi_node): Properly handle unvisited names.
10890 Drop code managing copy-of chains.
10891 (init_copy_prop): Adjust.
10892 (fini_copy_prop): Likewise.
10893 (execute_copy_prop): Remove obsolete comment.
10894
10895 2010-08-09 Richard Guenther <rguenther@suse.de>
10896
10897 PR middle-end/44632
10898 * function.c (gimplify_parameters): Do not clear addressable
10899 bit of the original parameter.
10900
10901 2010-08-09 Richard Guenther <rguenther@suse.de>
10902
10903 PR middle-end/45212
10904 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
10905 alignment from MEM_REF offset only if we took it from the
10906 base object.
10907
10908 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
10909
10910 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
10911
10912 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10913
10914 * c-tree.h (build_arg_info): Declare.
10915 * c-decl.c (build_arg_info): Define.
10916 (get_parm_info): Call it. Delete initialization code.
10917 * c-parser.c (c_parser_parms_declarator): Likewise.
10918 (c_parser_parms_list_declaractor): Likewise.
10919
10920 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10921
10922 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
10923 (struct c_arg_info): Change type of tags field.
10924 * c-decl.c (grokdeclarator): Update for changed type of tags field.
10925 (get_parm_info): Likewise.
10926 (store_parm_decls_newstyle): Likewise.
10927
10928 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10929
10930 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
10931 (branch_island_list): Delete.
10932 (branch_islands): Declare.
10933 (add_compiler_branch_island): Adjust for branch_islands instead of
10934 branch_island_list.
10935 (macho_branch_islands): Likewise.
10936 (no_previous_def): Likewise.
10937 (get_prev_label): Likewise.
10938
10939 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10940
10941 PR boehm-gc/34544
10942 * gthr-posix.h (__gthread_start): Delete.
10943 (__gthread_active_init): Use pthread_default_stacksize_np instead of
10944 pthread_create to determine if hpux pthreads are active.
10945 * gthr-posix95.h (__gthread_start): Delete.
10946 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
10947
10948 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
10949
10950 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
10951 _WIN64 not expanded.
10952
10953 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
10954 H.J. Lu <hongjiu.lu@intel.com>
10955
10956 PR target/45213
10957 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
10958 to output 32bit SFmode immediate as 8 byte sign extended value.
10959
10960 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10961
10962 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
10963 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
10964 (SUBWORD_BOOL_CAS): Likewise.
10965 (SUBWORD_SYNC_OP): Likewise.
10966 (SUBWORD_TEST_AND_SET): Likewise.
10967 (FETCH_AND_OP_WORD): Parenthesise INF_OP
10968 (SUBWORD_SYNC_OP): Likewise.
10969 (OP_AND_FETCH_WORD): Likewise.
10970
10971 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10972
10973 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
10974 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
10975 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
10976 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
10977 generic part.
10978 (cortex_a9_sched_adjust_cost): New function.
10979 (xscale_sched_adjust_cost): New function.
10980 * config/arm/arm-protos.h (struct tune_params): New field
10981 sched_adjust_cost.
10982 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
10983
10984 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
10985
10986 PR target/44942
10987 * config/sparc/sparc.c (function_arg_advance): Always take into account
10988 the padding, if any.
10989
10990 2010-08-06 Richard Guenther <rguenther@suse.de>
10991
10992 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
10993 (dump_lattice_value): Dump it.
10994 (get_default_value): Adjust.
10995 (get_constant_value): Likewise.
10996 (set_value_varying): Likewise.
10997 (set_lattice_value): Make sure to not go up the lattice
10998 with bitwise constant values.
10999 (get_value_for_expr): Handle ADDR_EXPRs.
11000 (value_to_double_int): New function.
11001 (get_value_from_alignment): Likewise.
11002 (do_dbg_cnt): Adjust.
11003 (ccp_lattice_meet): Handle partially constant values.
11004 (bit_value_unop_1): New function.
11005 (bit_value_binop_1): Likewise.
11006 (bit_value_unop): Likewise.
11007 (bit_value_binop): Likewise.
11008 (evaluate_stmt): Track partially constant values if
11009 flag_tree_bit_ccp is set.
11010 (ccp_fold_stmt): Dump if we folded a predicate.
11011 (ccp_visit_stmt): Adjust.
11012 * common.opt (ftree-bit-ccp): New flag.
11013 * doc/invoke.texi (ftree-bit-ccp): Document.
11014 * opts.c (decode_options): Enable bit-CCP at -O1.
11015
11016 2010-08-06 Alan Modra <amodra@gmail.com>
11017
11018 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
11019 and -mrelocatable-lib description.
11020
11021 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
11022
11023 From Martin Thuresson <martint@google.com>
11024 * postreload.c (reload_cse_simplify_operands): Use
11025 SET_REGNO_RAW instead of SET_REGNO.
11026 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
11027 SET_REGNO.
11028 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
11029 instead of SET_REGNO.
11030 * rtl.h (SET_REGNO_RAW): New macro.
11031
11032 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
11033
11034 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
11035 computations. Fix formatting issues.
11036 (num_sign_bit_copies1): Likewise.
11037 (canonicalize_condition): Likewise.
11038
11039 2010-08-05 Richard Henderson <rth@redhat.com>
11040
11041 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
11042 (floor_log2): Use clz_hwi.
11043 (exact_log2): Use ctz_hwi.
11044 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
11045 * builtins.c (fold_builtin_bitop): Use them.
11046 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11047 * combine.c (get_pos_from_mask): Use ctz_hwi.
11048 * double-int.c (double_int_ctz): Likewise.
11049 * explow.c (force_reg): Likewise.
11050 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
11051
11052 2010-08-05 Richard Henderson <rth@redhat.com>
11053
11054 PR target/45189
11055 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
11056 the alignment constant is properly sign-extended.
11057
11058 2010-08-05 Richard Guenther <rguenther@suse.de>
11059
11060 * expr.c (store_expr): Use emit_block_move only if both
11061 source and target are MEMs. Use store_bit_field if only
11062 the target is a MEM.
11063
11064 2010-08-05 Richard Henderson <rth@redhat.com>
11065
11066 PR debug/45188
11067 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
11068 (INCOMING_RETURN_ADDR_RTX): Likewise.
11069 (dwarf2out_do_frame): Remove conditional compilation.
11070 (dwarf2out_frame_init): Likewise.
11071
11072 2010-08-05 Nicolas Setton <setton@adacore.com>
11073
11074 * gcov.c (flag_display_progress): New static variable.
11075 (main): Display progress info on standard output if requested.
11076 (options): Add -d/--display-progress.
11077 (print_usage): Print them.
11078 (process_args): Handle them.
11079 * doc/gcov.texi: Document them.
11080
11081 2010-08-05 Martin Jambor <mjambor@suse.cz>
11082
11083 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
11084 (ipcp_insert_stage): Redirect only edges not flagged with
11085 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
11086 discovered constants.
11087
11088 2010-08-05 Martin Jambor <mjambor@suse.cz>
11089
11090 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
11091 (struct ipa_param_descriptor): New fields types and
11092 cannot_devirtualize.
11093 (ipa_param_cannot_devirtualize_p): New function.
11094 (ipa_param_types_vec_empty): Likewise.
11095 (ipa_make_edge_direct_to_target): Declare.
11096 * ipa-cp.c: Fixed first stage driver name in initial comment,
11097 described devirtualization there too.
11098 (ipcp_analyze_node): Call ipa_analyze_params_uses.
11099 (ipcp_print_all_lattices): Print devirtualization info.
11100 (ipa_set_param_cannot_devirtualize): New function.
11101 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
11102 lattice to BOTTOM.
11103 (ipcp_init_stage): Merged into...
11104 (ipcp_generate_summary): ...its caller.
11105 (ipcp_change_tops_to_bottom): Also process type lists.
11106 (ipcp_add_param_type): New function.
11107 (ipcp_copy_types): Likewise.
11108 (ipcp_propagate_types): Likewise.
11109 (ipcp_propagate_stage): Also propagate types.
11110 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
11111 Also return true if propagated types require it.
11112 (ipcp_update_callgraph): Dump redirection info.
11113 (ipcp_process_devirtualization_opportunities): New function.
11114 (ipcp_const_param_count): Include known type information.
11115 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
11116 on new node. Fixed formatting.
11117 * ipa-prop.c (make_edge_direct_to_target): Renamed to
11118 ipa_make_edge_direct_to_target and changed all callers. Made
11119 externally visible.
11120 (ipa_node_duplication_hook): Duplicate types vector.
11121 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
11122 redirect outgoing calls for which we can't get a decl from the
11123 statement. Check that we can get a decl from the call statement.
11124 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11125 ipa_analyze_params_uses only when ipa-cp is disabled.
11126 * tree-inline.c (get_indirect_callee_fndecl): Removed.
11127 (expand_call_inline): Do not call get_indirect_callee_fndecl.
11128 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
11129 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
11130
11131 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11132
11133 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
11134 temporary. Emit move from temporary to accum, so REG_EQUAL note will
11135 be attached to this insn in correct mode.
11136
11137 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11138
11139 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
11140 using REGNO of base_reg directly.
11141
11142 2010-08-05 Jie Zhang <jie@codesourcery.com>
11143
11144 PR tree-optimization/45144
11145 * tree-sra.c (type_consists_of_records_p): Return false
11146 if the record contains bit-field.
11147
11148 2010-08-04 Richard Henderson <rth@redhat.com>
11149
11150 * config/i386/i386.c (struct ix86_frame): Remove padding and
11151 to_allocate members.
11152 (ix86_compute_frame_layout): Don't store them.
11153 (ix86_can_use_return_insn_p): Use a more direct and more obviously
11154 correct condition for the position of the stack pointer.
11155 (ix86_expand_prologue): Compute remaining stack allocation based
11156 on the ultimate stack pointer offset.
11157 (ix86_expand_epilogue): Use more obvious expressions testing for
11158 the stack pointer already pointing to the saved registers.
11159
11160 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
11161 duplication deconstructing the frame pointer. Simplify
11162 deallocation of the local stack frame.
11163
11164 * reg-notes.def (CFA_EXPRESSION): New.
11165 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11166 (dwarf2out_frame_debug_cfa_expression): New.
11167 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
11168
11169 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
11170 * config/i386/i386.c (ix86_expand_prologue): Set it.
11171 (ix86_expand_epilogue): Clear it.
11172 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
11173 context, add REG_CFA_EXPRESSION notes.
11174
11175 * config/i386/i386.h (struct machine_frame_state): Rename from
11176 machine_cfa_state. Add members tracking SP and FP regardless
11177 of the current CFA register.
11178 (ix86_cfa_state): Remove.
11179 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
11180 and sse_reg_save_offset members.
11181 (ix86_compute_frame_layout): Set them.
11182 (gen_push): Increment sp_offset too.
11183 (choose_baseaddr_len, choose_baseaddr): New.
11184 (ix86_emit_save_reg_using_mov): New.
11185 (ix86_emit_save_regs_using_mov): Use it.
11186 (ix86_emit_save_sse_regs_using_mov): Likewise.
11187 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
11188 compare vs the saved red_zone_offset.
11189 (pro_epilogue_adjust_stack): Adjust sp_offset.
11190 (ix86_adjust_stack_and_probe): Likewise.
11191 (ix86_expand_prologue): Set up, use, and validate the new
11192 frame_state_info members. Use gen_frame_mem.
11193 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
11194 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
11195 new frame_state_info members.
11196 (ix86_emit_leave): Likewise.
11197 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
11198 out-of-range stack pointer offsets here.
11199 (ix86_emit_restore_sse_regs_using_mov): Likewise.
11200 (ix86_expand_epilogue): Use and validate the new frame_state_info
11201 members. Break up and simplify the logic selecting the
11202 restore_regs_via_mov code path. Ensure that there will be no
11203 out-of-range stack pointer offsets.
11204
11205 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
11206
11207 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
11208 argument name to reflect the expected tree; fix indentation.
11209 (ix86_asm_output_function_label): Output the entire 32-bit
11210 ms_hook here as bytes ...
11211 (ix86_expand_prologue): ... not here as insns. Attach the
11212 unwind info for the ms_hook to a blockage insn.
11213 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
11214 (ix86_ms_bitfield_layout_p): Fix indentation.
11215 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
11216
11217 * config/i386/i386.c (ix86_using_red_zone): New.
11218 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
11219 ix86_expand_prologue, ix86_force_to_memory): Use it.
11220
11221 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
11222 saving the int registers.
11223
11224 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
11225 and DWARF2_UNWIND_INFO conditional compilation.
11226
11227 2010-08-04 Richard Henderson <rth@redhat.com>
11228
11229 PR debug/45171
11230 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
11231 an is_naming_typedef_decl.
11232
11233 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
11234
11235 PR rtl-optimization/45162
11236 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
11237 * dce.c (word_dce_process_block): Likewise.
11238
11239 2010-08-04 Steve Ellcey <sje@cup.hp.com>
11240
11241 PR target/44583
11242 * config/ia64/constraints.md (Z): New.
11243 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
11244 (xfreg_or_signed_fp01_operand): New.
11245 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
11246 with fr_reg_or_signed_fp01_operand and constraint G with Z.
11247 (subsf3): Ditto.
11248 (*maddsf4): Ditto.
11249 (*msubsf4): Ditto.
11250 (adddf3): Ditto.
11251 (adddf3_trunc): Ditto.
11252 (subdf3): Ditto.
11253 (*subdf3_trunc): Ditto.
11254 (*madddf4): Ditto.
11255 (*madddf4_trunc): Ditto.
11256 (*msubdf4): Ditto.
11257 (*msubdf4_trunc): Ditto.
11258 (addxf3): Replace xfreg_or_fp01_operand with
11259 xfreg_or_signed_fp01_operand and constraint G with Z.
11260 (*addxf3_truncsf): Ditto.
11261 (*addxf3_truncdf): Ditto.
11262 (subxf3): Ditto.
11263 (*subxf3_truncsf): Ditto.
11264 (*subxf3_truncdf): Ditto.
11265 (*maddxf4): Ditto.
11266 (*maddxf4_truncsf): Ditto.
11267 (*maddxf4_truncdf): Ditto.
11268 (*msubxf4): Ditto.
11269 (*msubxf4_truncsf): Ditto.
11270 (*msubxf4_truncdf): Ditto.
11271
11272 2010-08-04 Richard Guenther <rguenther@suse.de>
11273
11274 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
11275 if either alias-set is zero.
11276
11277 2010-08-04 Richard Guenther <rguenther@suse.de>
11278
11279 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
11280 * tree-ssa-ccp.c: ... here.
11281 * tree-ssa-copy.c: ... and here.
11282 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
11283 value_range_t): Move ...
11284 * tree-vrp.c: ... here.
11285 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
11286 (substitute_and_fold): Adjust prototype.
11287 * tree-ssa-propagate.c (replace_uses_in): Adjust.
11288 (replace_phi_args_in): Likewise.
11289 (substitute_and_fold): Take callback to query lattice instead
11290 of pointer to lattice. Replace SSA name defs with lattice
11291 values first.
11292 * tree-ssa-ccp.c (ccp_finalize): Adjust.
11293 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
11294 (get_value): New function.
11295 (fini_copy_prop): Adjust.
11296 * tree-vrp.c (vrp_finalize): Adjust.
11297
11298 2010-08-04 Richard Guenther <rguenther@suse.de>
11299
11300 PR middle-end/45176
11301 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
11302 points-to set for original MEM_REF.
11303
11304 2010-08-04 Richard Guenther <rguenther@suse.de>
11305
11306 * tree-ssa-ccp.c (get_constant_value): New function.
11307 (get_rhs_assign_op_for_ccp): Remove.
11308 (valueize_op): New function.
11309 (ccp_fold): Use get_constant_value and valueize_op.
11310 (fold_const_aggregate_ref): Likewise.
11311 (ccp_fold_stmt): Likewise.
11312 (visit_assignment): Simplify.
11313
11314 2010-08-04 Richard Guenther <rguenther@suse.de>
11315
11316 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
11317 * double-int.h (double_int_ctz): Declare.
11318 * double-int.c (double_int_ctz): New function.
11319
11320 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
11321
11322 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
11323 Define.
11324 picochip_expand_movmemhi : Expand movmem pattern.
11325 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
11326 Declare.
11327 * config/picochip/picochip.md (movmemhi) : New pattern.
11328
11329 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
11330
11331 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
11332
11333 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
11334
11335 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
11336 NEG as operand of a MULT by merging it with the other operand.
11337 * combine.c (make_compound_operation): Use trunc_int_for_mode when
11338 generating a MULT with constant. Canonicalize PLUS and MINUS involving
11339 MULT.
11340 * config/arm/constraints.md (M): Examine only 32 bits of a
11341 HOST_WIDE_INT.
11342 * config/arm/predicates.md (power_of_two_operand): Likewise.
11343
11344 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11345
11346 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
11347 non-NOTE insns.
11348
11349 2010-08-03 Jan Hubicka <jh@suse.cz>
11350
11351 * ipa-split.c (struct split_point): Add split_part_set_retval.
11352 (find_retval): Forward declare.
11353 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
11354 (consider_split): Compute current->split_part_set_retval.
11355 (visit_bb): Do not look into return value.
11356 (split_function): Handle !split_part_set_retval
11357
11358 2010-08-03 Martin Jambor <mjambor@suse.cz>
11359
11360 * tree-sra.c (completely_scalarize_record): New parameter REF, create
11361 its own access->expr intead of using build_ref_for_offset.
11362
11363 2010-08-03 Joseph Myers <joseph@codesourcery.com>
11364
11365 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
11366 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
11367 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
11368 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
11369 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
11370 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
11371 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
11372 DEFAULT_SWITCH_TAKES_ARG.
11373 * config/rx/rx.opt (-patch=): Remove option.
11374 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
11375 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
11376 * doc/invoke.texi (RX Options): Remove -patch=.
11377 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
11378 (option_map): Remove --profile-blocks, --quiet and --silent.
11379
11380 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
11381
11382 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
11383 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
11384 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
11385 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
11386 Update calls to ix86_expand_compare and ix86_expand_branch.
11387 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
11388 ix86_expand_compare.
11389 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
11390 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
11391 Make static.
11392 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
11393 and ix86_compare_op1. Update calls to ix86_expand_compare.
11394 (ix86_expand_int_movcc): Ditto.
11395 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
11396 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
11397 (ix86_expand_setcc): Ditto.
11398 (ix86_expand_compare): Remove prototype.
11399 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
11400 ix86_compare_op0 and ix86_compare_op1. Update calls
11401 to ix86_expand_branch to directly pass operands[1] and operands[2].
11402 (cbranchxf4): Ditto.
11403 (cbranch<MODEF:mode>4): Ditto.
11404 (cbranchcc4): Ditto.
11405 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
11406 Update calls to ix86_expand_setcc to directly pass operands[2] and
11407 operands[3].
11408 (cstorexf4): Ditto.
11409 (cstore<MODEF:mode>4): Ditto.
11410 (cstorecc4): Ditto.
11411
11412 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
11413
11414 PR target/45063
11415 * caller-save.c (save_call_clobbered_regs): Remove regs from
11416 hard_regs_saved when they are set.
11417
11418 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
11419
11420 PR target/41089
11421 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
11422 as volatile.
11423
11424 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
11425
11426 * common.opt (ftree-loop-distribute-patterns): New.
11427 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
11428 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
11429 at -O3.
11430 * tree-data-ref.c (stores_zero_from_loop): New.
11431 * tree-data-ref.h (stores_zero_from_loop): Declared.
11432 * tree-loop-distribution.c (tree_loop_distribution): Call
11433 stores_zero_from_loop.
11434 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
11435
11436 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
11437
11438 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
11439 into account.
11440
11441 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
11442 * config/arm/arm.c (thumb1_code): New variable.
11443 (arm_override_options): Set it.
11444 (thumb1_final_prescan_insn): Keep track of condition code status.
11445 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
11446 jumps that depend on them.
11447 * config/arm/arm.h (thumb1_code): Declare variable.
11448 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
11449 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
11450 thumb1_cc_mode.
11451 (CC_STATUS_INIT): New macro.
11452 * config/arm/constraints.md (Pd): New constraint.
11453 * config/arm/predicates.md (noov_comparison_operator): New predicate.
11454 * config/arm/arm.md (is_thumb1): New define_attr.
11455 (conds): Set default to "clob" when generating Thumb1 code.
11456 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
11457 code are set. Use two-operand assembly syntax.
11458 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
11459 pattern.
11460 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
11461 codes are set. Use two-operand assembly syntax.
11462 (zero_extendhisi splitter): Remove constraints.
11463 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
11464 thumb1_movsf_insn): Set conds attribute as appropriate.
11465 (cbranchsi4_insn): Use condition code status from struct
11466 machine_function to determine whether the comparison can be eliminated.
11467 Discourage the alternative using high registers.
11468 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
11469 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
11470 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
11471 subsi3_cbranch): Delete.
11472 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
11473 one subtract and one cbranch insn.
11474
11475 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
11476 thumb2_movdf_soft_insn): Delete patterns.
11477 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
11478 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
11479 (pool_range, neg_pool_range): Use them to define defaults.
11480 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
11481 and allow for TARGET_32BIT.
11482
11483 PR target/40457
11484 * config/arm/arm.h (arm_regs_in_sequence): Declare.
11485 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
11486 load_multiple_sequence, store_multiple_sequence): Delete
11487 declarations.
11488 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
11489 declarations.
11490 * config/arm/ldmstm.md: New file.
11491 * config/arm/arm.c (arm_regs_in_sequence): New array.
11492 (load_multiple_sequence): Now static. New args SAVED_ORDER,
11493 CHECK_REGS. All callers changed.
11494 If SAVED_ORDER is nonnull, copy the computed order into it.
11495 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
11496 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
11497 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
11498 If SAVED_ORDER is nonnull, copy the computed order into it.
11499 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
11500 like REGS. Handle Thumb mode.
11501 (arm_gen_load_multiple_1): New function, broken out of
11502 arm_gen_load_multiple.
11503 (arm_gen_store_multiple_1): New function, broken out of
11504 arm_gen_store_multiple.
11505 (arm_gen_multiple_op): New function, with code from
11506 arm_gen_load_multiple and arm_gen_store_multiple moved here.
11507 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
11508 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
11509 changed.
11510 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
11511 * config/arm/predicates.md (commutative_binary_operator): New.
11512 (load_multiple_operation, store_multiple_operation): Handle more
11513 variants of these patterns with different starting offsets. Handle
11514 Thumb-1.
11515 * config/arm/arm.md: Include "ldmstm.md".
11516 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
11517 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
11518 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
11519 peepholes): Delete.
11520 * config/arm/ldmstm.md: New file.
11521 * config/arm/arm-ldmstm.ml: New file.
11522
11523 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
11524 if statement which adds extra costs to frame-related expressions.
11525
11526 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11527
11528 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
11529
11530 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
11531
11532 PR target/45142
11533 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
11534 alternative 2.
11535 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
11536 split V4SI operands.
11537
11538 2010-08-01 Anatoly Sokolov <aesok@post.ru>
11539
11540 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
11541 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
11542 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
11543 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
11544
11545 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
11546
11547 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
11548 LOCAL_INCLUDE_DIR.
11549
11550 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11551
11552 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
11553 used in the call to optab_for_tree_code. Fix the second
11554 is_widening_mult_p call. Check that both unwidened operands
11555 have the same sign.
11556
11557 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
11558
11559 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
11560
11561 2010-07-31 Anatoly Sokolov <aesok@post.ru>
11562
11563 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
11564
11565 2010-07-30 DJ Delorie <dj@redhat.com>
11566
11567 * config/rx/predicates.md (rx_constshift_operand): New.
11568 * config/rx/rx.md (zs_cond): New.
11569 (cbranchsi4): Remove mode.
11570 (*cbranchsi4_<code>): Likewise.
11571 (*tstbranchsi4_<code>): New.
11572 (*tstbranchsi4r_<code>): New.
11573 (*tstbranchsi4m_eq): New.
11574 (*tstbranchsi4m_ne): New.
11575 (cbranchsf4): Remove mode.
11576 (*cbranchsf4_<code>): Likewise.
11577
11578 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
11579
11580 * rtlanal.c (simplify_subreg_regno): Don't treat
11581 HARD_FRAME_POINTER_REGNUM specially.
11582
11583 2010-07-30 Joseph Myers <joseph@codesourcery.com>
11584
11585 * common.opt (-G): Don't define option here.
11586 * config/g.opt: New.
11587 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
11588 rs6000/powerpc and score targets.
11589 * opts.c (common_handle_option): Don't handle -G here.
11590 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
11591 * config/frv/frv.c (frv_handle_option): Handle -G.
11592 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
11593 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
11594 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
11595 * config/mips/mips.c (mips_handle_option): Handle -G.
11596 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
11597 * config/score/score.c (score_handle_option): Handle -G.
11598
11599 2010-07-30 Anatoly Sokolov <aesok@post.ru>
11600
11601 * config/mmix/mmix.c: Include basic-block.h.
11602
11603 2010-07-30 Jakub Jelinek <jakub@redhat.com>
11604
11605 PR debug/45055
11606 PR rtl-optimization/45137
11607 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
11608 prototypes.
11609 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
11610 New functions.
11611 * combine.c (next_nonnote_nondebug_insn): Removed.
11612 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
11613 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
11614 * sched-deps.c (sched_analyze_insn): Likewise.
11615 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
11616 * rtlanal.c (canonicalize_condition): Likewise.
11617 * postreload.c (reload_combine_recognize_pattern): Likewise.
11618 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
11619
11620 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
11621
11622 * config/i386/i386.md (int_cond): Remove code iterator.
11623 (fp_cond): Ditto.
11624 (cbranch<mode>4): Use ordered_comparison_operator predicate
11625 for operator0.
11626 (cstore<mode>4): Ditto for operator1.
11627 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
11628 (add<mode>cc): ditto.
11629
11630 2010-07-30 Richard Guenther <rguenther@suse.de>
11631
11632 PR middle-end/45141
11633 * expr.c (expand_expr_real_1): Check for not handled base address.
11634
11635 2010-07-30 Richard Guenther <rguenther@suse.de>
11636
11637 * ipa-prop.c (ipa_modify_formal_parameters): Use
11638 build_distinct_type_copy.
11639
11640 2010-07-30 Anthony Green <green@moxielogic.com>
11641
11642 * config/moxie/rtems.h: New file.
11643 * config.gcc: Add moxie-rtems support.
11644
11645 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
11646
11647 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
11648 df flags as in run_fast_df_dce.
11649
11650 2010-07-29 Jakub Jelinek <jakub@redhat.com>
11651
11652 Revert:
11653 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
11654
11655 * rtl.def (NOTE): Swap operands 4 and 5.
11656 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
11657 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
11658 Adjust accordingly.
11659 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
11660
11661 2010-07-29 Jakub Jelinek <jakub@redhat.com>
11662
11663 PR debug/45110
11664 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
11665 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
11666 (gen_subprogram_die): Likewise. Remove it when removing declaration's
11667 formal parameters.
11668 (gen_decl_die): Change return type to dw_die_ref, return what
11669 gen_formal_parameter_die returned.
11670
11671 2010-07-29 Martin Jambor <mjambor@suse.cz>
11672
11673 * dbgcnt.def (eipa_sra): New counter.
11674 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
11675
11676 2010-07-29 Xinliang David Li <davidxl@google.com>
11677
11678 PR bootstrap/45119
11679 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
11680 in revision 162652.
11681
11682 2010-07-29 Richard Guenther <rguenther@suse.de>
11683
11684 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
11685 (TV_TREE_STORE_CCP): Likewise.
11686 (TV_TREE_REDPHI): Likewise.
11687
11688 2010-07-29 Richard Guenther <rguenther@suse.de>
11689
11690 * double-int.h (double_int_and_not): New function.
11691 * combine.c (try_combine): Use it.
11692 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
11693
11694 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
11695
11696 PR rtl-optimization/42575
11697 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
11698 Argument AU removed. All callers changed. Ignore artificial refs.
11699 Use return value of df_word_lr_simulate_defs to decide whether an insn
11700 is necessary.
11701 (fast_dce): Rename arg to WORD_LEVEL.
11702 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
11703 static.
11704 (pass_fast_rtl_byte_dce): Delete.
11705 * dce.h (run_word_dce): Declare.
11706 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
11707 All callers changed. Simplify code to only deal with two-word regs.
11708 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
11709 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
11710 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
11711 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
11712 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
11713 (df_word_lr_mark_ref): Declare.
11714 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
11715 df_word_lr_simulate_uses): Declare or rename from byte variants.
11716 (df_byte_lr_simulate_artificial_refs_at_top,
11717 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
11718 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
11719 declarations.
11720 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
11721 (enum df_mm): Delete.
11722 * df-byte-scan.c: Delete file.
11723 * df-problems.c (df_word_lr_problem_data): Renamed from
11724 df_byte_lr_problem_data, all members deleted except for
11725 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
11726 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
11727 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
11728 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
11729 df_byte_lr_confluence_0): Delete functions.
11730 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
11731 callers changed.
11732 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
11733 Don't initialize members that were deleted, don't try to discover data
11734 about registers. Ignore hard regs.
11735 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
11736 (df_word_lr_mark_ref): New function.
11737 (df_word_lr_bb_local_compute): Renamed from
11738 df_byte_bb_lr_local_compute; all callers changed. Use
11739 df_word_lr_mark_ref. Assert that artificial refs don't include
11740 pseudos. Ignore hard registers.
11741 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
11742 Assert that exit block uses don't contain pseudos.
11743 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
11744 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
11745 callers changed. Ignore hard regs.
11746 (df_word_lr_transfer_function): Renamed from
11747 df_byte_lr_transfer_function; all callers changed.
11748 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
11749 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
11750 changed.
11751 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
11752 callers changed.
11753 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
11754 confluence operator 0 set to NULL.
11755 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
11756 callers changed.
11757 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
11758 Return bool, true if bitmap changed or insn otherwise necessary.
11759 All callers changed. Simplify using df_word_lr_mark_ref.
11760 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
11761 all callers changed. Simplify using df_word_lr_mark_ref.
11762 * lower-subreg.c: Include "dce.h"
11763 (decompose_multiword_subregs): Call run_word_dce if df available.
11764 * Makefile.in (lower-subreg.o): Adjust dependencies.
11765 (df-byte-scan.o): Delete.
11766 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
11767
11768 2010-07-29 Richard Guenther <rguenther@suse.de>
11769
11770 * tree.c (build_vector): Assert that the vector constant
11771 has enough elements.
11772 (build_vector_from_ctor): Pad with trailing zeros.
11773
11774 2010-07-29 Richard Guenther <rguenther@suse.de>
11775
11776 PR tree-optimization/45120
11777 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11778 Handle offset in DEREFs properly.
11779 (get_constraint_for_1): Handle MEM_REF offset properly.
11780
11781 2010-07-29 Richard Guenther <rguenther@suse.de>
11782
11783 PR middle-end/45034
11784 * convert.c (convert_to_integer): Always use an unsigned
11785 type for narrowed negate and bitwise not.
11786
11787 2010-07-29 Ira Rosen <irar@il.ibm.com>
11788
11789 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
11790 to outer loop when creating reduction epilogue for double reduction,
11791 and switch back to the inner loop when updating the phi nodes.
11792 Update uses of outer loop exit phi nodes in double reduction (instead
11793 of uses of reduction).
11794
11795 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
11796
11797 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
11798 popcount on power7 and parity on power6 systems.
11799 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
11800 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
11801 instructions.
11802
11803 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
11804 (UNSPEC_PARITY): Ditto.
11805 (SFDF): New iterator for SF/DF.
11806 (rreg2): New mode attribute for floating register constraint.
11807 (TARGET_FLOAT): New mode attribute for whether single/double float
11808 is supported.
11809 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
11810 pattern.
11811 (parity<mode>2_cmpb): New insn for parity on power6 and newer
11812 machines.
11813 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
11814 pattern. Add support for fcpsgn instruction added in power6.
11815 (copysignsf3): Delete.
11816 (copysigndf3): Delete.
11817 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
11818 instead of if_then_else in RTL to avoid problems with -0.
11819
11820 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
11821 of if_then_else to mirror scalar code.
11822 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
11823 rs6000.md.
11824
11825 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
11826 instead of if_then_else.
11827
11828 2010-07-28 Xinliang David Li <davidxl@google.com>
11829
11830 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
11831 (dump_cand): Dump var_before/after.
11832 (htab_inv_expr_eq): New function.
11833 (htab_inv_expr_hash): New function.
11834 (tree_ssa_iv_optimize_init): Support pseudo invariants.
11835 (add_candidate_1): consider base type precision.
11836 (set_use_iv_cost): New parameter.
11837 (adjust_setup_cost): Use profile information.
11838 (get_address_cost): Do not hard code width in computing address
11839 offset limits.
11840 (compare_aff_trees): New function.
11841 (get_loop_invariant_expr_id): New function.
11842 (get_computation_cost_at): New parameter and use profile information.
11843 (get_computation_cost): New parameter.
11844 (determine_use_iv_cost_generic): Pass new parameter.
11845 (determine_use_iv_cost_address): Ditto.
11846 (determine_use_iv_cost_condition): Ditto.
11847 (autoinc_possible_for_pair): Ditto.
11848 (determine_use_iv_costs): More dumps.
11849 (iv_ca_get_num_inv_exprs): New function.
11850 (iv_ca_recount_cost): Consider loop invariants in register pressure
11851 cost.
11852 (iv_ca_add_use): New parameter.
11853 (iv_ca_dump): Better dumping.
11854 (iv_ca_extend): New parameter.
11855 (try_add_cand_for): Attempt to get better partial solution.
11856 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
11857 (create_new-ivs): More dumps.
11858 (rewrite_use_compare): Ditto.
11859 (free_loop_data): More cleanup.
11860 (treee_ssa_iv_optimize_finalize): Ditto.
11861
11862 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
11863
11864 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
11865 * config/i386/i386.c (ix86_profile_before_prologue): New.
11866 (override_options): Add special handling for -mfentry.
11867 (ix86_function_regparm): Likewise.
11868 (ix86_function_sseregparm): Likewise.
11869 (ix86_frame_pointer_required): Likewise.
11870 (ix86_expand_prologue): Check for ms_hook_prologue.
11871 (x86_function_profiler): Adjust mcount output.
11872 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
11873 * config/i386/i386.opt (mfentry): New.
11874 * doc/invoke.texi (mfentry): Add documentation.
11875 * doc/tm.texi: Regenerated..
11876 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
11877 * final.c (final_start_function): Replace macro
11878 PROFILE_BEFORE_PROLOGUE by target hook.
11879 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11880 * target.def (profile_before_prologue): New hook.
11881 * targhooks.c (default_profile_before_prologue): New.
11882 * targhooks.h (default_profile_before_prologue): New.
11883
11884 2010-07-28 Jakub Jelinek <jakub@redhat.com>
11885
11886 PR debug/45105
11887 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
11888
11889 PR debug/45103
11890 * dwarf2out.c (dwarf2out_var_location): Always consider
11891 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
11892
11893 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
11894
11895 PR rtl-optimization/45107
11896 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
11897
11898 2010-07-28 Richard Guenther <rguenther@suse.de>
11899
11900 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
11901 (set_lattice_value): Do not query an old default value.
11902 (get_value_for_expr): New function. Properly canonicalize
11903 float values.
11904 (ccp_visit_phi_node): Use it.
11905
11906 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
11907
11908 * config/arm/arm.c (arm_pcs_default): Remove static.
11909 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
11910 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
11911 (arm_pcs_default): Declare.
11912
11913 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
11914
11915 * config/rs6000/rs6000.c (rs6000_override_options):
11916 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
11917 ... to darwin_rs6000_override_options.
11918 (rs6000_return_in_memory): Update preceding comment for darwin
11919 64 bit ABI. Use TARGET_MACHO inline.
11920 (rs6000_darwin64_struct_check_p): New.
11921 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
11922 (function_arg): Likewise.
11923 (rs6000_arg_partial_bytes): Likewise.
11924 (rs6000_function_value): Likewise.
11925
11926 2010-07-28 Andi Kleen <ak@linux.intel.com>
11927
11928 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
11929
11930 2010-07-28 Richard Guenther <rguenther@suse.de>
11931
11932 PR middle-end/44903
11933 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
11934 targets try harder to not generate unaligned accesses.
11935
11936 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
11937
11938 PR rtl-optimization/45101
11939 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
11940 for gcse-las.
11941
11942 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
11943
11944 PR tree-optimization/44885
11945 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
11946 with non-aliased component.
11947
11948 2010-07-28 Joseph Myers <joseph@codesourcery.com>
11949
11950 * config/darwin-driver.c (SWITCH_TAKES_ARG,
11951 WORD_SWITCH_TAKES_ARG): Remove.
11952 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
11953 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
11954 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
11955 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
11956 definitions from gcc.c.
11957 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
11958 defaults.h.
11959 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
11960 Move to defaults.h.
11961 * opts-common.c: Include tm.h.
11962 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
11963 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
11964 Handle more than one argument. Set canonical_option_num_elements.
11965 (decode_cmdline_options_to_array): Set
11966 canonical_option_num_elements and trailing elements of
11967 canonical_option.
11968 * opts.h (struct cl_decoded_option): Allow four elements in
11969 canonical_option. Add field canonical_option_num_elements.
11970 * Makefile.in (opts-common.o): Update dependencies.
11971
11972 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
11973
11974 PR middle-end/44790
11975 PR middle-end/44993
11976 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
11977 sure the base has address_mode before adding the offset.
11978
11979 2010-07-27 Xinliang David Li <davidxl@google.com>
11980
11981 * tree-flow.h (create_mem_ref): Add one new parameter.
11982 * tree-ssa-address.c (create_mem_ref): New parameter.
11983 (addr_to_parts): Ditto.
11984 (move_variant_to_index): New function.
11985 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
11986
11987 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
11988
11989 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
11990 4 and 5.
11991 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
11992 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
11993 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
11994 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
11995 CODE_LABELs and NOTEs.
11996 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
11997 * combine.c (try_combine): Likewise.
11998 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11999 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
12000
12001 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12002
12003 * coretypes.h (struct cl_option_handlers): Declare.
12004 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
12005 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
12006 * langhooks-def.h (lhd_handle_option): Declare.
12007 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
12008 * langhooks.c (lhd_handle_option): New.
12009 * langhooks.h (struct lang_hooks): Update prototype and return
12010 value type of handle_option hook.
12011 * optc-gen.awk: Generate target_flags_explicit definition for the
12012 driver.
12013 * opts-common.c: Include diagnostic.h.
12014 (handle_option): Move from opts.c. Update prototype and return
12015 value type. Use handlers structure.
12016 (read_cmdline_option): Move from opts.c. Update prototype. Use
12017 handlers structure.
12018 (set_option): Move from opts.c.
12019 * opts.c (common_handle_option): Update prototype and return value
12020 type. Update calls to handle_option and enable_warning_as_error.
12021 (unknown_option_callback, post_handling_callback,
12022 lang_handle_option, target_handle_option): New.
12023 (handle_option, read_cmdline_option): Move to opts-common.c.
12024 (read_cmdline_options): Update prototype. Update call to
12025 read_cmdline_option.
12026 (decode_options): Initialize and use handlers structure.
12027 (set_option): Move to opts-common.c.
12028 (enable_warning_as_error): Update prototype. Update call to
12029 handle_option.
12030 * opts.h (struct cl_option_handler_func, struct
12031 cl_option_handlers): New.
12032 (handle_option, enable_warning_as_error): Update prototypes.
12033 (read_cmdline_option): Declare.
12034 * Makefile.in (opts-common.o): Update dependencies.
12035
12036 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12037
12038 * config/arm/arm.c (params.h): Include.
12039 (arm_override_options): Tune gcse-unrestricted-cost.
12040 * config/arm/t-arm (arm.o): Define dependencies.
12041
12042 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12043
12044 PR target/42495
12045 PR middle-end/42574
12046 * basic-block.h (get_dominated_to_depth): Declare.
12047 * dominance.c (get_dominated_to_depth): New function, use
12048 get_all_dominated_blocks as a base.
12049 (get_all_dominated_blocks): Use get_dominated_to_depth.
12050
12051 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
12052 (hoist_exprs): Remove.
12053 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
12054 (compute_code_hoist_vbeinout): Add debug print outs.
12055 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
12056
12057 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
12058 quadratic behavior.
12059 * params.h (MAX_HOIST_DEPTH): New macro.
12060 * doc/invoke.texi (max-hoist-depth): Document.
12061
12062 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12063
12064 PR rtl-optimization/40956
12065 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
12066 constants.
12067
12068 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12069
12070 PR target/42495
12071 PR middle-end/42574
12072 * config/arm/arm.c (legitimize_pic_address): Use
12073 gen_calculate_pic_address pattern to emit calculation of PIC address.
12074 (will_be_in_index_register): New function.
12075 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
12076 (thumb1_legitimate_address_p): Use it provided !strict_p.
12077 * config/arm/arm.md (calculate_pic_address): New expand and split.
12078
12079 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12080
12081 PR target/42495
12082 PR middle-end/42574
12083 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
12084 * config/arm/arm.md (define_split "J", define_split "K"): Make
12085 IRA/reload friendly.
12086
12087 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12088
12089 * gcse.c (insert_insn_end_basic_block): Update signature, remove
12090 unused checks.
12091 (pre_edge_insert, hoist_code): Update.
12092
12093 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12094
12095 PR target/42495
12096 PR middle-end/42574
12097 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
12098
12099 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12100
12101 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
12102
12103 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12104
12105 PR rtl-optimization/40956
12106 PR target/42495
12107 PR middle-end/42574
12108 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
12109 for hoisting.
12110 (hoist_code): Count occurences in current block too.
12111
12112 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12113
12114 * gcse.c (struct expr:max_distance): New field.
12115 (doing_code_hoisting_p): New static variable.
12116 (want_to_gcse_p): Change signature. Allow constrained hoisting of
12117 simple expressions, don't change behavior for PRE. Set max_distance.
12118 (insert_expr_in_table): Set new max_distance field.
12119 (hash_scan_set): Update.
12120 (hoist_expr_reaches_here_p): Stop search after max_distance
12121 instructions.
12122 (find_occr_in_bb): New static function. Use it in ...
12123 (hoist_code): Calculate sizes of basic block before any changes are
12124 done. Pass max_distance to hoist_expr_reaches_here_p.
12125 (one_code_hoisting_pass): Set doing_code_hoisting_p.
12126
12127 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
12128 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
12129 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
12130 macros.
12131 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
12132 Document.
12133
12134 2010-07-27 Jeff Law <law@redhat.com>
12135 Maxim Kuvyrkov <maxim@codesourcery.com>
12136
12137 * gcse.c (compute_transpout, transpout): Remove, move logic
12138 to prune_expressions.
12139 (compute_pre_data): Move pruning of trapping expressions ...
12140 (prune_expressions): ... here. New static function.
12141 (compute_code_hoist_data): Use it.
12142 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
12143
12144 2010-07-27 Xinliang David Li <davidxl@google.com>
12145
12146 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
12147 (rewrite_use_address): Adjust iv update position when needed.
12148
12149 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12150
12151 * dbgcnt.def (hoist_insn): New debug counter.
12152 * gcse.c (hoist_code): Use it.
12153
12154 2010-07-27 Xinliang David Li <davidxl@google.com>
12155
12156 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
12157 (niter_for_single_dom_exit): Passes additional parameter.
12158 (iv_period): Fix comments.
12159 (may_eliminate_iv): Handles multiple exit loops properly.
12160 (free_tree_niter_desc): New function.
12161 (free_loop_data): Frees up loop iteration descriptors.
12162
12163 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12164
12165 PR target/44542
12166 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
12167 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
12168 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
12169 (expand_one_var): Don't consider DECL_ALIGN for variables for
12170 which expand_one_stack_var_at has been already called.
12171
12172 PR testsuite/44701
12173 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
12174 constraints on IA-64.
12175
12176 2010-07-27 Jie Zhang <jie@codesourcery.com>
12177
12178 PR target/44290
12179 Revert:
12180 2010-07-23 Jie Zhang <jie@codesourcery.com>
12181
12182 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
12183 false if ! tree_versionable_function_p.
12184
12185 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12186
12187 * dwarf2out.c (add_data_member_location_attribute): Use
12188 add_AT_unsigned instead of add_AT_int if offset is non-negative.
12189
12190 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12191
12192 * postreload.c (try_replace_in_use): New static function.
12193 (reload_combine_recognize_const_pattern): Use it here. Allow
12194 substituting into a final add insn, and substituting into a memory
12195 reference in an insn that sets the reg.
12196
12197 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12198
12199 * common.opt (o): Add MissingArgError.
12200 * doc/options.texi (MissingArgError): Document.
12201 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
12202 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
12203 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
12204 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
12205 * langhooks.h (struct lang_hooks): Remove missing_argument.
12206 * optc-gen.awk: Handle MissingArgError and output new structure
12207 field initializers.
12208 * opts.c (read_cmdline_option): Use missing_argument_error field
12209 instead of missing_argument langhook.
12210 * opts.h (struct cl_option): Add missing_argument_error field.
12211 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
12212
12213 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
12214
12215 PR target/29090
12216 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
12217 Darwin64 ABI, for zero-sized objects.
12218
12219 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
12220
12221 PR target/35491
12222 PR target/29090
12223
12224 Merge from Apple local 4.2.1.
12225 2005-05-11 Stan Shebs <shebs@apple.com>
12226 Fix 64-bit varargs for Darwin (Radar 4028089).
12227 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
12228 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12229 Add argument, add case for 8-byte register half-filled with a float.
12230 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
12231 single-precision floats specially.
12232
12233 2010-07-27 Ira Rosen <irar@il.ibm.com>
12234
12235 PR tree-optimization/44152
12236 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
12237 complex numbers for further check.
12238 (vect_supported_load_permutation_p): Check nodes with
12239 complex numbers.
12240
12241 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12242
12243 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
12244 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
12245 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
12246 (LANG_HOOKS_INITIALIZER): Add new hooks.
12247 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
12248 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
12249 and complain_wrong_lang_p. Update init_options prototype.
12250 * c-objc-common.c (c_initialize_diagnostics): First call
12251 c_common_initialize_diagnostics.
12252 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
12253 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
12254 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
12255 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
12256 (hook_uint_void_0): New.
12257 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
12258 (hook_uint_void_0): New.
12259 * opts-common.c (decode_cmdline_option,
12260 decode_cmdline_options_to_array): Also fill in canonical_option field.
12261 * opts.c (complain_wrong_lang): Use langhook to determine whether
12262 to complain instead of special-casing LTO.
12263 (decode_options): Separate lang_mask determination with
12264 option_lang_mask hook from call of init_options hook.
12265 * opts.h (struct cl_decoded_option): Add canonical_option.
12266
12267 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12268
12269 PR tree-optimization/45083
12270 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
12271
12272 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12273
12274 * postreload.c (reload_combine_recognize_const_pattern): Move test
12275 for limiting the insn movement to the right scope.
12276
12277 PR rtl-optimization/45051
12278 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
12279 than reg_mentioned_p.
12280
12281 2010-07-26 Richard Henderson <rth@redhat.com>
12282
12283 PR target/44132
12284 * tree-emutls.c: New file.
12285 * Makefile.in (OBJS-common): Add it.
12286 * tree-pass.h (pass_ipa_lower_emutls): Declare.
12287 * passes.c (init_optimization_passes): Add it.
12288
12289 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
12290 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
12291 * expr.c (emutls_var_address): Delete.
12292 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
12293 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
12294 (emutls_finish): Delete.
12295 * toplev.c (compile_file): Don't call it.
12296 * tree.h (emutls_decl): Delete.
12297 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
12298 (emutls_finish, emutls_finalize_control_var): Delete.
12299 (emutls_object_type): Move to tree-emutls.c.
12300 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
12301 default_emutls_var_fields, get_emutls_object_type,
12302 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
12303 default_emutls_var_init): Likewise.
12304 (get_variable_section): Don't special case emutls.
12305 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
12306 default_elf_select_section, default_unique_section,
12307 default_encode_section_info): Likewise.
12308 * varpool.c (decide_is_variable_needed): Likewise.
12309 * gimple-iterator.c (update_call_edge_frequencies): New
12310 (gsi_insert_on_edge_immediate): Use it.
12311 (gsi_insert_seq_on_edge_immediate): Likewise.
12312 (gsi_commit_one_edge_insert): Likewise.
12313
12314 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
12315 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
12316 (x86_64_elf_unique_section): Likewise.
12317
12318 2010-07-26 Jan Hubicka <jh@suse.cz>
12319
12320 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
12321 GTY((skip)).
12322
12323 2010-07-26 Anatoly Sokolov <aesok@post.ru>
12324
12325 * target.def (output_source_filename): New hook.
12326 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
12327 * doc/tm.texi: Regenerate.
12328 * toplev.c (output_file_directive) Remove function.
12329 * toplev.h (output_file_directive) Remove.
12330 * output.h (default_asm_output_source_filename,
12331 output_file_directive): Declare.
12332 * varasm.h (default_asm_output_source_filename,
12333 output_file_directive): New functions.
12334
12335 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12336 * config/mips/mips-protos.h (mips_output_filename): Remove.
12337 * config/mips/mips.c (mips_output_filename): Make Static.
12338 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12339
12340 2010-07-26 Richard Guenther <rguenther@suse.de>
12341
12342 PR tree-optimization/43784
12343 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
12344 if the destination is used by the call.
12345
12346 2010-07-26 Richard Guenther <rguenther@suse.de>
12347
12348 PR middle-end/45073
12349 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
12350 SSA updating on being in SSA form.
12351
12352 2010-07-26 Richard Guenther <rguenther@suse.de>
12353
12354 PR middle-end/45056
12355 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
12356
12357 2010-07-26 Richard Guenther <rguenther@suse.de>
12358
12359 PR tree-optimization/45071
12360 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
12361 adjust op->opcode.
12362
12363 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
12364
12365 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
12366 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
12367 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
12368 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
12369 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
12370 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
12371 save_r31, return_r31, save_interrupt, return_interrupt,
12372 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
12373 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
12374 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
12375 new ABI requirements.
12376 (save_r6_r9, L_callt_save_r6_r9): Remove.
12377 * config/v850/predicates.md (even_reg_operand, disp23_operand,
12378 const_float_1_operand const_float_0_operand): New Predicates.
12379 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
12380 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
12381 * config/v850/t-v850: Update multilibs for new target variants.
12382 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
12383 * config/v850/t-v850e: Likewise.
12384 * config/v850/v850.c (v850_issue_rate): New.
12385 (v850_strict_argument_naming): New.
12386 (function_arg): Modify to generate a different ABI.
12387 (print_operand): Update case 'z' to support float modes.
12388 (output_move_single): Modify to generate appropriate and better
12389 assembly.
12390 (v850_float_z_comparison_operator, v850_select_cc_mode,
12391 v850_float_nz_comparison_operator, v850_gen_float_compare,
12392 v850_gen_compare): New functions to support comparison of float values.
12393 (ep_memory_offset): Add support for V850E2 targets.
12394 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
12395 (INTERRUPT_REGPARM_NUM): Remove.
12396 (compute_register_save_size): Add extra case to save/restore long call.
12397 (use_prolog_function): New function to support prologue.
12398 (expand_prologue): Add support for V850E2 targets and modified
12399 as per the current ABI requirements.
12400 (expand_epilogue): Likewise.
12401 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
12402 (construct_save_jarl): Likewise.
12403 (construct_dispose_instruction): Update as per the current ABI
12404 requirements.
12405 (construct_prepare_instruction): Likewise.
12406 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
12407 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
12408 (CPP_SPEC): Updated to support v850e2 targets.
12409 (STRICT_ALIGNMENT): Modified.
12410 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
12411 (FIXED_REGISTERS): Likewise.
12412 (CALL_USED_REGISTERS): Likewise.
12413 (CONDITIONAL_REGISTER_USAGE): Updated.
12414 (HARD_REGNO_MODE_OK): Updated.
12415 (reg_class): Updated to add even registers.
12416 (REG_CLASS_NAMES): Likewise.
12417 (REG_CLASS_CONTENTS): Likewise.
12418 (REGNO_REG_CLASS): Updated for CC registers.
12419 (REG_CLASS_FROM_LETTER): Added support for even registers.
12420 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
12421 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
12422 ARG_POINTER_REGNUM): Updated.
12423 (FUNCTION_ARG_ADVANCE): Define.
12424 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
12425 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
12426 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
12427 (GO_IF_LEGITIMATE_ADDRESS): Updated.
12428 (SELECT_CC_MODE): Define.
12429 (REGISTER_NAMES): Updated to add psw and fcc registers.
12430 (ADDITIONAL_REGISTER_NAMES): Updated.
12431 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
12432 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
12433 * config/v850/v850.md (define_constants): Define new constants.
12434 (type): Update store,bit1,macc,div,fpu and single attributes.
12435 (cpu): New attribute.
12436 (cc): Add set_z attribute.
12437 (unsign23byte_load, sign23byte_load, unsign23hword_load,
12438 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
12439 23word_store): New instructions for 23-bit displacement load and store.
12440 (movqi_internal, movhi_internal): Update the attributes.
12441 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
12442 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
12443 the attributes.
12444 (v850_tst1): Modified using CC_REGNUM.
12445 (tstsi): Remove.
12446 (cmpsi): Modified as define_expand from define_insn.
12447 (cmpsi_insn, cmpsf, cmpdf): New instructions.
12448 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
12449 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
12450 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
12451 one_cmplsi2): Clobber the CC_REGNUM register.
12452 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
12453 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
12454 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
12455 (setf_insn, set_z_insn, set_nz_insn): New instructions for
12456 v850e2v3 target.
12457 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
12458 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
12459 targets.
12460 (sasf_1, sasf_2): Remove.
12461 (sasf): New instruction.
12462 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
12463 targets. CC_REGNUM register is clobbered and attributes are
12464 updated.
12465 (branch_z_normal, branch_z_invert, branch_nz_normal,
12466 branch_nz_invert): New branch related instructions.
12467 (jump): Updated the attributes.
12468 (switch): Update to support new targets. CC_REGNUM register is
12469 clobbered and attributes are updated.
12470 (call_internal_short, call_internal_long, call_value_internal_short,
12471 call_value_internal_long): Updated the attributes.
12472 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
12473 clobbered and attributes are updated.
12474 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
12475 Update to support new targets. CC_REGNUM register is clobbered.
12476 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
12477 instructions.
12478 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
12479 are updated.
12480 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
12481 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
12482 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
12483 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
12484 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
12485 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
12486 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
12487 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
12488 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
12489 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
12490 point instructions defined for V850e2v3 target.
12491 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
12492 Add support for V850E2 targets and CC_REGNUM register is clobbered.
12493 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
12494 support for new targets.
12495 * config/v850/v850-modes.def: New file.
12496 * config/v850/v850.opt(mstrict-align): Remove.
12497 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
12498 mv850e2v3): New command line options for V850.
12499 * config.gcc: Update the newly added files.
12500 * doc/invoke.texi: Update the newly added command line options for
12501 V850 target.
12502
12503 2010-07-26 Richard Guenther <rguenther@suse.de>
12504
12505 PR tree-optimization/45052
12506 * ipa-pure-const.c (check_stmt): Check volatileness.
12507
12508 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
12509
12510 PR target/44707
12511 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
12512 * config/sparc/sparc.c: Include reload.h.
12513 (legitimize_tls_address): Rename into...
12514 (sparc_legitimize_tls_address): ...this.
12515 (legitimize_pic_address): Rename into...
12516 (sparc_legitimize_pic_address): ...this.
12517 (sparc_expand_move): Adjust to above renaming.
12518 (sparc_tls_referenced_p): Likewise.
12519 (sparc_legitimize_tls_address): Likewise.
12520 (sparc_legitimize_pic_address): Likewise.
12521 (sparc_legitimize_address): Likewise.
12522 (sparc_output_mi_thunk): Likewise.
12523 (sparc_legitimize_reload_address): New global function. Recognize
12524 (lo_sum (high ...) ...) patterns generated by earlier passes.
12525 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
12526
12527 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
12528
12529 PR target/44484
12530 * config/sparc/predicates.md (memory_reg_operand): Delete.
12531 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
12532 (*sync_compare_and_swap): Encode the address form in the pattern.
12533 (*sync_compare_and_swapdi_v8plus): Likewise.
12534
12535 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
12536
12537 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
12538 Streamline paragraph on compatibility with the system compiler.
12539
12540 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
12541
12542 PR middle-end/45035
12543 * alias.c (true_dependence_1): Fix thinko in merge of old
12544 true_dependence and canon_true_dependence.
12545
12546 2010-07-23 Jan Hubicka <jh@suse.cz>
12547
12548 * lto-streamer-out.c (write_symbol): Fix visibilities of external
12549 references.
12550
12551 2010-07-23 Le-Chun Wu <lcwu@google.com>
12552
12553 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
12554 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
12555 and an unnecessary assignment.
12556 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
12557 self-assign warning.
12558 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
12559 unnecessary self-init.
12560
12561 2010-07-23 Richard Guenther <rguenther@suse.de>
12562
12563 PR lto/43071
12564 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
12565 for -flto and -fwhopr.
12566
12567 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
12568
12569 PR target/41943
12570 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
12571 (stmp-int-hdrs): Prefix/postfix headers by include_next.
12572 * config.gcc (user_headers_inc_next_pre): New.
12573 (user_headers_inc_next_post): Likewise.
12574 (*-w64-mingw*): Use for float.h post-fixing, and for
12575 stddef.h/stdarg.h pre-fixing by include_next.
12576 * configure.ac (user_headers_inc_next_post): New.
12577 (user_headers_inc_next_pre): New.
12578 * configure: Regenerated.
12579
12580 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12581
12582 * configure.ac: Don't disable TLS on Solaris 8/9 by default
12583 Set tga_func for Solaris 2/x86 resp. SPARC.
12584 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
12585 (LIB_THREAD_LDFLAGS_SPEC): Define.
12586 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
12587 * configure: Regenerate.
12588 * config.in: Regenerate.
12589 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
12590 -pthread, -threads, LIB_TLS_SPEC with -pthread.
12591 * doc/install.texi (Specific, *-*-solaris2*): Document use of
12592 alternate thread libraries on Solaris 8.
12593 Document TLS patch requirements.
12594 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
12595 Document tls.
12596
12597 PR target/18788
12598 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
12599 -shared.
12600
12601 2010-07-23 Jakub Jelinek <jakub@redhat.com>
12602
12603 * tree.h (struct tree_base): Add nameless_flag bitfield.
12604 (TYPE_NAMELESS, DECL_NAMELESS): Define.
12605 * omp-low.c (create_omp_child_function, scan_omp_parallel,
12606 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
12607 DECL_ARTIFICIAL where needed.
12608 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
12609 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
12610 has DECL_NAMELESS set.
12611
12612 2010-07-23 Martin Jambor <mjambor@suse.cz>
12613
12614 PR tree-optimization/44915
12615 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
12616 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
12617 (analyze_function): Likewise.
12618
12619 2010-07-23 Martin Jambor <mjambor@suse.cz>
12620
12621 PR tree-optimization/44914
12622 * tree-sra.c (sra_modify_function_body): Return true if CFG was
12623 changed, add purging dead eh edges.
12624 (ipa_sra_modify_function_body): Return true if CFG was changed,
12625 simplify purging dead eh edges.
12626 (modify_function): Return true if CFG was changed.
12627 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
12628 was changed.
12629 (ipa_early_sra): Likewise.
12630
12631 2010-07-23 Jie Zhang <jie@codesourcery.com>
12632
12633 PR target/44290
12634 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
12635 if "naked".
12636 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
12637 false if ! tree_versionable_function_p.
12638
12639 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
12640
12641 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
12642 * ipa-pure-const.c (special_builtlin_state): Remove
12643 BUILT_IN_ARGS_INFO case.
12644 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12645 * builtins.c (expand_builtin): Likewise.
12646 (expand_builtin_args_info): Remove.
12647 * doc/tm.texi (__builtin_args_info): Remove.
12648 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
12649 * doc/tm.text.in: Likewise.
12650
12651 2010-07-23 Richard Guenther <rguenther@suse.de>
12652
12653 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
12654 (lto_symtab_merge_decls_2): Likewise.
12655 * tree-ssa.c (useless_type_conversion_p): Likewise.
12656 * lto-streamer-in.c (input_gimple_stmt): Likewise.
12657 * gimple.c (gtc_visited2, gtc_ob2): Remove.
12658 (struct type_pair_d): Make same_p an array indexed by mode.
12659 Update comment.
12660 (lookup_type_pair): Update initialization.
12661 (struct sccs): Adjust same_p type.
12662 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
12663 Adjust.
12664 (print_gimple_types_stats): Likewise.
12665 * gimple.h (enum gtc_mode): New.
12666 (gimple_types_compatible_p): Adjust prototype.
12667
12668 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
12669
12670 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
12671 again after processing insn.
12672
12673 2010-07-23 Jie Zhang <jie@codesourcery.com>
12674
12675 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
12676 proper words when !tree_versionable_function_p.
12677
12678 2010-07-23 Richard Guenther <rguenther@suse.de>
12679
12680 PR tree-optimization/45037
12681 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
12682
12683 2010-07-23 Jie Zhang <jie@codesourcery.com>
12684
12685 * doc/extend.texi: Remove IP2K from the description of naked attribute.
12686 Add MCORE instead.
12687
12688 2010-07-10 Andi Kleen <ak@linux.intel.com>
12689
12690 PR lto/44992
12691 * lto-opts.c (lto_write_options): Add NULL file_data argument to
12692 lto_get_section_name.
12693 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
12694 * lto-streamer-out.c (produce_asm): Likewise.
12695 (copy_function): Likewise.
12696 (produce_symtab): Likewise.
12697 (produce_asm_for_decls): Likewise.
12698 * lto-streamer.c (lto_get_section_name): Add file_data argument.
12699 Rewrite to add random postfix to LTO sections.
12700 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
12701 (lto_get_section_name): Add file_data argument to prototype.
12702
12703 2010-07-10 Andi Kleen <ak@linux.intel.com>
12704
12705 * lto-section-in.c (lto_section_name): Synchronize names
12706 with lto_get_section_name.
12707
12708 2010-07-10 Andi Kleen <ak@linux.intel.com>
12709
12710 * lto-opts.c (lto_read_file_options): Check for missing section.
12711
12712 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12713
12714 * ira.c (check_allocation): Correctly handle the case where an allocno
12715 with two objects was allocated to a single reg.
12716
12717 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
12718
12719 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
12720 (is_widening_mult_p): Likewise.
12721 (convert_to_widen): Use them.
12722 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
12723 well as integer ones.
12724
12725 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
12726
12727 * alias.c (true_dependence_1): New function, merged version of
12728 true_dependence and canon_true_dependence.
12729 (true_dependence): Simplify.
12730 (canon_true_dependence): Simplify.
12731
12732 2010-07-22 Richard Henderson <rth@redhat.com>
12733
12734 PR target/45027
12735 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
12736 of V4SFmode for the SSE saves; increase stack alignment if needed.
12737 (ix86_gimplify_va_arg): Don't increase stack alignment here.
12738
12739 2010-07-22 Jakub Jelinek <jakub@redhat.com>
12740
12741 PR bootstrap/45028
12742 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
12743 call cprop_find_used_regs again via note_uses.
12744
12745 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
12746
12747 * alias.c (get_alias_set): Fix formatting issues.
12748
12749 2010-07-22 Steve Ellcey <sje@cup.hp.com>
12750
12751 PR middle-end/44878
12752 * stmt.c (expand_value_return): Call promote_function_mode with
12753 a for_return argument of 2 when returning by reference.
12754
12755 2010-07-22 Dodji Seketeli <dodji@redhat.com>
12756
12757 PR debug/45024
12758 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
12759 unit DIE if we can find the scope DIE.
12760
12761 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12762
12763 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
12764 changed. Initialize OBJECT_SUBWORD.
12765 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
12766 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
12767 all callers changed.
12768 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
12769 (finish_allocno): Likewise.
12770 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
12771 (remove_low_level_allocnos): Likewise.
12772 (update_bad_spill_attribute): Likewise.
12773 (setup_min_max_allocno_live_range_point): Likewise.
12774 (sort_conflict_id_map): Likewise.
12775 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
12776 (ior_hard_reg_conflicts): New function.
12777 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
12778 (compress_conflict_vecs): Iterate over objects, not allocnos.
12779 (ira_add_live_range_to_object): New function.
12780 (object_range_compare_func): Renamed from allocno_range_compare_func.
12781 All callers changed.
12782 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
12783 subobjects, widen the min/max range of the lowest-order object to
12784 potentially include all other such low-order objects.
12785 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
12786 (check_allocation): Likewise. Use more fine-grained tests for register
12787 conflicts.
12788 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
12789 allocno subobjects.
12790 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
12791 choices about which bits to set in each set. Don't use
12792 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
12793 using the multiple sets we computed.
12794 (push_allocno_to_stack): Iterate over allocno subobjects.
12795 (all_conflicting_hard_regs_coalesced): New static function.
12796 (setup_allocno_available_regs_num): Use it.
12797 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
12798 subobjects.
12799 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
12800 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12801 by ALLOCNO_NUM_OBJECTS.
12802 (calculate_spill_cost): Likewise.
12803 (color_pass): Express if statement in a more normal way.
12804 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
12805 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
12806 (setup_slot_coalesced_allocno_live_ranges): Likewise.
12807 (allocno_reload_assign): Likewise.
12808 (ira_reassign_pseudos): Likewise.
12809 (fast_allocation): Likewise.
12810 * ira-conflicts.c (build_conflict_bit_table): Likewise.
12811 (print_allocno_conflicts): Likewise.
12812 (ira_build_conflicts): Likewise.
12813 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
12814 callers changed. Test subword 0 of each allocno for conflicts.
12815 (build_object_conflicts): Renamed from build_allocno_conflicts. All
12816 callers changed. Iterate over allocno subobjects.
12817 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
12818 * ira-int.h (struct ira_allocno): New member: num_objects.
12819 Rename object to objects and change it into an array.
12820 (ALLOCNO_OBJECT): Add new argument N.
12821 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
12822 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
12823 (ior_hard_reg_conflicts): Declare.
12824 (ira_add_live_range_to_object): Declare.
12825 (ira_allocno_object_iterator): New.
12826 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
12827 (FOR_EACH_ALLOCNO_OBJECT): New macro.
12828 * ira-lives.c (objects_live): Renamed from allocnos_live; all
12829 uses changed.
12830 (allocnos_processed): New sparseset.
12831 (make_object_born): Renamed from make_allocno_born; take an
12832 ira_object_t argument. All callers changed.
12833 (make_object_dead): Renamed from make_allocno_dead; take an
12834 ira_object_t argument. All callers changed.
12835 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
12836 All callers changed.
12837 (mark_pseudo_regno_live): Iterate over allocno subobjects.
12838 (mark_pseudo_regno_dead): Likewise.
12839 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
12840 functions.
12841 (mark_ref_live): Detect subword accesses and call
12842 mark_pseudo_regno_subword_live as appropriate.
12843 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
12844 (process_bb_nodes_live): Deal with object-related updates first; set
12845 and test bits in allocnos_processed to avoid computing allocno
12846 statistics more than once.
12847 (create_start_finish_chains): Iterate over objects, not allocnos.
12848 (print_object_live_ranges): New function.
12849 (print_allocno_live_ranges): Use it.
12850 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
12851 and objects_live.
12852
12853 2010-07-22 Richard Guenther <rguenther@suse.de>
12854
12855 PR lto/42451
12856 * gimple.c (gtc_next_dfs_num): New global.
12857 (struct sccs): Make value a union, add integer same_p member.
12858 (gtc_visit): New function.
12859 (gimple_types_compatible_p_1): New function, split out from ...
12860 (gimple_types_compatible_p): ... here. Start a DFS walk here.
12861 (iterative_hash_gimple_type): Adjust for sccs change.
12862
12863 2010-07-22 Martin Jambor <mjambor@suse.cz>
12864
12865 PR tree-optimization/44891
12866 * tree-sra.c: Include gimple-pretty-print.h.
12867 (replace_uses_with_default_def_ssa_name): Renamed to
12868 get_repl_default_def_ssa_name, return the new SSA name instead of
12869 replacing the old one.
12870 (sra_modify_assign): Dump a message when removing a load, if the LHS
12871 is an SSA_NAME, do not do any propagation, just set the RHS to a
12872 default definition SSA NAME, type convert if necessary.
12873 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
12874
12875 2010-07-22 Richard Guenther <rguenther@suse.de>
12876
12877 PR tree-optimization/45017
12878 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
12879 TYPE_PRECISION of integral types in addition to size.
12880
12881 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12882
12883 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
12884 when no C library is specified.
12885
12886 2010-07-22 Martin Jambor <mjambor@suse.cz>
12887
12888 * ipa-prop.h (struct ipa_node_params): Updated comment.
12889 (struct ipa_edge_args): Likewise.
12890 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
12891
12892 2010-07-22 Martin Jambor <mjambor@suse.cz>
12893
12894 * cgraphunit.c (verify_edge_count_and_frequency): New function.
12895 (verify_cgraph_node): Verify frequencies of indirect edges.
12896 * tree-inline.c (tree_function_versioning): Update frequencies of
12897 indirect edges.
12898
12899 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12900
12901 PR target/43698
12902 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
12903 Set *arm_rev to be predicable.
12904
12905 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
12906
12907 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
12908 (LINK_COMMAND_SPEC_A): New.
12909 (DSYMUTIL): New.
12910 (DSYMUTIL_SPEC): New.
12911 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
12912 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
12913
12914 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
12915
12916 * calls.c (load_register_parameters): Move check for zero
12917 sized items so that only the call to
12918 mem_overlaps_already_clobbered_arg_p () is protected.
12919
12920 2010-07-22 Jan Hubicka <jh@suse.cz>
12921
12922 * ipa-pure-const.c (varying_state): Break out from ...
12923 (get_function_state): ... here; always return varying_state
12924 when state would be NULL otherwise.
12925 (remove_node_data): Do not free varying state.
12926
12927 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12928
12929 PR bootstrap/44970
12930 PR middle-end/45009
12931 * postreload.c: Include "target.h".
12932 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
12933 into account.
12934 (fixup_debug_insns): Don't copy the rtx.
12935 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
12936 Don't copy when replacing. Call fixup_debug_insns in the case where
12937 we merged one add with another.
12938 (reload_combine_recognize_pattern): Fail if there aren't any uses.
12939 Try harder to determine whether we're picking a valid index register.
12940 Don't set store_ruid for an insn we're going to scan in the
12941 next iteration.
12942 (reload_combine): Remove unused code.
12943 (reload_combine_note_use): When updating use information for
12944 an old insn, ignore a use that occurs after store_ruid.
12945 * Makefile.in (postreload.o): Update dependencies.
12946
12947 * function.c (record_hard_reg_sets): Restrict the previous change
12948 to cases where the incoming nominal mode is the same as the
12949 incoming promoted mode and everything happens in MODE_INT.
12950
12951 2010-07-21 Jakub Jelinek <jakub@redhat.com>
12952
12953 PR debug/45015
12954 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
12955 ASM_OPERANDS_OUTPUT_IDX.
12956 (adjust_insn): For inline asm with multiple sets ensure first
12957 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
12958 the insn.
12959
12960 2010-07-21 Richard Henderson <rth@redhat.com>
12961
12962 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
12963 comparison for avoiding xmm register saves. Emit the xmm register
12964 saves explicitly.
12965 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
12966 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
12967 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
12968 Remove patterns and the associated splitters.
12969
12970 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
12971
12972 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
12973 and imagine parts of a complex, so that they can have the same
12974 base and fall into the same group.
12975
12976 2010-07-21 Richard Guenther <rguenther@suse.de>
12977
12978 PR lto/45018
12979 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
12980 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
12981 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
12982
12983 2010-07-21 Martin Jambor <mjambor@suse.cz>
12984
12985 PR tree-optimization/44900
12986 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
12987 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
12988
12989 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
12990
12991 PR middle-end/44738
12992 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
12993
12994 2010-07-21 Richard Guenther <rguenther@suse.de>
12995
12996 PR middle-end/45013
12997 * tree-ssa.c (useless_type_conversion_p): Dispatch to
12998 gimple_types_compatible_p only when in lto.
12999 * gimple.c (gimple_types_compatible_p): Use canonical types
13000 to speed up comparison.
13001
13002 2010-07-21 Richard Guenther <rguenther@suse.de>
13003
13004 * tree-flow.h (referenced_var): Move define ...
13005 * tree-flow-inline.h (referenced_var): ... here as an inline
13006 function. Assert here ...
13007 * tree-dfa.c (referenced_var_lookup): ... instead of here.
13008 * tree-ssa.c (maybe_optimize_var): Check if the variable
13009 is in referenced vars.
13010 (execute_update_addresses_taken): Remove old broken check.
13011 * gimple-pretty-print.c (pp_points_to_solution): Use
13012 referenced_var_lookup.
13013 * tree-into-ssa.c (dump_decl_set): Likewise.
13014
13015 2010-07-21 Jakub Jelinek <jakub@redhat.com>
13016
13017 PR debug/45003
13018 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
13019 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
13020 ZERO_EXTEND here.
13021
13022 2010-07-20 Richard Henderson <rth@redhat.com>
13023
13024 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
13025
13026 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
13027
13028 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
13029 computing the sum of the stack pointer and a large constant.
13030 * config/arm/constraints.md (M): Remove superfluous parentheses.
13031 (Pc): New constraint.
13032
13033 2010-07-20 Jakub Jelinek <jakub@redhat.com>
13034
13035 PR debug/45006
13036 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
13037 operand's type if exp is tcc_unary class tree.
13038
13039 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
13040
13041 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
13042 Reverse sense of if_then_else condition.
13043
13044 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
13045
13046 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
13047 * config/rs6000/rs6000.c (rs6000_override_options): Set
13048 rs6000_block_move_inline_limit appropriately.
13049 (expand_block_move): Use rs6000_block_move_inline_limit.
13050 * doc/invoke.texi (mblock-move-inline-limit): Document.
13051
13052 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
13053
13054 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
13055 FROM and TO. All callers changed. Don't look for tracked uses,
13056 just scan the RTL for DEBUG_INSNs and substitute.
13057 (reload_combine_recognize_pattern): Call fixup_debug_insns.
13058 (reload_combine): Ignore DEBUG_INSNs.
13059
13060 2010-07-20 Jakub Jelinek <jakub@redhat.com>
13061
13062 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
13063 depth to 8 from 5.
13064
13065 PR debug/45003
13066 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
13067 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
13068 instead of the result's type.
13069
13070 2010-07-20 Richard Guenther <rguenther@suse.de>
13071
13072 PR tree-optimization/44977
13073 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
13074 SSA form.
13075
13076 2010-07-20 Richard Guenther <rguenther@suse.de>
13077
13078 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
13079 (lto_symtab_merge_decls_2): Likewise.
13080 * gimple.h (gimple_types_compatible_p): Declare.
13081 * gimple.c (gimple_queue_type_fixup): Remove.
13082 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
13083 (gimple_compatible_complete_and_incomplete_type_p): New function.
13084 (gimple_types_compatible_p): Adjust.
13085 (gimple_register_type): Remove type fixup code.
13086 (print_gimple_types_stats): Adjust.
13087 (free_gimple_type_tables): Likewise.
13088 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
13089 * tree-ssa.c (useless_type_conversion_p): Likewise.
13090
13091 2010-07-20 Richard Guenther <rguenther@suse.de>
13092
13093 PR middle-end/44971
13094 PR middle-end/44988
13095 * tree-ssa.c (maybe_optimize_var): New function split out from ...
13096 (execute_update_addresses_taken): ... here.
13097 (non_rewritable_mem_ref_base): Likewise.
13098 (execute_update_addresses_taken): Do not iterate over all referenced
13099 vars but just all local decls and parms.
13100 Properly check call and asm arguments and rewrite call arguments.
13101
13102 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
13103
13104 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
13105 to top level.
13106 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
13107 definitions ...
13108 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
13109 New macro.
13110 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
13111
13112 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
13113
13114 * gengtype.c (start_root_entry): New function, split out from
13115 write_root. Check whether V is null and raise an error if so.
13116 (write_field_root): Check for V being null. Don't raise an error here;
13117 set V to null instead.
13118 (write_root): Update comment above function. Use start_root_entry.
13119
13120 2010-07-19 Xinliang David Li <davidxl@google.com>
13121
13122 PR testsuite/44932
13123 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
13124 def edges.
13125 (find_uninit_use): Add dump.
13126 (is_use_properly_guarded): Ditto.
13127 (warn_uninitialized_phi): Ditto.
13128 (execute_late_warn_uninitialized): Ditto.
13129
13130 2010-07-19 Richard Guenther <rguenther@suse.de>
13131
13132 PR middle-end/44941
13133 * expr.c (emit_block_move_hints): Move zero size check first.
13134 Move asserts to more useful places.
13135 * calls.c (load_register_parameters): Check for zero size.
13136
13137 2010-07-19 Richard Henderson <rth@redhat.com>
13138
13139 * tree-optimize.c (execute_all_early_local_passes): New. Change
13140 cgraph_state here ...
13141 (execute_early_local_optimizations): ... not here. Remove.
13142 (pass_early_local_passes, pass_all_early_optimizations): Update.
13143
13144 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
13145
13146 * postreload.c (reload_combine_closest_single_use): Ignore the
13147 number of uses for DEBUG_INSNs.
13148 (fixup_debug_insns): New static function.
13149 (reload_combine_recognize_const_pattern): Use it. Don't let the
13150 main loop be affected by DEBUG_INSNs.
13151 Really disallow moving adds past a jump insn.
13152 (reload_combine_recognize_pattern): Don't update use_ruid here.
13153 (reload_combine_note_use): Do it here.
13154 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
13155
13156 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
13157
13158 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
13159 of a loop.
13160 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
13161
13162 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
13163
13164 * config/i386/darwin.h: Define darwin_emit_branch_islands.
13165 (TARGET_MACHO_BRANCH_ISLANDS): New.
13166 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
13167 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
13168 default value.
13169 * config/i386/i386.c (output_pic_addr_const): Do not emit
13170 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
13171 (x86_output_mi_thunk): Adjust symbol creation.
13172 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
13173 Remove out of date comment.
13174 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
13175 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
13176 (DARWIN_GENERATE_ISLANDS): Ditto.
13177 (output_call): Do not emit branch islands unless
13178 darwin_emit_branch_islands is set.
13179 * config/darwin.c: Declare darwin_emit_branch_islands.
13180 (machopic_indirect_data_reference): Do not emit unless
13181 darwin_emit_branch_islands is set.
13182 (darwin_override_options): Set darwin_emit_branch_islands
13183 where it is needed.
13184 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
13185
13186 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13187
13188 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13189 sse_runtime, sse2_runtime.
13190
13191 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
13192
13193 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
13194 low half of a single-register SCmode return value before ORing
13195 it with the high half.
13196 * config/mips/mips16.S (MERGE_GPRf): Likewise.
13197
13198 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13199
13200 PR target/44805
13201 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
13202 on all targets.
13203
13204 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
13205
13206 PR target/42235
13207 * postreload.c (reload_cse_move2add): Return bool, true if anything.
13208 changed. All callers changed.
13209 (move2add_use_add2_insn): Likewise.
13210 (move2add_use_add3_insn): Likewise.
13211 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
13212 reload_combine.
13213 (RELOAD_COMBINE_MAX_USES): Bump to 16.
13214 (last_jump_ruid): New static variable.
13215 (struct reg_use): New members CONTAINING_MEM and RUID.
13216 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
13217 (reload_combine_split_one_ruid, reload_combine_split_ruids,
13218 reload_combine_purge_insn_uses, reload_combine_closest_single_use
13219 reload_combine_purge_reg_uses_after_ruid,
13220 reload_combine_recognize_const_pattern): New static functions.
13221 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
13222 is true for our reg and that we have available index regs.
13223 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
13224 callers changed. Use them to initialize fields in struct reg_use.
13225 (reload_combine): Initialize last_jump_ruid. Be careful when to
13226 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
13227 Call reload_combine_recognize_const_pattern.
13228 (reload_combine_note_store): Update REAL_STORE_RUID field.
13229
13230 2010-07-16 Jason Merrill <jason@redhat.com>
13231
13232 * Makefile.in (opts-common.o): Depend on options.h.
13233
13234 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
13235
13236 * tree.c (build_common_builtin_nodes): Use build_function_type_list
13237 instead of build_function_type.
13238 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
13239 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
13240
13241 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
13242
13243 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
13244 do all the work.
13245 (rs6000_emit_int_cmove): Use function pointers for insn generation.
13246 Don't force values into registers unnecessarily.
13247 (output_isel): Assert that we're not given conditions we can't handle.
13248 Delete corresponding code.
13249 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
13250 scc_comparison_operator constraint. Permit 0 for the consequent
13251 operand. Permit any GPR for the alternative operand.
13252 (isel_unsigned_<mode>): Likewise.
13253
13254 2010-07-16 Jakub Jelinek <jakub@redhat.com>
13255
13256 PR target/44942
13257 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
13258 argument to const_tree.
13259 * config/i386/i386.c (function_arg_advance): If padding needs to be
13260 inserted before argument, increment cum->words by number of padding
13261 words as well.
13262 (contains_aligned_value_p): Change argument to const_tree.
13263 (ix86_function_arg_boundary): Change second argument to const_tree.
13264
13265 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
13266
13267 PR target/42235
13268 * function.c (record_hard_reg_sets): New static function.
13269 (assign_parm_setup_reg): If an optab for extending exists and the
13270 generated code clobbbers no hard regs, emit the insn directly and
13271 create a REG_EQUIV note.
13272
13273 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13274
13275 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
13276 TREE_CHAIN.
13277 * c-typeck.c (push_init_level): Likewise.
13278 (process_init_element): Likewise.
13279
13280 2010-07-15 Anatoly Sokolov <aesok@post.ru>
13281
13282 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
13283 (integer_three_node): Add.
13284 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
13285 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
13286 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
13287 of call build_int_cst.
13288 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
13289 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
13290 (find_interesting_uses_address): Ditto.
13291 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
13292 * tree-eh.c (lower_eh_constructs_2): Ditto.
13293 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
13294 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
13295 * expmed.c (expand_divmod): Ditto.
13296 * tree-mudflap.c (mx_register_decls): Ditto.
13297 * varasm.c (array_size_for_constructor): Ditto.
13298 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
13299 * c-parser.c (c_parser_postfix_expression): Ditto.
13300
13301 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
13302
13303 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
13304 New static variables.
13305 (reload_combine_recognize_pattern): New static function, broken out
13306 of reload_combine.
13307 (reload_combine): Use it. Only initialize first_index_reg and
13308 last_index_reg once.
13309
13310 2010-07-15 Richard Henderson <rth@redhat.com>
13311
13312 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
13313 when done.
13314
13315 2010-07-15 Jan Hubicka <jh@suse.cz>
13316
13317 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
13318 comdats for broken gold.
13319 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
13320
13321 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13322
13323 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
13324
13325 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13326
13327 * tree.h (DECL_CHAIN): Define.
13328 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
13329 * c-decl.c: Likewise.
13330 * c-parser.c: Likewise.
13331 * c-typeck.c: Likewise.
13332 * cfgexpand.c: Likewise.
13333 * cgraph.c: Likewise.
13334 * cgraphunit.c: Likewise.
13335 * combine.c: Likewise.
13336 * config/alpha/alpha.c: Likewise.
13337 * config/arm/arm.c: Likewise.
13338 * config/frv/frv.c: Likewise.
13339 * config/i386/i386.c: Likewise.
13340 * config/i386/winnt-cxx.c: Likewise.
13341 * config/ia64/ia64.c: Likewise.
13342 * config/iq2000/iq2000.c: Likewise.
13343 * config/mep/mep.c: Likewise.
13344 * config/mips/mips.c: Likewise.
13345 * config/pa/som.h: Likewise.
13346 * config/rs6000/rs6000.c: Likewise.
13347 * config/s390/s390.c: Likewise.
13348 * config/sh/sh.c: Likewise.
13349 * config/sh/symbian-cxx.c: Likewise.
13350 * config/sparc/sparc.c: Likewise.
13351 * config/spu/spu.c: Likewise.
13352 * config/stormy16/stormy16.c: Likewise.
13353 * config/vxworks.c: Likewise.
13354 * config/xtensa/xtensa.c: Likewise.
13355 * coverage.c: Likewise.
13356 * dbxout.c: Likewise.
13357 * dwarf2out.c: Likewise.
13358 * emit-rtl.c: Likewise.
13359 * expr.c: Likewise.
13360 * function.c: Likewise.
13361 * gimple-low.c: Likewise.
13362 * gimple-pretty-print.c: Likewise.
13363 * gimplify.c: Likewise.
13364 * integrate.c: Likewise.
13365 * ipa-inline.c: Likewise.
13366 * ipa-prop.c: Likewise.
13367 * ipa-split.c: Likewise.
13368 * ipa-struct-reorg.c: Likewise.
13369 * ipa-type-escape.c: Likewise.
13370 * langhooks.c: Likewise.
13371 * lto-cgraph.c: Likewise.
13372 * omp-low.c: Likewise.
13373 * stor-layout.c: Likewise.
13374 * tree-cfg.c: Likewise.
13375 * tree-complex.c: Likewise.
13376 * tree-dfa.c: Likewise.
13377 * tree-dump.c: Likewise.
13378 * tree-inline.c: Likewise.
13379 * tree-mudflap.c: Likewise.
13380 * tree-nested.c: Likewise.
13381 * tree-object-size.c: Likewise.
13382 * tree-pretty-print.c: Likewise.
13383 * tree-sra.c: Likewise.
13384 * tree-ssa-live.c: Likewise.
13385 * tree-ssa-loop-niter.c: Likewise.
13386 * tree-ssa-math-opts.c: Likewise.
13387 * tree-ssa-reassoc.c: Likewise.
13388 * tree-ssa-sccvn.c: Likewise.
13389 * tree-ssa-structalias.c: Likewise.
13390 * tree-tailcall.c: Likewise.
13391 * tree-vrp.c: Likewise.
13392 * tree.c: Likewise.
13393 * var-tracking.c: Likewise.
13394 * varasm.c: Likewise.
13395
13396 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13397
13398 PR target/44877
13399 * config/spu/spu.c (spu_expand_builtin_1): Allow references
13400 (as well as pointers) as argument to mask_for_load builtins.
13401
13402 2010-07-15 Richard Guenther <rguenther@suse.de>
13403
13404 PR tree-optimization/44946
13405 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
13406 with accessing only padding properly.
13407
13408 2010-07-15 Jan Hubicka <jh@suse.cz>
13409
13410 * ipa.c (function_and_variable_visibility): Variables marked as used
13411 should not be localized.
13412
13413 2010-07-15 Jan Hubicka <jh@suse.cz>
13414
13415 * cgraph.c: Include lto-streamer.h
13416 (change_decl_assembler_name): Work when assembler name hash is at place.
13417 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
13418 be sure to rename it to avoid name clash.
13419 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
13420 Localize hidden symbols only when locally defined.
13421
13422 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
13423
13424 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
13425
13426 2010-07-15 Magnus Granberg <zorry@gentoo.org>
13427 Kevin F. Quinn <kevquinn@gentoo.org>
13428
13429 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
13430 * common.opt: Add -Wtrampolines.
13431 * doc/invoke.texi: Add -Wtrampolines.
13432
13433 2010-07-15 Jie Zhang <jie@codesourcery.com>
13434
13435 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
13436 cortex_a8_issue_ls.
13437
13438 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
13439
13440 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
13441 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
13442
13443 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13444
13445 * config/spu/spu.c (reg_names): Remove prototype.
13446 (call_used_regs): Likewise.
13447
13448 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
13449
13450 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
13451 "unused" with attribute "used".
13452 (__JCR_END__): Likewise.
13453 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
13454 "used" attribute.
13455 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
13456
13457 2010-07-14 Richard Guenther <rguenther@suse.de>
13458
13459 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
13460 (maybe_fixup_decls): Likewise.
13461 (input_gimple_stmt): Do not fixup anything.
13462 * lto-streamer-out.c (output_gimple_stmt): Make sure all
13463 non-automatic variable uses are wrapped inside a MEM_REF.
13464
13465 2010-07-14 Richard Henderson <rth@redhat.com>
13466
13467 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
13468 for functions.
13469 * varasm.c (assemble_variable): Remove early exit for functions;
13470 assert that we're given a variable.
13471
13472 2010-07-14 Jie Zhang <jie@codesourcery.com>
13473
13474 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
13475 cortex_a8_default when neon_type is not none.
13476
13477 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13478
13479 * lower-subreg.c (subreg_context): New static bitmap.
13480 (decompose_multiword_subregs): Allocate and free it.
13481 (find_decomposable_subregs): Set a bit in it for a register that
13482 occurs in a subreg that changes mode but not size.
13483 (can_decompose_p): Test it instead of non_decomposable_context.
13484
13485 2010-07-14 Richard Guenther <rguenther@suse.de>
13486
13487 PR tree-optimization/44824
13488 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
13489 is_gimple_mem_ref_addr.
13490 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
13491 non-decl_address_invariant_p addresses.
13492
13493 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13494
13495 * reload.c (find_reloads): Revert code to penalize small register
13496 classes that was brought in with the IRA merge.
13497
13498 2010-07-14 Richard Guenther <rguenther@suse.de>
13499
13500 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
13501 as base of ARRAY_REFs.
13502
13503 2010-07-14 Richard Guenther <rguenther@suse.de>
13504
13505 PR middle-end/44930
13506 * tree-pretty-print.c (do_niy): Do not print a newline.
13507
13508 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13509
13510 * ira-int.h (struct ira_object): New.
13511 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
13512 (struct ira_allocno): Remove members min, max,
13513 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
13514 conflict_allocnos_num and conflict_vec_p. Add new member object.
13515 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
13516 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
13517 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
13518 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
13519 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
13520 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
13521 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
13522 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
13523 an ira_object_t rather than ira_allocno_t. All uses changed.
13524 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
13525 contains a vector of ira_object_t; all uses changed.
13526 (ira_objects_num): Declare variable.
13527 (ira_create_allocno_object): Declare function.
13528 (ira_conflict_vector_profitable_p): Adjust prototype.
13529 (ira_allocate_conflict_vec): Renamed from
13530 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
13531 (ira_allocate_object_conflicts): Renamed from
13532 ira_allocate_allocno_conflicts; first arg now ira_object_t.
13533 (struct ira_object_iterator): New.
13534 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
13535 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
13536 to conflict_vec_p. All uses changed.
13537 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
13538 Changed to take into account that conflicts are now tracked for
13539 objects.
13540 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
13541 Args changed to accept ira_object_t. All uses changed.
13542 (allocnos_conflict_p): New static function.
13543 (collected_conflict_objects): Renamed from collected_allocno_objects;
13544 now a vector of ira_object_t. All uses changed.
13545 (build_conflict_bit_table): Changed to take into account that
13546 conflicts are now tracked for objects.
13547 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
13548 (print_allocno_conflicts, ira_build_conflicts): Likewise.
13549 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
13550 setup_allocno_left_conflicts_size, allocno_reload_assign,
13551 fast_allocation): Likewise.
13552 * ira-lives.c (make_hard_regno_born, make_allocno_born)
13553 process_single_reg_class_operands, process_bb_node_lives): Likewise.
13554 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
13555 Likewise.
13556 * ira-build.c (ira_objects_num): New variable.
13557 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
13558 contains a vector of ira_object_t; all uses changed.
13559 (ira_object_id_map_vec): Corresponding change.
13560 (object_pool): New static variable.
13561 (initiate_allocnos): Initialize it.
13562 (finish_allocnos): Free it.
13563 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
13564 New functions.
13565 (ira_create_allocno): Don't set members that were removed.
13566 (ira_set_allocno_cover_class): Don't change conflict hard regs.
13567 (merge_hard_reg_conflicts): Changed to take into account that
13568 conflicts are now tracked for objects.
13569 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
13570 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
13571 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
13572 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
13573 setup_min_max_conflict_allocno_ids, ): Likewise.
13574 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
13575 to ira_object_t; all callers changed.
13576 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
13577 to ira_object_t, all callers changed.
13578 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
13579 to ira_object_t, all callers changed.
13580 (conflict_check, curr_conflict_check_tick): Renamed from
13581 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
13582 changed.
13583 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
13584 arg changed to ira_object_t, all callers changed.
13585 (create_cap_allocno): Call ira_create_allocno_object.
13586 (finish_allocno): Free the corresponding object.
13587 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
13588 callers changed. Adjusted for dealing with objects.
13589 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
13590 dealing with objects.
13591 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
13592
13593 * ira-int.h (struct live_range): Rename allocno member to object
13594 and change type to ira_object_t.
13595 (struct ira_object): New member live_ranges.
13596 (struct ira_allocno): Remove member live_ranges.
13597 (ALLOCNO_LIVE_RANGES): Remove.
13598 (OBJECT_LIVE_RANGES): New macro.
13599 (ira_create_live_range, ira_copy_live_range_list,
13600 ira_merge_live_range_list, ira_live_ranges_intersect_p,
13601 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
13602 * ira-build.c (ira_create_object): Initialize live ranges here.
13603 (ira_create_allocno): Not here.
13604 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
13605 changed to ira_object_t, all callers changed.
13606 (copy_live_range): Rename from copy_allocno_live_range, all callers
13607 changed.
13608 (ira_copy_live_range_list): Rename from
13609 ira_copy_allocno_live_range_list, all callers changed.
13610 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
13611 all callers changed.
13612 (ira_live_ranges_intersect_p): Rename from
13613 ira_allocno_live_ranges_intersect_p, all callers changed.
13614 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
13615 callers changed.
13616 (ira_finish_live_range_list): Rename from
13617 ira_finish_allocno_live_range_list, all callers changed.
13618 (change_object_in_range_list): Rename from change_allocno_in_range_list,
13619 last arg changed to ira_object_t, all callers changed.
13620 (finish_allocno): Changed to expect live ranges in the allocno's object.
13621 (move_allocno_live_ranges, copy_allocno_live_ranges,
13622 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
13623 ira_flattening, ira_build): Likewise.
13624 * ira-color.c (allocnos_have_intersected_live_ranges_p,
13625 slot_coalesced_allocno_live_ranges_intersect,
13626 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
13627 * ira-conflicts.c (build_conflict_bit_table): Likewise.
13628 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13629 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
13630 make_allocno_dead, create_start_finish_chains,
13631 remove_some_program_points_and_update_live_ranges,
13632 ira_debug_live_range_list): Likewise.
13633
13634 * ira-int.h (ira_object_conflict_iterator): Rename from
13635 ira_allocno_conflict_iterator.
13636 (ira_object_conflict_iter_init): Rename from
13637 ira_allocno_conflict_iter_init, second arg changed to
13638 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
13639 FOR_EACH_ALLOCNO_CONFLICT.
13640 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
13641 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
13642 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
13643 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13644
13645 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
13646
13647 PR other/44874
13648 * tree-dump.c (dump_options): Add enumerate_locals entry.
13649 Add TDF_NOID exclusion to all entry.
13650 * tree-dump.h (dump_enumerated_decls): Declare.
13651 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
13652 Don't display type uid.
13653 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
13654 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
13655 * tree-ssa-live.c: Include gimple.h.
13656 (numbered_tree_d): New struct.
13657 (numbered_tree): New typedef.
13658 (DEF_VEC_O (numbered_tree): New.
13659 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
13660 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
13661 (dump_enumerated_decls): Likewise.
13662 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
13663 debug info and flag_dump_final_insns, call dump_enumerated_decls.
13664 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
13665 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
13666
13667 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
13668
13669 * expmed.h (MAX_BITS_PER_WORD): Move to...
13670 * defaults.h (MAX_BITS_PER_WORD): ...here.
13671
13672 2010-07-13 DJ Delorie <dj@redhat.com>
13673
13674 * config/h8300/h8300.c (h8300_init_once): Default to
13675 -fstrict_volatile_bitfields.
13676
13677 * config/sh/sh.c (sh_override_options): Default to
13678 -fstrict_volatile_bitfields.
13679
13680 * config/rx/rx.c (rx_option_override): New.
13681
13682 * config/m32c/m32c.c (m32c_override_options): Default to
13683 -fstrict_volatile_bitfields.
13684
13685 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
13686
13687 * tree.h (build_function_call_expr): Delete.
13688 (build_call_expr_loc_array): New function.
13689 (build_call_expr_loc_vec): New function.
13690 * tree-flow.h (struct omp_region): Change type of ws_args field
13691 to a VEC.
13692 * builtins.c (build_function_call_expr): Delete.
13693 (build_call_expr_loc_array): New function.
13694 (build_call_expr_loc): Call it. Use XALLOCAVEC.
13695 (build_call_expr): Likewise.
13696 (build_call_expr_loc_vec): New function.
13697 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
13698 build_function_call_expr.
13699 * expr.c (emutls_var_address): Likewise.
13700 * varasm.c (emutls_common_1): Likewise.
13701 * omp-low.c (expand_omp_atomic_mutex): Likewise.
13702 (expand_omp_taskreg): Adjust for new type of region->ws_args.
13703 (get_ws_args_for): Return a VEC instead of a tree.
13704 (expand_parallel_call): Call build_call_expr_loc_vec instead of
13705 build_function_call_expr.
13706 * stor-layout.c (self_referential_size): Likewise.
13707
13708 2010-07-13 Jakub Jelinek <jakub@redhat.com>
13709
13710 PR testsuite/44701
13711 * recog.c (constrain_operands): Allow side-effects in memory
13712 operands if either < or > constraint is used, rather than if
13713 both < and > is used.
13714
13715 2010-07-13 Richard Guenther <rguenther@suse.de>
13716
13717 PR middle-end/44911
13718 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
13719 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
13720 without name.
13721
13722 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
13723
13724 PR target/44761
13725 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
13726 to variable emited.
13727 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
13728 * config/sh/sh.md (symGOT_load): Likewise.
13729 (symDTPOFF2reg): Likewise.
13730 (symTPOFF2reg): Likewise.
13731
13732 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13733
13734 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
13735 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
13736
13737 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13738
13739 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
13740 explanation.
13741 Find ucontext_t * on Solaris 11.
13742 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
13743 Handle new Solaris 11 __sighndlr patterns.
13744
13745 2010-07-13 Jakub Jelinek <jakub@redhat.com>
13746
13747 PR debug/44901
13748 * vec.h (VEC_block_remove): Fix comment.
13749 * tree-ssa-live.c (remove_unused_locals): Don't use
13750 VEC_unordered_remove on local_decls, instead replace a single
13751 vector element in each iteration if at least one element had
13752 to be removed and VEC_truncate at the end.
13753 * omp-low.c (expand_omp_taskreg): Likewise.
13754
13755 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
13756
13757 * c-decl.c (finish_function): Fix typo in comment.
13758
13759 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
13760
13761 PR bootstrap/44921
13762 * postreload.c (move2add_use_add3_insn): Silence gcc warning
13763 on min_regno.
13764
13765 2010-07-12 Jakub Jelinek <jakub@redhat.com>
13766
13767 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
13768 (simplify_stmt_using_ranges): Use it.
13769
13770 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13771
13772 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
13773 member. Do not mark as GTY(()).
13774 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
13775 (spu_builtin_decls): New static variable.
13776 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
13777 (spu_init_builtins): Likewise.
13778 (spu_builtin_mul_widen_even): Likewise.
13779 (spu_builtin_mul_widen_odd): Likewise.
13780 (spu_builtin_mask_for_load): Likewise.
13781 (spu_builtin_vec_perm): Likewise.
13782 * config/spu/spu-c.c: Include "target.h".
13783 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
13784 of using spu_builtins[].fndecl.
13785
13786 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13787
13788 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
13789 imply -minterlink-mips16.
13790
13791 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13792
13793 * config/mips/mips.h (mips16_globals): Declare.
13794 (SWITCHABLE_TARGET): Define.
13795 * config/mips/mips.c: Include target-globals.h.
13796 (mips16_globals): New variable.
13797 (mips_set_mips16_mode): Use save_target_globals and
13798 restore_target_globals instead of target_reinit.
13799
13800 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13801
13802 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
13803 to say that the function can be called more than once.
13804 * target-globals.c (save_target_globals): Call init_reg_sets.
13805
13806 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13807
13808 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
13809 * bb-reorder.h: New file.
13810 * bb-reorder.c (default_target_bb_reorder): New variable.
13811 (this_target_bb_reorder): New conditional variable.
13812 (uncond_jump_length): Redefine as a macro.
13813 * target-globals.h (this_target_bb_reorder): Declare.
13814 (target_globals): Add a bb_reorder field.
13815 (restore_target_globals): Copy the bb_reorder field to
13816 this_target_bb-reorder.
13817 * target-globals.c: Include bb-reorder.h.
13818 (default_target_globals): Initialize the bb_reorder field.
13819 (save_target_globals): Likewise.
13820
13821 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13822
13823 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
13824 * gcse.h: New file.
13825 * gcse.c: Include gcse.h.
13826 (default_target_gcse): New variable.
13827 (this_target_gcse): New conditional variable.
13828 (can_copy): Redefine as a macro.
13829 (can_copy_init_p): New macro.
13830 (can_copy_p): Remove can_copy_init_p.
13831 * target-globals.h (this_target_gcse): Declare.
13832 (target_globals): Add a gcse field.
13833 (restore_target_globals): Copy the gcse field to this_target_gcse.
13834 * target-globals.c: Include gcse.h.
13835 (default_target_globals): Initialize the gcse field.
13836 (save_target_globals): Likewise.
13837
13838 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13839
13840 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
13841 and x_ira_prohibited_mode_move_regs_initialized_p.
13842 (ira_prohibited_mode_move_regs): Redefine as a macro.
13843 * ira.c (ira_prohibited_mode_move_regs): Delete.
13844 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
13845
13846 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13847
13848 * reload.h (target_reload): Add x_cached_reg_save_code and
13849 x_cached_reg_restore_code.
13850 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
13851 Redefine as macros.
13852
13853 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13854
13855 * Makefile.in (target-globals.o): Depend on builtins.h.
13856 * builtins.h: New file.
13857 * builtins.c: Include builtins.h.
13858 (default_target_builtins): New variable.
13859 (this_target_builtins): New conditional variable.
13860 (apply_args_mode, apply_result_mode): Redefine as macros.
13861 * target-globals.h (this_target_builtins): Declare.
13862 (target_globals): Add a builtins field.
13863 (restore_target_globals): Copy the builtins field to
13864 this_target_builtins.
13865 * target-globals.c: Include builtins.h.
13866 (default_target_globals): Initialize the builtins field.
13867 (save_target_globals): Likewise.
13868
13869 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13870
13871 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
13872 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
13873 from expmed.c.
13874 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
13875 (alg_hash, alg_hash_used_p): New macros.
13876 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
13877 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
13878 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
13879
13880 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13881
13882 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
13883 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
13884 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
13885 (this_op_costs, costs_classes): Redefine as macros.
13886 (record_reg_classes): Don't take op_costs as a parameter.
13887 (record_operand_costs): Likewise. Update calls to record_reg_classes.
13888 (scan_one_insn): Update call to record_operand_costs.
13889
13890 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13891
13892 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
13893 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
13894 (target_ira_int): New structure.
13895 (default_target_ira_int): Declare.
13896 (this_target_ira_int): Declare as a variable or define as a macro.
13897 (ira_reg_mode_hard_regset, ira_register_move_cost)
13898 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
13899 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
13900 (prohibited_class_mode_regs, ira_important_classes_num)
13901 (ira_important_classes, ira_reg_class_intersect)
13902 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
13903 (ira_reg_class_union): Redefine as macros.
13904 * ira.h (target_ira): New structure.
13905 (default_target_ira): Declare.
13906 (this_target_ira): Declare as a variable or define as a macro.
13907 (ira_available_class_regs, ira_hard_regno_cover_class)
13908 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
13909 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
13910 (ira_class_hard_regs_num): Redefine as macros.
13911 * ira.c (default_target_ira, default_target_ira_int): New variables.
13912 (this_target_ira, this_target_ira_int): New conditional variables.
13913 (ira_reg_mode_hard_regset, ira_memory_move_cost)
13914 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
13915 (ira_class_subset_p): Delete.
13916 (no_unit_alloc_regs): Redefine as a macro.
13917 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
13918 (ira_class_hard_regs_num, ira_class_hard_reg_index)
13919 (ira_available_class_regs): Delete.
13920 (alloc_reg_class_subclasses): Redefine as a macro.
13921 (ira_reg_class_cover_size, ira_reg_class_cover)
13922 (ira_important_classes_num, ira_important_classes)
13923 (ira_important_class_nums, ira_class_translate): Delete.
13924 (cover_class_order): Document the variable's lifetime.
13925 (reorder_important_classes): Don't set ira_important_class_nums.
13926 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
13927 (ira_reg_class_super_classes, ira_reg_class_union)
13928 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
13929 Delete.
13930 (setup_reg_class_nregs): Don't set ira_max_regs.
13931 (prohibited_class_mode_regs): Delete.
13932 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
13933 (target_globals): Add ira and ira_int fields.
13934 (restore_target_globals): Copy the ira field to this_target_ira
13935 and the ira_int field to this_target_ira_int.
13936 * target-globals.c: Include ira-int.h.
13937 (default_target_globals): Initialize the ira and ira_int fields.
13938 (save_target_globals): Likewise.
13939
13940 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13941
13942 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
13943 * cfgloop.h (target_cfgloop): New structure.
13944 (default_target_cfgloop): Declare.
13945 (this_target_cfgloop): Declare as a variable or define as a macro.
13946 (target_avail_regs, target_clobbered_regs, target_res_regs)
13947 (target_reg_cost, target_spill_cost): Redefine as macros.
13948 * cfgloopanal.c (default_target_cfgloop): New variable.
13949 (this_target_cfgloop): New conditional variable.
13950 (target_avail_regs, target_clobbered_regs, target_res_regs)
13951 (target_reg_cost, target_spill_cost): Delete.
13952 * target-globals.h (this_target_cfgloop): Declare.
13953 (target_globals): Add a cfgloop field.
13954 (restore_target_globals): Copy the cfgloop field to
13955 this_target_cfgloop.
13956 * target-globals.c: Include cfgloop.h.
13957 (default_target_globals): Initialize the cfgloop field.
13958 (save_target_globals): Likewise.
13959
13960 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13961
13962 * regs.h (target_regs): Add x_direct_load, x_direct_store and
13963 x_float_extend_from_mem.
13964 (direct_load, direct_store, float_extend_from_mem): New macros.
13965 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
13966
13967 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13968
13969 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
13970 (target-globals.o): Depend on $(LIBFUNCS_H).
13971 * libfuncs.h: Include hashtab.h.
13972 (libfunc_entry): Moved from optabs.c.
13973 (target_libfuncs): New structure.
13974 (default_target_libfuncs): Declare.
13975 (this_target_libfuncs): Declare as a variable or define as a macro.
13976 (libfunc_table): Redefine as a macro.
13977 * optabs.c (default_target_libfuncs): New variable.
13978 (this_target_libfuncs): New conditional variable.
13979 (libfunc_table): Delete.
13980 (libfunc_entry): Moved to optabs.h.
13981 (libfunc_hash): Redefine as a macro.
13982 (hash_libfunc, eq_libfunc): Fix comments.
13983 (init_optabs): Use libfunc_hash to detect cases where the function
13984 has already been called. Clear the hash table instead of
13985 recreating it.
13986 * target-globals.h (this_target_libfuncs): Declare.
13987 (target_globals): Add a libfuncs field.
13988 (restore_target_globals): Copy the libfuncs field to
13989 this_target_libfuncs.
13990 * target-globals.c: Include libfuncs.h.
13991 (default_target_globals): Initialize the libfuncs field.
13992 (save_target_globals): Likewise.
13993
13994 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13995
13996 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
13997 in all dependency lists.
13998
13999 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14000
14001 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
14002 * optabs.h (target_optabs): New structure.
14003 (default_target_optabs): Declare.
14004 (this_target_optabs): Declare as a variable or define as a macro.
14005 (optab_table, convert_optab_table, direct_optab_table): Redefine
14006 as macros.
14007 * optabs.c (default_target_optabs): New variable.
14008 (this_target_optabs): New conditional variable.
14009 (optab_table, convert_optab_table, direct_optab_table): Delete.
14010 * target-globals.h (this_target_optabs): Declare.
14011 (target_globals): Add a optabs field.
14012 (restore_target_globals): Copy the optabs field to
14013 this_target_optabs.
14014 * target-globals.c: Include expr.h and optabs.h.
14015 (default_target_globals): Initialize the optabs field.
14016 (save_target_globals): Likewise.
14017
14018 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14019
14020 * flags.h (target_flagstate): Add x_flag_excess_precision.
14021 (flag_excess_precision): Redefine as a macro.
14022 * toplev.c (flag_excess_precision): Delete.
14023
14024 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14025
14026 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
14027 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
14028 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
14029 (no_caller_save_reg_set): Redefine as a macro.
14030 * reload.h (target_reload): Add x_caller_save_initialized_p and
14031 x_regno_save_mode.
14032 (caller_save_initialized_p): Redefine as a macro.
14033 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
14034 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
14035 (regno_save_mode): Redefine as a macro.
14036
14037 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14038
14039 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
14040 * expmed.h: New file.
14041 * expmed.c (default_target_costs): New variable.
14042 (this_target_costs): New conditional variable.
14043 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
14044 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
14045 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
14046 * target-globals.h (this_target_expmed): Declare.
14047 (target_globals): Add a expmed field.
14048 (restore_target_globals): Copy the expmed field to
14049 this_target_expmed.
14050 * target-globals.c: Include expmed.h.
14051 (default_target_globals): Initialize the expmed field.
14052 (save_target_globals): Likewise.
14053
14054 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14055
14056 * Makefile.in (target-globals.o): Depend on reload.h.
14057 * reload.h (target_reload): New structure.
14058 (default_target_reload): Declare.
14059 (this_target_reload): Declare as a variable or define as a macro.
14060 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
14061 * reload1.c (default_target_reload): New variable
14062 (this_target_reload): New conditional variable.
14063 (indirect_symref_ok, double_reg_address_ok): Delete.
14064 (spill_indirect_levels): Redefine as a macro.
14065 * target-globals.h (this_target_reload): Declare.
14066 (target_globals): Add a reload field.
14067 (restore_target_globals): Copy the reload field to
14068 this_target_reload.
14069 * target-globals.c: Include hard-reg-set.h.
14070 (default_target_globals): Initialize the reload field.
14071 (save_target_globals): Likewise.
14072
14073 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14074
14075 * rtl.h (target_rtl): Add x_static_reg_base_value.
14076 * alias.c (static_reg_base_value): Redefine as a macro.
14077
14078 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14079
14080 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
14081 (GTFILES): Remove reginfo.c.
14082 * rtl.h (target_rtl): Add x_top_of_stack.
14083 (top_of_stack): New macro.
14084 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
14085 (top_of_stack): Delete.
14086
14087 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14088
14089 * regs.h (target_regs): Add x_hard_regs_of_mode,
14090 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
14091 x_may_move_out_cost and x_last_mode_for_init_move_cost.
14092 (have_regs_of_mode, contains_reg_of_mode, move_cost)
14093 (may_move_in_cost, may_move_out_cost): Redefine as macros.
14094 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
14095 (may_move_in_cost, may_move_out_cost): Delete.
14096 (last_mode_for_init_move_cost): Redefine as a macro.
14097
14098 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14099
14100 * hard-reg-set.h (target_hard_regs): New structure.
14101 (default_target_hard_regs): Declare.
14102 (this_target_hard_regs): Declare as a variable or define as a macro.
14103 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
14104 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
14105 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
14106 (reg_class_size, reg_class_subclasses, reg_class_subunion)
14107 (reg_class_superunion, reg_names): Redefine as macros.
14108 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
14109 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
14110 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
14111 (reg_class_contents, reg_class_size, reg_class_subclasses)
14112 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
14113 (default_target_hard_regs): New variable
14114 (this_target_hard_regs, initial_call_really_used_regs)
14115 (initial_reg_alloc_order): New conditional variables.
14116 (initial_reg_names): New variable.
14117 (init_reg_sets): Assert that initial_call_really_used_regs,
14118 initial_reg_alloc_order and initial_reg_names
14119 are all the same size as their variable counterparts. Use them to
14120 initialize those counterparts.
14121 * target-globals.h (this_target_hard_regs): Declare.
14122 (target_globals): Add a hard_regs field.
14123 (restore_target_globals): Copy the hard_regs field to
14124 this_target_hard_regs.
14125 * target-globals.c: Include hard-reg-set.h.
14126 (default_target_globals): Initialize the hard_regs field.
14127 (save_target_globals): Likewise.
14128
14129 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14130
14131 * Makefile.in (target-globals.o): Depend on $(RTL_H).
14132 * rtl.h (target_rtl): New structure.
14133 (default_target_rtl): Declare.
14134 (this_target_rtl): Declare as a variable or define as a macro.
14135 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
14136 Redefine as macros.
14137 * emit-rtl.c (default_target_rtl): New variable.
14138 (this_target_rtl): New conditional variable.
14139 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
14140 (return_address_pointer_rtx): Delete.
14141 (initial_regno_reg_rtx): New macro.
14142 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
14143 (init_emit_regs): Likewise.
14144 * target-globals.h (this_target_rtl): Declare.
14145 (target_globals): Add a rtl field.
14146 (restore_target_globals): Copy the rtl field to this_target_rtl.
14147 * target-globals.c: Include rtl.h.
14148 (default_target_globals): Initialize the rtl field.
14149 (save_target_globals): Likewise.
14150
14151 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14152
14153 * Makefile.in (target-globals.o): Depend on $(REGS_H).
14154 * regs.h (target_reg_modes): New structure.
14155 (default_target_reg_modes): Declare.
14156 (this_target_reg_modes): Declare as a variable or define as a macro.
14157 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
14158 * reginfo.c (default_target_reg_modes): New variable.
14159 (this_target_reg_modes): New conditional variable.
14160 (hard_regno_nregs, reg_raw_mode): Delete.
14161 * target-globals.h (this_target_regs): Declare.
14162 (target_globals): Add a regs field.
14163 (restore_target_globals): Copy the regs field to this_target_regs.
14164 * target-globals.c: Include regs.h.
14165 (default_target_globals): Initialize the regs field.
14166 (save_target_globals): Likewise.
14167
14168 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14169
14170 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
14171 * doc/tm.texi: Regenerate.
14172 * Makefile.in (OBJS-common): Add target-globals.o.
14173 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
14174 and target-globals.h.
14175 (target-globals.o): New rule.
14176 (GTFILES): Include $(srcdir)/target-globals.h.
14177 * defaults.h (SWITCHABLE_TARGET): Define.
14178 * gengtype.c (open_base_files): Add target-globals.h to the
14179 list of includes.
14180 * target-globals.h: New file.
14181 * target-globals.c: Likewise.
14182
14183 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
14184 * flags.h (target_flag_state): New structure.
14185 (default_target_flag_state): Declare.
14186 (this_target_flag_state): Declare as a variable or define as a macro.
14187 (align_loops_log): Redefine as a macro.
14188 (align_loops_max_skip, align_jumps_log): Likewise.
14189 (align_jumps_max_skip, align_labels_log): Likewise.
14190 (align_labels_max_skip, align_functions_log): Likewise.
14191 * toplev.c (default_target_flag_state): New variable.
14192 (this_target_flag_state): New conditional variable.
14193 (align_loops_log): Delete.
14194 (align_loops_max_skip, align_jumps_log): Likewise.
14195 (align_jumps_max_skip, align_labels_log): Likewise.
14196 (align_labels_max_skip, align_functions_log): Likewise.
14197 * target-globals.h (this_target_flag_state): Declare.
14198 (target_globals): Add a flag_state field.
14199 (restore_target_globals): Copy the flag_state field to
14200 this_target_flag_state.
14201 * target-globals.c: Include flags.h.
14202 (default_target_globals): Initialize the flag_state field.
14203 (save_target_globals): Likewise.
14204
14205 2010-07-12 Jie Zhang <jie@codesourcery.com>
14206
14207 * postreload.c (reg_symbol_ref[]): New.
14208 (move2add_use_add2_insn): New.
14209 (move2add_use_add3_insn): New.
14210 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
14211 (move2add_note_store): Likewise.
14212
14213 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
14214
14215 PR rtl-optimization/44752
14216 * genautomata.c (main): Don't emit an empty file even if there
14217 is no automaton.
14218
14219 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14220
14221 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
14222 ix86_solaris_return_in_memory.
14223 * config/i386-protos.h: Reflect this.
14224 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
14225 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
14226 Move ...
14227 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
14228
14229 2010-07-12 Jie Zhang <jie@codesourcery.com>
14230
14231 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
14232 align the stack when it's going to be saved.
14233
14234 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14235
14236 PR pch/14940
14237 * config/host-solaris.c (mmap_fixed): New function.
14238 (sol_gt_pch_get_address): Use it.
14239 (sol_gt_pch_use_address): Likewise.
14240
14241 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14242
14243 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
14244 pentiumpro on Solaris 8 and 9/x86.
14245 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
14246 Document SSE/SSE2 support.
14247 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
14248
14249 2010-07-12 Andi Kleen <ak@linux.intel.com>
14250
14251 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
14252 instead of gcc_assert to print better error message for multiple
14253 prevailing defs.
14254
14255 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
14256
14257 * config/i386/i386.c (ix86_asm_output_function_label): Change format
14258 string placeholder from 0x%x to %#x.
14259 (ix86_code_end): Use putc to output '\n'.
14260 (ix86_print_operand) <case ';'>: Use putc to output ';'.
14261
14262 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
14263
14264 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
14265 in directive -export.
14266
14267 2010-07-10 Anatoly Sokolov <aesok@post.ru>
14268
14269 * reginfo.h (reg_classes_intersect_p): Change arguments type to
14270 reg_class_t.
14271 * rtl.h (reg_classes_intersect_p): Adjust prototype.
14272
14273 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14274 Remove macros.
14275 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
14276 rs6000_memory_move_cost): Remove
14277 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
14278 TARGET_MEMORY_MOVE_COST): Define.
14279 (rs6000_register_move_cost): Make static. Change arguments type from
14280 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
14281 (rs6000_memory_move_cost): Make static. Change arguments type from
14282 'enum reg_class' to reg_class_t.
14283
14284 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
14285
14286 PR middle-end/42505
14287 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
14288 lookup code into....
14289 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
14290 new functions.
14291 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
14292 * cfgloopanal.c (target_clobbered_regs): Define.
14293 (init_set_costs): Initialize target_clobbered_regs.
14294 (estimate_reg_pressure_cost): Add call_p argument. When true,
14295 adjust the number of available registers to exclude the
14296 call-clobbered registers.
14297 * cfgloop.h (target_clobbered_regs): Declare.
14298 (estimate_reg_pressure_cost): Adjust declaration.
14299 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
14300 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
14301 (determine_set_costs): Dump target_clobbered_regs.
14302 (loop_body_includes_call): New function.
14303 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
14304 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
14305 call_p flag through.
14306 (best_gain_for_invariant): Likewise.
14307 (find_invariants_to_move): Likewise.
14308 (move_single_loop_invariants): Likewise, using already-computed
14309 has_call field.
14310
14311 2010-07-10 Richard Guenther <rguenther@suse.de>
14312 Joern Rennecke <joern.rennecke@embecosm.com>
14313
14314 PR debug/44832
14315 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
14316 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
14317 unless they have DECL_IGNORED_P set.
14318
14319 2010-07-10 Richard Guenther <rguenther@suse.de>
14320
14321 PR lto/44889
14322 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
14323 helper function.
14324 (gimple_types_compatible_p): Similar to pointed-to
14325 types allow and merge a mix of complete and incomplete aggregate.
14326 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
14327 (iterative_hash_gimple_type): Adjust for that.
14328
14329 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
14330
14331 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
14332
14333 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
14334
14335 PR objc/44140
14336 * config/darwin.c (output_objc_section_asm_op): Save and restore
14337 section when outputting ObjC section list.
14338
14339 2010-07-09 Jan Hubicka <jh@suse.cz>
14340
14341 * lto-streamer-out.c (produce_symtab): Do not write alias
14342 cgraph/varpool nodes.
14343
14344 2010-07-09 Jan Hubicka <jh@suse.cz>
14345
14346 * tree-inline.c (declare_return_variable): Fix ICE while
14347 inlining DECL_BY_VALUE function not in SSA form
14348
14349 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
14350
14351 PR tree-optimization/44576
14352 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
14353 New. Pull out from is_loop_prefetching_profitable to implement
14354 the trip count to ahead ratio heuristic.
14355 (mem_ref_count_reasonable_p): New. Pull out from
14356 is_loop_prefetching_profitable to implement the instruction to
14357 memory reference ratio heuristic. Also consider not reasonable if
14358 the memory reference count is above a threshold (to avoid
14359 explosive compilation time.
14360 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
14361 is_loop_prefetching_profitable to implement the instruction to
14362 prefetch ratio heuristic.
14363 (is_loop_prefetching_profitable): Removed.
14364 (loop_prefetch_arrays): Distribute the cost analysis across the
14365 function to allow early exit of the prefetch analysis.
14366 is_loop_prefetching_profitable is splitted into three functions,
14367 with each one called as early as possible.
14368 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
14369 number of memory references in a loop is considered too many.
14370
14371 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
14372
14373 * reload.c (find_reloads): Don't clear badop if we have a winreg
14374 alternative, but not win, and the class only has fixed regs.
14375 * hard-reg-set.h (class_only_fixed_regs): Declare.
14376 * reginfo.c (class_only_fixed_regs): New array.
14377 (init_reg_sets_1): Initialize it.
14378 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
14379 discourage alternatives using the stack pointer.
14380
14381 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
14382
14383 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
14384
14385 * config/arm/arm.md (cbranchqi4): Fix array size.
14386 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
14387 calculating length.
14388
14389 2010-07-09 Richard Guenther <rguenther@suse.de>
14390
14391 * gimple.c (struct type_fixup_s): New struct and VEC type.
14392 (gimple_register_type_fixups): New static global.
14393 (gimple_queue_type_fixup): New function.
14394 (gimple_types_compatible_p): Queue type fixups instead of
14395 applying them here.
14396 (gimple_register_type): Apply queued fixups for the
14397 canonical type. Empty the type fixup queue.
14398
14399 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14400
14401 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
14402 * configure: Regenerate.
14403 * config.in: Ditto.
14404
14405 2010-07-09 Jakub Jelinek <jakub@redhat.com>
14406 Denys Vlasenko <dvlasenk@redhat.com>
14407 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14408
14409 PR tree-optimization/28632
14410 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
14411 (extract_range_from_binary_expr): Further optimize
14412 BIT_AND_EXPR and BIT_IOR_EXPR.
14413
14414 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
14415
14416 * tree-if-conv.c (fold_or_predicates): New.
14417 (add_to_predicate_list): Call it.
14418
14419 2010-07-09 Richard Guenther <rguenther@suse.de>
14420
14421 PR middle-end/44890
14422 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
14423 if base is a pointer.
14424 * tree-cfg.c (verify_expr): Update MEM_REF checking.
14425
14426 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14427
14428 PR target/44877
14429 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
14430 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
14431 builtin mask for load/store builtins.
14432
14433 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14434
14435 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
14436 for "lock addl".
14437 * configure: Regenerate.
14438 * config/i386/i386.c (ix86_print_operand) <case ';'>:
14439 Remove TARGET_MACHO.
14440
14441 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
14442
14443 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
14444 default ISA flags.
14445 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
14446
14447 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
14448
14449 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
14450
14451 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14452
14453 * config/picochip/picochip.md (commsTestPort): Emit more
14454 efficient sequence for tstport instruction.
14455
14456 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14457
14458 * config/i386/i386.c (ix86_veclib_handler): Make static.
14459
14460 2010-07-09 Richard Guenther <rguenther@suse.de>
14461
14462 PR tree-optimization/44852
14463 * tree-ssa-alias.c: Include toplev.h for exact_log2.
14464 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
14465 in MEM_REF.
14466 (indirect_refs_may_alias_p): Likewise.
14467 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
14468
14469 2010-07-09 Richard Guenther <rguenther@suse.de>
14470
14471 PR tree-optimization/44882
14472 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
14473 sets do conflict.
14474 (vectorizable_load): Likewise.
14475
14476 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
14477
14478 PR target/40657
14479 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
14480 All callers changed.
14481 Handle the case when we're called for the epilogue.
14482 (thumb_unexpanded_epilogue): Use it.
14483 (thumb1_expand_epilogue): Likewise.
14484
14485 2010-07-09 Jakub Jelinek <jakub@redhat.com>
14486
14487 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
14488 both ranges are range_int_cst_p with non-negative minimum,
14489 try harder to derive smaller range.
14490
14491 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14492
14493 * genrecog.c: Include diagnostic-core.h before toplev.h.
14494 * genoutput.c: Likewise.
14495 * genextract.c: Likewise.
14496 * genautomata.c: Likewise.
14497 * genemit.c: Likewise.
14498 * genpeep.c: Likewise.
14499 * genattrtab.c: Likewise.
14500 * genconditions.c: Likewise.
14501 * genpreds.c: Likewise.
14502
14503 2010-07-08 Andi Kleen <ak@linux.intel.com>
14504
14505 * lto-section-in.c (lto_section_name): Add missing comma.
14506
14507 2010-07-08 Anatoly Sokolov <aesok@post.ru>
14508
14509 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
14510 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
14511 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
14512 (ia64_override_options): Rename to...
14513 (ia64_option_override): ... this one. Make static.
14514
14515 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14516
14517 PR middle-end/44843
14518 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
14519 pointed-to type of the offset in a MEM_REF to compute the alignment.
14520
14521 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
14522
14523 * final.c (final_scan_insn): Replace
14524 TARGET_UNWIND_INFO macro check by unwind_emit
14525 hook NULL check.
14526 * targhooks.c (default_unwind_emit): Removed.
14527 * targhooks.h (default_unwind_emit): Likewise.
14528 * target.def (unwind_emit): Set default value to NULL.
14529
14530 * config/i386/i386-protos.h (ix86_asm_output_function_label):
14531 New prototype.
14532 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
14533 for NULL fntype argument and allow 64-bit targets.
14534 (ix86_asm_output_function_label): New function.
14535 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
14536 (ix86_handle_fndecl_attribute): Likewise.
14537 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
14538 * doc/doc/tm.texi: Regenerated.
14539 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
14540 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
14541 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
14542 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
14543 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
14544 * config/elfos.h: Likewise.
14545 * config/i386/cygming.h: Likewise.
14546 * config/netbsd-aout.h: Likewise.
14547 * config/openbsd.h: Likewise.
14548 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
14549 by ix86_asm_output_function_label function call.
14550 * varasm.c (assemble_start_function): Use
14551 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
14552
14553 2010-07-08 Jan Hubicka <jh@suse.cz>
14554
14555 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
14556 New function.
14557 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
14558 Declare.
14559 * ipa-cp.c (ipcp_estimate_growth): Use it.
14560 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
14561 Likewise.
14562
14563 2010-07-08 Jan Hubicka <jh@suse.cz>
14564
14565 * tree-inline.c (declare_return_variable): Allocate annotation for new
14566 temporary.
14567
14568 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
14569
14570 PR tree-optimization/44710
14571 * tree-if-conv.c (parse_predicate): New.
14572 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
14573 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
14574
14575 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
14576
14577 * common.opt (ftree-loop-if-convert): New flag.
14578 * doc/invoke.texi (ftree-loop-if-convert): Documented.
14579 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
14580 when flag_tree_loop_if_convert is set.
14581
14582 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
14583
14584 * config/i386/i386.c: Use short syntax for function calls
14585 through function pointers.
14586 * config/i386/i386.md: Ditto.
14587
14588 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14589
14590 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
14591
14592 2010-07-08 Richard Guenther <rguenther@suse.de>
14593
14594 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
14595 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
14596
14597 2010-07-08 Jakub Jelinek <jakub@redhat.com>
14598
14599 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
14600 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
14601 (loc_list_from_tree): Likewise.
14602 (output_loc_operands): Handle outputting DW_OP_const[48]u
14603 with loc->dtprel set.
14604 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
14605
14606 2010-07-08 Jan Hubicka <jh@suse.cz>
14607
14608 * ipa.c: Include pointer-set.h
14609 (cgraph_externally_visible_p): New attribute ALIASED;
14610 when in LTO, hidden symbols are local unless they are aliased.
14611 (function_and_variable_visibility): Compute aliased nodes;
14612 handle LTO and hidden symbol on functions and vars.
14613 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
14614 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
14615
14616 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14617
14618 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14619 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14620 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14621 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14622 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14623 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
14624 (ix86_gen_probe_stack_range): Likewise.
14625 (override_options): Set them.
14626 (ix86_target_stack_probe): New function.
14627 (ix86_compute_frame_layout): Force use of push instructions to
14628 save registers if stack checking with probes is enabled.
14629 (get_scratch_register_on_entry): New function.
14630 (release_scratch_register_on_entry): Likewise.
14631 (ix86_adjust_stack_and_probe): Likewise.
14632 (output_adjust_stack_and_probe): Likewise.
14633 (ix86_emit_probe_stack_range): Likewise.
14634 (output_probe_stack_range): Likewise.
14635 (ix86_expand_prologue): Emit stack checking code if static built-in
14636 stack checking is enabled.
14637 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
14638 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
14639 (output_adjust_stack_and_probe): Likewise.
14640 (output_probe_stack_range): Likewise.
14641 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
14642 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
14643 TARGET_STACK_PROBE.
14644 (allocate_stack_worker_64): Likewise.
14645 (allocate_stack): Likewise.
14646 (adjust_stack_and_probe): New insn.
14647 (probe_stack_range): Likewise.
14648
14649 2010-07-08 Richard Guenther <rguenther@suse.de>
14650
14651 PR tree-optimization/44831
14652 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
14653 a MEM_REF preserving TBAA info of the original dereference.
14654 Dereference the original pointer if the address is not invariant.
14655 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
14656 at least one invariant address that we are going to dereference.
14657
14658 2010-07-08 Richard Guenther <rguenther@suse.de>
14659
14660 PR tree-optimization/44861
14661 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
14662 information when building MEM_REFs.
14663 (vectorizable_load): Likewise.
14664 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
14665
14666 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14667
14668 * config/sol2-c.c: Do not include diagnostic-core.h.
14669
14670 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14671
14672 PR bootstrap/44768
14673 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
14674 with respect to current_function_decl. Pass decl of the function.
14675 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
14676 * ipa-inline.c (compute_inline_parameters): Pass decl to
14677 estimated_stack_frame_size.
14678
14679 2010-07-08 Richard Guenther <rguenther@suse.de>
14680
14681 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14682 New function.
14683 (valueize_refs): Call it.
14684
14685 2010-07-08 Richard Guenther <rguenther@suse.de>
14686
14687 PR rtl-optimization/44838
14688 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
14689 SSA form do not use pointer equivalence.
14690
14691 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14692
14693 * dwarf2out.c (AT_linkage_name): Delete.
14694 (add_linkage_attr): New function.
14695 (add_linkage_name): Call it to emit the linkage attribute.
14696 (dwarf2out_finish): Likewise.
14697 (move_linkage_attr): Explicitly accept both attribute variants.
14698
14699 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14700
14701 * toplev.h: Do not include diagnostic-core.h.
14702 Include diagnostic-core.h in every file that includes toplev.h.
14703 * c-tree.h: Do not include toplev.h.
14704 * pretty-print.h: Update comment.
14705 * Makefile.in: Update dependencies.
14706 * alias.c: Include diagnostic-core.h in every file that includes
14707 toplev.h.
14708 * attribs.c: Likewise.
14709 * auto-inc-dec.c: Likewise.
14710 * bb-reorder.c: Likewise.
14711 * bt-load.c: Likewise.
14712 * caller-save.c: Likewise.
14713 * calls.c: Likewise.
14714 * cfg.c: Likewise.
14715 * cfganal.c: Likewise.
14716 * cfgbuild.c: Likewise.
14717 * cfgcleanup.c: Likewise.
14718 * cfghooks.c: Likewise.
14719 * cfgloop.c: Likewise.
14720 * combine.c: Likewise.
14721 * config/alpha/alpha.c: Likewise.
14722 * config/arc/arc.c: Likewise.
14723 * config/arm/arm.c: Likewise.
14724 * config/arm/pe.c: Likewise.
14725 * config/avr/avr.c: Likewise.
14726 * config/bfin/bfin.c: Likewise.
14727 * config/cris/cris.c: Likewise.
14728 * config/crx/crx.c: Likewise.
14729 * config/darwin-c.c: Likewise.
14730 * config/darwin.c: Likewise.
14731 * config/fr30/fr30.c: Likewise.
14732 * config/frv/frv.c: Likewise.
14733 * config/h8300/h8300.c: Likewise.
14734 * config/host-darwin.c: Likewise.
14735 * config/i386/i386.c: Likewise.
14736 * config/i386/netware.c: Likewise.
14737 * config/i386/nwld.c: Likewise.
14738 * config/i386/winnt-cxx.c: Likewise.
14739 * config/i386/winnt-stubs.c: Likewise.
14740 * config/i386/winnt.c: Likewise.
14741 * config/ia64/ia64-c.c: Likewise.
14742 * config/ia64/ia64.c: Likewise.
14743 * config/iq2000/iq2000.c: Likewise.
14744 * config/lm32/lm32.c: Likewise.
14745 * config/m32c/m32c-pragma.c: Likewise.
14746 * config/m32c/m32c.c: Likewise.
14747 * config/m32r/m32r.c: Likewise.
14748 * config/m68hc11/m68hc11.c: Likewise.
14749 * config/m68k/m68k.c: Likewise.
14750 * config/mcore/mcore.c: Likewise.
14751 * config/mep/mep-pragma.c: Likewise.
14752 * config/mep/mep.c: Likewise.
14753 * config/mmix/mmix.c: Likewise.
14754 * config/mn10300/mn10300.c: Likewise.
14755 * config/moxie/moxie.c: Likewise.
14756 * config/pa/pa.c: Likewise.
14757 * config/pdp11/pdp11.c: Likewise.
14758 * config/picochip/picochip.c: Likewise.
14759 * config/rs6000/rs6000-c.c: Likewise.
14760 * config/rs6000/rs6000.c: Likewise.
14761 * config/rx/rx.c: Likewise.
14762 * config/s390/s390.c: Likewise.
14763 * config/score/score.c: Likewise.
14764 * config/score/score3.c: Likewise.
14765 * config/score/score7.c: Likewise.
14766 * config/sh/sh.c: Likewise.
14767 * config/sh/symbian-base.c: Likewise.
14768 * config/sh/symbian-c.c: Likewise.
14769 * config/sh/symbian-cxx.c: Likewise.
14770 * config/sol2-c.c: Likewise.
14771 * config/sol2.c: Likewise.
14772 * config/sparc/sparc.c: Likewise.
14773 * config/spu/spu.c: Likewise.
14774 * config/stormy16/stormy16.c: Likewise.
14775 * config/v850/v850-c.c: Likewise.
14776 * config/v850/v850.c: Likewise.
14777 * config/vax/vax.c: Likewise.
14778 * config/vxworks.c: Likewise.
14779 * config/xtensa/xtensa.c: Likewise.
14780 * convert.c: Likewise.
14781 * cse.c: Likewise.
14782 * cselib.c: Likewise.
14783 * dbgcnt.c: Likewise.
14784 * dbxout.c: Likewise.
14785 * ddg.c: Likewise.
14786 * dominance.c: Likewise.
14787 * emit-rtl.c: Likewise.
14788 * explow.c: Likewise.
14789 * expmed.c: Likewise.
14790 * fixed-value.c: Likewise.
14791 * fold-const.c: Likewise.
14792 * fwprop.c: Likewise.
14793 * gcse.c: Likewise.
14794 * ggc-common.c: Likewise.
14795 * ggc-page.c: Likewise.
14796 * ggc-zone.c: Likewise.
14797 * gimple-low.c: Likewise.
14798 * gimplify.c: Likewise.
14799 * graph.c: Likewise.
14800 * haifa-sched.c: Likewise.
14801 * ifcvt.c: Likewise.
14802 * implicit-zee.c: Likewise.
14803 * integrate.c: Likewise.
14804 * ira-build.c: Likewise.
14805 * ira-color.c: Likewise.
14806 * ira-conflicts.c: Likewise.
14807 * ira-costs.c: Likewise.
14808 * ira-lives.c: Likewise.
14809 * ira.c: Likewise.
14810 * lists.c: Likewise.
14811 * loop-doloop.c: Likewise.
14812 * loop-iv.c: Likewise.
14813 * lto-opts.c: Likewise.
14814 * lto-symtab.c: Likewise.
14815 * main.c: Likewise.
14816 * modulo-sched.c: Likewise.
14817 * optabs.c: Likewise.
14818 * params.c: Likewise.
14819 * plugin.c: Likewise.
14820 * postreload-gcse.c: Likewise.
14821 * postreload.c: Likewise.
14822 * predict.c: Likewise.
14823 * profile.c: Likewise.
14824 * real.c: Likewise.
14825 * regcprop.c: Likewise.
14826 * reginfo.c: Likewise.
14827 * regmove.c: Likewise.
14828 * reorg.c: Likewise.
14829 * resource.c: Likewise.
14830 * rtl.c: Likewise.
14831 * rtlanal.c: Likewise.
14832 * sched-deps.c: Likewise.
14833 * sched-ebb.c: Likewise.
14834 * sched-rgn.c: Likewise.
14835 * sdbout.c: Likewise.
14836 * sel-sched-dump.c: Likewise.
14837 * sel-sched-ir.c: Likewise.
14838 * simplify-rtx.c: Likewise.
14839 * stmt.c: Likewise.
14840 * stor-layout.c: Likewise.
14841 * store-motion.c: Likewise.
14842 * targhooks.c: Likewise.
14843 * tree-cfg.c: Likewise.
14844 * tree-cfgcleanup.c: Likewise.
14845 * tree-dump.c: Likewise.
14846 * tree-eh.c: Likewise.
14847 * tree-inline.c: Likewise.
14848 * tree-nomudflap.c: Likewise.
14849 * tree-object-size.c: Likewise.
14850 * tree-optimize.c: Likewise.
14851 * tree-outof-ssa.c: Likewise.
14852 * tree-phinodes.c: Likewise.
14853 * tree-profile.c: Likewise.
14854 * tree-ssa-ccp.c: Likewise.
14855 * tree-ssa-coalesce.c: Likewise.
14856 * tree-ssa-live.c: Likewise.
14857 * tree-ssa-loop-niter.c: Likewise.
14858 * tree-ssa-loop-prefetch.c: Likewise.
14859 * tree-ssa-loop.c: Likewise.
14860 * tree-ssa-structalias.c: Likewise.
14861 * tree-ssa-uninit.c: Likewise.
14862 * tree-ssa.c: Likewise.
14863 * tree-vect-data-refs.c: Likewise.
14864 * tree-vect-loop-manip.c: Likewise.
14865 * tree-vect-loop.c: Likewise.
14866 * tree-vect-patterns.c: Likewise.
14867 * tree-vect-stmts.c: Likewise.
14868 * tree-vrp.c: Likewise.
14869 * varasm.c: Likewise.
14870 * vec.c: Likewise.
14871 * web.c: Likewise.
14872 * xcoffout.c: Likewise.
14873
14874 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
14875
14876 * gengtype.c (write_field_root): New function.
14877 (write_root): Use it.
14878
14879 2010-07-07 Wei Guozhi <carrot@google.com>
14880
14881 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
14882 of lowest bits to lshift/compare): Add a missing line.
14883
14884 2010-07-07 Wei Guozhi <carrot@google.com>
14885
14886 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
14887 of lowest bits to lshift/compare): New.
14888
14889 2010-07-07 Tom Tromey <tromey@redhat.com>
14890
14891 * doc/tm.texi: Update.
14892 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
14893 Add @hook.
14894 * target.def (want_debug_pub_sections): New hook.
14895 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
14896 * dwarf2out.c (add_pubname_string): Check
14897 targetm.want_debug_pub_sections.
14898 (add_pubname): Likewise.
14899 (add_pubtype): Likewise.
14900
14901 2010-07-07 Jie Zhang <jie@codesourcery.com>
14902
14903 * genautomata.c (output_automata_list_min_issue_delay_code):
14904 Correctly decompress min_issue_delay.
14905
14906 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
14907
14908 PR rtl-optimization/44404
14909 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
14910 possible, use reg_overlap_mentioned_p instead.
14911
14912 2010-07-07 Duncan Sands <baldrick@free.fr>
14913
14914 PR middle-end/41355
14915 * tree.c (build_function_type_skip_args): Copy the original type using
14916 build_distinct_type_copy rather than copy_node.
14917
14918 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
14919
14920 PR target/44850
14921 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
14922 revision 161876.
14923 (ix86_expand_prologue): Likewise.
14924 (ix86_handle_fndecl_attribute): Likewise.
14925 (ix86_asm_declare_function_name): Likewise.
14926 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14927 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14928 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
14929 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
14930 * doc/extend.texi: Likewise.
14931
14932 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
14933
14934 PR target/44844
14935 * config/i386/i386.md (rdrand<mode>): Changed to expand to
14936 retry if the carry flag isn't valid.
14937 (rdrand<mode>_1): New.
14938
14939 2010-07-07 Richard Guenther <rguenther@suse.de>
14940
14941 PR middle-end/44790
14942 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
14943 for expanding the constant offset for MEM_REFs.
14944
14945 2010-07-07 Richard Guenther <rguenther@suse.de>
14946
14947 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
14948 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
14949 * gimple.h (is_gimple_operand): Remove.
14950 * gimple.c (is_gimple_operand): Likewise.
14951 (walk_gimple_op): Fix wi->val_only setting for calls.
14952 * tree-cfg.c (verify_gimple_call): Fix argument validation.
14953 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
14954 invalid gimple calls.
14955
14956 2010-07-06 Jan Hubicka <jh@suse.cz>
14957
14958 * lto-cgraph.c (output_cgraph): Add missing declaration.
14959
14960 2010-07-06 Jan Hubicka <jh@suse.cz>
14961
14962 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
14963 partition.
14964
14965 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
14966
14967 * doc/gimple.texi (GIMPLE_DEBUG): Document.
14968 * doc/rtl.texi (Debug Information): New node.
14969 (NOTE_INSN_VAR_LOCATION): Document.
14970 (debug_insn): Likewise.
14971 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
14972
14973 2010-07-07 Jan Hubicka <jh@suse.cz>
14974
14975 With parts by Richard Guenther.
14976
14977 PR middle-end/44813
14978 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
14979 for functions passed by reference.
14980 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
14981 in memory when passed by reference.
14982 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
14983 beggining.
14984 * ipa-split.c (split_function): Cleanup way return value is passed;
14985 handle SSA DECL_BY_REFERENCE retvals.
14986 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
14987 DECL_BY_REFERENCE is set.
14988 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
14989 find_what_p_points_to): Handle RESULT_DECL.
14990 * tree-inline.c (declare_return_variable): Get new entry_block argument;
14991 when passing by reference ensure that RESULT_DECL is gimple_val.
14992 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
14993 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
14994
14995 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
14996
14997 PR rtl-optimization/44787
14998 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
14999 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
15000
15001 2010-07-06 Jan Hubicka <jh@suse.cz>
15002
15003 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
15004 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
15005 with body can prevail.
15006 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
15007 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
15008 * cgraph.c (cgraph_get_node_or_alias): New function.
15009 * cgraph.h (cgraph_get_node_or_alias): Declare.
15010
15011 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
15012
15013 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
15014 support.
15015 (ix86_expand_prologue): Likewise.
15016 (ix86_handle_fndecl_attribute): Likewise.
15017 (ix86_asm_declare_function_name): New function for
15018 ASM_DECLARE_FUNCTION_NAME.
15019 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
15020 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
15021 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
15022 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
15023 * doc/extend.texi: Adjust documentation about ms_hook_prologue
15024 attribute.
15025
15026 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15027
15028 * config/i386/i386.md (immediate_operand): New mode attribute.
15029
15030 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
15031 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
15032 using P mode iterator.
15033 (pro_epilogue_adjust_stack_di_2): Rename from
15034 pro_epilogue_adjust_stack_rex64_2.
15035
15036 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
15037
15038 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15039
15040 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
15041 through gen_mov_insv_1 function pointer.
15042 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
15043 gen_truncxf<mode>2 through gen_truncxf function pointer.
15044 (remainder<mode>3): Ditto.
15045 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
15046 (allocate_stack): Call gen_allocate_stack_worker_64 or
15047 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
15048 function pointer.
15049 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
15050 function pointer.
15051
15052 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15053
15054 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
15055 operand constraint instead of <r><i>m.
15056
15057 2010-07-06 Richard Guenther <rguenther@suse.de>
15058
15059 PR middle-end/44828
15060 * convert.c (convert_to_integer): Watch out for overflowing
15061 MULT_EXPR as well.
15062
15063 2010-07-05 Jan Hubicka <jh@suse.cz>
15064
15065 * lto-streamer.c (write_symbol_vec): Rename to ...
15066 (write_symbol) ... this one; write only symbol given and when
15067 present in cache. Sanity check that what is defined is present
15068 in cgraph/varpool with body/finalized decl.
15069 (write_symbols_of_kind): Remove.
15070 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
15071 pairs to produce symtab.
15072 (produce_asm_for_decls): Update call of produce_symtab; don't do so
15073 when doing WPA streaming.
15074
15075 2010-07-05 Jan Hubicka <jh@suse.cz>
15076
15077 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
15078 function is still available to fold into.
15079
15080 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15081
15082 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
15083 * function.h (struct_function): Change type of local_decls field
15084 to a VEC.
15085 (add_local_decl): New function.
15086 (FOR_EACH_LOCAL_DECL): New macro.
15087 * cfgexpand.c (init_vars_expansion): Adjust for new type of
15088 cfun->local_decls.
15089 (estimated_stack_frame_size): Likewise.
15090 (expand_used_vars): Likewise.
15091 * cgraphbuild.c (build_cgraph_edges): Likewise.
15092 * function.c (instantiate_decls_1): Likewise.
15093 * ipa-struct-reorg.c (build_data_structure): Likewise.
15094 * ipa-type-escape.c (analyze_function): Likewise.
15095 * lto-streamer-in.c (input_function): Likewise.
15096 * lto-streamer-out.c (output_function): Likewise.
15097 * tree-ssa-live.c (remove_unused_locals): Likewise.
15098 * tree.c (free_lang_data_in_decl): Likewise.
15099 (find_decls_types_in_node): Likewise.
15100 * omp-low.c (remove_exit_barrier): Likewise.
15101 (expand_omp_taskreg): Likewise.
15102 (list2chain): Rename to...
15103 (vec2chain): ...this. Adjust.
15104 * cgraphunit.c (assemble_thunk): Call add_local_decl.
15105 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
15106 * gimple-low.c (record_vars_into): Likewise.
15107 * tree-inline.c (remap_decls): Likewise.
15108 (declare_return_variable): Likewise.
15109 (declare_inline_vars): Likewise.
15110 (copy_forbidden): Adjust for new type of cfun->local_decls.
15111 (add_local_variables): New function.
15112 (expand_call_inline): Call it.
15113 (tree_function_versioning): Likewise.
15114
15115 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
15116
15117 AVX Programming Reference (June, 2010)
15118 * config/i386/cpuid.h (bit_F16C): New.
15119 (bit_RDRND): Likewise.
15120 (bit_FSGSBASE): Likewise.
15121
15122 * config/i386/i386-builtin-types.def: Add
15123 "DEF_FUNCTION_TYPE (UINT16)", function types for
15124 float16 <-> float conversions and
15125 "DEF_FUNCTION_TYPE (VOID, UINT64)".
15126
15127 * config/i386/i386-c.c (ix86_target_macros_internal): Support
15128 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
15129 OPTION_MASK_ISA_F16C.
15130
15131 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
15132 (OPTION_MASK_ISA_RDRND_SET): Likewise.
15133 (OPTION_MASK_ISA_F16C_SET): Likewise.
15134 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
15135 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
15136 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
15137 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
15138 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
15139 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
15140 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
15141 (override_options): Handle them.
15142 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
15143 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
15144 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
15145 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
15146 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
15147 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
15148 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
15149 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
15150 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
15151 (bdesc_args): Likewise.
15152 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
15153 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
15154 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
15155 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
15156 Handle non-memory store.
15157
15158 * config/i386/i386.h (TARGET_FSGSBASE): New.
15159 (TARGET_RDRND): Likewise.
15160 (TARGET_F12C): Likewise.
15161
15162 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
15163 (UNSPEC_VCVTPS2PH): Likewise.
15164 (UNSPECV_RDFSBASE): Likewise.
15165 (UNSPECV_RDGSBASE): Likewise.
15166 (UNSPECV_WRFSBASE): Likewise.
15167 (UNSPECV_WRGSBASE): Likewise.
15168 (UNSPECV_RDRAND): Likewise.
15169 (rdfsbase<mode>): Likewise.
15170 (rdgsbase<mode>): Likewise.
15171 (wrfsbase<mode>): Likewise.
15172 (wrgsbase<mode>): Likewise.
15173 (rdrand<mode>): Likewise.
15174
15175 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
15176
15177 * config/i386/immintrin.h (_rdrand_u16): New.
15178 (_rdrand_u32): Likewise.
15179 (_readfsbase_u32): Likewise.
15180 (_readfsbase_u64): Likewise.
15181 (_readgsbase_u32): Likewise.
15182 (_readgsbase_u64): Likewise.
15183 (_writefsbase_u32): Likewise.
15184 (_writefsbase_u64): Likewise.
15185 (_writegsbase_u32): Likewise.
15186 (_writegsbase_u64): Likewise.
15187 (_rdrand_u64): Likewise.
15188 (_cvtsh_ss): Likewise.
15189 (_mm_cvtph_ps): Likewise.
15190 (_mm256_cvtph_ps): Likewise.
15191 (_cvtss_sh): Likewise.
15192 (_mm_cvtps_ph): Likewise.
15193 (_mm256_cvtps_ph): Likewise.
15194
15195 * config/i386/sse.md (vcvtph2ps): New.
15196 (*vcvtph2ps_load): Likewise.
15197 (vcvtph2ps256): Likewise.
15198 (vcvtps2ph): Likewise.
15199 (*vcvtps2ph): Likewise.
15200 (*vcvtps2ph_store): Likewise.
15201 (vcvtps2ph256): Likewise.
15202
15203 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
15204
15205 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
15206
15207 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
15208
15209 PR bootstrap/44512
15210 * genenums.c (main): Output include of insn-constants.h
15211 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
15212
15213 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
15214
15215 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
15216 (override_options): Initialize it.
15217 (ix86_expand_prologue): Use it.
15218
15219 2010-07-05 Jakub Jelinek <jakub@redhat.com>
15220
15221 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
15222
15223 2010-07-05 Anatoly Sokolov <aesok@post.ru>
15224
15225 * double-int.h (fit_double_type): Remove declaration.
15226 * double-int.c (fit_double_type): Remove function.
15227 * tree.h (int_fits_type_p): Adjust prototype.
15228 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
15229 instead of fit_double_type.
15230 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
15231 instead of fit_double_type and build_int_cst_wide.
15232 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
15233 instead of fit_double_type and build_int_cst_wide.
15234 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
15235 of fit_double_type.
15236
15237 2010-07-05 Jan Hubicka <jh@suse.cz>
15238
15239 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
15240 in_other_partition.
15241 * lto-cgraph.c (referenced_from_other_partition_p,
15242 reachable_from_other_partition_p): Use in_other_partition flags.
15243 (output_node, output_varpool_node): COMDAT nodes always have private
15244 copies and thus are never used from other partition.
15245
15246 2010-07-05 Anatoly Sokolov <aesok@post.ru>
15247
15248 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
15249 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
15250 * config/ia64/ia64.c Include reload.h.
15251 (ia64_memory_move_cost): New function.
15252 (TARGET_MEMORY_MOVE_COST): Define.
15253 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
15254 memory_move_cost.
15255
15256 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
15257
15258 PR middle-end/42505
15259 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
15260 comments about cost model.
15261 (try_add_cand_for): Add second strategy for choosing initial set
15262 based on original IVs, controlled by ORIGINALP argument.
15263 (get_initial_solution): Add ORIGINALP argument.
15264 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
15265 (find_optimal_iv_set): Try two different strategies for choosing
15266 the IV set, and return the one with lower cost.
15267
15268 2010-07-05 Richard Guenther <rguenther@suse.de>
15269
15270 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
15271
15272 2010-07-05 Richard Guenther <rguenther@suse.de>
15273
15274 * tree.c (reference_alias_ptr_type): New function.
15275 * tree.h (reference_alias_ptr_type): Declare.
15276 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
15277 allow non-TARGET_MEM_REF new refs.
15278 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
15279 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
15280 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
15281 (create_mem_ref): Get alias pointer type. Adjust calls to
15282 create_mem_ref_raw.
15283 (maybe_fold_tmr): Likewise.
15284 * tree-flow.h (create_mem_ref): Adjust prototype.
15285
15286 2010-07-05 Jakub Jelinek <jakub@redhat.com>
15287
15288 PR c++/44808
15289 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
15290 *from_p is VAR_DECL.
15291
15292 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15293
15294 * tree.h (build_call_list): Remove.
15295 * tree.c (build_call_list): Remove.
15296
15297 2010-07-05 Richard Guenther <rguenther@suse.de>
15298
15299 * double-int.h (double_int_sub): Declare.
15300 * double-int.c (double_int_sub): New function.
15301 * dwarf2out.c (field_byte_offset): Use it.
15302 * fixed-value.c (do_fixed_add): Likewise.
15303 (do_fixed_multiply): Likewise.
15304 (do_fixed_divide): Likewise.
15305 * tree-predcom.c (add_ref_to_chain): Likewise.
15306 (determine_roots_comp): Likewise.
15307 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
15308
15309 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15310
15311 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
15312 implementations.
15313
15314 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
15315
15316 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
15317 * arm-modes.def (CC_NOTB): Don't define.
15318 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
15319 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
15320 (LTUGEU): New code_iterator.
15321 (cnb, optab): New corresponding code_attrs.
15322 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
15323 to canonical form. Operands 1 and 2 are commutative. Parametrize
15324 using LTUGEU.
15325 (addsi3_carryin_shift_<optab>): Likewise.
15326 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
15327 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
15328 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
15329 (subsi3_compare): Renamed from subsi3_compare0_c.
15330 Change CC_NOTB to CC.
15331 (arm_subsi3_insn): Allow constants for operand 0.
15332 (compare_scc peephole for eq case): New.
15333 (compare_scc splitters): Change CC_NOTB to CC.
15334
15335 2010-07-05 Richard Guenther <rguenther@suse.de>
15336
15337 * tree-ssa-loop-im.c (for_each_index): Do not handle
15338 ALIGN_INDIRECT_REF.
15339 (gen_lsm_tmp_name): Likewise.
15340 * tree-dump.c (dequeue_and_dump): Likewise.
15341 * tree-pretty-print.c (dump_generic_node): Likewise.
15342 (op_code_prio): Likewise.
15343 (op_symbol_code): Likewise.
15344 * tree.c (staticp): Likewise.
15345 (build1_stat): Likewise.
15346 * tree.h (INDIRECT_REF_P): Likewise.
15347 * fold-const.c (maybe_lvalue_p): Likewise.
15348 (operand_equal_p): Likewise.
15349 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15350 (ao_ref_init_from_vn_reference): Likewise.
15351 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
15352 (find_interesting_uses_address): Likewise.
15353 * dwarf2out.c (loc_list_from_tree): Likewise.
15354 * gimplify.c (gimplify_expr): Likewise.
15355 * tree-eh.c (tree_could_trap_p): Likewise.
15356 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15357 * cfgexpand.c (expand_debug_expr): Likewise.
15358 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15359 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
15360 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
15361 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
15362 * tree-ssa-operands.c (get_expr_operands): Likewise.
15363 * expr.c (safe_from_p): Likewise.
15364 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
15365 * tree-vect-data-refs.c (vect_setup_realignment): Build
15366 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
15367 * tree-vect-stmts.c (vectorizable_load): Likewise.
15368 * tree.def (ALIGN_INDIRECT_REF): Remove.
15369
15370 2010-07-05 Richard Guenther <rguenther@suse.de>
15371
15372 PR tree-optimization/44784
15373 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
15374 for inserted stmts.
15375 (find_or_generate_expression): Fix SCCVN insertion check.
15376
15377 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
15378
15379 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
15380 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
15381 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
15382 directives.
15383
15384 2010-07-05 Ira Rosen <irar@il.ibm.com>
15385
15386 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
15387 statements that are not vectorized.
15388 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
15389 in INSIDE_COST.
15390
15391 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
15392
15393 PR bootstrap/44820
15394 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
15395
15396 2010-07-05 Richard Guenther <rguenther@suse.de>
15397
15398 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
15399 RESULT_DECLs properly.
15400
15401 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
15402
15403 PR rtl-optimization/44695
15404 * config/i386/i386.md (extract_code): Removed.
15405 (<u>divmodqi4): Likewise.
15406 (divmodqi4): New.
15407 (udivmodqi4): Likewise.
15408 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
15409 (udivmodhiqi3): Likewise.
15410
15411 2010-07-04 Jan Hubicka <jh@suse.cz>
15412
15413 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
15414
15415 2010-07-04 Jan Hubicka <jh@suse.cz>
15416
15417 * cgraphunit.c (init_cgraph): Only initialize dump file if it
15418 is not already initialized.
15419
15420 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15421
15422 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
15423 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
15424 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
15425 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
15426 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
15427 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
15428 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
15429 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
15430 (sync_new_nand_optab): Redefine as macros.
15431 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
15432 Delete.
15433 (direct_optab_index): New enum.
15434 (direct_optab_d): New structure.
15435 (direct_optab): New typedef.
15436 (direct_optab_table): Declare.
15437 (direct_optab_handler, set_direct_optab_handler): New functions.
15438 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
15439 (sync_lock_release_optab): New macros.
15440 * optabs.c (direct_optab_table): New variable.
15441 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
15442 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
15443 cmpstr_optab and cmpstrn_optab.
15444 (emit_conditional_move): Likewise for movcc_optab.
15445 (can_conditionally_move_p): Likewise for movcc_gen_code.
15446 (init_insn_codes): Clear direct_optab_table.
15447 (init_optabs): Don't initialize the new "direct optabs" here.
15448 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
15449 vcond_gen_code.
15450 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
15451 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
15452 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
15453 (expand_sync_operation): Likewise other sync_*_optabs.
15454 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
15455 to sync_compare_and_swap_optab.
15456 (expand_sync_lock_test_and_set): Use direct_optab_handler for
15457 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
15458 to the names of both.
15459 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
15460 cmpstr_optab and cmpstrn_optab.
15461 (expand_builtin_lock_release): Likewise sync_lock_release.
15462 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
15463 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
15464 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
15465 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
15466 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
15467 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
15468 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
15469 (sync_lock_test_and_set, sync_lock_release): Delete.
15470 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
15471 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
15472 * genopinit.c (optabs): Use set_direct_optab_handler for the new
15473 macro optabs.
15474 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
15475 the "optab" local variable. Use direct_optab_handler for optab and
15476 sync_compare_and_swap_optab.
15477 * reload1.c (reload_in_optab, reload_out_optab): Delete.
15478 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
15479 reload_in_optab and reload_out_optab.
15480 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
15481 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
15482 * config/pa/pa.c (pa_secondary_reload): Likewise.
15483 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
15484 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
15485 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
15486 (VMSupportsCS8_builtin): Likewise.
15487
15488 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15489
15490 * optabs.h (optab_handlers): Change type of insn_code to int.
15491 (optab_handler, set_optab_handler, convert_optab_handler)
15492 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
15493 CODE_FOR_nothing".
15494 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
15495 (init_insn_codes): Zero both the above arrays.
15496 (init_optabs): Never call init_insn_codes first time around.
15497
15498 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15499
15500 * optabs.h (optab_handler, convert_optab_handler): Turn into
15501 inline functions that return an insn code.
15502 (set_optab_handler, set_convert_optab_handler): New functions.
15503 * builtins.c: Replace optab_handler(X)->insn_code with
15504 optab_handler or set_optab_handler thoughout. Likewise
15505 convert_optab_handler(X)->insn_code with convert_optab_handler
15506 and set_convert_optab_handler.
15507 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
15508 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
15509 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
15510 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15511 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
15512 config/spu/spu.c: Likewise.
15513
15514 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
15515
15516 PR target/44531
15517 * config.gcc (sh*-*-*): Use regular expressions instead of
15518 the 'i' modifier for sed substitutions.
15519
15520 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
15521
15522 * gimple.c (gimple_body): Comments added.
15523
15524 2010-07-04 Richard Guenther <rguenther@suse.de>
15525
15526 PR middle-end/44809
15527 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
15528 of an INDIRECT_REF.
15529
15530 2010-07-04 Richard Guenther <rguenther@suse.de>
15531
15532 PR tree-optimization/44479
15533 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
15534 extra SSA name copy statements which preserves points-to
15535 information.
15536 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
15537 Copy points-to information for all pointers. Properly handle
15538 MEM_REFs.
15539 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
15540 copy statements.
15541 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
15542 dependency.
15543
15544 2010-07-04 Richard Guenther <rguenther@suse.de>
15545
15546 PR middle-end/44785
15547 * tree-inline.c (initialize_inlined_parameters): Do not
15548 re-use pointer-map slot over remap_type call.
15549
15550 2010-07-04 Richard Guenther <rguenther@suse.de>
15551
15552 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
15553
15554 2010-07-04 Richard Guenther <rguenther@suse.de>
15555
15556 PR tree-optimization/44656
15557 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
15558 again after value-replacing in the defintions lhs.
15559
15560 2010-07-04 Ira Rosen <irar@il.ibm.com>
15561 Revital Eres <eres@il.ibm.com>
15562
15563 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
15564 Document new arguments.
15565 * doc/tm.texi: Regenerate.
15566 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
15567 Handle unaligned store.
15568 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
15569 * target.def (builtin_vectorization_cost): Add new arguments.
15570 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
15571 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
15572 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
15573 (vect_vfa_segment_size): Fix indentation.
15574 * tree-vectorizer.h (struct _vect_peel_info): New.
15575 (struct _vect_peel_extended_info): New.
15576 (struct _loop_vec_info): Add new field for peeling hash table and a
15577 macro for its access.
15578 (VECT_MAX_COST): Define.
15579 (vect_get_load_cost): Declare.
15580 (vect_get_store_cost, vect_get_known_peeling_cost,
15581 vect_get_single_scalar_iteraion_cost): Likewise.
15582 (vect_supportable_dr_alignment): Add new argument.
15583 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
15584 field.
15585 (destroy_loop_vec_info): Free peeling hash table.
15586 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
15587 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
15588 vect_analyze_slp. Fix indentation.
15589 (vect_get_single_scalar_iteraion_cost): New function.
15590 (vect_get_known_peeling_cost): Likewise.
15591 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
15592 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
15593 statement. Move outside cost calculation inside unknown peeling case.
15594 Call vect_get_known_peeling_cost for known amount of peeling.
15595 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
15596 reference to the print message of forced alignment.
15597 (vect_verify_datarefs_alignment): Update call to
15598 vect_supportable_dr_alignment.
15599 (vect_get_data_access_cost): New function.
15600 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
15601 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
15602 vect_peeling_hash_choose_best_peeling): Likewise.
15603 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
15604 to store all the accesses in the loop and find best possible access to
15605 align using peeling for known alignment case. For unknown alignment
15606 check if stores are preferred or if peeling is worthy.
15607 (vect_find_same_alignment_drs): Analyze pairs of loads too.
15608 (vect_supportable_dr_alignment): Add new argument and check aligned
15609 accesses according to it.
15610 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
15611 (cost_for_stmt): Call vect_get_stmt_cost.
15612 (vect_model_simple_cost): Likewise.
15613 (vect_model_store_cost): Call vect_get_stmt_cost. Call
15614 vect_get_store_cost to calculate the cost of the statement.
15615 (vect_get_store_cost): New function.
15616 (vect_model_load_cost): Call vect_get_stmt_cost. Call
15617 vect_get_load_cost to calculate the cost of the statement.
15618 (vect_get_load_cost): New function.
15619 (vectorizable_store): Update call to vect_supportable_dr_alignment.
15620 (vectorizable_load): Likewise.
15621 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
15622 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
15623 arguments. Handle unaligned store.
15624 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
15625 (rs6000_builtin_support_vector_misalignment): Return true for word and
15626 double word alignments for VSX.
15627 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
15628 vect_supportable_dr_alignment and builtin_vectorization_cost.
15629
15630 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15631
15632 PR target/44597
15633 * config/pa/predicates.md (prefetch_cc_operand): Remove.
15634 (prefetch_nocc_operand): Likewise.
15635 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
15636 (prefetch_20): New insn.
15637 (prefetch_cc): Remove.
15638 (prefetch_nocc): Likewise.
15639
15640 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
15641
15642 * expr.c (vector_mode_valid_p): Move to c-common.c.
15643 * expr.h (vector_mode_valid_p): Do not declare here.
15644 * system.h: Poison GCC_EXPR_H in front-ends.
15645 * Makefile.in: Update dependencies.
15646
15647 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15648
15649 PR target/44705
15650 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
15651
15652 2010-07-03 Jan Hubicka <jh@suse.cz>
15653
15654 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
15655 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
15656 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
15657 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
15658 Likewise.
15659
15660 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
15661 Update timevars.V
15662 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
15663 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
15664 TV_IPA_LTO_DECL_OUT): New.
15665 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
15666
15667 2010-07-03 Jan Hubicka <jh@suse.cz>
15668
15669 * ipa-inline.c (update_edge_key): Break out from ...
15670 update_callers_keys): ... here;
15671 (update_callee_keys): Update only the edges from caller to callee.
15672 (update_all_calle_keys): Do what update_calle_keys did.
15673 (decide_inlining_of_small_functions): Avoid recomputing of all
15674 callees when badness increase.
15675
15676 2010-07-03 Jie Zhang <jie@codesourcery.com>
15677
15678 * config/arm/arm.c (arm_attr_length_move_neon): New.
15679 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
15680 * config/arm/neon.md (define_mode_attr V_slen): Remove.
15681 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
15682 to compute length attribute.
15683
15684 2010-07-03 Jie Zhang <jie@codesourcery.com>
15685
15686 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
15687 as predicate for operand 1 and remove its constraint.
15688 * config/arm/predicates.md (vfp_register_operand): New.
15689 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
15690 (*push_fp_multi): Likewise.
15691
15692 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
15693
15694 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
15695
15696 2010-07-03 Jan Hubicka <jh@suse.cz>
15697
15698 * config/i386/i386.c (override_options): Revert accidental commit.
15699
15700 2010-07-02 Le-Chun Wu <lcwu@google.com>
15701
15702 PR c++/44128
15703 * doc/invoke.texi: Update documentation of -Wshadow.
15704
15705 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
15706 Julian Brown <julian@codesourcery.com>
15707 Sandra Loosemore <sandra@codesourcery.com>
15708
15709 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
15710 comparisons. Adjust to take both operands.
15711 (arm_select_cc_mode): Handle DImode comparisons.
15712 (arm_gen_compare_reg): Generate a scratch register for DImode
15713 comparisons which require one. Use xor for Thumb equality checks.
15714 (arm_const_double_by_immediates): New.
15715 (arm_print_operand): Allow 'Q' and 'R' for constants.
15716 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
15717 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
15718 arm_canonicalize_comparison.
15719 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
15720 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
15721 prototype.
15722 (arm_const_double_by_immediates): Declare.
15723 * config/arm/constraints.md (Di): New constraint.
15724 * config/arm/predicates.md (arm_immediate_di_operand)
15725 (arm_di_operand, cmpdi_operand): New.
15726 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
15727 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
15728 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
15729 (cstoredi4): Handle non-Cirrus also.
15730
15731 2010-07-02 Julian Brown <julian@codesourcery.com>
15732 Sandra Loosemore <sandra@codesourcery.com>
15733
15734 PR target/43703
15735 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
15736 (smax<mode>3): Disable for NEON float modes when
15737 flag_unsafe_math_optimizations is false.
15738 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
15739 (*mul<mode>3_neon)
15740 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
15741 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
15742 for NEON float modes when flag_unsafe_math_optimizations is false.
15743 (quad_halves_<code>v4sf): Only enable if
15744 flag_unsafe_math_optimizations is true.
15745 * doc/invoke.texi (ARM Options): Add note about floating point
15746 vectorization requiring -funsafe-math-optimizations.
15747
15748 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15749 Julian Brown <julian@codesourcery.com>
15750
15751 * config/arm/neon.md (UNSPEC_VABA): Delete.
15752 (UNSPEC_VABAL): Delete.
15753 (UNSPEC_VABS): Delete.
15754 (UNSPEC_VMUL_N): Delete.
15755 (adddi3_neon): New.
15756 (subdi3_neon): New.
15757 (mul<mode>3add<mode>_neon): Make the pattern named.
15758 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
15759 (neon_vadd<mode>): Replace with define_expand, and move the remaining
15760 unspec parts...
15761 (neon_vadd<mode>_unspec): ...to this.
15762 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
15763 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
15764 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
15765 (neon_vaba<mode>): Rewrite in terms of vabd.
15766 (neon_vabal<mode>): Rewrite in terms of vabdl.
15767 (neon_vabs<mode>): Rewrite without unspec.
15768 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
15769 (*arm_subdi3): Likewise.
15770 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
15771 No_op attribute to disable assembly output checks.
15772 * config/arm/arm_neon.h: Regenerated.
15773 * doc/arm-neon-intrinsics.texi: Regenerated.
15774
15775 2010-07-02 Jan Hubicka <jh@suse.cz>
15776
15777 * ipa-split.c (split_function): For aggregate values, set the return
15778 slot optimization bit. When passing DECL_BY_REFERENCE, produce
15779 *<retval> = fncall.part ().
15780 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
15781
15782 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15783
15784 * config/arm/neon.md (UNSPEC_VAND): Delete.
15785 (UNSPEC_VBIC): Delete.
15786 (UNSPEC_VCLZ): Delete.
15787 (UNSPEC_VCNT): Delete.
15788 (UNSPEC_VEOR): Delete.
15789 (UNSPEC_VORN): Delete.
15790 (UNSPEC_VORR): Delete.
15791 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
15792 core registers too.
15793 (anddi3_neon): Likewise.
15794 (orndi3_neon): Likewise.
15795 (bicdi3_neon): Likewise.
15796 (xordi3_neon): Likewise.
15797 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
15798 rid of unspec and handle unused operand.
15799 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
15800 * config/arm/predicates.md (imm_for_neon_logic_operand):
15801 Require TARGET_NEON.
15802 (imm_for_neon_inv_logic_operand): Likewise.
15803 * config/arm/arm.md (define_split for logical_binary_operator):
15804 Disable for NEON registers.
15805 (anddi3): Add new define_expand, and rename the insn. Disable
15806 this insn for NEON, where anddi3_neon now applies.
15807 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
15808 (iordi3): As for anddi3.
15809 (xordi3): Likewise.
15810 * config/arm/neon.ml (Vand): Split DImode variants and mark them
15811 as No_op to disable testing for exact instruction match.
15812 (Vorr): Likewise.
15813 (Veor): Likewise.
15814 (Vbic): Likewise.
15815 (Vorn): Likewise.
15816 * config/arm/arm_neon.h: Regenerated.
15817 * doc/arm-neon-intrinsics.texi: Regenerated.
15818
15819 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
15820
15821 * expr.h (emit_stack_probe): Declare.
15822 * explow.c (emit_stack_probe): Make global.
15823 (anti_adjust_stack_and_probe): Fix comments.
15824 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15825 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15826 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15827 * config/sparc/sparc.c: Include except.h.
15828 (sparc_emit_probe_stack_range): New function.
15829 (output_probe_stack_range): Likewise.
15830 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
15831 built-in stack checking is enabled.
15832 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
15833 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15834 (probe_stack_range): New insn.
15835
15836 2010-07-02 Richard Guenther <rguenther@suse.de>
15837
15838 PR target/43958
15839 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
15840 for argument alignment.
15841
15842 2010-07-02 Jan Hubicka <jh@suse.cz>
15843
15844 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
15845 walk backwards from entry_bb to check only those basic block of header
15846 that might lead to execution of split part.
15847 (consider_split) ... here.
15848 (find_return_bb): Allow assignment in return BB.
15849 (find_retval): New.
15850 (split_function): Fix name of cloned function; take care of updating
15851 return value in return_bb containing move.
15852
15853 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
15854
15855 PR target/44771
15856 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
15857 used variable insn.
15858
15859 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
15860
15861 * implicit-zee.c (combine_reaching_defs): Fix long lines.
15862 (is_set_with_extension_DI): Delete.
15863 (struct zero_extend_info): New structure.
15864 (add_removable_zero_extend): New function.
15865 (find_removable_zero_extends): Use note_stores to find SETs.
15866 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
15867
15868 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
15869
15870 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
15871 is_miss_rate_acceptable. Pull total_positions computation
15872 out of the loops. Early return if miss_positions exceeds
15873 the acceptable threshold.
15874 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
15875 is_miss_rate_acceptable after renaming of compute_miss_rate.
15876
15877 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
15878
15879 PR middle-end/44576
15880 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
15881 of 1000) for miss rate if the address diference is greater than or
15882 equal to the cache line size (the two reference will never hit the
15883 same cache line).
15884
15885 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
15886
15887 PR target/42835
15888 * config/arm/arm-modes.def (CC_NOTB): New mode.
15889 * config/arm/arm.c (get_arm_condition_code): Handle it.
15890 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
15891 * config/arm/arm.md (subsi3_compare0_c): New pattern.
15892 (compare_scc): Now a define_and_split. Add a number of extra
15893 splitters before it.
15894
15895 PR target/42172
15896 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
15897 and ZERO_EXTEND.
15898 (arm_rtx_costs_1): Likewise.
15899 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
15900 * config/arm/arm.md (is_arch6): New attribute.
15901 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
15902 extendqisi2): Tighten the code somewhat, avoiding invalid
15903 RTL to occur in the expander patterns.
15904 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
15905 (thumb1_zero_extendhisi2_v6): Delete.
15906 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
15907 (thumb1_extendhisi2_v6): Delete.
15908 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
15909 (thumb1_extendqisi2_v6): Delete.
15910 (zero_extendhisi2 for register input splitter): New.
15911 (zero_extendqisi2 for register input splitter): New.
15912 (thumb1_extendhisi2 for register input splitter): New.
15913 (extendhisi2 for register input splitter): New.
15914 (extendqisi2 for register input splitter): New.
15915 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
15916 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
15917 and add support for a register alternative requiring a split.
15918 (thumb1_zero_extendqisi2): Likewise.
15919 (arm_zero_extendqisi2): Likewise.
15920 (arm_extendhisi2): Likewise.
15921 (arm_extendqisi2): Likewise.
15922
15923 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15924
15925 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
15926 instead of an unspec.
15927 (neon_expand_vector_init): Likewise.
15928 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
15929 (UNSPEC_VDUP_LANE): Delete.
15930 (UNSPEC VDUP_N): Delete.
15931 (UNSPEC_VGET_HIGH): Delete.
15932 (UNSPEC_VGET_LANE): Delete.
15933 (UNSPEC_VGET_LOW): Delete.
15934 (UNSPEC_VMVN): Delete.
15935 (UNSPEC_VSET_LANE): Delete.
15936 (V_double_vector_mode): New.
15937 (vec_set<mode>_internal): Make code emitted match that for the
15938 corresponding intrinsics.
15939 (vec_setv2di_internal): Likewise.
15940 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
15941 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
15942 (neon_vset_lane<mode>): Combine double and quad patterns and
15943 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
15944 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
15945 (neon_vdup_n<mode>): Rewrite RTL without unspec.
15946 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
15947 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
15948 with neon_vdup_lanev2di, adjusting the pattern from the latter
15949 to be predicable for consistency.
15950 (neon_vdup_lane<mode>_internal): New.
15951 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
15952 to avoid using an unspec.
15953 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
15954 (neon_vdup_lanev2di): Turn into a define_expand.
15955 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
15956 (neon_vget_high<mode>): Replace with....
15957 (neon_vget_highv16qi): New pattern using canonical RTL.
15958 (neon_vget_highv8hi): Likewise.
15959 (neon_vget_highv4si): Likewise.
15960 (neon_vget_highv4sf): Likewise.
15961 (neon_vget_highv2di): Likewise.
15962 (neon_vget_low<mode>): Replace with....
15963 (neon_vget_lowv16qi): New pattern using canonical RTL.
15964 (neon_vget_lowv8hi): Likewise.
15965 (neon_vget_lowv4si): Likewise.
15966 (neon_vget_lowv4sf): Likewise.
15967 (neon_vget_lowv2di): Likewise.
15968
15969 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
15970 test for this emitting vmov.
15971 (Vset_lane): Likewise.
15972 (Vdup_n): Likewise.
15973 (Vmov_n): Likewise.
15974
15975 * doc/arm-neon-intrinsics.texi: Regenerated.
15976
15977 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15978
15979 * config/arm/neon.md (vec_extractv2di): Correct error in register
15980 numbering to reconcile with neon_vget_lanev2di.
15981
15982 2010-07-02 Richard Guenther <rguenther@suse.de>
15983
15984 * tree-ssa-structalias.c (pt_solution_set_var): New function.
15985 * tree-ssa-alias.h (pt_solution_set_var): Declare.
15986 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
15987 points-to information.
15988
15989 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
15990
15991 * config/s390/s390.c (override_options): Adopt prefetching
15992 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
15993
15994 2010-07-02 Jan Hubicka <jh@suse.cz>
15995
15996 * df-problems.c (df_kill_notes): Do not collect dead notes.
15997 (df_set_note): Just call add_reg_note.
15998 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
15999 df_create_unused_note): Do not deal with lists of old notes.
16000 (df_note_bb_compute): Likewise.
16001
16002 2010-07-02 Richard Guenther <rguenther@suse.de>
16003
16004 * tree-ssa-structalias.c (find_func_aliases): Handle
16005 pointer alignment via BIT_AND_EXPR.
16006 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
16007
16008 2010-07-02 Richard Guenther <rguenther@suse.de>
16009
16010 * tree-data-ref.c (initialize_data_dependence_relation): Handle
16011 mismatching number of dimensions properly.
16012
16013 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16014
16015 PR target/44707
16016 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
16017 (lo_sum (high ...) ...) patterns generated by earlier passes.
16018
16019 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16020
16021 * doc/install.texi (Prerequisites): Document Perl requirement on
16022 Solaris 2.
16023 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
16024
16025 2010-07-02 Richard Guenther <rguenther@suse.de>
16026
16027 PR middle-end/44777
16028 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
16029
16030 2010-07-02 Jan Hubicka <jh@suse.cz>
16031
16032 PR middle-end/44706
16033 * predict.c (predict_paths_for_bb): Handle case when control dependence
16034 BB has only abnormal edges.
16035
16036 2010-07-02 Richard Guenther <rguenther@suse.de>
16037
16038 PR tree-optimization/44748
16039 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
16040 the embedded conversion in MEM_REFs.
16041
16042 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
16043
16044 * reload.c: Include toplev.h.
16045 * recog.c: Likewise.
16046 * Makefile.in: Adjust dependencies.
16047
16048 2010-07-01 Jakub Jelinek <jakub@redhat.com>
16049
16050 PR debug/44694
16051 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
16052 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
16053
16054 2010-07-01 Richard Guenther <rguenther@suse.de>
16055
16056 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
16057 types for offsets.
16058
16059 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
16060
16061 PR target/44732
16062 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
16063 Fix argument types.
16064
16065 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
16066
16067 PR target/44727
16068 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16069 Make sure operand 0 dies.
16070
16071 2010-07-01 Richard Guenther <rguenther@suse.de>
16072
16073 PR middle-end/42834
16074 PR middle-end/44468
16075 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
16076 * doc/generic.texi (References to storage): Document MEM_REF.
16077 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
16078 (print_call_name): Likewise.
16079 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
16080 (build_simple_mem_ref_loc): New function.
16081 (mem_ref_offset): Likewise.
16082 * tree.h (build_simple_mem_ref_loc): Declare.
16083 (build_simple_mem_ref): Define.
16084 (mem_ref_offset): Declare.
16085 * fold-const.c: Include tree-flow.h.
16086 (operand_equal_p): Handle MEM_REF.
16087 (build_fold_addr_expr_with_type_loc): Likewise.
16088 (fold_comparison): Likewise.
16089 (fold_unary_loc): Fold
16090 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
16091 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
16092 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
16093 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
16094 (ptr_deref_may_alias_ref_p_1): Likewise.
16095 (ao_ref_base_alias_set): Properly differentiate base object for
16096 offset and TBAA.
16097 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
16098 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
16099 (indirect_refs_may_alias_p): Likewise.
16100 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
16101 chasing code.
16102 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
16103 (call_may_clobber_ref_p_1): Likewise.
16104 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
16105 * expr.c (expand_assignment): Handle MEM_REF.
16106 (store_expr): Handle MEM_REFs from STRING_CSTs.
16107 (store_field): If expanding a MEM_REF of a non-addressable
16108 decl use bitfield operations.
16109 (get_inner_reference): Handle MEM_REF.
16110 (expand_expr_addr_expr_1): Likewise.
16111 (expand_expr_real_1): Likewise.
16112 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
16113 * alias.c (ao_ref_from_mem): Handle MEM_REF.
16114 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
16115 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
16116 (dr_analyze_indices): Likewise.
16117 (dr_analyze_alias): Likewise.
16118 (object_address_invariant_in_loop_p): Likewise.
16119 * gimplify.c (mark_addressable): Handle MEM_REF.
16120 (gimplify_cond_expr): Build MEM_REFs.
16121 (gimplify_modify_expr_to_memcpy): Likewise.
16122 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
16123 (gimple_fold_indirect_ref): Adjust.
16124 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
16125 * tree.def (MEM_REF): New tree code.
16126 * tree-dfa.c: Include toplev.h.
16127 (get_ref_base_and_extent): Handle MEM_REF.
16128 (get_addr_base_and_unit_offset): New function.
16129 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
16130 * gimple-fold.c (may_propagate_address_into_dereference): Handle
16131 MEM_REF.
16132 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
16133 accesses if the array has just one dimension. Remove always true
16134 parameter. Do not require type compatibility here.
16135 (maybe_fold_offset_to_component_ref): Remove.
16136 (maybe_fold_stmt_indirect): Remove.
16137 (maybe_fold_reference): Remove INDIRECT_REF handling.
16138 Fold back to non-MEM_REF.
16139 (maybe_fold_offset_to_address): Simplify. Deal with type
16140 mismatches here.
16141 (maybe_fold_reference): Likewise.
16142 (maybe_fold_stmt_addition): Likewise. Also handle
16143 &ARRAY + I in addition to &ARRAY[0] + I.
16144 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
16145 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
16146 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
16147 * tree-ssa.c (useless_type_conversion_p): Make most pointer
16148 conversions useless.
16149 (warn_uninitialized_var): Handle MEM_REF.
16150 (maybe_rewrite_mem_ref_base): New function.
16151 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
16152 to SSA form.
16153 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
16154 INDIRECT_REF handling.
16155 (copy_tree_body_r): Handle MEM_REF.
16156 * gimple.c (is_gimple_addressable): Adjust.
16157 (is_gimple_address): Likewise.
16158 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
16159 invariant base are invariant.
16160 (is_gimple_min_lval): Adjust.
16161 (is_gimple_mem_ref_addr): New function.
16162 (get_base_address): Handle MEM_REF.
16163 (count_ptr_derefs): Likewise.
16164 (get_base_loadstore): Likewise.
16165 * gimple.h (is_gimple_mem_ref_addr): Declare.
16166 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
16167 * tree-cfg.c (verify_address): New function, split out from ...
16168 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
16169 the address operand of MEM_REFs. Verify MEM_REFs. Reject
16170 INDIRECT_REFs.
16171 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
16172 INDIRECT_REF. Allow conversions.
16173 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
16174 a register does not change its size.
16175 (verify_types_in_gimple_reference): Verify MEM_REF.
16176 (verify_gimple_assign_single): Disallow INDIRECT_REF.
16177 Handle MEM_REF.
16178 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
16179 New.
16180 (mark_address_taken): Handle MEM_REF.
16181 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
16182 (get_asm_expr_operands): Pass opf_not_non_addressable.
16183 (get_expr_operands): Handle opf_[not_]non_addressable.
16184 Handle MEM_REF. Remove INDIRECT_REF handling.
16185 * tree-vrp.c (check_array_ref): Handle MEM_REF.
16186 (search_for_addr_array): Likewise.
16187 (check_array_bounds): Likewise.
16188 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
16189 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
16190 (ref_always_accessed_p): Likewise.
16191 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
16192 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
16193 Handle MEM_REF.
16194 * cgraphbuild.c (mark_load): Properly check for NULL result
16195 from get_base_address.
16196 (mark_store): Likewise.
16197 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
16198 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
16199 handling for MEM_REF.
16200 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
16201 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
16202 * builtins.c (stabilize_va_list_loc): Use the function ABI
16203 valist type if we couldn't canonicalize the argument type.
16204 Always dereference with the canonical va-list type.
16205 (maybe_emit_free_warning): Handle MEM_REF.
16206 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
16207 memmove to memcpy.
16208 * builtins.c (fold_builtin_memory_op): Use ref-all types
16209 for all memcpy foldings.
16210 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
16211 (build_outer_var_ref): Likewise.
16212 (scan_omp_1_op): Likewise.
16213 (lower_rec_input_clauses): Likewise.
16214 (lower_lastprivate_clauses): Likewise.
16215 (lower_reduction_clauses): Likewise.
16216 (lower_copyprivate_clauses): Likewise.
16217 (expand_omp_atomic_pipeline): Likewise.
16218 (expand_omp_atomic_mutex): Likewise.
16219 (create_task_copyfn): Likewise.
16220 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
16221 Remove old union trick. Initialize constant offsets.
16222 (ao_ref_init_from_vn_reference): Likewise. Do not handle
16223 INDIRECT_REF. Init base_alias_set properly.
16224 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
16225 (vn_reference_fold_indirect): Adjust for MEM_REFs.
16226 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
16227 for ARRAY_REFs.
16228 (may_insert): Remove.
16229 (visit_reference_op_load): Do not test may_insert.
16230 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
16231 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
16232 a field to store the constant offset this op applies.
16233 (run_scc_vn): Adjust prototype.
16234 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
16235 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
16236 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
16237 bother about volatile qualifiers on pointers.
16238 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
16239 * tree-ssa-loop-ivopts.c
16240 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
16241 (strip_offset_1): Likewise.
16242 (find_interesting_uses_address): Replace INDIRECT_REF handling with
16243 MEM_REF handling.
16244 (get_computation_cost_at): Likewise.
16245 * ipa-pure-const.c (check_op): Handle MEM_REF.
16246 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
16247 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
16248 and constants.
16249 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
16250 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
16251 (eliminate_local_variables_1): Likewise.
16252 (create_call_for_reduction_1): Likewise.
16253 (create_loads_for_reductions): Likewise.
16254 (create_loads_and_stores_for_name): Likewise.
16255 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
16256 (ssa_accessed_in_tree): Handle MEM_REF.
16257 (ssa_accessed_in_assign_rhs): Likewise.
16258 (update_type_size): Likewise.
16259 (analyze_accesses_for_call_stmt): Likewise.
16260 (analyze_accesses_for_assign_stmt): Likewise.
16261 (transform_access_sites): Likewise.
16262 (transform_allocation_sites): Likewise.
16263 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
16264 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
16265 not handle INDIRECT_REF.
16266 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
16267 (cond_store_replacement): Likewise.
16268 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16269 MEM_REF, no not handle INDIRECT_REFs.
16270 (insert_into_preds_of_block): Properly initialize avail.
16271 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
16272 for ARRAY_REFs. Properly handle reference lookups that
16273 require a bit re-interpretation.
16274 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
16275 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
16276 (build_ref_for_offset_1): Remove.
16277 (build_ref_for_offset): Build MEM_REFs.
16278 (gate_intra_sra): Disable for now.
16279 (sra_ipa_modify_expr): Handle MEM_REF.
16280 (ipa_early_sra_gate): Disable for now.
16281 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
16282 MEM_REF handling.
16283 (disqualify_base_of_expr): Likewise.
16284 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
16285 MEM_REF handling.
16286 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
16287 Use mem_ref_offset. Remove bogus folding.
16288 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
16289 (make_fancy_name_1): Add support for MEM_REF.
16290 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
16291 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
16292 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
16293 (compute_complex_ancestor_jump_func): Likewise.
16294 (ipa_analyze_virtual_call_uses): Likewise.
16295 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
16296 INDIRECT_REF folding with more generalized MEM_REF folding.
16297 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
16298 (forward_propagate_addr_into_variable_array_index): Also handle
16299 &ARRAY + I in addition to &ARRAY[0] + I.
16300 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
16301 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
16302 creates assignments with overlap.
16303 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
16304 (get_frame_field): Likewise.
16305 (get_nonlocal_debug_decl): Likewise.
16306 (convert_nonlocal_reference_op): Likewise.
16307 (struct nesting_info): Add mem_refs pointer-set.
16308 (create_nesting_tree): Allocate it.
16309 (convert_local_reference_op): Insert to be folded mem-refs.
16310 (fold_mem_refs): New function.
16311 (finalize_nesting_tree_1): Perform defered folding of mem-refs
16312 (free_nesting_tree): Free the pointer-set.
16313 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
16314 (vectorizable_load): Likewise.
16315 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
16316 (propagate_with_phi): Likewise.
16317 * tree-object-size.c (addr_object_size): Handle MEM_REFs
16318 instead of INDIRECT_REFs.
16319 (compute_object_offset): Handle MEM_REF.
16320 (plus_stmt_object_size): Handle MEM_REF.
16321 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
16322 for &MEM_REF.
16323 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
16324 (symbol_marked_for_renaming): Likewise.
16325 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
16326 (fold-const.o): Add $(TREE_FLOW_H).
16327 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
16328 (find_func_clobbers): Likewise.
16329 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
16330 (decompose_access): Likewise.
16331 (replace_field_acc): Likewise.
16332 (replace_field_access_stmt): Likewise.
16333 (insert_new_var_in_stmt): Likewise.
16334 (get_stmt_accesses): Likewise.
16335 (reorg_structs_drive): Disable.
16336 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
16337 (ix86_canonical_va_list_type): Likewise.
16338
16339 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
16340
16341 PR other/44566
16342 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
16343 * target.def (struct gcc_target): Replace enum reg_class with
16344 reg_class_t in hook argument / return types.
16345 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
16346 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
16347 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
16348 * targhooks.h (default_branch_target_register_class): Likewise.
16349 (default_ira_cover_classes, default_secondary_reload): Likewise.
16350 (default_memory_move_cost, default_register_move_cost): Likewise.
16351 * targhooks.c (default_branch_target_register_class): Likewise.
16352 (default_ira_cover_classes, default_secondary_reload): Likewise.
16353 (default_memory_move_cost, default_register_move_cost): Likewise.
16354 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
16355 * bt-load.c (branch_target_load_optimize): Likewise.
16356 * ira.c (setup_cover_and_important_classes): Likewise.
16357 * ira-costs.c (copy_cost): Likewise.
16358 * reload1.c (emit_input_reload_insns): Likewise.
16359 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
16360 * config/frv/frv.c (frv_secondary_reload): Likewise.
16361 * config/s390/s390.c (s390_secondary_reload): Likewise.
16362 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
16363 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
16364 (ix86_register_move_cost): Likewise.
16365 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
16366 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
16367 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
16368 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
16369 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
16370 (rs6000_ira_cover_classes): Likewise.
16371 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
16372 * config/picochip/picochip-protos.h (picochip_secondary_reload):
16373 Likewise.
16374 * config/pa/pa.c (pa_secondary_reload): Likewise.
16375 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
16376 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
16377 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
16378 * doc/tm.texi: Regenerate.
16379
16380 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
16381
16382 PR bootstrrap/44726
16383 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
16384 use.
16385 (build_alias_set_optimal_p): Likewise.
16386 (build_base_obj_set_for_drs): Likewise.
16387
16388 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
16389
16390 * target.def: Remove comment about licensing problems of function
16391 declarations.
16392
16393 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
16394 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
16395 * doc/tm.texi: Regenerate.
16396
16397 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
16398 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
16399
16400 * target.def (enum_va_list_p): Use DEFHOOK.
16401 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
16402 Rename ptype to ptree.
16403 * doc/tm.texi: Regenerate.
16404
16405 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
16406 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
16407 * doc/tm.texi: Regenerate.
16408
16409 * target.def (memory_move_cost): Use DEFHOOK.
16410 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
16411 Rename regclass AKA class to rclass.
16412 * doc/tm.texi: Regenerate.
16413
16414 * target.def (pragma_parse): Use DEFHOOK.
16415 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
16416 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
16417 * doc/tm.texi: Regenerate.
16418
16419 * target.def (pass_by_reference): Use DEFHOOK.
16420 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
16421 * doc/tm.texi: Regenerate.
16422
16423 * target.def (resolve_overloaded_builtin): Rename params to arglist.
16424 Use DEFHOOK.
16425 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
16426 * doc/tm.texi: Regenerate.
16427
16428 * target.def (return_pops_args): Use DEFHOOK.
16429 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
16430 Rename stack-size to size.
16431 * doc/tm.texi: Regenerate.
16432
16433 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
16434 last-sched_cycle to last_clock, cur_cycle to clock.
16435 * doc/tm.texi.in: Use @hook.
16436 * doc/tm.texi: Regenerate.
16437
16438 * target.def (print_operand, print_operand_address): Update comment.
16439 (print_operand_punct_valid_p): Likewise.
16440
16441 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
16442
16443 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
16444 to rtl.h.
16445 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
16446 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
16447 * rtl-error.h: New.
16448 * regrename.c: Do not include toplev.h. Include rtl-error.h.
16449 * rtl-error.c: Likewise.
16450 * reload.c: Likewise.
16451 * recog.c: Likewise.
16452 * sel-sched.c: Likewise.
16453 * function.c: Likewise.
16454 * reg-stack.c: Likewise.
16455 * cfgrtl.c: Likewise.
16456 * reload1.c: Likewise.
16457 * final.c: Include rtl-error.
16458 * Makefile.in: Adjust dependencies.
16459
16460 2010-06-30 Jan Hubicka <jh@suse.cz>
16461
16462 PR middle-end/PR44706
16463 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
16464 to return the value.
16465
16466 2010-06-30 Michael Matz <matz@suse.de>
16467
16468 PR bootstrap/44699
16469 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
16470 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
16471 a gimple reg, attach the original VDEF to the last store in the
16472 sequence.
16473
16474 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
16475
16476 PR other/44034
16477 * config/darwin.c (darwin_override_options): Use renamed
16478 targetm.asm_out.emit_unwind_label.
16479
16480 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
16481
16482 PR tree-optimization/39799
16483 * tree-inline.c (remap_ssa_name): Initialize variable only if
16484 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
16485
16486 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
16487
16488 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
16489
16490 2010-06-30 Richard Guenther <rguenther@suse.de>
16491
16492 PR target/44722
16493 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
16494 against oscillation with reverse peephole2.
16495
16496 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
16497
16498 PR target/44721
16499 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16500 Fix last commit.
16501
16502 2010-06-30 Nick Clifton <nickc@redhat.com>
16503
16504 * config/rx/rx-modes.def: New file.
16505 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
16506 (CC_REGNUM): Define.
16507 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
16508 register.
16509 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
16510 (SELECT_CC_MODE): Define.
16511 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
16512 (reg:CC CC_REG) instead of (cc0).
16513 (attr "cc"): Delete.
16514 (cbranchsi4): Do not split compare and branch here. Instead move
16515 it to...
16516 (cbranchsi4_<code>): ... here. New patterns.
16517 (cmpsi): Call rx-compare_redundant to find out if it is necessary
16518 to emit the compare instruction.
16519 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
16520 cc_status flags.
16521 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
16522 FIRST_PSEUDO_REGNUM.
16523 (rx_expand_prologue, rx_expand_epilogue): Likewise.
16524 (rx_notice_update_cc): Delete.
16525 (rx_cc_modes_compatible): New function.
16526 (flags_needed_for_conditional): New function.
16527 (flags_from_mode): New function.
16528 (rx_compare_redundant): New function - scans backwards through
16529 insn list to find out if condition flags are already set correctly.
16530 (TARGET_CC_MODES_COMPATIBLE): Define.
16531 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
16532
16533 * config/rx/rx.h (BRANCH_COST): Define.
16534 (REGISTER_MOVE_COST): Define.
16535 * config/rx/predicates (rx_source_operand): Allow all constant types.
16536 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
16537 (tstsi4): New pattern.
16538 * config/rx/rx.c (rx_memory_move_cost): Define.
16539 (TARGET_MEMORY_MOVE_COST): Define.
16540
16541 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
16542
16543 * tree.h (block_may_fallthru): Declare here.
16544 * tree-flow.h (block_may_fallthru): Do not declare here.
16545 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
16546 bitmap.h
16547 * Makefile.in (c-typeck.o): Update dependencies.
16548
16549 2010-06-30 Jakub Jelinek <jakub@redhat.com>
16550
16551 PR debug/44694
16552 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
16553 * cselib.c (cfa_base_preserved_regno): New static variable.
16554 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
16555 of REGNO (cfa_base_preserved_val->locs->loc).
16556 (cselib_preserve_cfa_base_value): Add regno argument, set
16557 cfa_base_preserved_regno to it.
16558 (cselib_invalidate_regno): Allow removal of registers other than
16559 cfa_base_preserved_regno from cfa_base_preserved_val.
16560 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
16561 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
16562 of MEM addresses, if not on LHS.
16563 (reverse_op): Don't add reverse ops for cfa_base_rtx.
16564 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
16565
16566 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
16567
16568 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
16569 static variables.
16570 (peep2_buf_position): New static function.
16571 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
16572 peephole2_optimize): Use it.
16573 (peep2_attempt, peep2_update_life): New static functions, broken out
16574 of peephole2_optimize.
16575 (peep2_fill_buffer): New static function.
16576 (peephole2_optimize): Change the main loop to try to fill the buffer
16577 with the maximum number of insns before matching them against
16578 peepholes. Use a forward scan. Remove special case for targets with
16579 conditional execution.
16580 * genrecog.c (change_state): Delete dead code.
16581 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16582 Rewrite so as not to expect the second insn to have had a peephole
16583 applied yet.
16584
16585 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16586
16587 * genhooks.c (emit_findices): Cast field precision to int.
16588 (emit_documentation): Likewise.
16589
16590 2010-06-29 Jakub Jelinek <jakub@redhat.com>
16591
16592 PR tree-optimization/43801
16593 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
16594 if old_decl was DECL_ONE_ONLY.
16595
16596 PR debug/44668
16597 * dwarf2out.c (add_accessibility_attribute): New function.
16598 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
16599 instead of adding DW_AT_accessibility manually.
16600 (gen_enumeration_type_die, gen_struct_or_union_type_die,
16601 gen_typedef_die): Use it.
16602
16603 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16604
16605 * vmsdbgout.c (full_name): Just output the file name if not native.
16606
16607 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16608
16609 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
16610 (funcnam_table): New static table.
16611 (funcnum_table): New static table.
16612 (write_rtnbeg): Write value saved in funcnum_table.
16613 (write_rtnend): Write value saved in funcnum_table.
16614 (vmsdbgout_begin_function): Save current function info in
16615 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
16616 (vmsdbgout_finish): Iterate over funcnum_table.
16617
16618 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16619
16620 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
16621 (vmsdbgout_type_decl): Declare
16622 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
16623 (FUNC_EPILOGUE_LABEL): New macro
16624 (vmsdbgout_begin_epilogue): New function.
16625 (vmsdbgout_type_decl): New function.
16626
16627 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16628
16629 * vmsdbg.h: Update copyright.
16630
16631 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16632
16633 * vmsdbg.h (DST_K_TBG): New DST constant.
16634 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
16635 (write_modbeg): Cast module_language to avoid warning.
16636 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
16637
16638 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
16639
16640 PR other/44034
16641 * target.def, doc/tm.texi.in, genhooks.c: New files.
16642 * target.h: Instead of defining individual hook members,
16643 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
16644 include target.def.
16645 * target-def.h: Instead of defining individual hook initializers,
16646 include target-hooks-def.h.
16647 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
16648 targetm.live_on_entry -> targetm.extra_live_on_entry
16649 targetm.sched.md_finish ->targetm.sched.finish
16650 targetm.sched.md_init -> targetm.sched.init
16651 targetm.sched.md_init_global -> targetm.sched.init_global
16652 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
16653 targetm.asm_out.except_table_label ->
16654 targetm.asm_out.emit_except_table_label
16655 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
16656 targetm.target_help -> targetm.help
16657 targetm.vectorize.builtin_support_vector_misalignment ->
16658 targetm.vectorize.support_vector_misalignment
16659 targetm.file_start_app_off -> targetm.asm_file_start_app_off
16660 targetm.file_start_file_directive ->
16661 targetm.asm_file_start_file_directive
16662 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
16663 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
16664 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
16665 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
16666 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
16667 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
16668 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
16669 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
16670 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
16671 * Makefile.in (TARGET_H): Depend on target.def.
16672 (TARGET_DEF_H): Depend on target-hooks-def.h.
16673 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
16674 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
16675 * doc/tm.texi: Regenerate.
16676
16677 * Makefile.in (s-tm-texi): Remove stray tab / rule.
16678
16679 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
16680 (targetm.sched.init): Likewise.
16681
16682 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16683
16684 PR bootstrap/44713
16685 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
16686 (function_arg_advance_32): Const-ify TYPE parameter.
16687 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
16688 (ix86_function_arg_advance): Change type of NAMED to bool.
16689 (function_arg_32): Const-ify CUM and TYPE parameters.
16690 (function_arg_64): Likewise. Change type of NAMED to bool.
16691 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
16692 to bool.
16693 (ix86_function_arg): Change type of NAMED to bool.
16694 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
16695 last argument as a bool.
16696
16697 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
16698
16699 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
16700 (OVERRIDE_OPTIONS): Add note of obsolescence.
16701 Replace references with references to TARGET_OPTION_OVERRIDE.
16702 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
16703 the macro).
16704 * targhooks.c (default_target_option_override): New function.
16705 * targhooks.h (default_target_option_override): Declare.
16706 * target.h (struct gcc_target): Add override member to
16707 target_option member.
16708 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
16709 targetm.target_option.override call.
16710 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
16711 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
16712
16713 2010-06-29 Jan Hubicka <jh@suse.cz>
16714
16715 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
16716
16717 2010-06-29 Jan Hubicka <jh@suse.cz>
16718
16719 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
16720 unreachable.
16721 (rebuild_frequencies): New function.
16722 * predict.h (rebuild_frequencies): Declare.
16723 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
16724 entry block and edge reaching new_entry.
16725 (tree_function_versioning): When doing partial cloning, rebuild
16726 frequencies when done.
16727 * passes.c (execute_function_todo): Use rebild_frequencies.
16728
16729 2010-06-29 Richard Guenther <rguenther@suse.de>
16730
16731 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
16732 * tree-flow.h (enum noalias_state): Remove.
16733 (struct var_ann_d): Remove noalias_state member.
16734
16735 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
16736
16737 PR target/43902
16738 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
16739 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
16740 (maddhidi4): Likewise.
16741
16742 Revert parts of the change for PR25130.
16743 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
16744 MEM_ALIAS_SET.
16745
16746 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16747
16748 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
16749 targetm.calls.function_incoming_arg, and
16750 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
16751 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
16752 * target.h (struct gcc_target): Add function_arg_advance,
16753 function_arg, and function_incoming_arg fields.
16754 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
16755 (TARGET_FUNCTION_INCOMING_ARG): Define.
16756 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
16757 and TARGET_FUNCTION_INCOMING_ARG.
16758 * targhooks.h (default_function_arg_advance): Declare.
16759 (default_function_arg, default_function_incoming_arg): Declare.
16760 * targhooks.c (default_function_arg_advance): New function.
16761 (default_function_arg, default_function_incoming_arg): New function.
16762 * config/i386/i386.c (function_arg_advance): Rename to...
16763 (ix86_function_arg_advance): ...this. Make static.
16764 (function_arg): Rename to...
16765 (ix86_function_arg): ...this. Make static.
16766 (TARGET_FUNCTION_ARG_ADVANCE): Define.
16767 (TARGET_FUNCTION_ARG): Define.
16768 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
16769 (FUNCTION_ARG): Delete.
16770 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
16771 (function_arg): Delete prototype.
16772
16773 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16774
16775 * reginfo.c (init_reg_sets_1): Adjust comments.
16776 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
16777 * calls.c (prepare_call_address): Likewise.
16778 (emit_call_1): Use targetm.calls.return_pops_args.
16779 (expand_call): Likewise.
16780 * function.c (assign_parms): Likewise.
16781 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
16782 * target.h (struct gcc_target) [struct calls]: Add
16783 return_pops_args field.
16784 * targhooks.h (default_return_pops_args): Declare.
16785 * targhooks.c (default_return_pops_args): Define.
16786 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
16787 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
16788 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
16789 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
16790 documentation.
16791 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
16792 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
16793 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
16794 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
16795 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
16796 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
16797 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
16798 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
16799 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
16800 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
16801 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
16802 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
16803 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
16804 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
16805 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
16806 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
16807 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
16808 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
16809 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
16810 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
16811 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
16812 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
16813 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
16814 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
16815 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
16816 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
16817 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
16818 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
16819 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
16820 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
16821 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
16822 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
16823 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
16824 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
16825 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
16826 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
16827 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
16828 * config/i386/i386.c (ix86_return_pops_args): Make static.
16829 Constify arguments.
16830 (TARGET_RETURN_POPS_ARGS): Define.
16831 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
16832 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
16833 (TARGET_RETURN_POPS_ARGS): Define.
16834 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
16835 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
16836 (TARGET_RETURN_POPS_ARGS): Define.
16837
16838 2010-06-29 Richard Guenther <rguenther@suse.de>
16839
16840 PR middle-end/44667
16841 * tree-inline.c (initialize_inlined_parameters): Make sure
16842 to remap the inlined parameter variable substitutions types.
16843
16844 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
16845
16846 PR rtl-optimization/44659
16847 * combine.c (make_compound_operation) <SUBREG>: Do not return the
16848 result of force_to_mode if it partially re-expanded the compound.
16849
16850 2010-06-28 Jan Hubicka <jh@suse.cz>
16851
16852 PR middle-end/44671
16853 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
16854 RESULT_DECL.
16855
16856 2010-06-28 Anatoly Sokolov <aesok@post.ru>
16857
16858 * double-int.h (force_fit_type_double): Remove declaration.
16859 * double-int.c (force_fit_type_double): Move to tree.c.
16860 * tree.h (force_fit_type_double): Declare.
16861 * tree.h (force_fit_type_double): Moved from double-int.c. Use
16862 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
16863 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
16864 * convert.c (convert_to_pointer): Adjust call to
16865 force_fit_type_double.
16866 * tree-vrp.c (extract_range_from_assert,
16867 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
16868 * fold-const.c: Update comment.
16869 (int_const_binop, fold_convert_const_int_from_int,
16870 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
16871 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
16872 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
16873 round_up_loc): Adjust call to force_fit_type_double.
16874
16875 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16876
16877 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
16878
16879 2010-06-28 Martin Jambor <mjambor@suse.cz>
16880
16881 * tree-sra.c (convert_callers): New parameter, change fndecls of
16882 recursive calls.
16883 (modify_function): Pass the old decl to convert_callers.
16884
16885 2010-06-28 Martin Jambor <mjambor@suse.cz>
16886
16887 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
16888 ipa_check_create_node_params and ipa_initialize_node_params with
16889 checking asserts they are not necessary.
16890
16891 2010-06-28 Jan Hubicka <jh@suse.cz>
16892
16893 PR tree-optimization/44687
16894 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
16895
16896 2010-06-28 Martin Jambor <mjambor@suse.cz>
16897
16898 PR c++/44535
16899 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
16900 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
16901 instead of BINFO_BASE_BINFO.
16902
16903 2010-06-28 Michael Matz <matz@suse.de>
16904
16905 PR middle-end/44592
16906 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
16907 proper VDEF chain for intermediate stores in the sequence.
16908
16909 2010-06-28 Jan Hubicka <jh@suse.cz>
16910
16911 PR tree-optimization/44357
16912 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
16913 uninlinable functions.
16914
16915 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16916
16917 * config.gcc (powerpc*-*-*): Handle titan.
16918 * config/rs6000/rs6000.c (titan_cost): New costs.
16919 (rs6000_override_options): Add "titan" to processor_target_table.
16920 Add Titan to branch alignment logic.
16921 Correctly set rs6000_cost for titan.
16922 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
16923 * config/rs6000/titan.md: New file.
16924 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
16925
16926 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
16927
16928 * tree-browser.c (TB_history_stack): Convert to a VEC.
16929 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
16930 (TB_history_prev): Likewise.
16931
16932 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
16933
16934 * vec.h (vec_heap_free): Add parentheses around free.
16935
16936 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
16937
16938 * system.h: Poison GCC_EXCEPT_H for front-end files.
16939
16940 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
16941 langhook.
16942 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
16943 Define to NULL by default.
16944 * except.h: Define GCC_EXCEPT_H.
16945 (doing_eh): Remove prototype.
16946 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
16947 (lang_protect_cleanup_actions): Remove.
16948 * except.c (lang_protect_cleanup_actions): Remove.
16949 (doing_eh): Remove.
16950 (gen_eh_region): Don't check doing_eh here.
16951 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
16952 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
16953 instead of lang_protect_cleanup_actions.
16954 * omp-low.c (maybe_catch_exception): Likewise.
16955 * Makefile.in: Update dependencies.
16956
16957 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
16958
16959 * cgraph.h (struct varpool_node): new used_from_object_file flag.
16960 (struct cgraph_local_info): new used_from_object_file flag.
16961 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
16962 (cgraph_clone_node): initialize used_from_object_file.
16963 (cgraph_create_virtual_clone): initialize used_from_object_file.
16964 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
16965 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
16966 when compiling with -fwhole-program.
16967 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
16968 internal resolver.
16969 * ipa.c (function_and_variable_visibility): Set externally_visible
16970 flag of varpool_node if used_from_object_file flag is set.
16971 (cgraph_externally_visible_p): check used_from_object_file flag.
16972 * doc/invoke.texi (-fwhole-program option): Change description of
16973 externally_visible attribute accordingly.
16974 * doc/extend.texi (externally_visible): Ditto.
16975
16976 2010-06-27 Jan Hubicka <jh@suse.cz>
16977
16978 * params.def (max-inline-insns-auto): Default to 40.
16979 * doc/invoke.texi (max-inline-insns-auto): Document the change.
16980
16981 2010-06-27 Jan Hubicka <jh@suse.cz>
16982
16983 PR middle-end/44671
16984 PR middle-end/44686
16985 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
16986 signature change.
16987 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
16988 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
16989
16990 2010-06-27 Anatoly Sokolov <aesok@post.ru>
16991
16992 * target.h (struct gcc_target): Add register_move_cost field.
16993 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
16994 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
16995 * targhooks.c (default_register_move_cost): New function.
16996 * targhooks.h (default_register_move_cost): Declare function.
16997 * defaults.h (REGISTER_MOVE_COST): Delete.
16998 * ira-int.h (ira_register_move_cost): Update comment.
16999 * ira.c (ira_register_move_cost): Update comment.
17000 * reload.h (register_move_cost): Declare.
17001 * reginfo.c (register_move_cost): New function.
17002 (move_cost): Update comment.
17003 (init_move_cost, memory_move_secondary_cost): Replace
17004 REGISTER_MOVE_COST with register_move_cost.
17005 * postreload.c (reload_cse_simplify_set): (Ditto.).
17006 * reload.c (find_valid_class, find_reloads): (Ditto.).
17007 * reload1.c (choose_reload_regs): (Ditto.).
17008 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
17009 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
17010 * doc/md.texi (can_create_pseudo_p): Update documentation.
17011
17012 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
17013 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
17014 * config/i386/i386.h (ix86_memory_move_cost): Make static.
17015 (TARGET_MEMORY_MOVE_COST): Define.
17016
17017 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
17018 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
17019 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
17020 (TARGET_MEMORY_MOVE_COST): Define.
17021
17022 2010-06-27 Richard Guenther <rguenther@suse.de>
17023
17024 PR tree-optimization/44683
17025 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
17026 false edge from the inverted condition.
17027
17028 2010-06-27 Richard Guenther <rguenther@suse.de>
17029
17030 PR middle-end/44684
17031 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
17032 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
17033 for register LHS. Or non-store assignments.
17034
17035 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
17036
17037 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
17038 (sparc_emit_set_const64): Likewise. Remove disabled code.
17039 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
17040 (sparc_emit_set_const64): Likewise.
17041
17042 2010-06-26 Catherine Moore <clm@codesourcery.com>
17043
17044 * config/mips/mips.md (alu_type): New attribute.
17045 (type): Infer type from alu_type.
17046 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
17047 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
17048 *subsi3_extended, negsi2, negdi2, *low<mode>,
17049 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
17050 xor<mode>3, *nor<mode>3,
17051 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
17052 *zero_extendhi_truncqi): Set alu_type instead of type.
17053
17054 2010-06-26 Douglas B Rupp <rupp@gnat.com>
17055
17056 * config/alpha/alpha.c (alpha_need_linkage): Adjust
17057 splay_tree_new_ggc call.
17058 (alpha_use_linkage): Likewise.
17059
17060 2010-06-26 Joseph Myers <joseph@codesourcery.com>
17061
17062 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
17063 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
17064 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
17065 (static_specs): Remove switches_need_spaces.
17066 (process_command, do_self_spec): Hardcode handling "-o" instead of
17067 checking switches_need_spaces.
17068 * system.h (SWITCHES_NEED_SPACES): Poison.
17069
17070 2010-06-26 Richard Guenther <rguenther@suse.de>
17071
17072 PR tree-optimization/44393
17073 * tree-loop-distribution.c (generate_loops_for_partition): Fix
17074 stmt removal and VOP renaming.
17075 (generate_memset_zero): Remove redundant stmt updating.
17076 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
17077 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
17078
17079 2010-06-26 Jan Hubicka <jh@suse.cz>
17080
17081 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
17082 edges comming from header are equivalent.
17083 (visit_bb): Handle PHIs correctly.
17084 * tree-inline.c (copy_phis_for_bb): Be able to copy
17085 PHI from entry edge.
17086 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
17087
17088 2010-06-26 Richard Guenther <rguenther@suse.de>
17089
17090 PR middle-end/44674
17091 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
17092 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
17093
17094 2010-06-26 Joseph Myers <joseph@codesourcery.com>
17095
17096 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
17097 add_infile, alloc_switch): New.
17098 (process_command): Remove variable lang_n_infiles. Process
17099 options in a single pass. Use new functions for allocating
17100 infiles and switches arrays. Properly skip operands of
17101 -Xpreprocessor and -Xassembler.
17102
17103 2010-06-26 Jan Hubicka <jh@suse.cz>
17104
17105 PR middle-end/44671
17106 * cgraphunit.c (cgraph_function_versioning): Remove wrong
17107 cgraph_make_decl_local call; fix typo copying RTL data.
17108
17109 2010-06-25 DJ Delorie <dj@redhat.com>
17110
17111 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
17112 (m32c_output_aligned_common): Likewise.
17113 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
17114 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
17115 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
17116 (m32c_register_pragmas): Register it.
17117 * config/m32c/m32c.c (m32c_get_pragma_address): New.
17118 (m32c_insert_attributes): Set #pragma address decls volatile.
17119 (pragma_entry_eq): New.
17120 (pragma_entry_hash): New.
17121 (m32c_note_pragma_address): New.
17122 (m32c_get_pragma_address): New.
17123 (m32c_output_aligned_common): New.
17124 * doc/extend.texi: Document the new pragma.
17125
17126 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
17127 also.
17128 * config/m32c/predicates.md (m32c_any_operand): Check the code
17129 instead of memory_operand so as to allow matching volatile MEMs.
17130 (m32c_nonimmediate_operand): Likewise.
17131 (mra_operand): Allow volatiles.
17132
17133 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
17134
17135 PR debug/44610
17136 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
17137 address if the offset is unknown.
17138
17139 2010-06-25 Douglas B Rupp <rupp@gnat.com>
17140
17141 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
17142 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
17143 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
17144 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
17145 to ia64_start_function. Invoke it.
17146 * config/ia64/ia64.c (ia64_start_function): Call new function
17147 dwarf2out_vms_debug_main_pointer.
17148
17149 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17150
17151 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
17152 statements computing the true predicate.
17153
17154 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17155
17156 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
17157 to boolean_true_node.
17158 (reset_bb_predicate): New.
17159 (predicate_bbs): Call reset_bb_predicate.
17160
17161 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17162
17163 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
17164 (tree_if_conversion): Returns true when something has been changed.
17165 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
17166 changed something.
17167
17168 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17169
17170 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
17171 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
17172 * tree-if-conv.c: Include dbgcnt.h.
17173 (tree_if_conversion): Use if_conversion_tree to count the number of
17174 if-convertible loops.
17175
17176 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
17177
17178 * common.opt (fprefetch-loop-arrays): Re-define
17179 -fprefetch-loop-arrays as a tri-state option with the initial
17180 value of -1.
17181 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
17182 pass only when flag_prefetch_loop_arrays > 0.
17183 * toplev.c (process_options): Note that, with tri-states,
17184 flag_prefetch_loop_arrays>0 means prefetching is enabled.
17185 * config/i386/i386.c (override_options): Enable prefetching at -O3
17186 for a set of CPUs that sw prefetching is helpful.
17187 (software_prefetching_beneficial_p): New. Return TRUE if software
17188 prefetching is beneficial for the given CPU.
17189
17190 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
17191
17192 PR rtl-optimization/44326
17193 * implicit-zee.c (find_removable_zero_extends): Replace
17194 INSN_P with NONDEBUG_INSN_P.
17195
17196 2010-06-25 Martin Jambor <mjambor@suse.cz>
17197
17198 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
17199 (struct ipa_node_params): Removed the modification_analysis_done flag.
17200 (ipa_is_param_modified): Removed.
17201 (ipa_analyze_node): Declare.
17202 (ipa_compute_jump_functions): Remove declaration.
17203 (ipa_count_arguments): Likewise.
17204 (ipa_detect_param_modifications): Likewise.
17205 (ipa_analyze_params_uses): Likewise.
17206 * ipa-prop.c (struct param_analysis_info): New type.
17207 (visit_store_addr_for_mod_analysis): Removed.
17208 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
17209 moved down in the file.
17210 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
17211 (ipa_count_arguments): Made static.
17212 (mark_modified): New function.
17213 (is_parm_modified_before_call): New function.
17214 (compute_pass_through_member_ptrs): New parameter parms_info, call
17215 is_parm_modified_before_call instead of ipa_is_param_modified.
17216 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
17217 it to compute_pass_through_member_ptrs.
17218 (ipa_compute_jump_functions): New parameter parms_info, pass it to
17219 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
17220 on the callee if it is analyzed. Made static.
17221 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
17222 is_parm_modified_before_call instead of ipa_is_param_modified.
17223 (ipa_analyze_call_uses): New parameter parms_info, pass it to
17224 ipa_analyze_indirect_call_uses.
17225 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
17226 ipa_analyze_call_uses.
17227 (ipa_analyze_params_uses): New parameter parms_info, pass it to
17228 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
17229 (ipa_analyze_node): New function.
17230 (ipa_print_node_params): Do not dump the modified flag.
17231 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
17232 it. Do not stream the modified parameter flag.
17233 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
17234 it. Do not stream the modified parameter flag.
17235 * ipa-cp.c (ipcp_analyze_node): Removed.
17236 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
17237 with only a call to ipa_analyze_node.
17238 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
17239 node with only a call to ipa_analyze_node.
17240
17241 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
17242
17243 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
17244
17245 2010-06-25 Jan Hubicka <jh@suse.cz>
17246
17247 * tree-pass.h (pass_split_functions): Declare.
17248 * opts.c (decode_options): Enable function splitting at -O2
17249 * timevar.def (TV_IPA_FNSPLIT): New macro.
17250 * ipa-split.c: New file.
17251 * common.opt (-fpartial-inlining): New flag.
17252 * Makefile.in (ipa-split.o): New object file.
17253 * passes.c (init_optimization_passes): Add ipa-split.
17254 * params.def (partial-inlining-entry-probability): New parameters.
17255 * doc/invoke.texi (-fpartial-inlining): New.
17256
17257 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
17258
17259 PR 44665
17260 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
17261 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
17262 (gimplify_expr): Likewise.
17263
17264 2010-06-25 Martin Jambor <mjambor@suse.cz>
17265
17266 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
17267 statements instead of bailing out on them.
17268 (ipa_analyze_indirect_call_uses): Do not require that loads from the
17269 parameter are in the same BB as the condition. Update comments.
17270
17271 2010-06-25 Jakub Jelinek <jakub@redhat.com>
17272
17273 PR middle-end/43866
17274 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
17275 true or always false, return NULL_TREE.
17276 (tree_unswitch_single_loop): Optimize conditions even when reaching
17277 max-unswitch-level parameter. If num > 0, optimize first all conditions
17278 using entry checks, then do still reachable block discovery and consider
17279 only conditions in still reachable basic blocks in the loop.
17280
17281 PR tree-optimization/44539
17282 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
17283 the call doesn't have LHS, but has VDEF.
17284
17285 2010-06-25 Joseph Myers <joseph@codesourcery.com>
17286
17287 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
17288 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
17289 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
17290 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
17291 * system.h (MODIFY_TARGET_NAME): Poison.
17292
17293 2010-06-25 Alan Modra <amodra@gmail.com>
17294
17295 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
17296 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
17297 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
17298 CMODEL_LARGE as default.
17299 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
17300 (offsettable_ok_by_alignment): Delete.
17301 (rs6000_emit_move): Remove mcmodel=medium optimization.
17302
17303 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
17304
17305 With large parts from Jim Wilson:
17306 PR target/43902
17307 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
17308 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17309 * optabs.c (optab_for_tree_code): Likewise.
17310 (expand_widen_pattern_expr): Likewise.
17311 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
17312 out of execute_optimize_widening_mul.
17313 (convert_plusminus_to_widen): New function.
17314 (execute_optimize_widening_mul): Use the two new functions.
17315 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
17316 Remove code to generate widening multiply-accumulate. Add support
17317 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17318 * gimple-pretty-print.c (dump_ternary_rhs): New function.
17319 (dump_gimple_assign): Call it when appropriate.
17320 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
17321 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
17322 (expand_gimple_stmt_1): Likewise.
17323 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
17324 WIDEN_MULT_MINUS_EXPR.
17325 * tree-ssa-operands.c (get_expr_operands): Likewise.
17326 * tree-inline.c (estimate_operator_cost): Likewise.
17327 * gimple.c (extract_ops_from_tree_1): Renamed from
17328 extract_ops_from_tree. Add new arg for a third operand; fill it.
17329 (gimple_build_assign_stat): Support operations with three operands.
17330 (gimple_build_assign_with_ops_stat): Likewise.
17331 (gimple_assign_set_rhs_from_tree): Likewise.
17332 (gimple_assign_set_rhs_with_ops_1): Renamed from
17333 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
17334 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
17335 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
17336 WIDEN_MULT_MINUS_EXPR.
17337 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
17338 (extract_ops_from_tree_1): Adjust declaration.
17339 (gimple_assign_set_rhs_with_ops_1): Likewise.
17340 (gimple_build_assign_with_ops): Pass NULL for last operand.
17341 (gimple_build_assign_with_ops3): New macro.
17342 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
17343 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
17344 functions.
17345 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
17346 (verify_gimple_assign): Call it.
17347 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
17348 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
17349 functions for dealing with three-operand statements.
17350 * tree.c (commutative_ternary_tree_code): New function.
17351 * tree.h (commutative_ternary_tree_code): Declare it.
17352 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
17353 ternary statements.
17354 (gimple_assign_nonzero_warnv_p): Likewise.
17355 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
17356 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
17357 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
17358 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
17359 (struct hashtable_expr): New member ternary in the union.
17360 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
17361 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
17362 (iterative_hash_hashable_expr): Likewise.
17363 (print_expr_hash_elt): Handle EXPR_TERNARY.
17364 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
17365 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
17366 statements. Handle GIMPLE_TERNARY_RHS.
17367
17368 2010-06-25 Jan Hubicka <jh@suse.cz>
17369
17370 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
17371
17372 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
17373
17374 PR c/44517
17375 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
17376 parameters are not good.
17377 (c_parser_parameter_declaration): Error unknown type name if the type
17378 name can't start declaration specifiers.
17379
17380 2010-06-25 Joseph Myers <joseph@codesourcery.com>
17381
17382 * gcc.c (translate_options): Don't mention +e in comment.
17383 (process_command): Don't handle +e specially.
17384
17385 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
17386
17387 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
17388
17389 * ira-build.c (merge_hard_reg_conflicts): New function.
17390 (create_cap_allocno, copy_info_to_removed_store_destinations,
17391 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
17392 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
17393 (remove_unnecessary_allocnos, remove_low_level_allocnos)
17394 copy_nifo_to_removed_store_destination): Use them.
17395 * ira-lives.c (make_hard_regno_born): New function, split out of
17396 make_regno_born.
17397 (make_allocno_born): Likewise.
17398 (make_hard_regno_dead): New function, split out of make_regno_dead.
17399 (make_allocno_dead): Likewise.
17400 (inc_register_pressure): New function, split out of set_allocno_live.
17401 (dec_register_pressure): New function, split out of clear_allocno_live.
17402 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
17403 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
17404 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
17405 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
17406 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
17407 mark_pseudo_regno_live.
17408 (process_bb_node_lives): Use mark_pseudo_regno_live,
17409 make_hard_regno_born and make_allocno_dead.
17410 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
17411 set_allocno_live, clear_allocno_live): Delete functions.
17412
17413 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
17414 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
17415 functions.
17416 (ira_flattening): Use ira_parent_allocno.
17417 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
17418 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
17419
17420 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
17421 statement.
17422
17423 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
17424 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
17425 minmax_set_iter_cond, minmax_set_iter_next,
17426 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
17427 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
17428 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
17429 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
17430 uses changed.
17431
17432 * ira-int.h (struct live_range, live_range_t): Renamed from struct
17433 ira_allocno_live_range and allocno_live_range_t; all uses changed.
17434 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
17435 All uses changed.
17436
17437 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
17438
17439 * thumb2.md (thumb2_tlobits_cbranch): Delete.
17440 (peephole2 to convert zero_extract/compare of single bit to
17441 lshift/compare): New.
17442
17443 2010-06-24 Anatoly Sokolov <aesok@post.ru>
17444
17445 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
17446 recursive call and call to 'int_const_binop'.
17447 (build_range_check, fold_cond_expr_with_comparison, unextend,
17448 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
17449 multiple_of_p): Adjust call to const_binop.
17450
17451 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
17452
17453 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
17454 determine size of XFmode operand.
17455 (XFmode extended DFmode push splitter): Ditto.
17456 (XFmode extended SFmode push splitter): Ditto.
17457
17458 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
17459
17460 PR target/44588
17461 * config/i386/i386.md (extract_code): New.
17462 (<u>divmodqi4): Likewise.
17463 (divmodhiqi3): Likewise.
17464 (udivmodhiqi3): Likewise.
17465 (<u>divqi3): Remvoved.
17466
17467 2010-06-24 Jakub Jelinek <jakub@redhat.com>
17468
17469 PR middle-end/44492
17470 * recog.h (struct recog_data): Add is_asm field.
17471 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
17472 present in constraints of inline-asm operand and memory operand
17473 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
17474 (extract_insn): Initialize recog_data.is_asm.
17475 * doc/md.texi (Constraints): Document operand side-effect rules.
17476
17477 2010-06-24 Andi Kleen <ak@linux.intel.com>
17478
17479 * c-parser.c (c_parser_conditional_expression): Call
17480 warn_for_omitted_condop.
17481 * doc/invoke.texi: Document omitted condop warning.
17482
17483 2010-06-24 Nick Clifton<nickc@redhat.com>
17484
17485 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
17486 insn in the sequence is a jump insn before setting its label.
17487
17488 2010-06-24 Alan Modra <amodra@gmail.com>
17489
17490 * collect2.c (main): Match exactly --version and --help.
17491
17492 2010-06-24 DJ Delorie <dj@redhat.com>
17493
17494 * config/m32c/m32c-pragma.c: Don't include rtl.h.
17495
17496 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
17497
17498 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
17499 using X87MODEF mode iterator.
17500 (pushsf splitter): Macroize splitter using P mode iterator.
17501 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
17502 mode iterator.
17503
17504 (*movxf_internal): Rename from *movxf_integer.
17505 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
17506 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
17507 (*movdf_internal): Rename from *movdf_integer.
17508 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
17509 (*movsf_internal): Rename from *movdf_1.
17510
17511 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
17512
17513 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
17514 (const_gimple_seq_node): Removed typedefs.
17515
17516 * gimple.h (gimple_seq_node_d, gimple_seq_node)
17517 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
17518
17519 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
17520
17521 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
17522 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
17523 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
17524 and CODE_FOR_vec_extract_lo_v4df.
17525
17526 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
17527 Changed to define_insn_and_split.
17528 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
17529 (vec_extract_lo_v16hi): Likewise.
17530 (vec_extract_lo_v32qi): Likewise.
17531 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
17532 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
17533
17534 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
17535
17536 PR target/44640
17537 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
17538 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
17539 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
17540 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
17541 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
17542
17543 PR target/44640
17544 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
17545
17546 PR other/44644
17547 * df-core.c (struct df): Rename to df_d.
17548 * df.h (struct df): Likewise.
17549 * dse.h (struct df): Remove forward declaration.
17550 * recog.h (struct insn_data): Rename to:
17551 (struct_insn_data_d). Adjusted all users.
17552
17553 2010-06-23 Arnaud Charlet <charlet@adacore.com
17554
17555 PR ada/22220
17556 * doc/install.texi: Update requirements to build GNAT.
17557
17558 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
17559
17560 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
17561 enum type.
17562 (m68k_sched_attr_opx_type): Remove unreachable return.
17563 (m68k_sched_attr_opy_type): Likewise.
17564 (m68k_sched_attr_size): Likewise.
17565 (sched_get_opxy_mem_type): Likewise.
17566 (m68k_sched_attr_op_mem): Likewise.
17567
17568 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
17569
17570 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
17571 new statement and adjust VDEF only if necessary. Remove superfluous
17572 call to maybe_clean_or_replace_eh_stmt.
17573 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
17574 copy the flags.
17575 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
17576 * tree-inline.c (copy_bb): ...and not there.
17577
17578 2010-06-22 Cary Coutant <ccoutant@google.com>
17579
17580 * dwarf2out.c (is_nested_in_subprogram): New function.
17581 (should_move_die_to_comdat): Use it.
17582 (copy_ancestor_tree): Don't mark DIEs here.
17583 (copy_decls_walk): Start walk from root of newly-added tree;
17584 mark DIEs here instead.
17585
17586 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
17587
17588 * config/i386/i386.md (unit): Also check sseishft1.
17589
17590 2010-06-22 Jan Hubicka <jh@suse.cz>
17591
17592 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
17593 enabled.
17594
17595 2010-06-22 Jan Hubicka <jh@suse.cz>
17596
17597 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
17598 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
17599 Return true if something changed.
17600 * df.h (df_confluence_function_n): Return bool.
17601 * df-core.c (df_worklist_propagate_forward,
17602 df_worklist_propagate_backward): Track changes and ages.
17603 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
17604 track ages.
17605 * dse.c (dse_confluence_n): Return always true.
17606
17607 2010-06-22 Jan Hubicka <jh@suse.cz>
17608
17609 * bitmap.c (bitmap_clear_bit): Micro optimize.
17610
17611 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
17612
17613 * config/i386/i386.md (SWI1248x): New mode iterator.
17614 (SWI48x): Ditto.
17615 (SWI12): Ditto.
17616 (SWI24): Ditto.
17617
17618 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
17619 SWI1248x mode iterator.
17620 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
17621 using SWI124 mode iterator.
17622 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
17623 mode iterator.
17624 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
17625 *pushdi2_prologue_rex64 using P mode iterator.
17626 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
17627 using SWI48 mode iterator.
17628 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
17629 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
17630 using SWI1248x mode iterator.
17631 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
17632 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
17633 SWI48 mode iterator.
17634 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
17635 iterator.
17636 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
17637 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
17638 SWI12 mode iterator.
17639 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
17640 SWI12 mode iterator.
17641 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
17642 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
17643 SWI24 mode iterator.
17644 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
17645 SWI48 mode iterator.
17646 (mov<mode>_insn_1): New expander.
17647 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
17648 using SWI48x mode iterator.
17649
17650 (*movoi_internal_avx): Rename from *movoi_internal.
17651 (*movti_internal_rex64): Rename from *movti_rex64.
17652 (*movti_internal_sse): Rename from *movti_sse.
17653 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
17654 (*movdi_internal): Rename from *movdi_2.
17655 (*movsi_internal): Rename from *movsi_1.
17656 (*movhi_internal): Rename from *movhi_1.
17657 (*movqi_internal): Rename from *movqi_1.
17658
17659 (insv): Update the call to gen_movsi_insv_1 for rename.
17660 * config/i386/i386.c (promote_duplicated_reg): Ditto.
17661
17662 2010-06-22 Jan Hubicka <jh@suse.cz>
17663
17664 * passes.c (execute_function_todo): Move call of statistics_fini_pass
17665 to ...
17666 (execute_todo) ... this one.
17667
17668 2010-06-22 Alan Modra <amodra@gmail.com>
17669
17670 PR target/44364
17671 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
17672 * caller-save.c (insert_restore, insert_save): Use non-validate
17673 form of adjust_address.
17674
17675 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17676
17677 PR target/39690
17678 * config/pa/pa.c (override_options): Disable
17679 -freorder-blocks-and-partition.
17680
17681 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
17682
17683 PR target/44615
17684 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
17685
17686 * config/i386/i386.md (type): Add sseishft1
17687
17688 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
17689 (ppro_insn_load): Likewise.
17690 (ppro_insn_store): Likewise.
17691 (ppro_insn_both): Likewise.
17692
17693 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
17694 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
17695 for type.
17696 (*vec_extractv2di_1_avx): Likewise.
17697 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
17698 type. Remove atom_unit.
17699 (*vec_extractv2di_1_sse2): Likewise.
17700
17701 2010-06-21 DJ Delorie <dj@redhat.com>
17702
17703 * diagnostic.h (diagnostic_classification_change_t): New.
17704 (diagnostic_context): Add history and push/pop list.
17705 (diagnostic_push_diagnostics): Declare.
17706 (diagnostic_pop_diagnostics): Declare.
17707 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
17708 from pragmas in a history chain instead of the global table.
17709 (diagnostic_push_diagnostics): New.
17710 (diagnostic_pop_diagnostics): New.
17711 (diagnostic_report_diagnostic): Scan history chain to find state
17712 of diagnostics as of the diagnostic location.
17713 * opts.c (set_option): Pass UNKNOWN_LOCATION to
17714 diagnostic_classify_diagnostic.
17715 (enable_warning_as_error): Likewise.
17716 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
17717 use in the history chain.
17718 * doc/extend.texi: Document pragma GCC diagnostic changes.
17719
17720 2010-06-21 Jakub Jelinek <jakub@redhat.com>
17721
17722 * dwarf2out.c (add_linkage_name): New function. Don't add
17723 anything to DW_TAG_member DIEs.
17724 (add_name_and_src_coords_attributes): Use it.
17725 (gen_variable_die): Call it for C++ static data members if
17726 specification is DW_TAG_member.
17727
17728 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
17729 C++ char16_t and char32_t.
17730
17731 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
17732 * genattrtab.c: Include vecprim.h.
17733 (cached_attrs, cached_attr_count, attrs_seen_once,
17734 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
17735 attrs_cached_after): New variables.
17736 (find_attrs_to_cache): New function.
17737 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
17738 (write_test_expr): Add attrs_cached argument, return it too,
17739 attempt to cache non-const attributes used more than once in
17740 a single case handling.
17741 (write_attr_get): Use find_attrs_to_cache, for caching candidates
17742 emit cached_* variables. Adjust write_attr_set callers.
17743 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
17744 to find attributes that should be cached in this block. Adjust
17745 write_test_expr callers.
17746 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
17747 callers.
17748 (make_automaton_attrs): Adjust write_test_expr caller.
17749
17750 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
17751 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
17752 (make_automaton_attrs): If find_tune_attr returns non-NULL,
17753 write separate internal_dfa_insn_code_* and insn_default_latency_*
17754 functions for each attribute's value and emit init_sched_attrs
17755 function and function pointers.
17756 * genattr.c (const_attrs, reservations): New variables.
17757 (gen_attr): Add const attributes to const_attrs vector.
17758 (check_tune_attr, find_tune_attr): New functions.
17759 (main): Add reservations to reservations vector. If find_tune_attr
17760 returns true, add prototype for init_sched_attrs and make
17761 internal_dfa_insn_code and insn_default_latency function pointers,
17762 otherwise define init_sched_attrs as dummy macro.
17763 * cfgexpand.c: Include insn-attr.h.
17764 (gimple_expand_cfg): Call init_sched_attrs.
17765
17766 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
17767
17768 PR target/44575
17769 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
17770 va_arg from a set of register save slots into a temporary,
17771 if the container is bigger than type size, do the copying
17772 using smaller mode or using memcpy.
17773
17774 PR bootstrap/44426
17775 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
17776 prototype.
17777 (sel_print_to_dot): Remove macro.
17778 (sel_print): Likewise. New prototype.
17779 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
17780 (sel_print): New function.
17781
17782 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17783
17784 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
17785 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
17786
17787 2010-06-21 Nick Clifton <nickc@redhat.com>
17788
17789 * config/rx/rx.h (PTRDIFF_TYPE): Define.
17790 (SMALL_REGISTER_CLASS): Define (to zero).
17791 (PRINT_OPERAND): Delete.
17792 (PRINT_OPERAND_ADDRESS): Delete.
17793 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
17794 (rx_print_operand_address): Delete prototype.
17795 * config/rx/rx.c (rx_print_operand): Make static.
17796 Allow %H and %L to handle CONST_DOUBLEs.
17797 (rx_print_operand_address): Make static.
17798 (rx_gen_move_template): Rename local variable 'template' to
17799 out_template.
17800 (rx_function_arg): Do not pass unknown sized objects in registers.
17801 (TARGET_PRINT_OPERAND): Define.
17802 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17803
17804 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17805
17806 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
17807
17808 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
17809
17810 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
17811 stack-alignment for simple leaf-functions.
17812
17813 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
17814
17815 * doc/install.texi: Document bootstrap-lto.
17816
17817 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
17818
17819 PR debug/44248
17820 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
17821 (input_function): Drop them here, if VTA is disabled.
17822
17823 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
17824
17825 PR target/44546
17826 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
17827 New predicate.
17828 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
17829 ix86_swapped_fp_comparsion_operator instead of
17830 ix86_fp_comparison_operator.
17831
17832 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
17833 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
17834 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
17835 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
17836 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
17837 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
17838
17839 2010-06-20 Joseph Myers <joseph@codesourcery.com>
17840
17841 PR other/32998
17842 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
17843 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
17844 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
17845 (decode_cmdline_option): Update for this return value. Set
17846 orig_option_with_args_text field. Set arg field for unknown
17847 options. Make static.
17848 (decode_cmdline_options_to_array): New.
17849 (prune_options): Update handling of find_opt return value.
17850 * opts.c (read_cmdline_option): Take decoded option. Return void.
17851 (read_cmdline_options): Take decoded options.
17852 (decode_options): Add parameters for decoded options. Use
17853 decode_cmdline_options_to_array. Use decoded options for -O
17854 scan. Use integral_argument for -O parameters. Update call to
17855 read_cmdline_options.
17856 (enable_warning_as_error): Update handling of find_opt return value.
17857 * opts.h: Update comment on unknown options.
17858 (struct cl_decoded_option): Update comments on opt_index and arg.
17859 Add orig_option_with_args_text.
17860 (decode_cmdline_option): Remove.
17861 (decode_cmdline_options_to_array): Declare.
17862 (decode_options): Update prototype.
17863 * toplev.c (save_argv): Remove.
17864 (save_decoded_options, save_decoded_options_count): New.
17865 (read_integral_parameter): Remove.
17866 (print_switch_values): Use decoded options.
17867 (toplev_main): Don't set save_argv. Update call to decode_options.
17868 * toplev.h (read_integral_parameter): Remove.
17869 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
17870
17871 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
17872
17873 PR target/44072
17874 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
17875 immediate.
17876 * constraints.md (Pw, Px): New constraints.
17877 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
17878
17879 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
17880
17881 * config/i386/sse.md (fma4modesuffixf4): Removed.
17882 (ssemodesuffixf2s): Likewise.
17883 (ssemodesuffixf4): Likewise.
17884 (ssemodesuffixf2c): Likewise.
17885 (ssescalarmodesuffix2s): Likewise.
17886 (avxmodesuffixf2c): Likewise.
17887 (ssemodesuffix): New.
17888 (ssescalarmodesuffix): Likewise.
17889 Update patterns with ssemodesuffix and ssescalarmodesuffix.
17890
17891 2010-06-19 Philip Herron <herron.philip@googlemail.com>
17892
17893 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
17894
17895 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
17896
17897 * stor-layout.c (debug_rli): Remove unused local variables.
17898
17899 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
17900
17901 PR rtl-optimization/40900
17902 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
17903 original expression for later reuse.
17904 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
17905 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
17906
17907 2010-06-18 Anatoly Sokolov <aesok@post.ru>
17908
17909 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
17910 double_int_fits_in_uhwi_p): Implement as static inline.
17911 (double_int_xor): New inline function.
17912 (double_int_lrotate, double_int_rrotate, double_int_max,
17913 double_int_umax, double_int_smax, double_int_min, double_int_umin,
17914 double_int_smin): Declare.
17915 (lrotate_double, rrotate_double): Remove declaration.
17916 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
17917 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
17918 (double_int_lrotate, double_int_rrotate, double_int_max,
17919 double_int_umax, double_int_smax, double_int_min, double_int_umin,
17920 double_int_smin): New function.
17921 * fold-const.c (int_const_binop): Clean up, use double_int_*
17922 functions.
17923 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
17924 double_int_* and immed_double_int_const functions.
17925
17926 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
17927
17928 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
17929 * function.c (types_used_by_cur_var_decl): Likewise.
17930 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
17931
17932 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
17933
17934 * tree.h (record_layout_info): Change type of pending_statics field
17935 to a VEC.
17936 * stor-layout.c (start_record_layout): Store NULL into
17937 pending_statics.
17938 (debug_rli): Call debug_vec_tree instead of debug_tree.
17939 (place_field): Likewise.
17940 (finish_record_layout): Likewise.
17941
17942 2010-06-18 Alan Modra <amodra@gmail.com>
17943
17944 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
17945
17946 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17947
17948 PR target/43740
17949 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
17950 for SET source operand from SET destination operand.
17951
17952 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
17953
17954 PR rtl-optimization/39871
17955 * reload1.c (init_eliminable_invariants): For flag_pic, disable
17956 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
17957 (function_invariant_p): Rule out a plus of frame or arg pointer with
17958 a SYMBOL_REF.
17959 * ira.c (find_reg_equiv_invariant_const): Likewise.
17960
17961 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
17962
17963 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
17964 print_operand_address and puts to output the operand for CONST.
17965
17966 2010-06-17 Jakub Jelinek <jakub@redhat.com>
17967
17968 PR debug/44572
17969 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
17970 hook.
17971
17972 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17973
17974 * v850-protos.h (print_operand): Delete.
17975 (print_operand_address): Delete.
17976 * v850.h (PRINT_OPERAND): Delete.
17977 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17978 (PRINT_OPERAND_ADDRESS): Delete.
17979 * v850.c (print_operand_address): Rename to...
17980 (v850_print_operand_address): ...this. Make static. Call
17981 v850_print_operand.
17982 (print_operand): Rename to...
17983 (v850_print_operand): ...this. Make static. Call
17984 v850_print_operand_address.
17985 (v850_print_operand_punct_valid_p): New function.
17986 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17987 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17988
17989 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17990
17991 * config/sh/sh-protos.h (print_operand): Delete.
17992 (print_operand_address): Delete.
17993 * config/sh/sh.h (PRINT_OPERAND): Delete.
17994 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17995 (PRINT_OPERAND_ADDRESS): Delete.
17996 * config/sh/sh.c (sh_print_operand_address): Make static.
17997 (sh_print_operand): Make static. Call sh_print_operand_address
17998 and sh_print_operand.
17999 (sh_print_operand_punct_valid_p): New function.
18000 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18001 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18002
18003 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18004
18005 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
18006 (mcore_print_operand_address): Delete.
18007 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
18008 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18009 (PRINT_OPERAND_ADDRESS): Delete.
18010 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
18011 (mcore_print_operand): Make static.
18012 (mcore_print_operand_punct_valid_p): New function.
18013 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
18014 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18015
18016 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18017
18018 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
18019 (print_operand_address): Delete.
18020 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
18021 (PRINT_OPERAND_ADDRESS): Delete.
18022 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
18023 static.
18024 (m68hc11_print_operand): Make static.
18025 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18026
18027 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18028
18029 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
18030 (m32r_print_operand_address): Delete.
18031 * config/m32r/m32r.h (m32r_punct_chars): Delete.
18032 (PRINT_OPERAND): Delete.
18033 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18034 (PRINT_OPERAND_ADDRESS): Delete.
18035 * config/m32r/m32r.c (m32r_punct_chars): Make static.
18036 (m32r_print_operand_address): Make static.
18037 (m32r_print_operand): Make static.
18038 (m32r_print_operand_punct_valid_p): New function.
18039 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18040 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18041
18042 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18043
18044 * config/iq2000/iq2000-protos.h (print_operand): Delete.
18045 (print_operand_address): Delete.
18046 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
18047 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18048 (PRINT_OPERAND_ADDRESS): Delete.
18049 (iq2000_print_operand_punct): Delete.
18050 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
18051 (iq2000_print_operand_address): Make static.
18052 (iq2000_print_operand): Make static.
18053 (iq2000_print_operand_punct_valid_p): New function.
18054 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18055 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18056
18057 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18058
18059 * config/frv/frv-protos.h (frv_print_operand): Delete.
18060 (frv_print_operand_address): Delete.
18061 * config/frv/frv.h (PRINT_OPERAND): Delete.
18062 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18063 (PRINT_OPERAND_ADDRESS): Delete.
18064 * config/frv/frv.c (frv_print_operand_address): Make static.
18065 (frv_print_operand): Make static.
18066 (frv_print_operand_punct_valid_p): New function.
18067 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18068 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18069
18070 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18071
18072 * tree.h (vec_member): Declare.
18073 * tree.c (vec_member): Define.
18074
18075 2010-06-17 Richard Guenther <rguenther@suse.de>
18076
18077 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
18078 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
18079
18080 2010-06-17 Richard Guenther <rguenther@suse.de>
18081
18082 * tree-inline.c (declare_return_variable): Remove bogus code.
18083
18084 2010-06-17 Richard Guenther <rguenther@suse.de>
18085
18086 * gimplify.c (gimplify_bind_expr): Always promote complex
18087 and vector variables to registers if possible.
18088
18089 2010-06-17 Richard Guenther <rguenther@suse.de>
18090
18091 * expr.c (get_inner_reference): Use double_int for bit_offset
18092 calculation.
18093
18094 2010-06-16 DJ Delorie <dj@redhat.com>
18095
18096 * common.opt (-fstrict-volatile-bitfields): new.
18097 * doc/invoke.texi: Document it.
18098 * fold-const.c (optimize_bit_field_compare): For volatile
18099 bitfields, use the field's type to determine the mode, not the
18100 field's size.
18101 * expr.c (expand_assignment): Likewise.
18102 (get_inner_reference): Likewise.
18103 (expand_expr_real_1): Likewise.
18104 * expmed.c (store_fixed_bit_field): Likewise.
18105 (extract_bit_field_1): Likewise.
18106 (extract_fixed_bit_field): Likewise.
18107
18108 2010-06-16 Richard Guenther <rguenther@suse.de>
18109
18110 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
18111
18112 2010-06-16 Douglas B Rupp <rupp@gnat.com>
18113
18114 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
18115 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
18116 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
18117 * debug.c: Likewise.
18118 * sdbout.c: Likewise.
18119 * vmsdbgout.c: Likewise.
18120 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
18121 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
18122 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
18123 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
18124 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
18125 * dwarf2out.c (dw_fde_struct): New fields
18126 dw_fde_vms_{end,begin}_prologue.
18127 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
18128 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
18129 (dwarf2out_vms_end_prologue): New function.
18130 (dwarf2out_vms_begin_epilogue): New function.
18131 (dw_val_struct): New value dw_val_class_vms_delta.
18132 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
18133 begin_epilogue for VMS.
18134 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
18135 new static functions.
18136 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
18137 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
18138 static functions.
18139 (print_die): New case dw_val_class_vms_delta.
18140 (attr_checksum): Likewise.
18141 (same_dw_val_p: Likewise.
18142 (size_of_die): Likewise.
18143 (value_format): Likewise.
18144 (output_die): Likewise.
18145 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
18146 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
18147 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
18148 dwarf2out_cfi_begin_epilogue
18149 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
18150
18151 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18152
18153 * config/cris/cris-protos.h (cris_print_operand): Delete.
18154 (cris_print_operand_address): Delete.
18155 * config/cris/cris.h (PRINT_OPERAND): Delete.
18156 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18157 (PRINT_OPERAND_ADDRESS): Delete.
18158 * config/cris/cris.c (cris_print_operand_address): Make static.
18159 (cris_print_operand): Make static.
18160 (cris_print_operand_punct_valid_p): New function.
18161 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18162 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18163
18164 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18165
18166 * config/arm/arm-protos.h (arm_print_operand): Delete.
18167 (arm_print_operand_address): Delete.
18168 * config/arm/arm.h (PRINT_OPERAND): Delete.
18169 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18170 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
18171 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
18172 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
18173 (arm_print_operand): Make static.
18174 (arm_print_operand_punct_valid_p): New function.
18175 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18176 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18177
18178 2010-06-16 Nick Clifton <nickc@redhat.com>
18179
18180 * config/rx/constraints.md (NEGint4): New constraint.
18181 * config/rx/rx.md (attr cc): Add set_zsc.
18182 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
18183 initialised.
18184 (cmpsf): Likewise.
18185 (call_internal): Clobber the cc0 register.
18186 (call_value_internal): Likewise.
18187 (cstoresi4): Likewise.
18188 (movsieq): Likewise.
18189 (movsine): Likewise.
18190 (addsi3): Add alternative to handle small negative constants.
18191 (sunsi3): Likewise.
18192 (addsi3): Do not set the O bit in the cc0 register.
18193 (adddi3): Likewise.
18194 (subsi3): Likewise.
18195 (subdi3): Likewise.
18196 (andsi3): Reorder alternatives to prefer shorter forms.
18197 (mulsi3): Likewise.
18198 (iorsi3): Likewise.
18199 (negsi2): Note that the cc0 flags are set.
18200 (rotlsi3): Note that only the Z and S bits are set in cc0.
18201 (lshrsi3): Likewise.
18202 (ashlsi3): Likewise.
18203 (subsf3): Use %Q for the MEM operand.
18204 (fix_truncsfsi2): Likewise.
18205 (floatsisf2): Likewise.
18206 (bitset): Remove early clobber from destination.
18207 (bitset_in_memory): Likewise.
18208 (lrintsf2): Clobber the cc0 register.
18209 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
18210 (rx_print_operand): Handle %N.
18211
18212 2010-06-16 Jan Hubicka <jh@suse.cz>
18213
18214 * df-core.c (df_compact_blocks): Free problem_temps vector.
18215
18216 2010-06-16 Martin Jambor <mjambor@suse.cz>
18217
18218 PR tree-optimization/43905
18219 * tree-sra.c: Include tree-inline.h.
18220 (create_abstract_origin): Removed.
18221 (modify_function): Version the call graph node instead of creating
18222 abstract origins and dealing with same_body aliases.
18223 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
18224 function is versionable.
18225 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
18226
18227 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
18228
18229 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
18230 (CHOOSE_DYNAMIC_LINKER): Update.
18231
18232 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
18233
18234 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
18235 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
18236 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
18237 *prefetch_3dnow_rex.
18238
18239 2010-06-15 Anatoly Sokolov <aesok@post.ru>
18240
18241 * target.h (struct asm_out):Add declare_constant_name field.
18242 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
18243 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
18244 * output.h (default_asm_declare_constant_name): Declare.
18245 (assemble_label): Update prototype.
18246 * varasm.c (assemble_constant_contents): Use
18247 targetm.asm_out.declare_constant_name target hook.
18248 (assemble_label): Add 'file' argument.
18249 (default_asm_declare_constant_name): New function.
18250 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
18251 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
18252 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
18253
18254 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
18255 * config/darwin.c (darwin_asm_declare_constant_name): New function.
18256 (machopic_output_indirection): Update assemble_label argument list.
18257 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
18258 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
18259
18260 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
18261
18262 PR middle-end/44391
18263 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
18264 size_one_node for pointer types. Do not call gmp_cst_to_tree.
18265
18266 2010-06-15 Richard Guenther <rguenther@suse.de>
18267
18268 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
18269
18270 2010-06-15 Paul Brook <paul@codesourcery.com>
18271
18272 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
18273 hard-float ABI.
18274
18275 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
18276
18277 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
18278 don't get a vector type for output.
18279
18280 2010-06-15 Jakub Jelinek <jakub@redhat.com>
18281
18282 PR fortran/44536
18283 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
18284 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
18285 (LANG_HOOKS_DECLS): Add it.
18286 * gimplify.c (omp_notice_variable): Call
18287 lang_hooks.decls.omp_report_decl.
18288
18289 2010-06-15 Martin Jambor <mjambor@suse.cz>
18290
18291 PR lto/44464
18292 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
18293 on the newly dead SSA name.
18294
18295 2010-06-15 Alan Modra <amodra@gmail.com>
18296
18297 * doc/invoke.texi: Add mcmodel to powerpc options.
18298 * configure.ac: Add HAVE_LD_LARGE_TOC test.
18299 * configure: Regenerate.
18300 * config.in: Regenerate.
18301 * config/rs6000/linux64.opt (mcmodel): New.
18302 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
18303 (TARGET_CMODEL, SET_CMODEL): Define.
18304 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
18305 select CMODEL_MEDIUM default.
18306 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
18307 (TARGET_CMODEL): Define default.
18308 * config/rs6000/rs6000.c (cmodel): New variable.
18309 (rs6000_explicit_options): Add cmodel field.
18310 (rs6000_handle_option): Handle -mcmodel.
18311 (create_TOC_reference): Add largetoc_reg param. Generate high,
18312 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
18313 (rs6000_delegitimize_address): Recognise new toc reference rtl
18314 and minimal-toc rtl.
18315 (rs6000_legitimize_reload_address): Handle new toc references.
18316 (print_operand_address): Handle legitimate_constant_pool_address_p
18317 match before lo_sum.
18318 (rs6000_eliminate_indexed_memrefs): Tidy.
18319 (rs6000_emit_move): Tweak threshold for inlining constants.
18320 Keep rs6000_emit_allocate_stack large stack frame offsets
18321 loaded into r0 inline.
18322 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
18323 (tocrel_base, tocrel_offset): New variables.
18324 (toc_relative_expr_p): Set them here.
18325 (print_operand_address): Skip over any offset on constant pool address.
18326 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
18327 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
18328 (offsettable_ok_by_alignment): New function.
18329 (rs6000_emit_move): Address suitably aligned local symbol_refs
18330 relative to the toc pointer for -mcmodel=medium.
18331 (legitimate_constant_pool_address_p): Make param const_rtx. Add
18332 strict param. Allow lo_sum version of addressing. Verify reg
18333 used for -mminimal-toc and -mcmodel != small. Update all callers.
18334 * config/rs6000/constraints.md: Update for above change.
18335 * config/rs6000/predicates.md: Likewise.
18336 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
18337 code.
18338 (tls_gd): Split for -mcmodel=medium/large.
18339 (tls_gd_high, tls_gd_low): New.
18340 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
18341 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
18342 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
18343 (largetoc_high, largetoc_low): New.
18344 (cmptf_internal2): Add clobber.
18345 * config/rs6000/rs6000-protos.h: Update.
18346
18347 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
18348
18349 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
18350 true if no prefetch is going to be generated for a given group.
18351 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
18352 estimate the prefetch_count.
18353 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
18354 prefetch count by considering the unroll_factor and prefetch_mod
18355 for is_loop_prefetching_profitable.
18356
18357 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
18358
18359 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
18360 anything if the argument is not a MEM.
18361
18362 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
18363
18364 PR debug/43650
18365 PR debug/44181
18366 PR debug/44247
18367 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
18368 debug stmts.
18369 (canonicalize_loop_ivs): Likewise.
18370
18371 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
18372
18373 PR debug/43656
18374 * haifa-sched.c (setup_insn_reg_pressure_info,
18375 update_register_pressure): Reject debug insns.
18376 (ready_sort): Don't setup reg pressure for debug insns.
18377 (schedule_insn): Don't update reg pressure for debug insns.
18378
18379 2010-06-14 Richard Guenther <rguenther@suse.de>
18380
18381 * lto-streamer.c (cached_bp): Remove.
18382 (bitpack_delete): Likewise.
18383 (bitpack_create): Likewise.
18384 (bp_get_next_word): Likewise.
18385 (bp_pack_value, bp_unpack_value): Move ...
18386 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
18387 Re-implement.
18388 (struct bitpack_d): Likewise.
18389 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
18390 New inline functions.
18391 * lto-streamer-out.c (lto_output_bitpack): Remove.
18392 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
18393 (pack_value_fields): Adjust.
18394 (lto_write_tree): Likewise.
18395 (output_gimple_stmt): Likewise.
18396 (output_function): Likewise.
18397 * lto-streamer-in.c (input_gimple_stmt): Adjust.
18398 (input_function): Likewise.
18399 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
18400 (lto_input_bitpack): Remove.
18401 (lto_materialize_tree): Adjust.
18402 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
18403 * lto-cgraph.c (lto_output_edge): Adjust.
18404 (lto_output_node): Likewise.
18405 (lto_output_varpool_node): Likewise.
18406 (lto_output_ref): Likewise.
18407 (input_node): Likewise.
18408 (input_varpool_node): Likewise.
18409 (input_ref): Likewise.
18410 (input_edge): Likewise.
18411 (output_node_opt_summary): Likewise.
18412 (input_node_opt_summary): Likewise.
18413 * ipa-pure-const.c (pure_const_write_summary): Likewise.
18414 (pure_const_read_summary): Likewise.
18415 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
18416 (ipa_read_indirect_edge_info): Likewise.
18417 (ipa_write_node_info): Likewise.
18418 (ipa_read_node_info): Likewise.
18419
18420 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
18421
18422 PR target/44534
18423 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
18424 (vec_extract_lo_v16hi): Likewise.
18425 (vec_extract_lo_v32qi): Likewise.
18426
18427 2010-06-14 Jakub Jelinek <jakub@redhat.com>
18428
18429 PR bootstrap/44426
18430 * tree.h (build_call_expr): Don't define as vararg macro, instead
18431 add a prototype.
18432 * builtins.c (build_call_nofold): Remove.
18433 (expand_builtin_int_roundingfn, expand_builtin_pow,
18434 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
18435 expand_builtin_memset_args, expand_builtin_strcmp,
18436 expand_builtin_strncmp, expand_builtin_memory_chk): Use
18437 build_call_nofold_loc instead of build_call_nofold.
18438 (build_call_expr): New function.
18439
18440 PR tree-optimization/44508
18441 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
18442 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
18443 don't eliminate trivially dead stmts.
18444 * tree-vrp.c (vrp_finalize): Pass false as last argument
18445 to substitute_and_fold.
18446 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
18447 to substitute_and_fold.
18448 * tree-ssa-ccp.c (ccp_finalize): Likewise.
18449
18450 PR bootstrap/44509
18451 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
18452
18453 2010-06-14 Ira Rosen <irar@il.ibm.com>
18454
18455 PR tree-optimization/44507
18456 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
18457 to build initial vector for BIT_AND_EXPR.
18458 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
18459
18460 2010-06-14 Jakub Jelinek <jakub@redhat.com>
18461
18462 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
18463 adjust z10prop set_attr.
18464
18465 2010-06-13 Jan Hubicka <jh@suse.cz>
18466
18467 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
18468 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
18469 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
18470 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
18471 datastructure checks into checking asserts.
18472 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
18473 * tree-ssa-sccvn.c (VN_INFO): Likewise.
18474 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
18475 df_ref_create_structure): Likewise.
18476 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
18477 pool_free): Use gcc_checking_assert.
18478 * alias.c (get_alias_set): Likewise.
18479 * var-tracking.c (variable_htab_free, shared_hash_copy,
18480 canonicalize_values_mark, variable_merge_over_cur): Likewise.
18481 * lto-streamer.c (bp_unpack_value): Likewise.
18482
18483 2010-06-13 Richard Guenther <rguenther@suse.de>
18484
18485 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
18486 Do not stream but initialize TYPE_CANONICAL to NULL.
18487 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
18488 * gimple.c (gimple_types_compatible_p): Disregard
18489 TYPE_STRUCTURAL_EQUALITY_P.
18490 (gimple_register_type): Use TYPE_CANONICAL as cache.
18491 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
18492 before registering common types.
18493 * config/i386/i386.c (ix86_function_arg_boundary): Do not
18494 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
18495 * tree.h (TYPE_CANONICAL): Clarify documentation.
18496
18497 2010-06-13 Anatoly Sokolov <aesok@post.ru>
18498
18499 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
18500 LIBCALL_VALUE): Remove macros.
18501 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
18502 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18503 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18504 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
18505 (ia64_function_value): Make static. Handle receiving the function
18506 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
18507
18508 2010-06-12 Jan Hubicka <jh@suse.cz>
18509
18510 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
18511 at correct place.
18512
18513 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
18514
18515 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
18516
18517 2010-06-12 Jan Hubicka <jh@suse.cz>
18518
18519 * df-core.c (df_clear_bb_info): New function.
18520 (df_set_blocks): bb_info is always allocated.
18521 (df_get_bb_info): Use block_info_elt_size.
18522 (df_set_bb_info): Likewise.
18523 (df_compact_blocks): Update for new block_info.
18524 (grow_bb_info): New function.
18525 * df-problems.c (df_grow_bb_info): Move to df-core.c
18526 (df_rd_set_bb_info): Remove.
18527 (df_rd_free_bb_info): Do not free block pool.
18528 (df_rd_alloc): Do not create pool, use check for
18529 obstack presence instead of NULL pointer for new blocks.
18530 (df_rd_free): DO not free alloc pool; clear block_info.
18531 (problem_RD): Add size of block info structure.
18532 (df_lr_set_bb_info): Remove.
18533 (df_lr_free_bb_info): Do not free block pool.
18534 (df_lr_alloc): Do not create pool, use check for
18535 obstack presence instead of NULL pointer for new blocks.
18536 (df_lr_free): DO not free alloc pool; clear block_info.
18537 (problem_LR): Add size of block info structure.
18538 (df_live_set_bb_info): Remove.
18539 (df_live_free_bb_info): Do not free block pool.
18540 (df_live_alloc): Do not create pool, use check for
18541 obstack presence instead of NULL pointer for new blocks.
18542 (df_live_free): DO not free alloc pool; clear block_info.
18543 (problem_LIVE): Add size of block info structure.
18544 (problem_CHAIN): Add size of block info structure.
18545 (df_byte_lr_set_bb_info): Remove.
18546 (df_byte_lr_free_bb_info): Do not free block pool.
18547 (df_byte_lr_alloc): Do not create pool, use check for
18548 obstack presence instead of NULL pointer for new blocks.
18549 (df_byte_lr_free): DO not free alloc pool; clear block_info.
18550 (problem_BYTE_LR): Add size of block info structure.
18551 (problem_NOTE): Add size of block info structure.
18552 (df_byte_MD_set_bb_info): Remove.
18553 (df_byte_MD_free_bb_info): Do not free block pool.
18554 (df_byte_MD_alloc): Do not create pool, use check for
18555 obstack presence instead of NULL pointer for new blocks.
18556 (df_byte_MD_free): DO not free alloc pool; clear block_info.
18557 (problem_BD): Add size of block info structure.
18558 * df-scan.c (df_scan_free_internal): Free block pool.
18559 (df_scan_set_bb_info): Remove.
18560 (df_scan_free_bb_info): Check for artificial_defs instead
18561 of bb_info being non-NULL.
18562 (df_scan_alloc): DO not create df_scan_block pool.
18563 (problem_SCAN): Set size of block info.
18564 (df_bb_refs_record): Do not allocate bb_info.
18565 * df.h (df_problem): Add block_info_elt_size.
18566 (struct dataflow): Change block_info to void *.
18567 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
18568 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
18569 in-line structures.
18570
18571 2010-06-12 Jan Hubicka <jh@suse.cz>
18572
18573 PR tree-optimize/44485
18574 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
18575 containing use of return value of noreturn function.
18576
18577 2010-06-12 Anatoly Sokolov <aesok@post.ru>
18578
18579 * targhooks.c (default_function_value): Don't use
18580 FUNCTION_OUTGOING_VALUE.
18581 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
18582 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
18583
18584 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
18585
18586 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
18587 Add crtfastmath.o to extra_parts.
18588 * config/mips/crtfastmath.c: New.
18589 * config/mips/linux.h (ENDFILE_SPEC): New.
18590
18591 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
18592
18593 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
18594 old_type in parameter.
18595 (gcc_type_for_value): Update call to gcc_type_for_interval.
18596 (compute_type_for_level_1): Renamed compute_type_for_level.
18597 Update call to gcc_type_for_interval.
18598
18599 2010-06-11 Joseph Myers <joseph@codesourcery.com>
18600
18601 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
18602 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
18603
18604 2010-06-11 Joseph Myers <joseph@codesourcery.com>
18605
18606 * opts-common.c: Include options.h.
18607 (integral_argument): Move from opts.c.
18608 (decode_cmdline_option): New. Based on read_cmdline_option.
18609 * opts.c (integral_argument): Move to opts-common.c.
18610 (read_cmdline_option): Move most contents to
18611 decode_cmdline_option. Use %qs in diagnostics.
18612 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
18613 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
18614 decode_cmdline_option): New.
18615
18616 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18617
18618 PR target/44481
18619 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
18620 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
18621 (partiysi2_cmp): Ditto.
18622 (*partiyhi2_cmp): Ditto.
18623 (*parityqi2_cmp): Remove.
18624
18625 2010-06-11 Jan Hubicka <jh@suse.cz>
18626
18627 * bitmap.h (bmp_iter_next_bit): New.
18628 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
18629
18630 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
18631 Eric Botcazou <ebotcazou@adacore.com>
18632
18633 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
18634 computed cost.
18635
18636 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18637
18638 * config/i386/i386.md (unspec): New define_c_enum.
18639 (unspecv): Ditto.
18640
18641 2010-06-10 Jakub Jelinek <jakub@redhat.com>
18642
18643 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
18644
18645 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
18646
18647 PR middle-end/44483
18648 * tree-if-conv.c (bb_predicate_s): New struct.
18649 (bb_predicate_p): New.
18650 (bb_has_predicate): New.
18651 (bb_predicate): New.
18652 (set_bb_predicate): New.
18653 (bb_predicate_gimplified_stmts): New.
18654 (set_bb_predicate_gimplified_stmts): New.
18655 (add_bb_predicate_gimplified_stmts): New.
18656 (init_bb_predicate): New.
18657 (free_bb_predicate): New.
18658 (is_predicated): Use bb_predicate.
18659 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
18660 (predicate_bbs): Same. Gimplify the condition of the basic blocks
18661 before processing their successors.
18662 (clean_predicate_lists): Removed.
18663 (find_phi_replacement_condition): Use bb_predicate.
18664 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
18665 computations.
18666 (insert_gimplified_predicates): New.
18667 (combine_blocks): Call insert_gimplified_predicates.
18668 (tree_if_conversion): Call free_bb_predicate instead of
18669 clean_predicate_lists.
18670
18671 2010-10-11 Paul Brook <paul@codesourcery.com>
18672
18673 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
18674 * config/arm/arm.c (all_architectures): Change v7e-m default to
18675 cortexm4.
18676 * config/arm/arm-cores.def: Add cortex-m4.
18677 * config/arm/arm-tune.md: Regenerate.
18678
18679 2010-06-11 Jan Hubicka <jh@suse.cz>
18680
18681 * ipa-pure-const.c (special_builtlin_state): New function.
18682 (check_call): Use it instead of special casign BUILT_IN_RETURN.
18683 (propagate_pure_const): Use it.
18684
18685 2010-06-11 Jan Hubicka <jh@suse.cz>
18686
18687 * df-problems.c (df_live_scratch): Convert to bitmap_head.
18688 (df_live_alloc): Initialize df_live_scratch when initializing
18689 problem_data.
18690 (df_live_transfer_function): Update uses of df_live_scratch.
18691 (df_live_free): Free problem_data; clear df_live_scratch before
18692 releasing the obstack.
18693 (df_md_free): Free problem data.
18694
18695 2010-06-11 Jan Hubicka <jh@suse.cz>
18696
18697 * doc/invoke.texi (Wsuggest-attribute): Document.
18698 (Wmissing-noreturn): Remove.
18699 * ipa-pure-const.c (warn_function_noreturn): New function.
18700 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
18701 warn_missing_noreturn.
18702 * common.opt (Wsuggest-attribute=noreturn): New.
18703 * tree-flow.h (warn_function_noreturn): Declare.
18704 * tree-cfg.c (execute_warn_function_noreturn): Use
18705 warn_function_noreturn.
18706 (gate_warn_function_noreturn): New.
18707 (pass_warn_function_noreturn): Update.
18708
18709 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
18710
18711 * c-typeck.c (handle_warn_cast_qual): Add loc
18712 parameter. Improve warning message.
18713 (build_c_cast): Pass location to handle_warn_cast_qual.
18714
18715 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18716
18717 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
18718 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
18719 insn mnemonic.
18720 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
18721
18722 2010-06-10 Dodji Seketeli <dodji@redhat.com>
18723
18724 Fix bootstap on mips
18725 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
18726 be naming typedefs.
18727
18728 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
18729
18730 * system.h (helper_const_non_const_cast): New inline for
18731 gcc version <= 4.0.
18732 (CONST_CAST2): For gcc version <= 4.0 use
18733 new helper to do const/non-const casting.
18734
18735 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18736
18737 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
18738 * Makefile.in (OBJS-common): Include insn-enums.o.
18739 (insn-enums.o): New rule.
18740 (simple_generated_c): Add insn-enums.c.
18741 (build/genenums.o): New rule.
18742 (genprogmd): Add "enums".
18743 * genconstants.c (print_enum_type): Declare a C string array
18744 for each enum.
18745 * genenums.c: New file.
18746 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
18747 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
18748 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
18749
18750 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18751
18752 * doc/md.texi (define_enum_attr): Document.
18753 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
18754 * read-md.h (lookup_enum_type): Declare.
18755 * read-md.c (lookup_enum_type): New function.
18756 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
18757 * genattrtab.c (attr_desc): Add an enum_name field.
18758 (evaluate_eq_attr): Take the associated attribute as argument.
18759 Get the enum prefix from the enum_name field, if defined.
18760 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
18761 (simplify_test_exp): Pass attr to evaluate_eq_attr.
18762 (add_attr_value): New function, split out from...
18763 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
18764 (write_test_expr): Pass attr to evaluate_eq_attr.
18765 (write_attr_get): Use the enum_name as the enum tag, if defined.
18766 (write_attr_valueq): Use the enum_name as a prefix, if defined.
18767 (find_attr): Initialize enum_name.
18768 (main): Handle DEFINE_ENUM_ATTR.
18769 * gensupport.c (process_rtx): Likewise.
18770 * config/mips/mips.h (mips_tune_attr): Delete.
18771 * config/mips/mips.md (cpu): Use define_attr_enum.
18772
18773 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18774
18775 * doc/md.texi (define_c_enum, define_enum): Document.
18776 * read-md.h (md_constant): Add a parent_enum field.
18777 (enum_value, enum_type): New structures.
18778 (upcase_string, traverse_enum_types): Declare.
18779 * read-md.c (enum_types): New variable.
18780 (upcase_string, add_constant): New functions.
18781 (handle_constants): Don't create the hash table here.
18782 Use add_constant.
18783 (traverse_md_constants): Don't check for a null md_constants.
18784 (decimal_string, handle_enum, traverse_enum_types): New functions.
18785 (read_md_files): Initialize md_constants and md_enums.
18786 * genconstants.c (print_md_constant): Ignore info argument.
18787 Only print constants that belong to no enum.
18788 (print_enum_type): New function.
18789 (main): Don't pass stdout to print_md_constant. Call print_enum_type
18790 for each defined enum type.
18791 * config/mips/mips.md (processor): New define_enum.
18792 (unspec): New define_c_enum.
18793 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
18794 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
18795 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
18796 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
18797 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
18798 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
18799 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
18800 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
18801 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
18802 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
18803 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
18804 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
18805 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
18806 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
18807 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
18808 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
18809 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
18810 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
18811 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
18812 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
18813 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
18814 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
18815 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
18816 (UNSPEC_RDDSP): Move to mips-dsp.md.
18817 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
18818 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
18819 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
18820 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
18821 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
18822 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
18823 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
18824 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
18825 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
18826 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
18827 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
18828 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
18829 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
18830 Moved to mips-dspr2.md.
18831 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
18832 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
18833 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
18834 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
18835 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
18836 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
18837 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
18838 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
18839 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
18840 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
18841 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
18842 UNSPEC_LOONGSON_PSADBH)
18843 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
18844 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
18845 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
18846 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
18847 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
18848 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
18849 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
18850 (cpu): Update comment.
18851 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
18852 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
18853 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
18854 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
18855 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
18856 UNSPEC_LOONGSON_PCMPEQ)
18857 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
18858 UNSPEC_LOONGSON_PINSR_0)
18859 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
18860 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
18861 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
18862 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
18863 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
18864 UNSPEC_LOONGSON_PSADBH)
18865 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
18866 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
18867 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
18868 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
18869 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
18870 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
18871 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
18872 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
18873 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
18874 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
18875 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
18876 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
18877 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
18878 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
18879 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
18880 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
18881 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
18882 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
18883 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
18884 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
18885 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
18886 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
18887 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
18888 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
18889 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
18890 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
18891 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
18892 (UNSPEC_RDDSP): Moved from mips.md.
18893 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
18894 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
18895 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
18896 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
18897 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
18898 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
18899 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
18900 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
18901 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
18902 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
18903 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
18904 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
18905 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
18906 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
18907 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
18908 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
18909 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
18910 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
18911 (UNSPEC_SCC): Moved from mips.md.
18912 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
18913 "processor_type" to "processor".
18914 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
18915 * config/mips/mips.h (processor_type): Delete.
18916 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
18917 "processor_type" to "processor".
18918
18919 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18920
18921 * configure.ac (tm_include_list): Add insn-constants.h.
18922 * configure: Regenerate.
18923 * Makefile.in (GTM_H): Move insn-constants.h here from...
18924 (TM_H): ...here.
18925 * mkconfig.sh: Remove special handling for insn-constants.h.
18926
18927 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18928
18929 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
18930 (BUILD_MD): ...this new variable.
18931 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
18932 that include the old contents of simple_generated_h and
18933 simple_generated_c.
18934 (simple_generated_h, simple_generated_c): Include them. Add
18935 insn-constants.h.
18936 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
18937 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
18938 Remove these dependencies from the main rule and include
18939 insn-conditions.md in the command line only if it appears
18940 in the dependency list.
18941 (insn-constants.h, s-constants): Delete.
18942 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
18943 or gensupport.h.
18944 (build/genmddeps.o): Likewise.
18945 (genprogrtl): New variable that contains everything from genprogmd
18946 except mddeps and constants.
18947 (genprogmd): Redefine in terms of genprogrtl. Make these programs
18948 depend on $(BUILD_MD)
18949 (genprog): New variable. Make these programs depend on
18950 $(BUILD_ERRORS).
18951 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
18952 (main): Use read_md_files instead of init_rtx_reader_args.
18953 * genconstants.c: As for genmddeps.c.
18954 * read-md.h (read_skip_construct): Declare.
18955 * read-md.c (read_skip_construct): New function.
18956 (handle_file): Allow a null handle_directive, skipping the
18957 construct if so.
18958 (parse_include): Update the comment accordingly.
18959
18960 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18961
18962 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
18963 * genmddeps.c: Include read-md.h.
18964 (main): Call init_rtx_reader_args instead of init_md_reader_args.
18965 * genattr.c (main): Likewise.
18966 * genattrtab.c (main): Likewise.
18967 * genautomata.c (main): Likewise.
18968 * gencodes.c (main): Likewise.
18969 * genconditions.c (main): Likewise.
18970 * genconfig.c (main): Likewise.
18971 * genconstants.c (main): Likewise.
18972 * genemit.c (main): Likewise.
18973 * genextract.c (main): Likewise.
18974 * genflags.c (main): Likewise.
18975 * genopinit.c (main): Likewise.
18976 * genoutput.c (main): Likewise.
18977 * genpeep.c (main): Likewise.
18978 * genrecog.c (main): Likewise.
18979 * genpreds.c (main): Likewise.
18980 * gensupport.h (in_fname): Move to read-md.h.
18981 (init_md_reader_args_cb): Rename to...
18982 (init_rtx_reader_args_cb): ...this and return a bool.
18983 (init_md_reader_args): Rename to...
18984 (init_rtx_reader_args): ...this and return a bool.
18985 (include_callback): Move to read-md.h.
18986 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
18987 (file_name_list, first_dir_md_include): Move to read-md.c
18988 (first_bracket_include): Delete unused variable.
18989 (last_dir_md_include): Move to read-md.c.
18990 (process_include): Delete, moving code to read-md.c:handle_include.
18991 (process_rtx): Don't handle INCLUDE.
18992 (save_string): Delete.
18993 (rtx_handle_directive): New function.
18994 (init_md_reader_args_cb): Rename to...
18995 (init_rtx_reader_args_cb): ...this and return a boolean success value.
18996 Use read_md_args.
18997 (init_md_reader_args): Rename to...
18998 (init_rtx_reader_args): ...this and return a boolean success value.
18999 * rtl.def (INCLUDE): Delete.
19000 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
19001 argument.
19002 * read-rtl.c (read_conditions): Don't gobble ')' here.
19003 (read_mapping): Likewise.
19004 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
19005 Handle top-level non-rtx constructs here rather than in read_rtx_1.
19006 Store the whole queue in *X. Remove call to init_md_reader.
19007 (read_rtx_1): Rename to...
19008 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
19009 Don't handle top-level non-rtx constructs here. Don't handle (nil)
19010 here.
19011 (read_nested_rtx): New function. Handle (nil) here rather than
19012 in read_rtx_code.
19013 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
19014 gobble ')' here.
19015 * read-md.h (directive_handler_t): New type.
19016 (in_fname, include_callback): Moved from read-md.h.
19017 (read_constants, init_md_reader): Delete.
19018 (read_md_files): Declare.
19019 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
19020 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
19021 from gensupport.c.
19022 (read_constants): Rename to...
19023 (handle_constants): ...this. Don't gobble ')' here.
19024 (handle_include, handle_file, handle_toplevel_file)
19025 (parse_include): New functions, mostly taken from gensupport.c.
19026 (init_md_reader): Subsume into...
19027 (read_md_files): ...this new function.
19028
19029 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19030
19031 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
19032 (unread_char): Decrement read_md_lineno after putting back '\n'.
19033 * read-md.c (fatal_with_file_and_line): Push back any characters
19034 that we decide not to add to the context.
19035 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
19036 fatal_expected_char in cases where '/' ends a line (for example).
19037 (read_name): Don't increment read_md_lineno here.
19038 (read_escape): Likewise.
19039 (read_quoted_string): Likewise.
19040 (read_braced_string): Likewise.
19041
19042 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19043
19044 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
19045 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
19046 * genconstants.c: Include read-md.h.
19047 * read-rtl.c (md_constants): Move to read-md.c.
19048 (md_name): Move to read-md.h.
19049 (initialize_iterators): Use leading_string_hash instead of def_hash
19050 and leading_string_eq_p instead of def_name_eq_p.
19051 (read_name): Move to read-md.c.
19052 (def_hash, def_name_eq_p): Delete.
19053 (read_constants, traverse_md_constants): Move to read-md.c.
19054 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
19055 * read-md.h: Include hashtab.h.
19056 (md_name): Moved from read-rtl.c.
19057 (md_constant): Moved from read-md.h.
19058 (leading_string_hash, leading_string_eq_p, read_name)
19059 (read_constants, traverse_md_constants): Declare.
19060 * read-md.c (md_constants): Moved from read-rtl.c.
19061 (leading_string_hash, leading_string_eq_p): New functions.
19062 (read_name, read_constants, traverse_md_constants): Moved from
19063 read-rtl.c.
19064
19065 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19066
19067 * read-rtl.c (md_name): New structure.
19068 (read_name): Take an md_name instead of a buffer pointer.
19069 Use the "string" field instead of strcpy when expanding constants.
19070 (read_constants): Remove the tmp_char argument. Update the calls
19071 to read_name, using two local name buffers instead of the tmp_char
19072 argument. Merge the constant-creation code.
19073 (read_conditions): Remove the tmp_char argument. Update the calls
19074 to read_name, using a local name buffer instead of the tmp_char
19075 argument.
19076 (read_mapping): Replace tmp_char variable with a local name buffer.
19077 Update the calls to read_name.
19078 (read_rtx_1): Likewise. Update the calls to read_constants and
19079 read_conditions.
19080
19081 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19082
19083 * Makefile.in (build/read-md.o): Depend on errors.h.
19084 * read-md.h (error_with_line): Declare.
19085 * read-md.c: Include errors.h.
19086 (message_with_line_1): New function, extracted from...
19087 (message_with_line): ...here.
19088 (error_with_line): New function.
19089 * genattrtab.c: If a call to message_with_line is followed by
19090 "have_error = 1;", replace both statements with a call to
19091 error_with_line.
19092 * genoutput.c: Likewise.
19093 * genpreds.c: Likewise.
19094 * genrecog.c: If a call to message_with_line is followed by
19095 "error_count++;", replace both statements with a call to
19096 error_with_line.
19097 (errorcount): Delete.
19098 (main): Don't check it.
19099 * gensupport.c: If a call to message_with_line is followed by
19100 "errors = 1;", replace both statements with a call to error_with_line.
19101 (errors): Delete.
19102 (process_define_cond_exec): Check have_error instead of errors.
19103 (init_md_reader_args_cb): Likewise. Don't set errors.
19104
19105 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19106
19107 * read-md.h (read_md_file): Declare.
19108 (read_char, unread_char): New functions.
19109 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
19110 (read_quoted_string, read_string): Remove FILE * argument.
19111 * read-md.c (read_md_file): New variable.
19112 (read_md_filename, read_md_lineno): Update comments and remove
19113 unnecessary initialization.
19114 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
19115 (read_escape, read_quoted_string, read_braced_string, read_string):
19116 Remove FILE * argument. Update calls accordingly, using read_char
19117 and unread_char instead of getc and ungetc.
19118 * rtl.h (read_rtx): Remove FILE * argument.
19119 * read-rtl.c (iterator_group): Remove FILE * argument from
19120 "find_builtin".
19121 (iterator_traverse_data): Remove "infile" field.
19122 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
19123 (add_mapping, read_name, read_constants, read_conditions)
19124 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
19125 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
19126 Remove file arguments from all calls, using read_char and unread_char
19127 instead of getc and ungetc.
19128 * gensupport.c (process_include): Preserve read_md_file around
19129 the include. Set read_md_file to the handle of the included file.
19130 Update call to read_rtx.
19131 (init_md_reader_args_cb): Set read_md_file to the handle of the file
19132 and remove local FILE *. Update calls to read_rtx.
19133
19134 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19135
19136 * read-md.h (read_rtx_lineno): Rename to...
19137 (read_md_lineno): ...this.
19138 (read_rtx_filename): Rename to...
19139 (read_md_filename): ...this.
19140 (copy_rtx_ptr_loc): Rename to...
19141 (copy_md_ptr_loc): ...this.
19142 (print_rtx_ptr_loc): Rename to...
19143 (print_md_ptr_loc): ...this.
19144 * read-md.c: Likewise. Update references after renaming.
19145 (string_obstack): Replace RTL with MD in comment.
19146 (set_rtx_ptr_loc): Rename to...
19147 (set_md_ptr_loc): ...this.
19148 (get_rtx_ptr_loc): Rename to...
19149 (get_md_ptr_loc): ...this.
19150 * genconditions.c: Update references after renaming.
19151 * genemit.c: Likewise.
19152 * genoutput.c: Likewise.
19153 * genpreds.c: Likewise.
19154 * gensupport.c: Likewise.
19155 * read-rtl.c: Likewise.
19156
19157 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19158
19159 * Makefile.in (READ_MD_H): New variable.
19160 (BUILD_RTL): Add build/read-md.o.
19161 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
19162 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
19163 (build/genattrtab.o, build/genconditions.o build/genemit.o)
19164 (build/genextract.o, build/genflags.o, build/genoutput.o)
19165 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
19166 (build/read-md.o): New rule.
19167 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
19168 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
19169 * coretypes.h: ...here.
19170 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
19171 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
19172 * genattr.c: Include read-md.h.
19173 * genattrtab.c: Likewise.
19174 * genconditions.c: Likewise.
19175 * genemit.c: Likewise.
19176 * genextract.c: Likewise.
19177 * genflags.c: Likewise.
19178 * genoutput.c: Likewise.
19179 * genpreds.c: Likewise.
19180 * genrecog.c: Likewise.
19181 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
19182 (join_c_conditions, print_c_condition, read_rtx_filename)
19183 (read_rtx_lineno): Move to read-md.h.
19184 * read-rtl.c: Include read-md.h.
19185 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
19186 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
19187 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
19188 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
19189 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
19190 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
19191 (read_braced_string, read_string): Move to read-md.c.
19192 (read_rtx): Move some initialization to init_md_reader and call
19193 init_md_reader here.
19194 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
19195 Move to read-md.h.
19196 * gensupport.c: Include read-md.h.
19197 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
19198 * read-md.h, read-md.c: New files.
19199
19200 2010-06-10 Anatoly Sokolov <aesok@post.ru>
19201
19202 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19203 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19204 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
19205 * config/moxie/moxie.c (moxie_function_value): Make static.
19206 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
19207 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19208
19209 2010-06-10 Martin Jambor <mjambor@suse.cz>
19210
19211 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
19212 * dbgcnt.def (tree_sra): New counter.
19213 * tree-sra.c: Include dbgcnt.h.
19214 (gate_intra_sra): Check tree_sra debug counter.
19215
19216 2010-06-10 Martin Jambor <mjambor@suse.cz>
19217
19218 PR tree-optimization/44258
19219 * tree-sra.c (build_access_subtree): Return false iff there is a
19220 partial overlap.
19221 (build_access_trees): Likewise.
19222 (analyze_all_variable_accesses): Disqualify candidates if
19223 build_access_trees returns true for them.
19224
19225 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
19226
19227 PR debug/41371
19228 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
19229 tail-recurse into canonical node. Fast-forward over
19230 non-canonical VALUEs.
19231
19232 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
19233
19234 PR boostrap/44470
19235 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
19236 (*addsi_1_zext) <TYPE_LEA>: Likewise.
19237 (add lea splitter): Likewise.
19238 (add_zext lea splitter): Likewise.
19239
19240 2010-06-10 Joseph Myers <joseph@codesourcery.com>
19241
19242 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
19243
19244 2010-06-10 Jan Hubicka <jh@suse.cz>
19245
19246 * df-problems.c (df_live_problem_data): Add live_bitmaps.
19247 (df_live_alloc): Initialize problem data and live_osbtacks.
19248 (df_live_finalize): Remove obstack, problem data; do not
19249 clear all bitmaps.
19250 (df_live_top_dump, df_live_bottom_dump): Do not dump old
19251 data when not allocated.
19252 (df_live_verify_solution_start): Do not allocate problem data.
19253 (df_live_verify_solution_end): Check if out is allocated.
19254 (struct df_md_problem_data): New structure.
19255 (df_md_alloc): Allocate problem data.
19256 (df_md_free): Free problem data; do not clear bitmaps.
19257
19258 2010-06-10 Jan Beulich <jbeulich@novell.com>
19259
19260 PR bootstrap/37304
19261 * configure.ac: Replace $() with ${} when intending to expand
19262 variables rather than invoking commands.
19263 * configure: Re-generate.
19264
19265 2010-06-10 Jan Hubicka <jh@suse.cz>
19266
19267 PR rtl-optimization/44460
19268 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
19269 TYPE_NEEDS_CONSTRUCTING sanity check.
19270
19271 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
19272
19273 * doc/include/fdl.texi: Move to GFDL version 1.3.
19274
19275 * doc/cpp.texi: Move to GFDL version 1.3.
19276 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
19277 * doc/gccint.texi: Move to GFDL version 1.3.
19278 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
19279 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
19280 * doc/invoke.texi: Move to GFDL version 1.3.
19281
19282 2010-06-09 Jan Hubicka <jh@suse.cz>
19283
19284 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
19285 Break out from ...
19286 (propagate) ... here; swap the order.
19287
19288 2010-06-09 Jan Hubicka <jh@suse.cz>
19289
19290 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
19291 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
19292 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
19293 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
19294
19295 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
19296
19297 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
19298 Do not the gather memory reference in the outer loop if the step
19299 is not a constant.
19300
19301 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
19302
19303 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
19304 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
19305 8 to 4. Minor change of the related comments.
19306
19307 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19308
19309 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
19310 the scev analysis when the variable is not used outside the loop
19311 in a close phi node: call compute_overall_effect_of_inner_loop.
19312
19313 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19314
19315 * graphite-sese-to-poly.c (single_pred_cond): Renamed
19316 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
19317 (build_sese_conditions_before): Renamed call to single_pred_cond.
19318 (build_sese_conditions_after): Same.
19319
19320 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19321
19322 * graphite-poly.h: Fix comments and indentation.
19323 * graphite-sese-to-poly.c: Same.
19324 (build_sese_conditions_before): Compute stmt and gbb only when needed.
19325 * tree-chrec.c: Fix comments and indentation.
19326 (tree-ssa-loop-niter.c): Same.
19327
19328 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
19329
19330 PR rtl-optimization/42461
19331 * dce.c (deletable_insn_p): Return true for const or pure calls again.
19332 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
19333
19334 2010-06-09 Jan Hubicka <jh@suse.cz>
19335
19336 * bitmap.c (bitmap_and): Walk array forward.
19337 (bitmap_and_compl_into): Likewise.
19338 (bitmap_xor): Likewise.
19339 (bitmap_xor_into): Likewise.
19340 (bitmap_equal_p): Likewise.
19341 (bitmap_intersect_p): Likewise.
19342 (bitmap_intersect_compl_p): Likewise.
19343 (bitmap_ior_and_into): Likewise.
19344 (bitmap_elt_copy): Likewise.
19345 (bitmap_and_compl): Likewise.
19346 (bitmap_elt_ior): Likewise.
19347
19348 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
19349
19350 * opts-common.c (prune_options): Ensure replacement argv array
19351 is correctly terminated by a NULL entry.
19352
19353 2010-06-09 Jan Hubicka <jh@suse.cz>
19354
19355 * cgraph.h (varpool_first_static_initializer,
19356 varpool_next_static_initializer): Make checking only when
19357 checking enabled.
19358 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
19359 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
19360 gcc_assert to gcc_checking_assert.
19361 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
19362 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
19363 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
19364 op_iter_init_phiuse, op_iter_init_phidef,
19365 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
19366 gcc_checking_assert.
19367 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
19368 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
19369 partition_is_global, live_on_entry, live_on_exit,
19370 live_merge_and_clear): Likewise.
19371 * system.h (gcc_checking_assert): New macro.
19372 * gimple.h (set_bb_seq): Use gcc_checking_assert.
19373
19374 2010-06-09 Jason Merrill <jason@redhat.com>
19375
19376 * Makefile.in (TAGS): Collect tags info from c-family.
19377
19378 2010-06-09 Jan Hubicka <jh@suse.cz>
19379
19380 * gimple.h (gcc_gimple_checking_assert): New macro.
19381 (gimple_set_def_ops, gimple_set_use_ops,
19382 gimple_set_vuse, gimple_set_vdef,
19383 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
19384 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
19385 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
19386 gimple_asm_output_op, gimple_asm_output_op_ptr,
19387 gimple_asm_set_output_op, gimple_asm_clobber_op,
19388 gimple_asm_set_clobber_op, gimple_asm_label_op,
19389 gimple_asm_set_label_op, gimple_try_set_kind,
19390 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
19391 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
19392 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
19393 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
19394 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
19395 gimple_omp_for_set_initial, gimple_omp_for_final,
19396 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
19397 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
19398 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
19399 conditional with ENABLE_GIMPLE_CHECKING.
19400 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
19401
19402 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
19403
19404 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
19405 (get_computation_cost_at): Use it.
19406 (determine_use_iv_cost_condition): Likewise.
19407 (determine_iv_cost): Likewise.
19408
19409 2010-06-09 Richard Guenther <rguenther@suse.de>
19410
19411 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
19412 replace constants.
19413
19414 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
19415
19416 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
19417
19418 2010-06-09 Martin Jambor <mjambor@suse.cz>
19419
19420 PR tree-optimization/44423
19421 * tree-sra.c (dump_access): Dump also grp_assignment_read.
19422 (analyze_access_subtree): Pass negative allow_replacements to children
19423 if the current type is scalar.
19424
19425 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
19426
19427 PR testsuite/42843
19428 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
19429 * doc/plugins.texi (Plugin license check): Update information
19430 on type of plugin_is_GPL_compatible.
19431 * Makefile.in (PLUGINCC): Define as $(COMPILER).
19432 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
19433
19434 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
19435
19436 * config/arm/arm.c (thumb2_reorg): New function.
19437 (arm_reorg): Call it.
19438 * config/arm/thumb2.md (define_peephole2 for flag clobbering
19439 arithmetic operations): Delete.
19440
19441 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
19442
19443 PR target/44067
19444 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
19445 e500v2 target.
19446
19447 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
19448
19449 PR plugins/44459
19450 * gcc-plugin.h: Encapsulate all declarations in extern "C".
19451
19452 2010-06-08 Jan Hubicka <jh@suse.cz>
19453
19454 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
19455 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
19456
19457 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
19458
19459 PR tree-optimization/39874
19460 PR middle-end/28685
19461 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
19462 Declare.
19463 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
19464 same_bool_result_p): New.
19465 (and_var_with_comparison, and_var_with_comparison_1,
19466 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
19467 (or_var_with_comparison, or_var_with_comparison_1,
19468 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
19469 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
19470 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
19471 of combine_comparisons.
19472 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
19473
19474 2010-06-08 Anatoly Sokolov <aesok@post.ru>
19475
19476 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19477 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19478 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
19479 pdp11_function_value_regno_p): New functions.
19480 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19481 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19482
19483 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
19484
19485 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
19486 Thumb-2 in the MINUS case.
19487
19488 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
19489
19490 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
19491
19492 * doc/gty.texi (GTY Options): Document typed GC allocation and
19493 variable_size GTY option.
19494
19495 * ggc-internal.h: New.
19496
19497 * ggc.h: Update copyright year.
19498 (digit_string): Move to stringpool.c.
19499 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
19500 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
19501 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
19502 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
19503 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
19504 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
19505 (ggc_force_collect, ggc_get_size, ggc_statistics)
19506 (ggc_print_common_statistics): Move to ggc-internal.h.
19507 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
19508 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
19509 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
19510 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
19511 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
19512 (ggc_alloc_zone_pass_stat): Remove.
19513 (ggc_internal_alloc_stat, ggc_internal_alloc)
19514 (ggc_internal_cleared_alloc_stat): New.
19515 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
19516 (ggc_internal_vec_alloc_stat)
19517 (ggc_internal_cleared_vec_alloc_stat)
19518 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
19519 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
19520 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
19521 (ggc_cleared_alloc_ptr_array_two_args): New.
19522 (htab_create_ggc, splay_tree_new_ggc): Redefine.
19523 (ggc_splay_alloc): Change the type of the first argument to
19524 enum gt_types_enum.
19525 (ggc_alloc_string): Make macro.
19526 (ggc_alloc_string_stat): New.
19527 (ggc_strdup): Redefine.
19528 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
19529 (ggc_alloc_rtvec_sized): New.
19530 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
19531 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
19532 (ggc_internal_cleared_alloc_zone_stat)
19533 (ggc_internal_zone_alloc_stat)
19534 (ggc_internal_zone_cleared_alloc_stat)
19535 (ggc_internal_zone_vec_alloc_stat)
19536 (ggc_alloc_zone_rtx_def_stat)
19537 (ggc_alloc_zone_tree_node_stat)
19538 (ggc_alloc_zone_cleared_tree_node_stat)
19539 (ggc_alloc_cleared_gimple_statement_d_stat): New.
19540
19541 * ggc-common.c: Include ggc-internal.h.
19542 (ggc_internal_cleared_alloc_stat): Rename from
19543 ggc_alloc_cleared_stat.
19544 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
19545 (ggc_calloc): Remove.
19546 (ggc_cleared_alloc_htab_ignore_args): New.
19547 (ggc_cleared_alloc_ptr_array_two_args): New.
19548 (ggc_splay_alloc): Add obj_type parameter.
19549 (init_ggc_heuristics): Formatting fixes.
19550
19551 * ggc-none.c: Update copyright year.
19552 (ggc_alloc_stat): Rename to ggc_alloc_stat.
19553 (ggc_alloc_cleared_stat): Rename to
19554 ggc_internal_cleared_alloc_stat.
19555 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
19556
19557 * ggc-page.c: Update copyright year. Include ggc-internal.h.
19558 Remove references to ggc_alloc in comments.
19559 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
19560 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
19561 (new_ggc_zone, destroy_ggc_zone): Remove.
19562 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
19563
19564 * ggc-zone.c: Include ggc-internal.h. Remove references to
19565 ggc_alloc in comments.
19566 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
19567 (ggc_internal_alloc_zone_pass_stat): New.
19568 (ggc_internal_cleared_alloc_zone_stat): New.
19569 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
19570 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
19571 (new_ggc_zone, destroy_ggc_zone): Remove.
19572
19573 * stringpool.c: Update copyright year. Include ggc-internal.h
19574 (digit_vector): Make static.
19575 (digit_string): Moved from ggc.h.
19576 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
19577 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
19578
19579 * Makefile.in (GGC_INTERNAL_H): New.
19580 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
19581 $(GGC_INTERNAL_H) to dependencies.
19582
19583 * gentype.c: Update copyright year.
19584 (walk_type): Accept variable_size GTY option.
19585 (USED_BY_TYPED_GC_P): New macro.
19586 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
19587 whitespace at the end of strings.
19588 (get_type_specifier, variable_size_p): New functions.
19589 (alloc_quantity, alloc_zone): New enums.
19590 (write_typed_alloc_def): New function.
19591 (write_typed_struct_alloc_def): Likewise.
19592 (write_typed_typed_typedef_alloc_def): Likewise.
19593 (write_typed_alloc_defns): Likewise.
19594 (output_typename, write_splay_tree_allocator_def): Likewise.
19595 (write_splay_tree_allocators): Likewise.
19596 (main): Call write_typed_alloc_defns and
19597 write_splay_tree_allocators.
19598
19599 * lto-streamer.h (lto_file_decl_data_ptr): New.
19600
19601 * passes.c (order): Define using cgraph_node_ptr.
19602
19603 * strinpool.c (struct string_pool_data): Declare nested_ptr using
19604 ht_identifier_ptr.
19605
19606 * gimple.h (union gimple_statement_d): Likewise.
19607
19608 * rtl.h (struct rtx_def): Likewise.
19609 (struct rtvec_def): Likewise.
19610
19611 * tree.h (union tree_node): Likewise.
19612
19613 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
19614
19615 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
19616
19617 * tree-scalar-evolution.c (scev_initialize): Likewise.
19618
19619 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
19620
19621 * dwarf2asm.c (dw2_force_const_mem): Likewise.
19622
19623 * omp-low.c (lower_omp_critical): Likewise.
19624
19625 * bitmap.h (struct bitmap_head_def): Update comment to not
19626 reference ggc_alloc.
19627
19628 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
19629
19630 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
19631
19632 * ipa-prop.c (duplicate_ggc_array): Rename to
19633 duplicate_ipa_jump_func_array. Use typed GC allocation.
19634 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
19635
19636 * gimple.c (gimple_alloc_stat): Use
19637 ggc_alloc_cleared_gimple_statement_d_stat.
19638
19639 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
19640
19641 * tree.c (make_node_stat): Use
19642 ggc_alloc_zone_cleared_tree_node_stat.
19643 (make_tree_vec_stat): Likewise.
19644 (build_vl_exp_stat): Likewise.
19645 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
19646 (make_tree_binfo_stat): Likewise.
19647 (tree_cons_stat): Likewise.
19648
19649 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
19650 (shallow_copy_rtx_stat): Likewise.
19651 (make_node_stat): Likewise.
19652
19653 * lto-symtab.c: Fix comment.
19654
19655 * tree-cfg.c (create_bb): Update comment to not reference
19656 ggc_alloc_cleared.
19657 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
19658
19659 * varpool.c (varpool_node): Use typed GC allocation.
19660 (varpool_extra_name_alias): Likewise.
19661
19662 * varasm.c (emutls_decl): Likewise.
19663 (get_unnamed_section): Likewise.
19664 (get_noswitch_section): Likewise.
19665 (get_section): Likewise.
19666 (get_block_for_section): Likewise.
19667 (build_constant_desc): Likewise.
19668 (create_constant_pool): Likewise.
19669 (force_const_mem): Likewise.
19670
19671 * tree.c (build_vl_exp_stat): Likewise.
19672 (build_real): Likewise.
19673 (build_string): Likewise.
19674 (decl_debug_expr_insert): Likewise.
19675 (decl_value_expr_insert): Likewise.
19676 (type_hash_add): Likewise.
19677 (build_omp_clause): Likewise.
19678
19679 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
19680
19681 * tree-ssa.c (init_tree_ssa): Likewise.
19682
19683 * tree-ssa-structalias.c (heapvar_insert): Likewise.
19684
19685 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19686
19687 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19688
19689 * tree-ssa-alias.c (get_ptr_info): Likewise.
19690
19691 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19692
19693 * tree-phinodes.c (allocate_phi_node): Likewise.
19694
19695 * tree-iterator.c (tsi_link_before): Likewise.
19696 (tsi_link_after): Likewise.
19697
19698 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19699
19700 * tree-dfa.c (create_var_ann): Likewise.
19701
19702 * tree-cfg.c (create_bb): Likewise.
19703
19704 * toplev.c (alloc_for_identifier_to_locale): Likewise.
19705 (general_init): Likewise.
19706
19707 * stringpool.c (stringpool_ggc_alloc): Likewise.
19708 (gt_pch_save_stringpool): Likewise.
19709
19710 * sese.c (if_region_set_false_region): Likewise.
19711
19712 * passes.c (do_per_function_toporder): Likewise.
19713
19714 * optabs.c (set_optab_libfunc): Likewise.
19715 (set_conv_libfunc): Likewise.
19716
19717 * lto-symtab.c (lto_symtab_register_decl): Likewise.
19718
19719 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19720 (input_eh_region): Likewise.
19721 (input_eh_lp): Likewise.
19722 (make_new_block): Likewise.
19723 (unpack_ts_real_cst_value_fields): Likewise.
19724
19725 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19726
19727 * lto-cgraph.c (input_node_opt_summary): Likewise.
19728
19729 * loop-init.c (loop_optimizer_init): Likewise.
19730
19731 * lambda.h (lambda_vector_new): Likewise.
19732
19733 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
19734
19735 * ira.c (update_equiv_regs): Likewise.
19736
19737 * ipa.c (cgraph_node_set_new): Likewise.
19738 (cgraph_node_set_add): Likewise.
19739 (varpool_node_set_new): Likewise.
19740 (varpool_node_set_add): Likewise.
19741
19742 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
19743 (duplicate_ipa_jump_func_array): Likewise.
19744 (ipa_read_node_info): Likewise.
19745
19746 * ipa-cp.c (ipcp_create_replace_map): Likewise.
19747
19748 * integrate.c (get_hard_reg_initial_val): Likewise.
19749
19750 * gimple.c (gimple_alloc_stat): Likewise.
19751 (gimple_build_omp_for): Likewise.
19752 (gimple_seq_alloc): Likewise.
19753 (gimple_copy): Likewise.
19754
19755 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
19756 (gsi_insert_after_without_update): Likewise.
19757
19758 * function.c (add_frame_space): Likewise.
19759 (insert_temp_slot_address): Likewise.
19760 (assign_stack_temp_for_type): Likewise.
19761 (allocate_struct_function): Likewise.
19762 (types_used_by_var_decl_insert): Likewise.
19763
19764 * except.c (init_eh_for_function): Likewise.
19765 (gen_eh_region): Likewise.
19766 (gen_eh_region_catch): Likewise.
19767 (gen_eh_landing_pad): Likewise.
19768 (add_call_site): Likewise.
19769
19770 * emit-rtl.c (get_mem_attrs): Likewise.
19771 (get_reg_attrs): Likewise.
19772 (start_sequence): Likewise.
19773 (init_emit): Likewise.
19774
19775 * dwarf2out.c (new_cfi): Likewise.
19776 (queue_reg_save): Likewise.
19777 (dwarf2out_frame_init): Likewise.
19778 (new_loc_descr): Likewise.
19779 (find_AT_string): Likewise.
19780 (new_die): Likewise.
19781 (add_var_loc_to_decl): Likewise.
19782 (clone_die): Likewise.
19783 (clone_as_declaration): Likewise.
19784 (break_out_comdat_types): Likewise.
19785 (new_loc_list): Likewise.
19786 (loc_descriptor): Likewise.
19787 (add_loc_descr_to_each): Likewise.
19788 (add_const_value_attribute): Likewise.
19789 (tree_add_const_value_attribute): Likewise.
19790 (add_comp_dir_attribute): Likewise.
19791 (add_name_and_src_coords_attributes): Likewise.
19792 (lookup_filename): Likewise.
19793 (store_vcall_insn): Likewise.
19794 (dwarf2out_init): Likewise.
19795
19796 * dbxout.c (dbxout_init): Likewise.
19797
19798 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19799
19800 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19801
19802 * config/score/score7.c (score7_output_external): Likewise.
19803
19804 * config/score/score3.c (score3_output_external): Likewise.
19805
19806 * config/s390/s390.c (s390_init_machine_status): Likewise.
19807
19808 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19809 (rs6000_init_machine_status): Likewise.
19810 (output_toc): Likewise.
19811
19812 * config/pa/pa.c (pa_init_machine_status): Likewise.
19813 (get_deferred_plabel): Likewise.
19814
19815 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19816
19817 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19818
19819 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19820
19821 * config/mep/mep.c (mep_init_machine_status): Likewise.
19822 (mep_note_pragma_flag): Likewise.
19823
19824 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19825
19826 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19827
19828 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19829
19830 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19831 (i386_pe_maybe_record_exported_symbol): Likewise.
19832
19833 * config/i386/i386.c (get_dllimport_decl): Likewise.
19834 (ix86_init_machine_status): Likewise.
19835 (assign_386_stack_local): Likewise.
19836
19837 * config/frv/frv.c (frv_init_machine_status): Likewise.
19838
19839 * config/darwin.c (machopic_indirection_name): Likewise.
19840
19841 * config/cris/cris.c (cris_init_machine_status): Likewise.
19842
19843 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19844
19845 * config/avr/avr.c (avr_init_machine_status): Likewise.
19846
19847 * config/arm/arm.c (arm_init_machine_status): Likewise.
19848
19849 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19850 (alpha_need_linkage): Likewise.
19851 (alpha_use_linkage): Likewise.
19852
19853 * cgraph.c (cgraph_allocate_node): Likewise.
19854 (cgraph_create_edge_1): Likewise.
19855 (cgraph_create_indirect_edge): Likewise.
19856 (cgraph_add_asm_node): Likewise.
19857
19858 * cfgrtl.c (init_rtl_bb_info): Likewise.
19859
19860 * cfgloop.c (alloc_loop): Likewise.
19861 (rescan_loop_exit): Likewise.
19862
19863 * cfg.c (init_flow): Likewise.
19864 (alloc_block): Likewise.
19865 (unchecked_make_edge): Likewise.
19866
19867 * c-parser.c (c_parse_init): Likewise.
19868 (c_parse_file): Likewise.
19869
19870 * c-decl.c (bind): Likewise.
19871 (record_inline_static): Likewise.
19872 (push_scope): Likewise.
19873 (make_label): Likewise.
19874 (lookup_label_for_goto): Likewise.
19875 (finish_struct): Likewise.
19876 (finish_enum): Likewise.
19877 (c_push_function_context): Likewise.
19878
19879 * bitmap.c (bitmap_element_allocate): Likewise.
19880 (bitmap_gc_alloc_stat): Likewise.
19881
19882 * alias.c (record_alias_subset): Likewise.
19883 (init_alias_analysis): Likewise.
19884
19885 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
19886
19887 * fold-const.c (fold_comparison): Remove redundant parenthesis.
19888 * tree-inline.c (expand_call_inline): Pass translated return value of
19889 cgraph_inline_failed_string to diagnostic function.
19890
19891 2010-06-08 Andrew Pinski <pinskia@gmail.com>
19892 Shujing Zhao <pearly.zhao@oracle.com>
19893
19894 PR c/37724
19895 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
19896 implicit bad conversions is initialization.
19897 (error_init): Use gmsgid instead of msgid for argument name and change
19898 the call for error.
19899 (pedwarn_init): Use gmsgid instead of msgid for argument name and
19900 change the call for pedwarn.
19901 (warning_init): Use gmsgid instead of msgid for argument name and
19902 change the call for warning.
19903
19904 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
19905
19906 * config/mips/mips-protos.h (mips_print_operand): Delete.
19907 (mips_print_operand_address): Delete.
19908 * config/mips/mips.h (mips_print_operand_punct): Delete.
19909 (PRINT_OPERAND): Delete.
19910 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19911 (PRINT_OPERAND_ADDRESS): Delete.
19912 * config/mips/mips.c (mips_print_operand_punct): Make static.
19913 (mips_print_operand_address): Make static.
19914 (mips_print_operand): Make static. Call
19915 mips_print_operand_punct_valid_p.
19916 (mips_print_operand_punct_valid_p): New function.
19917 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19918 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19919
19920 2010-06-07 Jan Hubicka <jh@suse.cz>
19921
19922 PR middle-end/44454
19923 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
19924 are allocated.
19925
19926 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
19927
19928 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
19929 name of RECORD.
19930
19931 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19932
19933 * doc/sourcebuild.texi (Effective-Target Keywords, Other
19934 attributes): Document gas.
19935
19936 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
19937
19938 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
19939 <TYPE_LEA>: Split instruction.
19940 <default>: Remove alternative 2 handling.
19941 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
19942 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
19943 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
19944
19945 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
19946 (ashift_zext lea splitter): Use DImode for multiplication.
19947
19948 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
19949 to generate addition.
19950
19951 2010-06-07 Joseph Myers <joseph@codesourcery.com>
19952
19953 * common.opt (fira-verbose): Use Var.
19954 (fpcc-struct-return): Use Init instead of VarExists.
19955 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
19956 toplev.c.
19957 * flags.h (flag_signed_char, flag_short_enums,
19958 flag_pcc_struct_return, flag_ira_verbose,
19959 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
19960 * toplev.c (flag_detailed_statistics, flag_signed_char,
19961 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
19962 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
19963 * toplev.h (flag_crossjumping, flag_if_conversion,
19964 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
19965 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
19966 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
19967 flag_cprop_registers, time_report, flag_ira_loop_pressure,
19968 flag_ira_coalesce, flag_ira_move_spills,
19969 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
19970
19971 2010-06-07 Jan Hubicka <jh@suse.cz>
19972
19973 * df-core.c (df_analyze_problem): Do verification after allocation.
19974
19975 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
19976 (df_lr_alloc): Initialize problem data; move bitmaps to
19977 lr_bitmaps obstack.
19978 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
19979 (df_lr_verify_solution_start): Do not initialize problem data;
19980 allocate bitmaps in lr_bitmaps.
19981 (df_lr_verify_solution_end): Do not free problem data.
19982
19983 2010-06-07 Jan Hubicka <jh@suse.cz>
19984
19985 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
19986 if caller is noreturn.
19987 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
19988 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
19989 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
19990 * ipa-pure-const.c (check_decl): Add IPA parameter.
19991 (state_from_flags): New function.
19992 (better_state, worse_state): New functions.
19993 (check_call): When in IPA mode, do not care about callees.
19994 (check_load, check_store): Update.
19995 (check_ipa_load, check_ipa_store): New.
19996 (check_stmt): When in IPA mode, use IPA checkers.
19997 (analyze_function): Use state_from_flags.
19998 (propagate): Check indirect edges and references.
19999
20000 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
20001
20002 PR rtl-optimization/44404
20003 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
20004 of count_occurrences to see if it's safe to modify mem_insn.
20005
20006 2010-06-07 Richard Guenther <rguenther@suse.de>
20007
20008 * gimplify.c (gimplify_cleanup_point_expr): For empty body
20009 and EH-only cleanup drop the cleanup instead of inserting it
20010 unconditionally.
20011
20012 2010-06-07 Ira Rosen <irar@il.ibm.com>
20013
20014 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
20015 documentation.
20016 * targhooks.c (default_builtin_vectorization_cost): New function.
20017 * targhooks.h (default_builtin_vectorization_cost): Declare.
20018 * target.h (enum vect_cost_for_stmt): Define.
20019 (builtin_vectorization_cost): Change argument and comment.
20020 * tree-vectorizer.h: Remove cost model macros.
20021 * tree-vect-loop.c: Include target.h.
20022 (vect_get_cost): New function.
20023 (vect_estimate_min_profitable_iters): Replace cost model macros with
20024 calls to vect_get_cost.
20025 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
20026 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
20027 default implementation.
20028 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
20029 calls to target hook builtin_vectorization_cost.
20030 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
20031 Likewise.
20032 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
20033 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
20034 implementation to return costs.
20035 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
20036 * config/spu/spu.h: Remove vectorizer cost model macros.
20037 * config/i386/i386.h: Likewise.
20038 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
20039 a call to target hook builtin_vectorization_cost.
20040
20041 2010-06-06 Sriraman Tallam <tmsriram@google.com>
20042
20043 PR target/44319
20044 * config/i386/i386.c (override_options): Turn zee pass on for level 2
20045 and above and defer till target is known.
20046 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
20047 turn off otherwise.
20048
20049 2010-05-25 Jan Hubicka <jh@suse.cz>
20050
20051 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
20052 (df_compact_blocks): Likewise.
20053 * df.h (struct df): Turn hardware_regs_used,
20054 regular_block_artificial_uses, eh_block_artificial_uses,
20055 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
20056 bitmap_head.
20057 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
20058 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
20059 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
20060 df_scan_blocks, df_insn_delete, df_insn_rescan,
20061 df_insn_rescan_debug_internal, df_insn_rescan_all,
20062 df_process_deferred_rescans, df_process_deferred_rescans,
20063 df_notes_rescan, df_get_call_refs, df_get_call_refs,
20064 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
20065 df_record_entry_block_defs, df_record_exit_block_uses,
20066 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
20067 df_scan_verify): Update.
20068
20069 2010-05-25 Dodji Seketeli <dodji@redhat.com>
20070
20071 PR c++/44188
20072 * c-common.c (is_typedef_decl): Move this definition ...
20073 * tree.c (is_typedef_decl): ... here.
20074 (typdef_variant_p): Move definition here from cp/tree.c.
20075 * c-common.h (is_typedef_decl): Move this declaration ...
20076 * tree.h (is_typedef_decl): ... here.
20077 (typedef_variant_p): Move declaration here from cp/cp-tree.h
20078 * dwarf2out.c (is_naming_typedef_decl): New function.
20079 (gen_tagged_type_die): Split out of ...
20080 (gen_type_die_with_usage): ... this function. When an anonymous
20081 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
20082 is emitted for the typedef.
20083 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
20084 anonymous tagged types.
20085
20086 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
20087
20088 PR c/20000
20089 * c-decl.c (grokdeclarator): Delete warning.
20090
20091 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
20092
20093 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
20094 newly built CALL_EXPR.
20095 * tree-profile.c (tree_profiling): Don't profile functions produced
20096 for built-in stuff.
20097
20098 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
20099
20100 PR bootstrap/44427
20101 PR bootstrap/44428
20102 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
20103 endianness-independent.
20104
20105 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
20106
20107 * c-common.c: Move to c-family/.
20108 * c-common.def: Likewise.
20109 * c-common.h: Likewise.
20110 * c-cppbuiltin.c: Likewise.
20111 * c-dump.c: Likewise.
20112 * c-format.c: Likewise.
20113 * c-format.h : Likewise.
20114 * c-gimplify.c: Likewise.
20115 * c-lex.c: Likewise.
20116 * c-omp.c: Likewise.
20117 * c.opt: Likewise.
20118 * c-opts.c: Likewise.
20119 * c-pch.c: Likewise.
20120 * c-ppoutput.c: Likewise.
20121 * c-pragma.c: Likewise.
20122 * c-pragma.h: Likewise.
20123 * c-pretty-print.c: Likewise.
20124 * c-pretty-print.h: Likewise.
20125 * c-semantics.c: Likewise.
20126 * stub-objc.c: Likewise.
20127
20128 * gengtype.c (get_file_langdir): Special-case files in c-family/.
20129 (get_output_file_with_visibility): Fix name for c-common.h.
20130 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
20131
20132 * c-tree.h: Update include path for moved files.
20133 * c-lang.c: Likewise.
20134 * c-lang.h: Likewise.
20135 * c-parser.c: Likewise.
20136 * c-convert.c: Likewise.
20137 * c-decl.c: Likewise.
20138 * c-objc-common.c: Likewise.
20139 * configure.ac: Make sure c-family/ exists in the build directory.
20140 * configure: Regenerate.
20141 * Makefile.in: Update paths for moved files. Regroup files per
20142 location and update dependencies. Move generated_files down after
20143 ALL_GTFILES_H.
20144
20145 * config/spu/spu-c.c: Update paths for moved files.
20146 * config/mep/mep-pragma.c: Likewise.
20147 * config/darwin-c.c: Likewise.
20148 * config/i386/msformat-c.c: Likewise.
20149 * config/i386/i386-c.c: Likewise.
20150 * config/avr/avr-c.c: Likewise.
20151 * config/sol2-c.c: Likewise.
20152 * config/ia64/ia64-c.c: Likewise.
20153 * config/rs6000/rs6000-c.c: Likewise.
20154 * config/arm/arm.c: Likewise.
20155 * config/arm/arm-c.c: Likewise.
20156 * config/h8300/h8300.c: Likewise.
20157 * config/v850/v850-c.c: Likewise.
20158
20159 * config/t-darwin: Fix dependencies for moved files.
20160 * config/t-sol2: Fix dependencies for moved files.
20161 * config/mep/t-mep: Fix dependencies for moved files.
20162 * config/ia64/t-ia64: Fix dependencies for moved files.
20163 * config/rs6000/t-rs6000: Fix dependencies for moved files.
20164 * config/v850/t-v850: Fix dependencies for moved files.
20165 * config/v850/t-v850e: Fix dependencies for moved files.
20166
20167 * config/m32c/m32c-pragma.c
20168
20169 * po/exgettext: Look in c-family/ also.
20170
20171 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
20172
20173 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
20174 (mark_control_dependent_edges_necessary): Call it instead of marking
20175 the last statement manually.
20176 (propagate_necessity): Likewise.
20177
20178 2010-06-05 Jan Hubicka <jh@suse.cz>
20179
20180 * basic-block.h (compute_dominance_frontiers): Updated.
20181 (compute_idf): Likewise.
20182
20183 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
20184 for dominance frontiers.
20185 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
20186 (insert_updated_phi_nodes_for): Likewise.
20187 (update_ssa): Likewise.
20188 * cfganal.c (compute_dominance_frontiers_1): Likewise.
20189 (compute_dominance_frontiers): Likewise.
20190 (compute_idf): Likewise.
20191 * df-problems.c (df_md_local_compute): Likewise.
20192
20193 2010-06-05 Anatoly Sokolov <aesok@post.ru>
20194
20195 * target.h (struct gcc_target): Add memory_move_cost field.
20196 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
20197 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
20198 * targhooks.c (default_memory_move_cost): New function.
20199 * targhooks.h (default_memory_move_cost): Declare function.
20200 * reload.h (memory_move_cost): Declare.
20201 (memory_move_secondary_cost): Change type of 'in' argument to bool.
20202 * reginfo.c (memory_move_cost): New function.
20203 (memory_move_secondary_cost): Change type of 'in' argument to bool.
20204 * ira.h (ira_memory_move_cost): Update comment.
20205 * ira.c (ira_memory_move_cost): Update comment.
20206 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
20207 with memory_move_cost.
20208 * postreload.c (reload_cse_simplify_set): (Ditto.).
20209 * reload1.c (choose_reload_regs): (Ditto.).
20210 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
20211 (MEMORY_MOVE_COST): Revise documentation.
20212
20213 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
20214 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
20215 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
20216 type of 'in' argument to bool.
20217 (TARGET_MEMORY_MOVE_COST): Define.
20218
20219 2010-06-05 Jan Hubicka <jh@suse.cz>
20220
20221 * ipa-pure-const.c (propagate): Fix typo in handling of functions
20222 that cannot return. Be more careful when merging the results with
20223 previously known ones.
20224
20225 2010-06-05 Matthias Klose <doko@ubuntu.com>
20226
20227 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
20228 function to add the -iplugindir option.
20229 (find_plugindir_spec_function): Add new declaration and function.
20230 (static_spec_func): Use it for "find-plugindir".
20231
20232 2010-06-05 Jakub Jelinek <jakub@redhat.com>
20233
20234 PR c++/44361
20235 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
20236 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
20237 statement expression.
20238
20239 2010-06-05 Jan Hubicka <jh@suse.cz>
20240
20241 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
20242 (df_rd_problem_data): Convert sparse_invalidated_by_call,
20243 dense_invalidated_by_call to bitmap head.
20244 (df_rd_alloc, df_rd_bb_local_compute_process_def,
20245 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
20246 df_rd_start_dump, df_lr_verify_transfer_functions,
20247 df_live_verify_transfer_functions, df_chain_create_bb,
20248 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
20249 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
20250 df_simulate_one_insn_forwards, df_md_alloc,
20251 df_md_bb_local_compute_process_def,
20252 df_md_bb_local_compute_process_def, df_md_local_compute,
20253 df_md_transfer_function df_md_free): Update.
20254
20255 2010-06-05 Joseph Myers <joseph@codesourcery.com>
20256
20257 PR c/44322
20258 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
20259 target type for ADDR_EXPR; require no changes to qualifiers except
20260 for function types.
20261 * c-tree.h (c_build_type_variant): Remove.
20262
20263 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
20264
20265 * genautomata.c (get_excl_set): Do work per element, not per char.
20266 (check_presence_pattern_sets): Similar.
20267 (check_absence_pattern_sets): Similar.
20268
20269 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
20270
20271 * genautomata.c (curr_state_pass_num): Delete.
20272 (min_issue_delay_pass_states): Delete.
20273 (min_issue_delay): Delete.
20274 (initiate_min_issue_delay_pass_states): Delete.
20275 (output_min_issue_delay_table): Compute min_issue_delay_vect
20276 using a breadth-first search variant.
20277 (output_tables): Don't call initiate_min_issue_delay_pass_states.
20278
20279 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
20280
20281 PR boostrap/44421
20282 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
20283 (df_byte_lr_bb_local_compute): Likewise.
20284
20285 2010-06-03 Jason Merrill <jason@redhat.com>
20286
20287 Implement noexcept operator (5.3.7)
20288 * c-common.c (c_common_reswords): Add noexcept.
20289 * c-common.h (enum rid): Add RID_NOEXCEPT.
20290
20291 2010-06-04 Joseph Myers <joseph@codesourcery.com>
20292
20293 * config/darwin-driver.c (darwin_default_min_version): Use
20294 GCC-specific formats in diagnostics.
20295 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
20296 diagnostics.
20297 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
20298 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
20299 eval_spec_function, handle_braces, process_brace_body, main,
20300 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
20301 getenv_spec_function, compare_version_strings,
20302 version_compare_spec_function): Use GCC-specific formats in
20303 diagnostics.
20304
20305 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20306
20307 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
20308 that operand 0 and operand 1 are equal.
20309 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
20310 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
20311 and operand 1 are equal.
20312 <default>: Ditto. Remove ??? comment.
20313 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
20314 and operand 1 are equal.
20315 <default>: Ditto. Remove ??? comment.
20316 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
20317 are equal.
20318 (*add<mode>_4) <default>: Ditto.
20319 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
20320
20321 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
20322
20323 * config/i386/i386-protos.h (ix86_print_operand): Declare.
20324 * config/i386/i386.c (ix86_print_operand): Make non-static.
20325 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
20326 * output.h (output_operand): Declare.
20327 * final.c (output_operand): Make non-static.
20328
20329 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
20330
20331 PR rtl-optimization/44013
20332 * sched-deps.c (add_dependence_list_and_free): Don't free lists
20333 when processing debug insns.
20334
20335 PR debug/41371
20336 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
20337 recursing. Check that recursion is bounded. Rename inner var
20338 to avoid hiding incoming argument.
20339
20340 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20341
20342 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
20343 operands[2] == 255.
20344 (*addqi_3): Ditto.
20345 (*addqi_4): Ditto.
20346 (*addqi_5): Ditto.
20347 (*addqi_ext_1_rex64): Ditto.
20348 (*addqi_ext_1): Ditto.
20349
20350 (*addqi_4): Check for incdec_operand in QImode.
20351
20352 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
20353 using SWI mode iterator.
20354 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
20355 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
20356 mode iterator.
20357 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
20358 using SWI mode iterator.
20359
20360 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
20361
20362 PR c/25880
20363 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
20364 * c-format.c (gcc_diag_flag_specs): Add hash.
20365 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
20366 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
20367 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
20368 pp_c_cv_qualifiers. Handle qualifiers spelling here.
20369 (pp_c_type_qualifier_list): Call the function above.
20370 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
20371 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
20372 (WARN_FOR_QUALIFIERS): New macro.
20373 (convert_for_assignment): Use it.
20374
20375 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
20376
20377 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
20378
20379 2010-06-04 Jan Hubicka <jh@suse.cz>
20380
20381 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
20382 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
20383 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
20384 DF_BYTE_LR_OUT): Update for embedded bitmaps.
20385 * fwprop.c (single_def_use_enter_block): Likewise.
20386 * ddg.c (create_ddg_dep_from_intra_loop_link,
20387 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
20388 * loop-iv.c (latch_dominating_def): Likewise.
20389 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
20390 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
20391 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
20392 df_rd_transfer_function, df_rd_top_dump,
20393 df_rd_bottom_dump): Update.
20394 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
20395 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
20396 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
20397 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
20398 df_lr_verify_solution_start, df_lr_verify_solution_end,
20399 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
20400 df_live_free_bb_info, df_live_alloc, df_live_reset,
20401 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
20402 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
20403 df_live_verify_solution_start, df_live_verify_solution_end,
20404 df_live_verify_transfer_functions, df_chain_create_bb,
20405 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
20406 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
20407 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
20408 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
20409 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
20410 df_byte_lr_transfer_function, df_byte_lr_top_dump,
20411 df_byte_lr_bottom_dump, df_create_unused_note,
20412 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
20413 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
20414 df_md_transfer_function, df_md_init, df_md_confluence_0,
20415 df_md_confluence_n,
20416 df_md_top_dump, df_md_bottom_dump): Update.
20417 (struct df_lr_problem_data): Embedd bitmap headers.
20418
20419 2010-06-04 Jan Hubicka <jh@suse.cz>
20420
20421 * dce.c (dce_process_block): Do not re-scan already marked
20422 instructions.
20423
20424 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
20425
20426 PR rtl-optimization/39871
20427 PR rtl-optimization/40615
20428 PR rtl-optimization/42500
20429 PR rtl-optimization/42502
20430 * ira.c (init_reg_equiv_memory_loc: New function.
20431 (ira): Call it twice.
20432 * reload.h (calculate_elim_costs_all_insns): Declare.
20433 * ira-costs.c: Include "reload.h".
20434 (regno_equiv_gains): New static variable.
20435 (init_costs): Allocate it.
20436 (finish_costs): Free it.
20437 (ira_costs): Call calculate_elim_costs_all_insns.
20438 (find_costs_and_classes): Take estimated elimination costs
20439 into account.
20440 (ira_adjust_equiv_reg_cost): New function.
20441 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
20442 * reload1.c (init_eliminable_invariants, free_reg_equiv,
20443 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
20444 (elim_bb): New static variable.
20445 (reload): Move code out of here into init_eliminable_invariants and
20446 free_reg_equiv. Call them.
20447 (calculate_elim_costs_all_insns): New function.
20448 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
20449 all callers changed. If FOR_COSTS is true, don't call alter_reg,
20450 but call note_reg_elim_costly if we turned a valid memory address
20451 into an invalid one.
20452 * Makefile.in (ira-costs.o): Depend on reload.h.
20453
20454 2010-06-04 Julian Brown <julian@codesourcery.com>
20455
20456 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
20457 for pool ranges.
20458
20459 2010-06-04 Richard Guenther <rguenther@suse.de>
20460
20461 PR lto/41584
20462 * cgraph.h (struct varpool_node): Add lto_file_data field.
20463 * lto-cgraph.c (input_varpool_node): Initialize it.
20464
20465 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20466
20467 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
20468 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
20469 predicate in "type" attribute calculation.
20470 (*addsi_1_zext): Ditto.
20471 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
20472 (*addsi_2_zext): Ditto.
20473 (*add<mode>_3): Ditto.
20474 (*addsi_3_zext): Ditto.
20475 (*add<mode>_5): Ditto.
20476
20477 2010-06-03 Jan Hubicka <jh@suse.cz>
20478
20479 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
20480 of bitmap_bit_p.
20481 * cfganal.c (compute_dominance_frontiers_1): Likewise.
20482
20483 2010-06-03 Jan Hubicka <jh@suse.cz>
20484
20485 * df-problems.c (df_create_unused_note, df_note_bb_compute):
20486 micro-optimize the checks when to add new note.
20487
20488 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
20489
20490 * final.c (output_asm_insn): Call
20491 targetm.asm_out.print_operand_punct_valid_p. Update comments.
20492 (output_operand): Call targetm.asm_out.print_operand. Update comments.
20493 (output_address): Call targetm.asm_out.print_operand_address.
20494 Update comments.
20495 * target.h (struct gcc_target): Add print_operand,
20496 print_operand_address, and print_operand_punct_valid_p fields.
20497 * targhooks.h (default_print_operand): Declare.
20498 (default_print_operand_address): Declare.
20499 (default_print_operand_punct_valid_p): Declare.
20500 * targhooks.c (default_print_operand): Define.
20501 (default_print_operand_address): Define.
20502 (default_print_operand_punct_valid_p): Define.
20503 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
20504 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
20505 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
20506 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
20507 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
20508 * vmsdbgout.c (addr_const_to_string): Update comment.
20509 * config/i386/i386.c (print_operand): Rename to...
20510 (ix86_print_operand): ...this. Make static.
20511 (print_operand_address): Rename to...
20512 (ix86_print_operand_address): ...this. Make static. Call
20513 ix86_print_operand instead of PRINT_OPERAND.
20514 (ix86_print_operand_punct_valid_p): New function.
20515 (TARGET_PRINT_OPERAND): Define.
20516 (TARGET_PRINT_OPERAND_ADDRESS): Define.
20517 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20518 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
20519 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20520 (PRINT_OPERAND): Delete.
20521 (PRINT_OPERAND_ADDRESS): Delete.
20522 * config/i386/i386-protos.h (print_operand): Delete prototype.
20523 (print_operand_address): Delete prototype.
20524
20525 2010-06-03 Richard Guenther <rguenther@suse.de>
20526
20527 PR tree-optimization/44403
20528 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20529 Preserve pointer qualifiers.
20530 (vect_create_data_ref_ptr): Likewise.
20531
20532 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
20533
20534 PR c++/44294
20535 * defaults.h (MAX_FIXED_MODE_SIZE): New.
20536
20537 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
20538
20539 2010-06-03 Jakub Jelinek <jakub@redhat.com>
20540
20541 PR debug/44375
20542 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
20543 return false if merging the bbs would lead to goto_locus
20544 location being lost from the IL.
20545
20546 2010-06-03 Jan Hubicka <jh@suse.cz>
20547 Jakub Jelinek <jakub@redhat.com>
20548
20549 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
20550 set->regs[i] is NULL or has just one entry.
20551
20552 2010-06-03 Jan Hubicka <jh@suse.cz>
20553
20554 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
20555 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
20556
20557 2010-06-03 Paul Brook <paul@codesourcery.com>
20558
20559 * config/arm/arm.c (FL_TUNE): Define.
20560 (arm_default_cpu, arm_cpu_select): Remove.
20561 (all_cores): Populate core field.
20562 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
20563 (arm_find_cpu): New function.
20564 (arm_handle_option): Lookup cpu/architecture names.
20565 (arm_override_options): Cleanup mcpu/march/mtune handling.
20566 (arm_file_start): Ditto.
20567
20568 2010-06-03 Alan Modra <amodra@gmail.com>
20569
20570 PR target/44169
20571 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
20572 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
20573 rtx to gen_load_toc_v4_PIC_1b. Tidy.
20574 (rs6000_emit_load_toc_table): Likewise.
20575
20576 2010-06-02 Jan Hubicka <jh@suse.cz>
20577
20578 * passes.c (init_optimization_passes): Put ipa reference
20579 after ipa pure-const.
20580
20581 2010-06-02 Jan Hubicka <jh@suse.cz>
20582
20583 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
20584 calls_read_all and calls_write_all.
20585 (get_reference_optimization_summary): Fix formatting.
20586 (is_proper_for_analysis): Check that decl is not readonly.
20587 (propagate_bits): Check CONST/PURE/noreturn flags.
20588 (ipa_init): Move all_module_statics to optimization_summary_obstack.
20589 (analyze_function): Ignore indirect edges.
20590 (copy_global_bitmap): For all module statics, do nothing.
20591 (generate_summary): Do not print calls_read_all/calls_write_all.
20592 (read_write_all_from_decl): Take node as argument; check
20593 cgraph_node_cannot_return.
20594 (propagate): Reorganize read_all/write_all computation;
20595 check indirect edges; check ecf flags; use all_module_statics
20596 in the results; do not free all_module_statics.
20597 (stream_out_bitmap): Handle all_module_statics.
20598 (ipa_reference_write_optimization_summary): Likewise; use
20599 varpool/cgraph encoders to get boundaries.
20600 (ipa_reference_read_optimization_summary): Read in all_module_statics;
20601 use it when possible.
20602
20603 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20604
20605 PR target/44218
20606 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
20607 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
20608
20609 * doc/extend.texi (powerpc builtins): Document vec_recip,
20610 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
20611
20612 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
20613 (rs6000_emit_swrsqrt): Ditto.
20614 (rs6000_emit_swdivsf): Delete.
20615 (rs6000_emit_swdivdf): Ditto.
20616 (rs6000_emit_swrsqrtsf): Ditto.
20617
20618 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
20619 describe the reciprocal estimate support for each type.
20620 (recip_options): Map -mrecip=<opt> into option bits.
20621 (gen_2arg_fn_t): New typedef for binary rtx gen function.
20622 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
20623 reciprocal estimate instructions.
20624 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
20625 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
20626 Set up rs6000_recip_bits based on the -mrecip* options. Print the
20627 cost information if -mdebug=cost or -mdebug=reg.
20628 (rs6000_override_options): Set -mrecip-precision for power6, and
20629 power7 machines. If -mvsx or -mdfp, enable various options that
20630 came in previous instruction set ISAs, unless the option was
20631 explicitly disabled by the command line option. Parse
20632 -mrecip=<opt> options.
20633 (rs6000_builtin_vectorized_function): Add support for vectorizing
20634 the reciprocal estimate builtins and expansions.
20635 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
20636 (bdesc_2arg): Add reciprocal estimate builtins.
20637 (bdesc_1arg): Add reciprocal square root estimate builtins.
20638 (rs6000_expand_builtin): Rewrite to use a switch statement,
20639 instead of multiple if/then/elses. Add reciprocal estimate builtins.
20640 (rs6000_init_builtins): Create declarations for reciprocal
20641 estimate builtins.
20642 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
20643 sized, prefer traditional floating point registers, if integer
20644 vector types, prefer altivec registers. Don't actually look at
20645 the memory address any more.
20646 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
20647 builtins.
20648 (rs6000_load_constant_and_splat): New helper function to load up
20649 the constant for reciprocal estimate instructions.
20650 (rs6000_emit_madd): New helper function for generating
20651 multiply/add type instructions, based on the current switches.
20652 (rs6000_emit_msub): Ditto.
20653 (rs6000_emit_mnsub): Ditto.
20654 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
20655 replace a divide with a reciprocal estimate and fixup, adding
20656 support for machines with high precision and vectors.
20657 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
20658 low precision machines.
20659 (rs6000_emit_swdiv): New common function to be called to replace a
20660 division with reciprocal estimate and fixup.
20661 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
20662 for double and vector types. Add support for high precision machines.
20663
20664 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
20665 the reciprocal estimate instructions can be generated.
20666 (TARGET_FRE): Ditto.
20667 (TARGET_FRSQRTES): Ditto.
20668 (TARGET_FRSQRTE): Ditto.
20669 (RS6000_RECIP_*): New macros for reciprocal estimate support.
20670
20671 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
20672 square root estimate on vectors.
20673 (re<mode>2): New insn for reciprocal division estimate on vectors.
20674
20675 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
20676 New builtin.
20677 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
20678 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
20679 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
20680 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
20681 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
20682 (RS6000_BUILTIN_RSQRT): Ditto.
20683 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
20684 floating point builtin.
20685
20686 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
20687 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
20688 __RECIP_PRECISION__ based on the command line switches.
20689 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
20690
20691 * config/rs6000/rs6000.opt (-mrecip): Document add support for
20692 replacing division instructions with reciprocal estimate and fixup.
20693 (-mrecip=<opt>): New option.
20694 (-mrecip-precision): Ditto.
20695
20696 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
20697 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
20698 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
20699 precision scalar.
20700
20701 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
20702 (UNSPEC_VREFP): Ditto.
20703 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
20704 conterparts with regard to support of -mno-fused-madd and -ffast-math.
20705 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
20706 reciprocal estimate instructions to be generated.
20707 (altivec_vrefp): Ditto.
20708
20709 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
20710 estimate support.
20711 (rreg): New mode attribute for reciprocal estimate support.
20712 (recip<mode>3): New insn for division using reciprocal estimate
20713 and fixup builtins.
20714 (divide define_split): New define_split to convert floating point
20715 division to use reciprocal estimate if the user used the
20716 appropriate options and the split is run when we can add new
20717 pseudo registers for the fixup.
20718 (rsqrt<mode>2): New insn for reciprocal square root support.
20719 (recipsf3): Move into recip<mode>3.
20720 (recipdf3): Ditto.
20721 (fres): Use TARGET_FRES.
20722 (rsqrtsf2): Move into rsqrt<mode>2.
20723 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
20724 (copysignsf3): Add support for VSX.
20725 (fred): Use TARGET_FRE.
20726 (fred_fpr): Ditto.
20727 (rsqrtdf_internal1): New function for frsqrte instruciton.
20728
20729 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
20730 (vec_rsqrt): Ditto.
20731
20732 2010-06-03 Richard Guenther <rguenther@suse.de>
20733
20734 PR middle-end/44291
20735 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
20736 (set_user_assembler_libfunc): Likewise.
20737
20738 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20739
20740 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
20741 defaults.h.
20742 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
20743 to defaults.h
20744 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
20745 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
20746 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
20747 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
20748 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
20749 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
20750 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
20751 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
20752 * defaults.h: Updated for above mentioned changes.
20753
20754 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
20755
20756 * c-common.c: Remove header include of tm_p.h.
20757 * Makefile.in (c-common.o): Remove TM_P_H dependency.
20758
20759 2010-06-02 Jakub Jelinek <jakub@redhat.com>
20760
20761 * tree.h (struct tree_decl_map): New type.
20762 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
20763 (tree_decl_map_hash): New prototype.
20764 (debug_expr_for_decl, value_expr_for_decl): Change into
20765 tree_decl_map hashtab from tree_map.
20766 (init_ttree): Adjust initialization.
20767 (tree_decl_map_hash): New function.
20768 (decl_debug_expr_lookup, decl_debug_expr_insert,
20769 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
20770
20771 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20772
20773 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
20774 linker emulations.
20775 * configure: Regenerate.
20776 * config.in: Regenerate.
20777
20778 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
20779 (X86_64_EMULATION): Define.
20780 (TARGET_LD_EMULATION): Use them.
20781
20782 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
20783 (SPARC64_EMULATION): Define.
20784 (LINK_ARCH_SPEC): Use them.
20785
20786 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
20787
20788 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
20789 smallest_mode_for_size for computing the precision types of new
20790 graphite IVs. Do not call lang_hooks.types.type_for_size.
20791
20792 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
20793
20794 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
20795 information.
20796 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
20797
20798 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
20799
20800 PR middle-end/44363
20801 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
20802 return false instead.
20803
20804 2010-06-02 Jan Hubicka <jh@suse.cz>
20805
20806 PR middle-end/44295
20807 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
20808 create new cgraph node to check callee.
20809
20810 2010-06-02 Richard Guenther <rguenther@suse.de>
20811
20812 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
20813
20814 2010-06-02 Richard Guenther <rguenther@suse.de>
20815
20816 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
20817 (lto_wrapper_cleanup): ... this. Do not exit.
20818 (fatal): Adjust. Exit here.
20819 (fatal_perror): Likewise.
20820 (fatal_signal): New function.
20821 (main): Set up signal handlers to cleanup temporary files.
20822 * Makefile.in (lto-wrapper.o): Adjust dependencies.
20823
20824 2010-06-02 Richard Guenther <rguenther@suse.de>
20825
20826 PR tree-optimization/44377
20827 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
20828
20829 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20830
20831 * config/s390/2097.md (z10_fhex): Remove insn reservation.
20832 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
20833 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
20834 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
20835 instruction.
20836 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
20837
20838 2010-06-02 Jan Hubicka <jh@suse.cz>
20839
20840 * bitmap.c (bitmap_descriptor): Add search_iter.
20841 (bitmap_find_bit): Increment it.
20842 (print_statistics): Print it.
20843
20844 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
20845
20846 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
20847 instead of gimple_build_call_vec. Delete unnecessary local variable.
20848
20849 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20850
20851 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
20852 change from yesterday.
20853
20854 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20855
20856 * c-ada-spec.c: Clean up redundant includes.
20857
20858 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
20859
20860 * gimplify.c: Do not include except.h and optabs.h.
20861 (gimplify_body): Do not initialize RTL profiling.
20862 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
20863 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
20864 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
20865 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
20866 langhooks.h.
20867
20868 * tree-pretty-print.h: Include pretty-print.h.
20869 * gimple-pretty-print.h: Include pretty-print.h.
20870
20871 * tree-pretty-print.c: Do not include diagnostic.h.
20872 * tree-vrp.c: Likewise.
20873 * tree-tailcall.c: Likewise
20874 * tree-scalar-evolution.c: Likewise
20875 * tree-ssa-dse.c: Likewise
20876 * tree-chrec.c: Likewise
20877 * tree-ssa-sccvn.c: Likewise
20878 * tree-ssa-copyrename.c: Likewise
20879 * tree-nomudflap.c: Likewise
20880 * tree-call-cdce.c: Likewise
20881 * tree-stdarg.c: Likewise
20882 * tree-ssa-math-opts.c: Likewise
20883 * tree-nrv.c: Likewise
20884 * tree-ssa-sink.c: Likewise
20885 * tree-browser.c: Likewise
20886 * tree-ssa-loop-ivcanon.c: Likewise
20887 * tree-ssa-loop.c: Likewise
20888 * tree-parloops.c: Likewise
20889 * tree-ssa-address.c: Likewise
20890 * tree-ssa-ifcombine.c: Likewise
20891 * tree-if-conv.c: Likewise
20892 * tree-data-ref.c: Likewise
20893 * tree-affine.c: Likewise
20894 * tree-ssa-phiopt.c: Likewise
20895 * tree-ssa-coalesce.c: Likewise
20896 * tree-ssa-pre.c: Likewise
20897 * tree-ssa-live.c: Likewise
20898 * tree-predcom.c: Likewise
20899 * tree-ssa-forwprop.c: Likewise
20900 * tree-ssa-dce.c: Likewise
20901 * tree-ssa-ter.c: Likewise
20902 * tree-ssa-loop-prefetch.c: Likewise
20903 * tree-optimize.c: Likewise
20904 * tree-ssa-phiprop.c: Likewise
20905 * tree-object-size.c: Likewise
20906 * tree-outof-ssa.c: Likewise
20907 * tree-ssa-structalias.c: Likewise
20908 * tree-switch-conversion.c: Likewise
20909 * tree-ssa-reassoc.c: Likewise
20910 * tree-ssa-operands.c: Likewise
20911 * tree-vectorizer.c: Likewise
20912 * tree-vect-data-refs.c: Likewise
20913 * tree-vect-generic.c: Likewise
20914 * tree-vect-stmts.c: Likewise
20915 * tree-vect-patterns.c: Likewise
20916 * tree-vect-slp.c: Likewise
20917 * tree-vect-loop.c: Likewise
20918 * tree-ssa-loop-ivopts.c: Likewise
20919 * tree-ssa-loop-im.c: Likewise
20920 * tree-ssa-loop-niter.c: Likewise
20921 * tree-ssa-loop-unswitch.c: Likewise
20922 * tree-ssa-loop-manip.c: Likewise
20923 * tree-ssa-loop-ch.c: Likewise
20924 * tree-dump.c: Likewise
20925 * tree-complex.c: Likewise
20926
20927 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
20928 * tree-ssa-uninit.c: Likewise
20929 * tree-ssa-threadupdate.c: Likewise
20930 * tree-ssa-uncprop.c: Likewise
20931 * tree-ssa-ccp.c: Likewise
20932 * tree-ssa-dom.c: Likewise
20933 * tree-ssa-propagate.c: Likewise
20934 * tree-ssa-alias.c: Likewise
20935 * tree-dfa.c: Likewise
20936 * tree-cfgcleanup.c: Likewise
20937 * tree-sra.c: Likewise
20938 * tree-ssa-copy.c: Likewise
20939 * tree-ssa.c: Likewise
20940 * tree-profile.c: Likewise
20941 * tree-cfg.c: Likewise
20942 * tree-ssa-threadedge.c: Likewise
20943 * tree-vect-loop-manip.c: Likewise
20944
20945 * tree-inline.c: Do not include diagnostic.h and expr.h.
20946 Include rtl.h.
20947 (copy_decl_for_dup_finish): Do not use NULL_RTX.
20948
20949 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
20950 * tree-loop-distribution.c: Likewise.
20951
20952 2010-06-01 Jan Hubicka <jh@suse.cz>
20953
20954 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
20955
20956 2010-06-01 Jan Hubicka <jh@suse.cz>
20957
20958 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
20959 remove return value.
20960 (split_bbs_on_noreturn_calls) .... here.
20961 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
20962 * tree-flow.h (fixup_noreturn_call): New.
20963
20964 2010-06-01 Jan Hubicka <jh@suse.cz>
20965
20966 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
20967
20968 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
20969
20970 * tree.h (build_nt_call_list): Delete.
20971 * tree.c (build_nt_call_list): Delete.
20972
20973 2010-06-01 Jan Hubicka <jh@suse.cz>
20974
20975 * fwprop.c: Make emit-rtl.h include last.
20976 * rtlanal.c: Include emit-rtl.h.
20977 * genautomata.c: Output emit-rtl include into insn-automata.c
20978 * df-scan.c: Include emit-rtl.h.
20979 * haifa-sched.c: Indlude emit-rtl.h.
20980 * mode-switching.c: Indlude emit-rtl.h.
20981 * graph.c: Indlude emit-rtl.h.
20982 * sel-sched.c: Include emit-rtl.h.
20983 * sel-sched-ir.c: Include emit-rtl.h.
20984 * ira-build.c: Include emit-rtl.h.
20985 * emit-rtl.c (first_insn, last_insn): Remove defines.
20986 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
20987 Move to emit-rtl.h.
20988 (set_new_first_and_last_insn, get_last_insn_anywhere,
20989 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
20990 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
20991 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
20992 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
20993 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
20994 Use accessor functions.
20995 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
20996 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
20997 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
20998 mem_expr_equal_p): Move here from rtl.h.
20999 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
21000 Move here from emit-rtl.c; make inline.
21001 * cfglayout.h: Include emit-rtl.h.
21002 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21003 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21004 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21005 mem_expr_equal_p, get_insns, set_first-insn,
21006 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
21007 * reg-stack.c: Include emit-rtl.h.
21008 * dce.c: Likewise.
21009
21010 2010-06-01 Jan Hubicka <jh@suse.cz>
21011
21012 * cgraph.h (tree_function_versioning): Update prototype.
21013 (cgraph_function_versioning): Update prototype.
21014 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
21015 bitmap.
21016 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
21017 (cgraph_materialize_clone, save_inline_function_body): Update use of
21018 tree_function_versioning.
21019 * tree-inline.c (copy_bb): Look for previous copied block to link
21020 after; fix debug output.
21021 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
21022 (copy_body): Likewise.
21023 (expand_call_inline): Update use of copy_body.
21024 (tree_function_versioning): Update use of copy body; accept
21025 blocks_to_copy and new_entry.
21026
21027 2010-06-01 Jan Hubicka <jh@suse.cz>
21028
21029 * gegenrtl.c: Remove unnecesary prototypes.
21030 (gendecl): Remove.
21031 (gendef): Produce static inline.
21032 (gencode): Remove.
21033 (main): Do not decode parameters; generate header only.
21034 * Makefile.in (genrtl.c): Remove.
21035
21036 2010-06-01 Jan Hubicka <jh@suse.cz>
21037
21038 * tree-switch-conversion.c (build_one_array): Make it readonly.
21039
21040 2010-06-01 Richard Guenther <rguenther@suse.de>
21041
21042 * optabs.c (init_optabs): Guard all accesses to reinit.
21043 * ipa-pure-const.c (propagate): Fix another typo.
21044 * opts.c (common_handle_option): Split assignment to bool.
21045 * c-opts.c (c_common_handle_option): Likewise.
21046
21047 2010-06-01 Arnaud Charlet <charlet@adacore.com>
21048 Matthew Gingell <gingell@adacore.com>
21049
21050 * doc/invoke.texi: Mention -fdump-ada-spec.
21051 * tree-dump.c (dump_files): Add ada-spec.
21052 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
21053 * tree-pass.h (tree_dump_index): Add TDI_ada.
21054 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
21055 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
21056 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
21057 * c-decl.c: Include c-ada-spec.h.
21058 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
21059 functions.
21060 (c_write_global_declarations): Add handling of -fdump-ada-spec.
21061 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
21062 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
21063 * c-ada-spec.h, c-ada-spec.c: New files.
21064
21065 2010-06-01 Richard Guenther <rguenther@suse.de>
21066
21067 PR lto/43853
21068 * ipa-pure-const.c (get_function_state): Hand back varying state
21069 if we do not have one.
21070 (has_function_state): New function.
21071 (duplicate_node_data): Adjust.
21072 (remove_node_data): Likewise.
21073 (pure_const_write_summary): Likewise.
21074 (propagate): Likewise. Fix typo.
21075
21076 2010-06-01 Jan Hubicka <jh@suse.cz>
21077
21078 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
21079 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
21080 (execute_all_ipa_transforms): Do not play with the states.
21081
21082 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
21083
21084 * config/arm/t-linux-androideabi: New.
21085 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
21086
21087 2010-06-01 Jan Hubicka <jh@suse.cz>
21088
21089 * tree-inline.c (estimate_num_insns): For stdarg functions look
21090 into call statement to count cost of argument passing.
21091
21092 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
21093
21094 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
21095 argument for fprintf.
21096 (ix86_output_addr_diff_elt): Likewise.
21097 (x86_function_profiler): Likewise.
21098 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
21099 (LPREFIX): Likewise.
21100 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
21101
21102 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21103
21104 PR target/44338
21105 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
21106 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
21107 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
21108 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
21109 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
21110 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
21111 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
21112 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
21113 TARGET_FUSED_MADD.
21114
21115 2010-05-31 Jan Hubicka <jh@suse.cz>
21116
21117 * tree.h (tree_range_check_failed): Declare noreturn.
21118
21119 2010-05-31 Jan Hubicka <jh@suse.cz>
21120
21121 * gimple.c (gimple_call_builtin_p): New function.
21122 * gimple.h (gimple_call_builtin_p): Declare.
21123 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
21124 to exit.
21125 (execute_warn_function_return): BUILT_IN_RETURN is return.
21126 (split_critical_edges): Return edges are not critical.
21127 (is_ctrl_altering_stmt): Builtin_in_return is altering.
21128 (gimple_verify_flow_info): Handle built_in_return.
21129 (execute_warn_function_return): Handle built_in_return.
21130 * ipa-pure-const.c (check_call): Ignore builtin_return.
21131
21132 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21133
21134 PR middle-end/44337
21135 * expr.c (expand_assignment): Don't store anything for out-of-bounds
21136 array accesses with non-MEM.
21137
21138 PR tree-optimization/44182
21139 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
21140 newly needs to end a bb is followed by debug stmts, instead return
21141 true from the function at the end.
21142 (maybe_move_debug_stmts_to_successors): New function.
21143 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
21144
21145 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
21146
21147 PR target/44161
21148 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
21149
21150 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
21151
21152 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
21153 for nested functions in non-optimized compilation.
21154
21155 2010-05-31 Richard Guenther <rguenther@suse.de>
21156
21157 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
21158
21159 2010-05-30 Jan Hubicka <jh@suse.cz>
21160
21161 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
21162
21163 2010-05-30 Richard Guenther <rguenther@suse.de>
21164
21165 PR lto/42975
21166 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
21167 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
21168 no longer needed.
21169
21170 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
21171
21172 * config/darwin.c (output_objc_section_asm_op): Add comment.
21173 (name_needs_quotes): Add '_' to list of valid comment chars.
21174 (machopic_output_function_base_name): Remove unneeded quotes.
21175 (darwin_encode_section_info): Adjust asm whitespace.
21176 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
21177 (ASM_OUTPUT_LOCAL): Ditto.
21178 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
21179 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
21180 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
21181
21182 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
21183
21184 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
21185 RS6000_OUTPUT_BASENAME unconditionally.
21186 (rs6000_output_function_epilogue): Likewise.
21187
21188 2010-05-30 Jan Hubicka <jh@suse.cz>
21189
21190 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
21191 nodes.
21192
21193 2010-05-30 Richard Guenther <rguenther@suse.de>
21194
21195 * tree-cfg.c (verify_gimple_assign_single): Implement
21196 verification for COND_EXPR rhs.
21197
21198 2010-05-30 Jan Hubicka <jh@suse.cz>
21199
21200 * cgraph.h (cgraph_dump_file): Declare.
21201 * cgraphunit.c (cgraph_dump_file): Export.
21202 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
21203
21204 2010-05-30 Jan Hubicka <jh@suse.cz>
21205
21206 * dwarf2out.c (reference_to_unused,
21207 premark_types_used_by_global_vars_helper): Avoid creation of new
21208 varpool nodes.
21209
21210 2010-05-30 Jan Hubicka <jh@suse.cz>
21211
21212 * cgraph.h (cgraph_node_cannot_return,
21213 cgraph_edge_cannot_lead_to_return): New functions.
21214 * cgraph.c (cgraph_node_cannot_return,
21215 cgraph_edge_cannot_lead_to_return): Use them.
21216 * ipa-pure-const.c (pure_const_names): New static var.
21217 (check_call): Handle calls not leading to return.
21218 (pure_const_read_summary): Dump info read.
21219 (propagate): Dump info about propagation process; ignore side effects
21220 of functions not leading to exit; fix handling of pure functions.
21221
21222 2010-05-30 Jan Hubicka <jh@suse.cz>
21223
21224 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
21225 for tail call epilogues.
21226
21227 2010-05-30 Jan Hubicka <jh@suse.cz>
21228
21229 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
21230 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
21231 dump files.
21232
21233 2010-05-29 Jan Hubicka <jh@suse.cz>
21234
21235 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
21236 node; remove references in node we no longer keep in cgrpah but need
21237 body of.
21238
21239 2010-05-29 Jan Hubicka <jh@suse.cz>
21240
21241 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
21242
21243 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21244
21245 PR target/44165
21246 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
21247
21248 2010-05-29 Jan Hubicka <jh@suse.cz>
21249
21250 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
21251 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
21252 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
21253 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
21254 debug_names_replaced_by, debug_update_ssa): Likewise.
21255 * sbitmap.c (debug_sbitmap): Likewise.
21256 * genrecog.c (debug_decision, debug_decision_list): Likewise.
21257 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
21258 debug_tree_chain): Likewise.
21259 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
21260 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
21261 * optabs.c (debug_optab_libfuncs): Likewise.
21262 (verify_loop_closed_ssa): Likewise.
21263 * value-prof.c (verify_histograms): Likewise.
21264 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
21265 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
21266 * cfghooks.c (verify_flow_info): Likewise.
21267 * fold-const.c (debug_fold_checksum): Likewise.
21268 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
21269 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
21270 Likewise.
21271 * omega.c (debug_omega_problem): Likewise.
21272 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
21273 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
21274 * dominance.c (verify_dominators, debug_dominance_info,
21275 debug_dominance_tree): Likewise.
21276 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
21277 * df_regno_debug, df_ref_debug,
21278 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
21279 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
21280 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
21281 * sel-sched.c (debug_state): Likewise.
21282 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
21283 Likewise.
21284 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
21285 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
21286 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
21287 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
21288 Likewise.
21289 * c-pretty-print.c (debug_c_tree): Likewise.
21290 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
21291 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
21292 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
21293 * ebitmap.c (debug_ebitmap): Likewise.
21294 * function.c (debug_find_var_in_block_tree): Likewise.
21295 * print-rtl.c (debug_rtx): Likewise.
21296 (debug_rtx_count): Likewise.
21297 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
21298 * stor-layout.c (debug_rli): Likewise.
21299 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
21300 * tree-data-ref.c (debug_data_references,
21301 debug_data_dependence_relations, debug_data_reference,
21302 debug_data_dependence_relation, debug_rdg_vertex,
21303 debug_rdg_component, debug_rdg): Likewise.
21304 * tree-affine.c (debug_aff): Likewise.
21305 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
21306 Likewise.
21307 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
21308 * emit-rtl.c (verify_rtl_sharing): Likewise.
21309 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
21310 debug_value_expressions): Likewise.
21311 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
21312 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
21313 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
21314 * cfglayout.c (verify_insn_chain): Likewise.
21315 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
21316 debug_clast_stmt, debug_generated_program): Likewise.
21317 * ggc-page.c (debug_print_page_list): Likewise.
21318 * tree-ssa-ter.c (debug_ter): Likewise.
21319 * graphite-dependences.c (debug_pddr): Likewise.
21320 * sched-deps.c (debug_ds): Likewise.
21321 * tree-ssa.c (verify_ssa): Likewise.
21322 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
21323 debug_scattering_functions, debug_iteration_domains, debug_pdr,
21324 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
21325 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
21326 * tree-inline.c (debug_find_tree): Likewise.
21327 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
21328 debug_ppl_powerset_matrix): Likewise.
21329 * var-tracking.c (debug_dv): Likewise.
21330 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
21331 * cfgloop.c (verify_loop_structure): Likewise.
21332 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
21333 * c-common.c (verify_sequence_points): Likewise.
21334 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
21335 debug_candidates, debug_rgn_dependencies): Likewise.
21336 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
21337 * debug_constraint_graph, debug_solution_for_var,
21338 debug_sa_points_to_info): Likewise.
21339 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
21340 Likewie.
21341 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
21342 debug_loops, debug_loop, debug_loop_num): Likewise.
21343 * passes.c (debug_pass): Likewise.
21344 (dump_properties): Likewise; add cfglayout property.
21345 (debug_properties): Likewise.
21346 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
21347 * varpool.c (debug_varpool): Likewise.
21348 * regcprop.c (debug_value_data): Likewise.
21349 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
21350 debug_immediate_uses_for): Likewise.
21351
21352 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
21353
21354 PR bootstrap/44315
21355 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
21356 Filter out insn-flags.h.
21357
21358 2010-05-29 Jan Hubicka <jh@suse.cz>
21359
21360 * cgraph.h (struct varpool_node_set_def,
21361 struct cgraph_node_set_def): Remove unused AUX pointer.
21362 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
21363 VEC_empty macro.
21364
21365 2010-05-29 Jan Hubicka <jh@suse.cz>
21366
21367 PR middle-end/44324
21368 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
21369
21370 2010-05-29 Richard Guenther <rguenther@suse.de>
21371
21372 * lto-streamer.c (cached_bp): New global variable.
21373 (bitpack_create): Return the cached bitpack, if available.
21374 (bitpack_delete): Clear and cache the bitpack, if appropriate.
21375 (bp_pack_value): Remove redundant asserts.
21376
21377 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
21378
21379 PR middle-end/44306
21380 * tree-if-conv.c (is_true_predicate): New.
21381 (is_predicated): Use is_true_predicate.
21382 (add_to_predicate_list): Same. Do not use unshare_expr.
21383 (add_to_dst_predicate_list): Same.
21384
21385 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
21386
21387 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
21388 field on edges.
21389 (predicate_bbs): Same.
21390 (clean_predicate_lists): Same.
21391 (find_phi_replacement_condition): Do not AND the predicate from
21392 edge->aux.
21393
21394 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
21395
21396 PR bootstrap/44315
21397 * Makefile.in (build/gencondmd.o): Add a missing `\'.
21398
21399 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21400
21401 PR target/44261
21402 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
21403 (negdf2): Adjust expander pattern and use negdf2_slow.
21404 (negsf2): Likewise.
21405
21406 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
21407
21408 * basic-block.h (struct control_flow_graph): Move last_label_uid field
21409 up.
21410 * df.h (struct df_base_ref): Move regno field up.
21411 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
21412 * expr.h (struct separate_ops): Move location field up.
21413 * optabs.h (struct optab_d): Move libcall_basename field down.
21414 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
21415 * config/i386/i386.h (struct machine_function): Convert call_abi field
21416 into a bitfield. Move cfa field to the end of the structure.
21417
21418 2010-05-29 Jan Hubicka <jh@suse.cz>
21419
21420 * varpool.c (varpool_get_node): Fix lookup.
21421
21422 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21423
21424 * config/spu/spu-protos.h: Do not include rtl.h. Protect
21425 RTL specific prototypes with #ifdef RTX_CODE.
21426 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
21427 * config/spu/t-spu-elf: Fix dependencies.
21428
21429 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
21430
21431 2010-05-29 Mike Stump <mikestump@comcast.net>
21432
21433 PR bootstrap/44315
21434 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
21435 TM_H when building to avoid dependency loops.
21436
21437 2010-05-29 Jan Hubicka <jh@suse.cz>
21438
21439 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
21440 refs and body; not the whole node for masters of materialized clones.
21441
21442 2010-05-29 Mike Stump <mikestump@comcast.net>
21443
21444 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
21445
21446 2010-05-29 Jan Hubicka <jh@suse.cz>
21447
21448 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
21449 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
21450 use of clone_function_name.
21451 * cgraph.h (cgraph_create_virtual_clone,
21452 cgraph_function_versioning): update prototypes.
21453 (clone_function_name): Declare.
21454 * ipa-cp.c (ipcp_insert_stage): Update call of
21455 cgraph_create_virtual_clone.
21456 * omp-low.c (create_omp_child_function_name): Use
21457 cgraph_create_virtual_clone.
21458 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
21459 (cgraph_function_versioning): Take SUFFIX argument; produce new name
21460 and make decl local.
21461
21462 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21463
21464 * vec.h: Include statistics.h
21465 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
21466 with VEC_H.
21467
21468 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21469
21470 * c-lex.c: Do not include c-tree.h.
21471 * c-pretty-print.c: Likewise.
21472 * c-opts.c: Likewise.
21473 * c-gimplify.c: Likewise.
21474 * c-common.c: Likewise.
21475 * c-dump.c: Likewise. Include c-common.h.
21476
21477 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21478
21479 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
21480 before including diagnostic-core.h.
21481 (c_cpp_error): New prototype moved from c-tree.h.
21482 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
21483 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
21484 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
21485 (c_cpp_error): Prototype moved to c-common.h.
21486 * Makefile.in: Update dependency for C_COMMON_H.
21487
21488 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21489
21490 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
21491 * c-common.c (c_register_addr_space): Remove here.
21492 * c-decl.c (c_register_addr_space): Re-add here.
21493
21494 2010-05-28 Mike Stump <mikestump@comcast.net>
21495
21496 * config/darwin-c.c: Remove c-tree.h include.
21497
21498 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21499
21500 * gcc.c: Include diagnostic.h.
21501 (error_count): Remove. All users changed to use errorcount.
21502 (programname): Remove. All users changed to use progname.
21503 (fancy_abort, internal_error, fatal_error, error, warning, inform,
21504 fnotice): Remove.
21505 (execute): Don't include "Internal error" and bug reporting
21506 information in argument of internal_error call.
21507 (process_command): Don't increment error_count after calling
21508 perror_with_name.
21509 (input_filename): Rename to gcc_input_filename. All users
21510 changed.
21511 (main): Call diagnostic_initialize. Register delete_temp_files
21512 with atexit. Use seen_error to test for errors.
21513 * gcc.h: Include diagnostic-core.h.
21514 (fatal_error, error, warning): Remove.
21515 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
21516 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
21517 (gcc.o): Update dependencies.
21518
21519 2010-05-28 Jeff Law <law@redhat.com>
21520
21521 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
21522 functions.
21523 * ira.h (ira_bad_reload_regno): Declare
21524 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
21525
21526 * ira-color.c (update_curr_costs): Free updated hard reg costs.
21527 (ira_reassign_conflict_allocnos): Remove bogus asserts.
21528 (allocno_reload_assign): Likewise.
21529
21530 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
21531
21532 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
21533 build1_stat.
21534
21535 2010-05-28 Richard Guenther <rguenther@suse.de>
21536
21537 PR lto/44312
21538 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
21539 Stream fixed-point constants mode.
21540 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
21541 and TYPE_PRECISION.
21542 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
21543 Stream fixed-point constants mode.
21544 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
21545 and TYPE_PRECISION.
21546
21547 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21548
21549 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
21550 only place it was called from.
21551 (number_of_latch_executions): Do not return chrec_dont_know when the
21552 may_be_zero is a runtime condition: instead, return a COND_EXPR
21553 including the may_be_zero condition.
21554 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
21555 of nb_iterations.
21556 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
21557 COND_EXPRs.
21558
21559 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21560
21561 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
21562 generate COND_EXPRs for degenerate_phi_result.
21563
21564 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21565
21566 PR middle-end/44293
21567 * tree-if-conv.c (if_convertible_loop_p): Check the
21568 if-convertibility of phi nodes in non predicated BBs.
21569
21570 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21571
21572 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
21573
21574 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21575
21576 PR driver/15303
21577 * gcc.c (inform, warning, inform): New functions.
21578 (fatal_ice): Rename to internal_error; change cmsgid parameter to
21579 gmsgid. All callers changed.
21580 (notice): Rename to fnotice; add parameter fp. All callers changed.
21581 (fatal_error): Rename to fatal_signal. All users changed.
21582 (fatal): Rename to fatal_error; change cmsgid parameter to
21583 gmsgid. All callers changed.
21584 (process_command): Use warning instead of error for warnings.
21585 (end_going_arg): Don't use _() around argument of error.
21586 (do_spec_1): Use inform for message from %n specs. Use warning
21587 instead of error for warnings.
21588 (main): Use inform for comparison messages. Use warning for
21589 message about unused linker input.
21590 (error): Increment error_count. Print "error: ".
21591 * gcc.h (fatal): Change to fatal_error.
21592 (warning): Declare.
21593 * config/darwin-driver.c (darwin_default_min_version): Use warning
21594 instead of fprintf for warnings.
21595 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
21596
21597 2010-05-28 Julian Brown <julian@codesourcery.com>
21598
21599 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
21600 (*thumb2_addsi3_compare0_scratch): New.
21601 * config/arm/constraints.md (Pv): New.
21602 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
21603 for ARM mode only.
21604 (*addsi3_compare0_scratch): Likewise.
21605
21606 2010-05-28 Jan Hubicka <jh@suse.cz>
21607
21608 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
21609 check.
21610 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
21611 only on local statics.
21612
21613 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
21614
21615 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
21616
21617 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
21618
21619 PR bootstrap/44314
21620 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
21621 (OPTION_GLIBC): Define.
21622
21623 2010-05-28 Jakub Jelinek <jakub@redhat.com>
21624
21625 PR debug/41048
21626 * dwarf2out.c (double_int_type_size_in_bits): New function.
21627 (round_up_to_align): Change first argument and return value to
21628 double_int.
21629 (field_byte_offset): Work internally on double_ints.
21630
21631 PR target/43636
21632 * builtins.c (expand_movstr): Use a temporary pseudo instead
21633 of target even when target is not NULL and not const0_rtx, but
21634 fails movstr predicate.
21635 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
21636
21637 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21638
21639 * final.c (rest_of_clean_state): Use %m in errors instead of
21640 strerror (errno).
21641 * gengtype.c (read_input_list, close_output_files): Use xstrerror
21642 instead of strerror.
21643 * toplev.c (process_options): Use %m in errors instead of strerror
21644 (errno).
21645 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
21646 (errno).
21647
21648 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
21649
21650 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
21651 (ix86_canonical_va_list_type): Make static. Add declaration.
21652 (ix86_enum_va_list): Make static. Reindent.
21653 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
21654 (ix86_canonical_va_list_type): Ditto.
21655 (ix86_enum_va_list): Ditto.
21656
21657 2010-05-28 Richard Guenther <rguenther@suse.de>
21658
21659 * lto-wrapper.c (run_gcc): With -save-temps generate a
21660 user-visible ltrans filename. Fixup ltrans unit numbering.
21661
21662 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
21663
21664 * c-common.c (c_common_nodes_and_builtins): Replace use
21665 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
21666 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
21667 to ix86_enum_va_list.
21668 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
21669 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
21670 (TARGET_ENUM_VA_LIST_P): Add hook description.
21671 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
21672 * target.h (gcc_target): Add enum_va_list hook.
21673
21674 PR bootstrap/44299
21675 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
21676 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
21677 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
21678
21679 2010-05-28 Alan Modra <amodra@gmail.com>
21680
21681 PR target/44266
21682 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
21683 emit_library_call machinery to set up __tls_get_addr calls.
21684
21685 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21686
21687 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
21688
21689 2010-05-28 Dodji Seketeli <dodji@redhat.com>
21690
21691 Revert fix for PR c++/44188
21692 * c-common.c (is_typedef_decl): Revert the moving of this
21693 definition ...
21694 * tree.c (is_typedef_decl): ... here.
21695 (typdef_variant_p): Revert the moving of this definition
21696 here from cp/tree.c.
21697 * c-common.h (is_typedef_decl): Revert the moving of this
21698 declaration ...
21699 * tree.h (is_typedef_decl): ... here.
21700 (typedef_variant_p): Revert the moving of this declaration here
21701 from cp/cp-tree.h
21702 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
21703 (gen_tagged_type_die): Revert the splitting out of ...
21704 (gen_type_die_with_usage): ... this function. Revert the anonymous
21705 tagged type handling.
21706 (gen_typedef_die): Revert emitting DW_TAG_typedef for
21707 typedefs naming anonymous tagged types.
21708
21709 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
21710
21711 * config/rs6000/rs6000-modes.def (PSImode): Delete.
21712
21713 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
21714
21715 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
21716 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
21717 throughout.
21718 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
21719 "xer" to "ca".
21720 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
21721 XER_REGS to CA_REGS throughout.
21722 * config/rs6000/rs6000.h: Same.
21723 (ADDITIONAL_REGISTER_NAMES): Add "xer".
21724 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
21725 that mode_iterator "P" is the size for arithmetic carries as well.
21726 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
21727
21728 2010-05-28 Jakub Jelinek <jakub@redhat.com>
21729
21730 PR bootstrap/44255
21731 * combine.c (struct rtx_subst_pair): Define unconditionally.
21732 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
21733 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
21734 Call make_compound_operation on pair->to.
21735 (propagate_for_debug): Don't call make_compound_operation here.
21736 Always use simplify_replace_fn_rtx.
21737
21738 2010-05-27 Sterling Augustine <sterling@tensilica.com>
21739
21740 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
21741 * config/xtensa/xtensa.c (override_options): Check
21742 TARGET_FORCE_NO_PIC and set flag_pic.
21743 * config/xtensa/xtensa.opt: Document -mforce-no-pic
21744
21745 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
21746
21747 PR bootstrap/44299
21748 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
21749 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
21750
21751 2010-05-27 Joseph Myers <joseph@codesourcery.com>
21752
21753 * diagnostic-core.h: New. Contents moved from diagnostic.h and
21754 toplev.h.
21755 * diagnostic.c: Don't include toplev.h.
21756 (progname): Define. Moved from toplev.c.
21757 (seen_error): New function.
21758 * diagnostic.h: Include diagnostic-core.h.
21759 (diagnostic_t, emit_diagnostic): Don't declare here.
21760 * toplev.c (progname): Move to toplev.c.
21761 (emit_debug_global_declarations, compile_file, finalize,
21762 do_compile, toplev_main): Use seen_error.
21763 * toplev.h: Include diagnostic-core.h.
21764 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
21765 internal_error, warning, warning_at, error, error_n, error_at,
21766 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
21767 verbatim, fnotice, progname): Move to diagnostic-core.h.
21768 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
21769 (expand_builtin_expect): Use seen_error.
21770 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
21771 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
21772 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
21773 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
21774 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
21775 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
21776 errorcount for errors.
21777 * c-opts.c (c_common_finish): Use seen_error.
21778 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
21779 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
21780 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
21781 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
21782 (get_coverage_counts): Use seen_error.
21783 * dwarf2out.c (dwarf2out_finish): Use seen_error.
21784 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
21785 gimplify_body): Use seen_error.
21786 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
21787 * ipa-pure-const.c (gate_pure_const): Use seen_error.
21788 * ipa-reference.c (gate_reference): Use seen_error.
21789 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
21790 * lambda-code.c: Include diagnostic-core.h instead of
21791 diagnostic.h.
21792 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
21793 * lto-compress.c: Include diagnostic-core.h instead of
21794 diagnostic.h.
21795 * lto-section-in.c: Include diagnostic-core.h instead of
21796 diagnostic.h.
21797 * lto-streamer-out.c: Include diagnostic-core.h instead of
21798 diagnostic.h.
21799 * lto-streamer.c: Include diagnostic-core.h instead of
21800 diagnostic.h.
21801 (gate_lto_out): Use seen_error.
21802 * matrix-reorg.c: Include diagnostic-core.h instead of
21803 diagnostic.h.
21804 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
21805 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
21806 (gate_expand_omp, lower_omp_1): Use seen_error.
21807 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
21808 (rest_of_decl_compilation, rest_of_type_compilation,
21809 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
21810 * tree-cfg.c (label_to_block_fn): Use seen_error.
21811 * tree-inline.c (optimize_inline_calls): Use seen_error.
21812 * tree-mudflap.c (mudflap_finish_file): Use
21813 seen_error.
21814 * tree-optimize.c (gate_all_optimizations,
21815 gate_all_early_local_passes, gate_all_early_optimizations): Use
21816 seen_error.
21817 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
21818 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
21819 (varpool_remove_unreferenced_decls,
21820 varpool_assemble_pending_decls): Use seen_error.
21821 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
21822 (TOPLEV_H, DIAGNOSTIC_H): Update.
21823 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
21824 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
21825 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
21826 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
21827 coverage.o, lambda-code.o): Update dependencies.
21828
21829 2010-05-25 Dodji Seketeli <dodji@redhat.com>
21830
21831 PR c++/44188
21832 * c-common.c (is_typedef_decl): Move this definition ...
21833 * tree.c (is_typedef_decl): ... here.
21834 (typdef_variant_p): Move definition here from cp/tree.c.
21835 * c-common.h (is_typedef_decl): Move this declaration ...
21836 * tree.h (is_typedef_decl): ... here.
21837 (typedef_variant_p): Move declaration here from cp/cp-tree.h
21838 * dwarf2out.c (is_naming_typedef_decl): New function.
21839 (gen_tagged_type_die): Split out of ...
21840 (gen_type_die_with_usage): ... this function. When an anonymous
21841 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
21842 is emitted for the typedef.
21843 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
21844 anonymous tagged types.
21845
21846 2010-05-27 Jason Merrill <jason@redhat.com>
21847
21848 * print-tree.c (debug_vec_tree): New fn.
21849 (print_vec_tree): New fn.
21850 * tree.h: Declare them.
21851 * gdbinit.in (pvt): New command.
21852
21853 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
21854
21855 * gdbinit.in (pdd): New command.
21856
21857 2010-05-27 Jan Hubicka <jh@suse.cz>
21858
21859 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
21860 (update_caller_keys): Return early if there are no callers;
21861 only update fibheap when decresing the key.
21862 (update_callee_keys): Avoid recursion.
21863 (decide_inlining_of_small_functions): When badness does not match;
21864 re-insert into fibheap.
21865
21866 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
21867
21868 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
21869 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
21870 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
21871 (ALL_HOST_OBJS): Now a union of the above two.
21872 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
21873 all files in ALL_HOST_FRONTEND_OBJS.
21874 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
21875
21876 * c-common.c: Pretend to be a backend file by undefining
21877 IN_GCC_FRONTEND (still need rtl.h here).
21878
21879 2010-05-27 Jan Hubicka <jh@suse.cz>
21880
21881 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
21882 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
21883
21884 2010-05-27 Jan Hubicka <jh@suse.cz>
21885
21886 * sched-ebb.c: Rename struct deps to struct deps_desc.
21887 * ddg.c: Likewise.
21888 * sel-sched-ir.c: Likewise.
21889 * sched-deps.c: Likewise.
21890 * sched-int.h: Likewise.
21891 * sched-rgn.c: Likewise.
21892
21893 2010-05-27 Jon Beniston <jon@beniston.com>
21894
21895 PR 43726
21896 * config/lm32/lm32.h: Remove definition of
21897 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
21898
21899 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
21900
21901 PR lto/44230
21902 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
21903
21904 2010-05-27 Richard Guenther <rguenther@suse.de>
21905
21906 PR tree-optimization/44284
21907 * tree-vect-stmts.c (vectorizable_assignment): Handle
21908 sign-changing conversions as simple copy.
21909
21910 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
21911
21912 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
21913 Bionic C library.
21914 (__gthread_active_p): Check for pthread_create if compiling against
21915 Bionic C library.
21916
21917 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
21918
21919 Support compilation for Android platform. Reimplement -mandroid.
21920
21921 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
21922 (*android*): Set ANDROID_DEFAULT.
21923 (arm*-*-linux*): Include linux-android.h.
21924 (arm*-*-eabi*): Don't include previous -mandroid implementation.
21925 * config/arm/eabi.h: Remove, move Android-specific parts ...
21926 * config/linux-android.h: ... here. New file.
21927 * config/arm/eabi.opt: Rename to ...
21928 * config/linux-android.opt: ... this.
21929 (mandroid): Allow -mno-android option. Initialize based on
21930 ANDROID_DEFAULT.
21931 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
21932 Move logic to corresponding LINUX_TARGET_* macros.
21933 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
21934 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
21935 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
21936 Android definitions.
21937 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
21938 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
21939 Document.
21940
21941 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
21942
21943 Add support for Bionic C library
21944
21945 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
21946 macro.
21947 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
21948 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
21949
21950 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
21951 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
21952 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
21953 to support multiple C libraries. Handle Bionic.
21954 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
21955 (BIONIC_DYNAMIC_LINKER64): Define.
21956 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
21957 Update.
21958 (TARGET_HAS_SINCOS): Enable for Bionic.
21959
21960 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
21961 the last option specified on command line take effect.
21962 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
21963 (mbionic): New.
21964 (mglibc, muclibc): Update.
21965
21966 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
21967 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
21968 DEFAULT_LIBC.
21969
21970 * doc/invoke.texi (-mglibc, -muclibc): Update.
21971 (-mbionic): Document.
21972
21973 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21974
21975 * c-common.h (c_register_addr_space): Add prototype.
21976 (ADDR_SPACE_KEYWORD): Remove.
21977 * c-common.c (c_register_addr_space): New function.
21978 (c_addr_space_name): Reimplement.
21979 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
21980
21981 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
21982 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
21983
21984 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
21985 Remove TARGET_ADDR_SPACE_KEYWORDS.
21986
21987 2010-05-27 Joseph Myers <joseph@codesourcery.com>
21988
21989 * input.c: New file.
21990 * input.h (main_input_filename): Move declaration to toplev.h.
21991 * toplev.c (input_location, line_table): Move to input.c
21992 * toplev.h (main_input_filename): Move declaration from input.h.
21993 * tree.c (expand_location): Move to input.c.
21994 * Makefile.in (OBJS-common): Add input.o.
21995 (input.o): Add dependencies.
21996
21997 2010-05-27 Richard Guenther <rguenther@suse.de>
21998
21999 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
22000 for non-existant files.
22001 (fork_execute): Mark args_name file as deleted.
22002
22003 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
22004
22005 PR bootstrp/44287
22006 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
22007 (narrow_signed_type): Likewise.
22008
22009 2010-05-26 Jan Hubicka <jh@suse.cz>
22010
22011 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
22012 edge only when checking is enabled; check using former_clone_of;
22013 check inline clones too.
22014 (cgraph_materialize_clone): Record former_clone_of pointer.
22015 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
22016 combining redirections; dump args_to_skip bitmap
22017 (cgraph_materialize_all_clones): Do no redirection here.
22018 * ipa-inline.c (inline_transform): Do redirection here.
22019 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
22020 cheking only).
22021
22022 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22023
22024 * config/avr/avr-c.c: Do not include regs.h.
22025 Include cpplib.h for cpp_define and tree.h for c-common.h.
22026 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
22027 * config/avr/t-avr: Fix dependencies for avr-c.o.
22028
22029 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22030
22031 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
22032 string instead of SYMBOL_REF rtx.
22033 * rtl.h (set_stack_check_libfunc): Move prototype from here...
22034 * libfuncs.h: ...to here. Adjust for explow.c change.
22035
22036 2010-05-26 Joseph Myers <joseph@codesourcery.com>
22037
22038 * pretty-print.c: Don't include ggc.h.
22039 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
22040 (identifier_to_locale): Use them for allocation.
22041 * pretty-print.h (identifier_to_locale_alloc,
22042 identifier_to_locale_free): Declare.
22043 * toplev.c (alloc_for_identifier_to_locale): New.
22044 (general_init): Set identifier_to_locale_alloc and
22045 identifier_to_locale_free.
22046 * Makefile.in (pretty-print.o): Update dependencies.
22047
22048 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
22049
22050 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
22051 pointer types if they have different alignment or mode.
22052
22053 2010-05-26 Anatoly Sokolov <aesok@post.ru>
22054
22055 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22056 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22057 * config/sparc/sparc-protos.h (function_value): Remove declaration.
22058 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
22059 sparc_function_value_regno_p): New functions.
22060 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22061 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22062 (function_value): Rename to...
22063 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
22064 argument to 'outgoing'.
22065 (function_arg_record_value, function_arg_union_value,
22066 function_arg_vector_value): Update comment.
22067
22068 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
22069
22070 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
22071 (fde_needed_for_eh_p): New predicate.
22072 (output_call_frame_info): Use it throughout to decide whether FDEs
22073 are needed for EH purpose.
22074 (dwarf2out_begin_prologue): Reorder assignments.
22075
22076 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22077
22078 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
22079 special case loop->header.
22080 (is_predicated): New.
22081 (if_convertible_loop_p): Call it.
22082
22083 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22084
22085 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
22086 iterator in parameter. Do not generate code during the analysis.
22087 (tree_if_convert_cond_stmt): Removed.
22088 (tree_if_convert_stmt): Removed.
22089 (predicate_bbs): New.
22090 (if_convertible_loop_p): Call predicate_bbs.
22091 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
22092 now contains all the analysis part.
22093
22094 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22095
22096 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
22097 statements in the analysis part.
22098 (tree_if_convert_stmt): Update comment.
22099 (remove_conditions_and_labels): New.
22100 (combine_blocks): Call remove_conditions_and_labels.
22101 (tree_if_conversion): Update comment.
22102
22103 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22104
22105 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
22106 than 2 predecessors or more than 2 successors.
22107
22108 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22109
22110 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
22111 of loops in which the data dependence analysis fails.
22112
22113 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22114
22115 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
22116 CDI_POST_DOMINATORS.
22117 (tree_if_conversion): Same.
22118
22119 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22120
22121 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
22122
22123 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22124
22125 * tree-if-conv.c: Update copyright years. Fix comments.
22126 Fix indentation.
22127
22128 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
22129
22130 * builtin-types.def (BT_INT128): New primitive type.
22131 (BT_UINT128): Likewise.
22132 * c-common.c (c_common_r): Add __int128 keyword.
22133 (c_common_type_for_size): Handle __int128.
22134 (c_common_type_for_mode): Likewise.
22135 (c_common_signed_or_unsigned_type): Likewise.
22136 (c_common_nodes_and_builtins): Add builtin type
22137 if target supports 128-bit integer scalar.
22138 * c-common.h (enum rid): Add RID_INT128.
22139 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
22140 if target supports 128-bit integer scalar.
22141 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
22142 (finish_declspecs): Likewise.
22143 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
22144 (c_token_starts_declspecs): Likewise.
22145 (c_parser_declspecs): Likewise.
22146 (c_parser_attributes): Likewise.
22147 (c_parser_objc_selector): Likewise.
22148 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
22149 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
22150 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
22151 * tree.c (make_or_reuse_type): Likewise.
22152 (make_unsigned_type): Likewise.
22153 (build_common_tree_nodes_2): Likewise.
22154 * tree.h (enum integer_type_kind): Add itk_int128 and
22155 itk_unsigned_int128.
22156 (int128_integer_type_node): New define.
22157 (int128_unsigned_type_node): New define.
22158 * doc/extend.texi: Add documentation about __int128 type.
22159
22160 2010-05-26 Richard Guenther <rguenther@suse.de>
22161
22162 * tree-ssa-sccvn.c (copy_nary): Adjust.
22163 (copy_phis): Rename to ...
22164 (copy_phi): ... this. Adjust.
22165 (copy_references): Rename to ...
22166 (copy_reference): ... this. Adjust.
22167 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
22168 result into the valid table.
22169
22170 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22171
22172 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
22173 insn-config.h, insn-codes.h, recog.h, and optabs.h.
22174
22175 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22176
22177 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
22178
22179 2010-05-26 Richard Guenther <rguenther@suse.de>
22180
22181 * opts.c (common_handle_option): Handle OPT_Ofast.
22182
22183 2010-05-26 Joseph Myers <joseph@codesourcery.com>
22184
22185 * diagnostic.c: Don't include opts.h.
22186 (permissive_error_option): Define.
22187 (diagnostic_initialize): Take n_opts parameter. Allocate memory
22188 for classify_diagnostic. Don't use memset for
22189 classify_diagnostic. Initialize new and recently added fields.
22190 (diagnostic_classify_diagnostic): Use context->n_opts instead of
22191 N_OPTS.
22192 (diagnostic_report_diagnostic): Pass context parameter to
22193 diagnostic_report_warnings_p. Use option_enabled and option_name
22194 hooks from context.
22195 (emit_diagnostic): Use permissive_error_option.
22196 (permerror): Likewise.
22197 * diagnostic.h: Don't include options.h.
22198 (struct diagnostic_context): Add n_opts, opt_permissive,
22199 inhibit_warnings, warn_system_headers, option_enabled and
22200 option_name fields. Change classify_diagnostic to a pointer.
22201 * opts-diagnostic.h: New file.
22202 * opts.c: Include opts-diagnostic.h.
22203 (common_handle_option): Set global_dc fields for -Wfatal-errors,
22204 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
22205 (option_name): New function.
22206 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
22207 (c_common_handle_option): Set global_dc->permissive for
22208 -fpermissive.
22209 * c-common.c (c_cpp_error): Save and restore
22210 global_dc->warn_system_headers, not variable warn_system_headers.
22211 * toplev.c: Include opts-diagnostic.h.
22212 (general_init): Update call to diagnostic_initialize. Set
22213 global_dc->show_column, global_dc->option_enabled and
22214 global_dc->option_name.
22215 (process_options): Don't set global_dc fields here.
22216 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
22217 (diagnostic.o, opts.o, toplev.o): Update dependencies.
22218
22219 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
22220
22221 * config/picochip/picochip.md (movsi): Split a movsi from a
22222 const after reload.
22223
22224 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22225
22226 * ggc-zone.c: Update copyright year.
22227 (poison_region): Mark memory for Valgrind as undefined before
22228 memset () call and inaccessible afterwards.
22229 (ggc_pch_total_size): Change type of i to int.
22230
22231 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22232
22233 * ggc-common.c (ggc_free_overhead): Allow empty slot.
22234
22235 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22236
22237 * ggc-common.c: Update copyright year.
22238 (ggc_rlimit_bound): Remove prototype. Compile only if
22239 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
22240 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
22241 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
22242 (ggc_min_heapsize_heuristic): Likewise.
22243
22244 2010-05-26 Richard Guenther <rguenther@suse.de>
22245
22246 PR rtl-optimization/44164
22247 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
22248 no-common access-path disambiguation.
22249 (indirect_ref_may_alias_decl_p): Adjust.
22250 (indirect_refs_may_alias_p): Likewise.
22251 (refs_may_alias_p_1): Likewise.
22252
22253 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22254
22255 * c-typeck.c: Do not include expr.h.
22256
22257 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22258
22259 * rtl.h (decl_default_tls_model): Move prototype from here...
22260 * output.h: ...to here.
22261 * c-decl.c: Do not include rtl.h.
22262 * c-pragma.c: Likewise.
22263 * c-parser.c: Likewise.
22264 * c-gimplify.c: Likewise. And also not hard-reg-set.
22265 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
22266 FIXME note for it. Add a FIXME note for expr.h.
22267 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
22268 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
22269 defined.
22270
22271 2010-05-26 Jakub Jelinek <jakub@redhat.com>
22272
22273 PR target/44199
22274 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
22275 or total_size is larger than red zone size for non-V4 ABI, emit a
22276 stack_tie resp. frame_tie insn before stack pointer restore.
22277 * config/rs6000/rs6000.md (frame_tie): New insn.
22278
22279 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
22280
22281 * function.h (struct function): Add can_throw_non_call_exceptions bit.
22282 * lto-streamer-in.c (input_function): Stream it in.
22283 * lto-streamer-out.c (output_function): Stream it out.
22284 * function.c (allocate_struct_function): Set it.
22285 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
22286 for flag_non_call_exceptions.
22287 * cfgbuild.c (control_flow_insn_p): Likewise.
22288 (make_edges): Likewise.
22289 * cfgexpand.c (expand_stack_alignment): Likewise.
22290 * combine.c (distribute_notes): Likewise.
22291 * cse.c (cse_extended_basic_block): Likewise.
22292 * except.c (insn_could_throw_p): Likewise.
22293 * gcse.c (simple_mem): Likewise.
22294 * ipa-pure-const.c (check_call): Likewise.
22295 (check_stmt ): Likewise.
22296 * lower-subreg.c (lower-subreg.c): Likewise.
22297 * optabs.c (emit_libcall_block): Likewise.
22298 (prepare_cmp_insn): Likewise.
22299 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
22300 * postreload.c (rest_of_handle_postreload): Likewise.
22301 * reload1.c (reload_as_needed): Likewise.
22302 (emit_input_reload_insns): Likewise.
22303 (emit_output_reload_insns): Likewise.
22304 (fixup_abnormal_edges): Likewise.
22305 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
22306 * store-motion.c (find_moveable_store): Likewise.
22307 * tree-eh.c (stmt_could_throw_p): Likewise.
22308 (tree_could_throw_p): Likewise.
22309 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22310 * config/arm/arm.c (arm_expand_prologue): Likewise.
22311 (thumb1_expand_prologue): Likewise.
22312 * config/rx/rx.md (cbranchsf4): Likewise.
22313 (cmpsf): Likewise.
22314 * config/s390/s390.c (s390_emit_prologue): Likewise.
22315 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
22316 (inline_forbidden_into_p): New predicate.
22317 (expand_call_inline): Use it to forbid inlining.
22318 (tree_can_inline_p): Likewise.
22319
22320 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22321
22322 * config/i386/i386-c.c: Do not include rtl.h.
22323 * config/i386/t-i386: Update dependencies.
22324
22325 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22326
22327 * attribs.c: Do not include rtl.h.
22328 * Makefile.in: Update dependencies.
22329
22330 2010-05-25 Anatoly Sokolov <aesok@post.ru>
22331
22332 * double-int.h (double_int_and): New.
22333 * combine.c (try_combine): Clean up, use double_int_* and
22334 immed_double_int_const functions.
22335
22336 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22337
22338 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
22339 stderr to /dev/null instead of grep -q.
22340 * configure: Regenerate.
22341
22342 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22343
22344 * Makefile.in (EXCEPT_H): Fix typo.
22345
22346 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
22347
22348 * ira-build.c (update_conflict_hard_reg_costs): New.
22349 (ira_build): Call update_conflict_hard_reg_costs.
22350
22351 2010-05-25 Jakub Jelinek <jakub@redhat.com>
22352
22353 PR debug/41371
22354 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
22355 ENABLE_CHECKING.
22356 (intersect_loc_chains): Walk the s2var's loc_chain together
22357 with s1node chain as long as the locations are equal, don't
22358 call find_loc_in_1pdv in that case.
22359
22360 PR debug/42801
22361 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
22362 (copy_bind_expr): ... instead of here.
22363 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
22364 if the block hasn't been remapped.
22365 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
22366 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
22367
22368 2010-05-25 Richard Guenther <rguenther@suse.de>
22369
22370 PR middle-end/44069
22371 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
22372 out-of-bounds array accesses.
22373
22374 2010-05-25 Richard Guenther <rguenther@suse.de>
22375
22376 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
22377 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
22378 (run_gcc): Re-organize to make cleanup easier.
22379
22380 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22381
22382 * config/s390/s390.c (optimization_options): Fix and move the
22383 flag_prefetch_loop_arrays override ...
22384 (override_options): ... here.
22385
22386 2010-05-25 Joseph Myers <joseph@codesourcery.com>
22387
22388 * diagnostic.c: Don't include plugin.h.
22389 (diagnostic_report_diagnostic): Don't handle plugins specially
22390 here. Pass context to internal_error callback.
22391 * diagnostic.h (struct diagnostic_context): Add context parameter
22392 to internal_error callback.
22393 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
22394 * plugin.h (struct diagnostic_context): Declare.
22395 (warn_if_plugins, plugins_internal_error_function): Declare.
22396 * toplev.c (general_init): Set global_dc->internal_error.
22397 * Makefile.in (diagnostic.o): Update dependencies.
22398
22399 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
22400
22401 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
22402 * config/rs6000/t-darwin64: New.
22403 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
22404 build crt2.
22405
22406 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
22407
22408 PR 44203
22409 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
22410 match the original (and intended) behaviour before r159557. This
22411 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
22412 in two ways.
22413
22414 2010-05-25 Richard Guenther <rguenther@suse.de>
22415
22416 * doc/invoke.texi: Document -Ofast.
22417 * target.h (struct gcc_target): Add handle_ofast.
22418 * target-def.h (TARGET_HANDLE_OFAST): Add.
22419 (TARGET_INITIALIZER): Adjust.
22420 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
22421 * common.opt (Ofast): Add.
22422
22423 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
22424
22425 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
22426 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
22427
22428 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
22429
22430 PR target/43610
22431 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
22432 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
22433 false_rtx. Use false_rtx to compute the correct *ptest for reversed
22434 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
22435
22436 2010-05-25 Jakub Jelinek <jakub@redhat.com>
22437
22438 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
22439 DW_OP_minus with negated offset instead of DW_OP_plus.
22440 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
22441
22442 2010-05-25 Wei Guozhi <carrot@google.com>
22443
22444 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
22445 tst instruction and a new alternative.
22446 * config/arm/constraints.md (Pu): New constraint.
22447
22448 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
22449
22450 * function.c (assign_stack_local_1): Initialize variable
22451 to avoid warning when bootstrapping at -O3.
22452
22453 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
22454
22455 * configure.ac (all_lang_makefiles): Remove everything related to it.
22456 * configure: Regenerate.
22457 * Makefile.in: Fix reference to ada Make-lang.in.
22458 Remove support for LANG_MAKEFILES.
22459
22460 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
22461 Sandra Loosemore <sandra@codesourcery.com>
22462
22463 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
22464 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
22465 description. Add arm_neon_fp16_ok.
22466 (Add Options): Add arm_neon and arm_neon_fp16.
22467
22468 2010-05-24 Joseph Myers <joseph@codesourcery.com>
22469
22470 * diagnostic.c: Don't include flags.h.
22471 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
22472 context parameters. Check flags in the context passed as a parameter.
22473 (diagnostic_build_prefix): Add context parameter. Check
22474 show_column flag in context.
22475 (diagnostic_action_after_output): Check fatal_errors flag in context.
22476 (diagnostic_report_current_module): Check show_column flag in context.
22477 (default_diagnostic_starter): Update call to
22478 diagnostic_build_prefix.
22479 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
22480 (emit_diagnostic): Pass context to permissive_error_kind.
22481 (permerror): Pass context to permissive_error_kind.
22482 * diagnostic.h (struct diagnostic_context): Add show_column,
22483 pedantic_errors, permissive and fatal_errors fields.
22484 (diagnostic_build_prefix): Update prototype.
22485 * langhooks.c
22486 * toplev.c (process_options): Set flags in global_dc from
22487 flag_show_column, flag_pedantic_errors, flag_permissive,
22488 flag_fatal_errors.
22489 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
22490 to diagnostic_build_prefix.
22491 * Makefile.in (diagnostic.o): Update dependencies.
22492
22493 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
22494
22495 * config/i386/ia32intrin.h (__crc32q): Define only if
22496 __SSE4_2__ is defined.
22497
22498 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
22499
22500 PR target/44132
22501 PR middle-end/43602
22502 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
22503 DECL_VISIBILITY_SPECIFIED.
22504 (emutls_decl): Set DECL_PRESERVE_P and copy
22505 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
22506 (emutls_finalize_control_var): New callback.
22507 (emutls_finish): Finalize emutls control variables.
22508 * toplev.c (compile_file): Move the call to emutls_finish ()
22509 before varpool_assemble_pending_decls ().
22510
22511 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
22512
22513 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
22514 added to the preprocessor condition.
22515
22516 2010-05-24 Paul Brook <paul@codesourcery.com>
22517
22518 * gengtype-lex.l: Add HARD_REG_SET.
22519 * expr.c (expand_expr_real_1): Record writes to hard registers.
22520 * function.c (rtl_data): Add asm_clobbers.
22521 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
22522 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
22523 Use crtl->asm_clobbers.
22524
22525 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22526
22527 * doc/makefile.texi (Makefile): Mention stages 'profile'
22528 and 'feedback' for profiledbootstrap.
22529
22530 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
22531
22532 PR target/44245
22533 * config/i386/i386.c (def_builtin): Properly check
22534 OPTION_MASK_ISA_64BIT.
22535
22536 2010-05-23 Joseph Myers <joseph@codesourcery.com>
22537
22538 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
22539 typedefs with different but compatible types. Allow duplicate
22540 typedefs with the same type except for pedantic non-C1X, but give
22541 warning for variably modified types.
22542 * c-typeck.c (tagged_types_tu_compatible_p,
22543 function_types_compatible_p, type_lists_compatible_p,
22544 comptypes_internal): Add parameter different_types_p; set
22545 *different_types_p for different but compatible types. All
22546 callers changed.
22547 (comptypes_check_different_types): New.
22548 * c-tree.h (comptypes_check_different_types): Declare.
22549
22550 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
22551
22552 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
22553 * jump.c: Include basic-block.h.
22554 * profile.c: Likewise.
22555 * tree-profile.c: Likewise.
22556 * coverage.c: Likewise.
22557 * basic-block.h (optimize_function_for_size_p): Move to function.h.
22558 (optimize_function_for_speed_p): Likewise.
22559 * function.h (optimize_function_for_size_p,
22560 optimize_function_for_speed_p): Moved here from basic-block.h.
22561 * Makefile.in: Update dependencies.
22562
22563 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22564
22565 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
22566 before calling make; allow override through $MAKE.
22567 * doc/invoke.texi (Optimize Options): Document override.
22568
22569 2010-05-23 Anatoly Sokolov <aesok@post.ru>
22570
22571 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
22572 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22573 (rs6000_mode_dependent_address_ptr): Make static.
22574 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22575 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
22576 Remove.
22577
22578 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
22579
22580 PR target/43869
22581 * config/i386/i386.c: Make sure that the correct regparm is passed.
22582
22583 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
22584
22585 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
22586 * sbitmap.c: ...to here to internalize sbitmap element access.
22587 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
22588 Explain why basic-block.h is included.
22589 * function.h: Include tm.h for CUMULATIVE_ARGS.
22590 * Makefile.in: Update dependencies.
22591
22592 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
22593
22594 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
22595 New core types.
22596 * sbitmap.h (struct sbitmap_def): Do not typedef here.
22597 * sbitmap.c: Include sbitmap.h.
22598 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
22599 hard-reg-set.h. Split everything related to regsets out from here...
22600 * regset.h: ...to here. New file.
22601 * df.h: Include regset.h and sbitmap.h.
22602 * tree-flow.h: Likewise.
22603 * cfgloop.h: Likewise.
22604 * except.h: Do not include sbitmap.h. Include hashtab.h.
22605 * cgraph.h: Include vec.h and function.h.
22606 * reload.h (struct insn_chain): Change types of live_throughout
22607 and dead_or_set from regset_head to bitmap_head.
22608 (compute_use_by_pseudos): Be defined also if regset.h is not included.
22609 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
22610 spilled_regs from regset_head to bitmap_head to avoid dependency
22611 in regset.h.
22612 * sel-sched-ir.h: Include regset.h.
22613 * reload.c: Include df.h before reload.h.
22614 * caller-save.c: Likewise.
22615 * reload1.c: Likewise.
22616 * ira.c: Likewise.
22617 (mark_elimination): Update type of r to bitmap, consistent with
22618 DF_LR_IN.
22619 * dominance.c: Include bitmap.h.
22620 * modulo-sched.c: Include df.h.
22621 * cfganal.c: Include bitmap.h and sbitmap.h.
22622 * cfgbuild.c: Include sbitmap.h.
22623 * lcm.c: Include sbitmap.h.
22624 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
22625 * domwalk.c: Include sbitmap.h, exclude ggc.h.
22626 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
22627 * cselib.c: Include bitmap.h.
22628 * tree-optimize.c: Include regset.h.
22629 * stmt.c: Include bitmap.h.
22630 * Makefile.in: Update dependencies.
22631
22632 2010-05-22 Jan Hubicka <jh@suse.cz>
22633
22634 * cgraph.h (struct varpool_node): Add same_comdat_group.
22635 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
22636 pointer.
22637 (output_varpool): Update call of lto_output_varpool_node.
22638 (input_varpool): Read same_comdat_group pointer.
22639 (input_varpool_1): Fixup same_comdat_group pointer.
22640 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
22641 group is needed, all are.
22642 * varpool.c (varpool_remove_node): Remove node from same comdat group
22643 linklist too.
22644 (varpool_analyze_pending_decls): Walk same comdat groups.
22645
22646 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
22647
22648 * rtl.h (union rtunion_def): Remove rt_bit member.
22649 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
22650 * print-rtl (print_rtx): Do not print the member.
22651 * gengtype.c (adjust_field_rtx_def): Do not handle it.
22652 * gengenrtl.c (type_from_format): Likewise.
22653 (accessor_from_format): Likewise.
22654
22655 2010-05-22 Joseph Myers <joseph@codesourcery.com>
22656
22657 * dbgcnt.c: Include toplev.h instead of errors.h.
22658 * ira-emit.c: Don't include errors.h.
22659 * ira.c: Include toplev.h instead of errors.h.
22660 * lto-compress.c: Include toplev.h instead of errors.h.
22661 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
22662 ira.o, dbgcnt.o): Update dependencies.
22663
22664 2010-05-22 Richard Guenther <rguenther@suse.de>
22665
22666 * gimple.c (gimple_types_compatible_p): Check type qualifications
22667 before merging pointer to complete and pointer to incomplete type.
22668 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
22669 we use our own resolution algorithm. The gold linker plugin
22670 doesn't do the job we want it to do here.
22671
22672 2010-05-22 Anatoly Sokolov <aesok@post.ru>
22673
22674 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22675 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22676 (sparc_mode_dependent_address_p): New function.
22677
22678 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22679
22680 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
22681
22682 * timevar.c: Do not include any core headers.
22683 (timevar_print): De-i18n-ize.
22684 (print_time): Likewise.
22685 * timevar.h (timevar_push, timevar_pop): Make inline functions.
22686
22687 2010-05-21 Joseph Myers <joseph@codesourcery.com>
22688
22689 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
22690 langhooks-def.h.
22691 (diagnostic_initialize): Initialize x_data not last_function.
22692 (diagnostic_report_current_function): Move to tree-diagnostic.c.
22693 (default_diagnostic_starter): Call
22694 diagnostic_report_current_module not
22695 diagnostic_report_current_function.
22696 (diagnostic_report_diagnostic): Initialize x_data not
22697 abstract_origin.
22698 (verbatim): Likewise.
22699 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
22700 x_data.
22701 (struct diagnostic_context): Change last_function to x_data.
22702 (diagnostic_auxiliary_data): Replace with
22703 diagnostic_context_auxiliary_data and
22704 diagnostic_info_auxiliary_data.
22705 (diagnostic_last_function_changed, diagnostic_set_last_function,
22706 diagnostic_report_current_function): Move to tree-diagnostic.h.
22707 (print_declaration, dump_generic_node, print_generic_stmt,
22708 print_generic_stmt_indented, print_generic_expr,
22709 print_generic_decl, debug_c_tree, dump_omp_clauses,
22710 print_call_name, debug_generic_expr, debug_generic_stmt,
22711 debug_tree_chain, default_tree_printer): Move to
22712 tree-pretty-print.h.
22713 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
22714 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
22715 gimple-pretty-print.h.
22716 * pretty-print.c: Don't include tree.h
22717 (pp_base_format): Don't handle %K here.
22718 (pp_base_tree_identifier): Move to tree-pretty-print.c.
22719 * pretty-print.h (text_info): Change abstract_origin to x_data.
22720 (pp_tree_identifier, pp_unsupported_tree,
22721 pp_base_tree_identifier): Move to tree-pretty-print.h.
22722 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
22723 tree-pretty-print.h: New files.
22724 * tree-pretty-print.c: Include tree-pretty-print.h.
22725 (percent_K_format): New. Moved from pretty-print.c.
22726 (pp_base_tree_identifier): Move from pretty-print.c.
22727 * c-objc-common.c: Include tree-pretty-print.h.
22728 (c_tree_printer): Handle %K here.
22729 * langhooks.c: Include tree-diagnostic.h.
22730 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
22731 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
22732 (default_tree_printer): Handle %K using percent_K_format.
22733 (general_init): Use default_tree_diagnostic_starter.
22734 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
22735 (free_lang_data): Use default_tree_diagnostic_starter.
22736 * c-pretty-print.c: Include tree-pretty-print.h.
22737 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22738 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22739 * dwarf2out.c: Include tree-pretty-print.h.
22740 * except.c: Include tree-pretty-print.h.
22741 * gimple-pretty-print.c: Include tree-pretty-print.h and
22742 gimple-pretty-print.h.
22743 * gimplify.c: Include tree-pretty-print.h.
22744 * graphite-poly.c: Include tree-pretty-print.h and
22745 gimple-pretty-print.h.
22746 * ipa-cp.c: Include tree-pretty-print.h.
22747 * ipa-inline.c: Include gimple-pretty-print.h.
22748 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22749 * ipa-pure-const.c: Include gimple-pretty-print.h.
22750 * ipa-struct-reorg.c: Include tree-pretty-print.h and
22751 gimple-pretty-print.h.
22752 * ipa-type-escape.c: Include tree-pretty-print.h.
22753 * print-rtl.c: Include tree-pretty-print.h.
22754 * print-tree.c: Include gimple-pretty-print.h.
22755 * sese.c: Include tree-pretty-print.h.
22756 * tree-affine.c: Include tree-pretty-print.h.
22757 * tree-browser.c: Include tree-pretty-print.h.
22758 * tree-call-cdce.c: Include gimple-pretty-print.h.
22759 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22760 * tree-chrec.c: Include tree-pretty-print.h.
22761 * tree-data-ref.c: Include tree-pretty-print.h and
22762 gimple-pretty-print.h.
22763 * tree-dfa.c: Include tree-pretty-print.h.
22764 * tree-if-conv.c: Include tree-pretty-print.h and
22765 gimple-pretty-print.h.
22766 * tree-inline.c: Include tree-pretty-print.h.
22767 * tree-into-ssa.c: Include tree-pretty-print.h and
22768 gimple-pretty-print.h.
22769 * tree-nrv.c: Include tree-pretty-print.h.
22770 * tree-object-size.c: Include tree-pretty-print.h and
22771 gimple-pretty-print.h.
22772 * tree-outof-ssa.c: Include tree-pretty-print.h and
22773 gimple-pretty-print.h.
22774 * tree-parloops.c: Include tree-pretty-print.h and
22775 gimple-pretty-print.h.
22776 * tree-predcom.c: Include tree-pretty-print.h and
22777 gimple-pretty-print.h.
22778 * tree-scalar-evolution.c: Include tree-pretty-print.h and
22779 gimple-pretty-print.h.
22780 * tree-sra.c: Include tree-pretty-print.h.
22781 * tree-ssa-address.c: Include tree-pretty-print.h.
22782 * tree-ssa-alias.c: Include tree-pretty-print.h.
22783 * tree-ssa-ccp.c: Include tree-pretty-print.h and
22784 gimple-pretty-print.h.
22785 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
22786 * tree-ssa-copy.c: Include tree-pretty-print.h and
22787 gimple-pretty-print.h.
22788 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
22789 * tree-ssa-dce.c: Include tree-pretty-print.h and
22790 gimple-pretty-print.h.
22791 * tree-ssa-dom.c: Include tree-pretty-print.h and
22792 gimple-pretty-print.h.
22793 * tree-ssa-dse.c: Include gimple-pretty-print.h.
22794 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
22795 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
22796 * tree-ssa-live.c: Include tree-pretty-print.h and
22797 gimple-pretty-print.h.
22798 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
22799 gimple-pretty-print.h.
22800 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
22801 gimple-pretty-print.h.
22802 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
22803 gimple-pretty-print.h.
22804 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
22805 gimple-pretty-print.h.
22806 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
22807 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
22808 * tree-ssa-operands.c: Include tree-pretty-print.h and
22809 gimple-pretty-print.h.
22810 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
22811 gimple-pretty-print.h.
22812 * tree-ssa-pre.c: Include tree-pretty-print.h and
22813 gimple-pretty-print.h.
22814 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
22815 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
22816 gimple-pretty-print.h.
22817 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
22818 gimple-pretty-print.h.
22819 * tree-ssa-sink.c: Include gimple-pretty-print.h.
22820 * tree-ssa-ter.c: Include tree-pretty-print.h and
22821 gimple-pretty-print.h.
22822 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
22823 * tree-ssa.c: Include tree-pretty-print.h and
22824 gimple-pretty-print.h.
22825 * tree-stdarg.c: Include gimple-pretty-print.h.
22826 * tree-switch-conversion.c: Include gimple-pretty-print.h.
22827 * tree-tailcall.c: Include tree-pretty-print.h and
22828 gimple-pretty-print.h.
22829 * tree-vect-data-refs.c: Include tree-pretty-print.h and
22830 gimple-pretty-print.h.
22831 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
22832 gimple-pretty-print.h.
22833 * tree-vect-loop.c: Include tree-pretty-print.h and
22834 gimple-pretty-print.h.
22835 * tree-vect-patterns.c: Include gimple-pretty-print.h.
22836 * tree-vect-slp.c: Include tree-pretty-print.h and
22837 gimple-pretty-print.h.
22838 * tree-vect-stmts.c: Include tree-pretty-print.h and
22839 gimple-pretty-print.h.
22840 * tree-vectorizer.c: Include tree-pretty-print.h.
22841 * tree-vrp.c: Include tree-pretty-print.h and
22842 gimple-pretty-print.h.
22843 * value-prof.c: Include tree-pretty-print.h and
22844 gimple-pretty-print.h.
22845 * var-tracking.c: Include tree-pretty-print.h.
22846 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
22847 (tree-diagnostic.o): New dependencies.
22848 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
22849 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
22850 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
22851 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
22852 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
22853 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
22854 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
22855 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
22856 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
22857 tree-ssa-address.o, tree-ssa-loop-niter.o,
22858 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
22859 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
22860 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
22861 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
22862 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
22863 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
22864 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
22865 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
22866 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
22867 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
22868 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
22869 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
22870 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
22871 tree-switch-conversion.o, var-tracking.o, value-prof.o,
22872 cfgexpand.o, pretty-print.o): Update dependencies.
22873
22874 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
22875
22876 * tree-ssa-structalias.c: Remove tm_p.h from include.
22877
22878 2010-05-21 Jeff Law <law@redhat.com>
22879
22880 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
22881
22882 2010-05-21 Jason Merrill <jason@redhat.com>
22883
22884 * tree-eh.c (cleanup_is_dead_in): New.
22885 (lower_try_finally): Don't generate a dead cleanup region.
22886 (lower_cleanup): Likewise.
22887
22888 2010-05-21 Jakub Jelinek <jakub@redhat.com>
22889
22890 PR debug/44223
22891 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
22892 unchain each use from the cyclic next_regno_use chain first.
22893
22894 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22895
22896 * real: Do not include gmp.h, mpfr.h, and mpc.h.
22897 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
22898 (real_value_negate, real_value_abs): New prototypes.
22899 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
22900 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
22901 new include file for interface between MPFR and REAL_VALUE_TYPE.
22902 * real.c: Include realmpfr.h.
22903 (real_arithmetic2): Remove legacy function.
22904 (real_value_negate): New.
22905 (real_value_abs): New.
22906 (mfpr_from_real, real_from_mpfr): Move from here...
22907 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
22908 * builtins.c: Include realmpfr.h.
22909 * fold-const.c: Include realmpfr.h.
22910 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
22911 (fold_negate_const): Likewise.
22912 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
22913 * toplev.c: Include realmpfr.h.
22914 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
22915 and real_value_negate.
22916 * fixed-value.c (check_real_for_fixed_mode): Likewise.
22917 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
22918 (vfp3_const_double_index): Likewise.
22919 (arm_print_operand): Likewise.
22920 * Makefile.in: Update dependencies.
22921
22922 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22923
22924 * config/s390/s390.c (override_options): Increase the default
22925 of max-completely-peel-times.
22926
22927 2010-05-21 Julian Brown <julian@codesourcery.com>
22928 Mark Mitchell <mark@codesourcery.com>
22929
22930 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
22931 sibling calls for Thumb-1.
22932 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
22933 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
22934 Thumb-2.
22935 (*call_insn, *call_value_insn): Don't use for Thumb-2.
22936 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
22937 for Thumb-2.
22938 (return): New expander.
22939 (*arm_return): New name for ARM return insn.
22940 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
22941
22942 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
22943
22944 * config.gcc (sparc64-*-rtems*): New target.
22945
22946 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
22947
22948 * tree.c (build_function_decl_skip_args): Fix grammar.
22949 (build_function_type_list_1): Fix typos, adjust formatting.
22950
22951 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22952
22953 * tree.h: Include real.h and fixed-value.h as basic datatypes.
22954 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
22955 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
22956 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
22957 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
22958 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
22959 tree-pretty-print.c, tree-loop-distribution.c,
22960 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
22961 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
22962 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
22963 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
22964 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
22965 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
22966 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
22967 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
22968 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
22969 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
22970 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
22971 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
22972 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
22973 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
22974 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
22975 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
22976 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
22977 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
22978 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
22979 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
22980 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
22981 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
22982 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
22983 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
22984 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
22985 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
22986 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
22987 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
22988 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
22989 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
22990 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
22991 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
22992 config/score/score7.c, config/score/score.c, config/arm/arm.c,
22993 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
22994 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
22995 config/bfin/bfin.c: Clean up redundant includes.
22996 * Makefile.in: Update accordingly.
22997
22998 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
22999
23000 PR middle-end/44204
23001 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
23002 statement has no arguments.
23003
23004 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
23005
23006 PR/44139
23007 * varasm.c (emutls_decl): Merge attributes to new decl.
23008
23009 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
23010
23011 PR middle-end/44101
23012 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
23013 around the uniquized constructor if its type requires a conversion.
23014
23015 2010-05-21 Jakub Jelinek <jakub@redhat.com>
23016
23017 PR debug/44205
23018 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
23019 at -O0 goto_locus of any of the incoming edges differs from
23020 goto_locus of outgoing edge, or gimple_location of any of the
23021 labels differs.
23022
23023 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
23024
23025 * ira.c (ira_non_ordered_class_hard_regs): Define.
23026 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
23027 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
23028 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
23029 cost of unaligned hard regs when allocating multi-reg pseudos.
23030
23031 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
23032
23033 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
23034 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
23035 for TARGET_NO_FLOAT.
23036 * config/mips/mips.c (mips_file_start): Expand conditional expression
23037 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
23038 (mips_override_options): Move -mno-float override -msoft-float and
23039 -mhard-float.
23040 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
23041 Condition(TARGET_SUPPORTS_NO_FLOAT).
23042 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
23043 __mips_no_float here.
23044 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
23045 (TARGET_SUPPORTS_NO_FLOAT): Define.
23046 * config/mips/sdemtk.opt: Delete.
23047
23048 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23049
23050 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
23051
23052 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
23053
23054 PR target/43733
23055 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
23056 * configure: Regenerate.
23057 * config.in: Regenerate.
23058 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
23059 instead of sahf only for 64bit targets.
23060
23061 2010-05-20 Jakub Jelinek <jakub@redhat.com>
23062
23063 PR debug/44178
23064 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
23065 setup_ref_regs for DEBUG_INSNs.
23066
23067 2010-05-20 Jan Hubicka <jh@suse.cz>
23068
23069 PR middle-end/44197
23070 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
23071
23072 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
23073
23074 PR bootstrap/43870
23075 * df-scan.c (df_ref_compare): Stabilize sort.
23076
23077 2010-05-20 Jakub Jelinek <jakub@redhat.com>
23078
23079 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
23080 argument. Don't use DW_OP_piece if offset is non-zero,
23081 put offset into second DW_OP_bit_piece argument.
23082 (dw_sra_loc_expr): Adjust callers. For memory expressions
23083 compute offset.
23084
23085 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
23086
23087 PR target/44202
23088 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
23089 settings for 16-bit-constant "addo" alternative.
23090
23091 2010-05-19 James E. Wilson <wilson@codesourcery.com>
23092
23093 * config/mips/mips-dsp.md (add<DSPV:mode>3,
23094 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
23095
23096 PR target/43764
23097 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
23098 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
23099 Use it.
23100
23101 2010-05-19 Joseph Myers <joseph@codesourcery.com>
23102
23103 * diagnostic.c (FLOAT, FFS): Don't undefine.
23104 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
23105 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
23106 include ordering.
23107
23108 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23109
23110 * combine.c (propagate_for_debug): Call make_compound_operation
23111 on the source value.
23112 (try_combine): When implementing a split chosen by find_split_point,
23113 either copy i2src or set it to null. Assert that i2src is not null
23114 before substituting into CALL_INSN_FUNCTION_USAGE.
23115
23116 2010-05-19 Anatoly Sokolov <aesok@post.ru>
23117
23118 * double-int.h (double_int_ior): New function.
23119 * tree.h (build_int_cst_wide_type): Remove.
23120 * tree.c (build_int_cst_wide_type): Remove.
23121 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
23122 of build_int_cst_wide_type.
23123 * stor-layout.c (set_sizetype): (Ditto.).
23124 * dojump.c (do_jump): Use build_int_cstu instead of
23125 build_int_cst_wide_type.
23126
23127 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
23128
23129 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
23130 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
23131 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
23132 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
23133 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
23134 propagate the 'data' argument to copy_tree_r.
23135 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
23136 Propagate 'data' argument to walk_tree.
23137 (copy_if_shared): New function.
23138 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
23139 (unmark_visited): New function.
23140 (unshare_body): Call copy_if_shared instead of doing it manually.
23141 (unvisit_body): Call unmark_visited instead of doing it manually.
23142
23143 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
23144
23145 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
23146 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
23147 * hooks.c: Likewise.
23148 * target-def.h (TARGET_FOLD_BUILTIN): Define to
23149 hook_tree_tree_int_treep_bool_null.
23150 * target.h (struct gcc_target): Update signature of fold_builtin
23151 field.
23152 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
23153 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
23154 instead of the call expression.
23155 (fold_builtin_call_array): Pass n and argarray directly.
23156 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
23157 consing a list.
23158 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
23159 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
23160 `i' and use it in place of `arity'.
23161 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
23162 Dereference `args' directly.
23163 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
23164
23165 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23166
23167 * doc/sourcebuild.texi (Effective-Target Keywords): Document
23168 3dnow, sse3, sse2.
23169 (Directives): Document optional dg-require-effective-target
23170 selector.
23171
23172 2010-05-19 Richard Guenther <rguenther@suse.de>
23173
23174 PR lto/44196
23175 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
23176
23177 2010-05-19 Richard Guenther <rguenther@suse.de>
23178
23179 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
23180 * common.opt (fwhopr=): New.
23181 * opts.c (common_handle_option): Handle OPT_fwhopr.
23182 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
23183 * collect2.c (main): Match -fwhopr*.
23184 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
23185 Execute ltrans stage in parallel when jobs is bigger than 1.
23186
23187 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23188
23189 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
23190 pentiumpro on Solaris 8/x86 with Sun as.
23191 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
23192 hidden alias bug.
23193 (gcc_cv_as_ix86_quad): Check for .quad directive.
23194 * configure: Regenerate.
23195 * config.in: Regenerate.
23196 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
23197
23198 2010-05-19 Martin Jambor <mjambor@suse.cz>
23199
23200 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
23201 also for indirect edges. Actual printing moved...
23202 (ipa_print_node_jump_functions_for_edge): ...here.
23203 (ipa_compute_jump_functions): Renamed to
23204 ipa_compute_jump_functions_for_edge and made static.
23205 (ipa_compute_jump_functions): New function.
23206 (make_edge_direct_to_target): Check if the number of arguments on
23207 the newly direct edge is the same as the number of parametrs of
23208 the callee.
23209 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
23210 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
23211 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
23212 analysis functions unconditionally, call the new
23213 ipa_analyze_params_uses on the node instead of every edge.
23214
23215 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
23216
23217 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
23218 to tree.
23219 (dump_mem_ref): Adopt debug code to handle a tree as step. This
23220 also checks for a constant int vs. non-constant but
23221 loop-invariant steps.
23222 (find_or_create_group): Change the sort algorithm to only consider
23223 steps that are constant ints.
23224 (idx_analyze_ref): Adopt code to handle a tree instead of a
23225 HOST_WIDE_INT for step.
23226 (gather_memory_references_ref): Handle tree instead of int and be
23227 prepared to see a NULL_TREE.
23228 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
23229 prefetches if the step cannot be calculated at compile time.
23230 (issue_prefetch_ref): Issue prefetches for non-constant but
23231 loop-invariant steps.
23232
23233 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23234
23235 Revert:
23236 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23237
23238 * tree.h (build_call_list): Remove.
23239 * tree.c (build_call_list): Remove.
23240
23241 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23242
23243 * tree.h (build_call_list): Remove.
23244 * tree.c (build_call_list): Remove.
23245
23246 2010-05-18 Jan Hubicka <jh@suse.cz>
23247
23248 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
23249
23250 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
23251
23252 PR rtl-optimization/43332
23253 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
23254
23255 2010-05-18 Anatoly Sokolov <aesok@post.ru>
23256
23257 * tree.h (build_int_cstu): Implement as static inline.
23258 * tree.c (build_int_cstu): Remove function.
23259 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
23260 sign extended.
23261
23262 2010-05-18 Richard Guenther <rguenther@suse.de>
23263
23264 PR lto/44143
23265 * lto-wrapper.c (verbose): New variable. Initialize from -v.
23266 (debug): Initialize from -save-temps.
23267 (collect_execute): Print command-line when verbose.
23268 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
23269 for ltrans invocation. Produce -dumpbase flag again.
23270 (process_args): Remove.
23271 (main): Simplify.
23272 * collect2.c (maybe_run_lto_and_relink): Only pass object
23273 files to lto-wrapper.
23274 * gcc.c (LINK_COMMAND_SPEC): Likewise.
23275
23276 2010-05-18 Jan Hubicka <jh@suse.cz>
23277
23278 * opts.c (decode_options): Do not disable whopr at ipa_cp.
23279 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
23280
23281 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
23282
23283 PR lto/44184
23284 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
23285 in a GIMPLE_ASM.
23286 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
23287 in a GIMPLE_ASM.
23288
23289 2010-05-18 Jakub Jelinek <jakub@redhat.com>
23290
23291 PR debug/41371
23292 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
23293 rtx_equal_p inline.
23294
23295 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
23296
23297 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
23298 lto-macho as lto_binary_reader.
23299
23300 * darwin.c (darwin_asm_named_section): Do not add assembler comment
23301 after .section directive; just print it before the directive instead.
23302
23303 2010-05-17 Jan Hubicka <jh@suse.cz>
23304
23305 * cgraph.c (cgraph_create_virtual_clone): Only check
23306 versionable_function_p when not in wpa and checking is enabled.
23307 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
23308 there are no more functions to materialize.
23309
23310 2010-05-17 Jan Hubicka <jh@suse.cz>
23311
23312 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
23313 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
23314 New functions.
23315 (output_cgraph): Call output_cgraph_opt_summary.
23316 (input_cgrpah): Call input_cgraph_opt_summary.
23317 (output_cgraph_opt_summary_p, output_node_opt_summary,
23318 input_node_opt_summary, input_cgraph_opt_section): New functions.
23319 * lto-section-in.c (lto_section_name): Add cgraphopt.
23320 * tree-inline.c (tree_function_versioning): Handle parm_num.
23321 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
23322 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
23323
23324 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
23325
23326 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
23327 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
23328 the insn to prefetch ratio heuristic to loops with known trip count.
23329
23330 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
23331
23332 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
23333 (schedule_prefetches): Do not generate a prefetch if the unroll factor
23334 is far from what is required by the prefetch.
23335
23336 2010-05-17 Jan Hubicka <jh@suse.cz>
23337
23338 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
23339 (ipcp_estimate_growth): Likewise.
23340 (ipcp_const_param_count): Likewise.
23341 (ipcp_insert_stage): Likewise.
23342 * ipa-prop.c (visit_load_for_mod_analysis): New function.
23343 (visit_store_addr_for_mod_analysis): Set used flag.
23344 (ipa_detect_param_modifications): Set used flag for SSE params;
23345 update use of walk_stmt_load_store_addr_ops.
23346 (ipa_print_node_params): Print used flag.
23347 (ipa_write_node_info): Stream used flag.
23348 (ipa_read_node_info): Likewise.
23349 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
23350 (ipa_is_param_used): New function.
23351 (lto_ipa_fixup_call_notes): Remove unused declaration.
23352
23353 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23354
23355 PR target/44074
23356 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
23357 * configure: Regenerate.
23358 * config.in: Regenerate.
23359 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
23360 !HAVE_AS_IX86_REP_LOCK_PREFIX.
23361 Don't emit whitespace.
23362 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
23363 (*rep_movsi): Likewise.
23364 (*rep_movsi_rex64): Likewise.
23365 (*rep_movqi): Likewise.
23366 (*rep_movqi_rex64): Likewise.
23367 (*rep_stosdi_rex64): Likewise.
23368 (*rep_stossi): Likewise.
23369 (*rep_stossi_rex64): Likewise.
23370 (*rep_stosqi): Likewise.
23371 (*rep_stosqi_rex64): Likewise.
23372 (*cmpstrnqi_nz_1): Use {%;} after repz.
23373 (*cmpstrnqi_nz_rex_1): Likewise.
23374 (*cmpstrnqi_1): Likewise.
23375 (*cmpstrnqi_rex_1): Likewise.
23376 (*strlenqi_1): Use {%;} after repnz.
23377 (*strlenqi_rex_1): Likewise.
23378 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
23379 (*sync_compare_and_swap<mode>): Likewise.
23380 (sync_double_compare_and_swap<mode>): Likewise.
23381 (*sync_double_compare_and_swapdi_pic): Likewise.
23382 (sync_old_add<mode>): Likewise.
23383 (sync_add<mode>): Likewise.
23384 (sync_sub<mode>): Likewise.
23385 (sync_<code><mode>): Likewise.
23386
23387 2010-05-17 Martin Jambor <mjambor@suse.cz>
23388
23389 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
23390 otr_token and polymorphic.
23391 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
23392 (cgraph_clone_edge): Copy the above fields.
23393 * tree.c (get_binfo_at_offset): New function.
23394 * tree.h (get_binfo_at_offset): Declare.
23395 * ipa-prop.h (enum jump_func_type): Added known_type jump function
23396 type, reordered items, updated comments.
23397 (union jump_func_value): Added base_type field, reordered fields.
23398 (enum ipa_lattice_type): Moved down in the file.
23399 (struct ipa_param_descriptor): New field polymorphic.
23400 (ipa_is_param_polymorphic): New function.
23401 * ipa-prop.c: Include gimple.h and gimple-fold.h.
23402 (ipa_print_node_jump_functions): Print known type jump functions.
23403 (compute_complex_pass_through): Renamed to...
23404 (compute_complex_assign_jump_func): this.
23405 (compute_complex_ancestor_jump_func): New function.
23406 (compute_known_type_jump_func): Likewise.
23407 (compute_scalar_jump_functions): Create known type and complex ancestor
23408 jump functions.
23409 (ipa_note_param_call): New parameter polymorphic, set the corresponding
23410 flag in the call note accordingly.
23411 (ipa_analyze_call_uses): Renamed to...
23412 (ipa_analyze_indirect_call_uses): this. New parameter target, define
23413 variable var only in the block where it is used.
23414 (ipa_analyze_virtual_call_uses): New function.
23415 (ipa_analyze_call_uses): Likewise.
23416 (combine_known_type_and_ancestor_jfs): Likewise.
23417 (update_jump_functions_after_inlining): Implemented handling of a
23418 number of new jump function types combination.
23419 (print_edge_addition_message): Removed.
23420 (make_edge_direct_to_target): New function.
23421 (try_make_edge_direct_simple_call): Likewise.
23422 (try_make_edge_direct_virtual_call): Likewise.
23423 (update_call_notes_after_inlining): Renamed to...
23424 (update_indirect_edges_after_inlining): this. Moved edge creation for
23425 indirect calls to try_make_edge_direct_simple_call, also calls
23426 try_make_edge_direct_virtual_call for virtual calls.
23427 (ipa_print_node_params): Changed the header message.
23428 (ipa_write_jump_function): Stream also known type jump functions.
23429 (ipa_read_jump_function): Likewise.
23430 (ipa_write_indirect_edge_info): Stream new fields in
23431 cgraph_indirect_call_info.
23432 (ipa_read_indirect_edge_info): Likewise.
23433 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
23434 GIMPLE_FOLD_H.
23435
23436 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23437
23438 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
23439
23440 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
23441
23442 * tree.h (CALL_EXPR_ARGS): Delete.
23443 (call_expr_arglist): Delete.
23444 * tree.c (call_expr_arglist): Delete.
23445 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
23446 targetm.fold_builtin.
23447 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
23448 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
23449 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
23450 arglist parameter. Use CALL_EXPR_ARG.
23451 (picochip_expand_builtin_3op): Likewise.
23452 (picochip_expand_builtin_2opvoid): Likewise.
23453 (picochip_expand_array_get): Likewise.
23454 (picochip_expand_array_put): Likewise.
23455 (picochip_expand_array_testport): Likewise.
23456 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
23457 rather than arglist.
23458 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
23459 CALL_EXPR_ARGS.
23460 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
23461 than TREE_VALUE and TREE_CHAIN.
23462 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
23463 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
23464 the arglist.
23465
23466 2010-05-17 Jakub Jelinek <jakub@redhat.com>
23467
23468 PR bootstrap/42347
23469 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
23470 to have no fallthru edge.
23471
23472 PR middle-end/44102
23473 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
23474 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
23475 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
23476 add BARRIER after previous bb if needed.
23477
23478 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
23479
23480 * tree.c (build_function_type_list_1): Remove bogus assert condition.
23481
23482 2010-05-17 Alan Modra <amodra@gmail.com>
23483
23484 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
23485 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
23486 with copy_reg rtx param.
23487 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
23488 Correct cases where code for ABI_V4 did not initialise the reg
23489 used to access frame. Also leave frame_reg_rtx as sp for large
23490 frames that save no regs.
23491
23492 2010-05-17 Martin Jambor <mjambor@suse.cz>
23493
23494 PR middle-end/44133
23495 * tree-sra.c (create_access_replacement): New parameter rename, mark
23496 the replaement for renaming only when it is true.
23497 (get_access_replacement): Pass true in the rename parameter of
23498 create_access_replacement.
23499 (get_unrenamed_access_replacement): New function.
23500 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
23501 replacement declaration from it.
23502
23503 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
23504
23505 * function.c (try_fit_stack_local, add_frame_space): New static
23506 functions.
23507 (assign_stack_local_1): Use them. Look for opportunities to use
23508 space previously wasted on alignment.
23509 * function.h (struct frame_space): New.
23510 (struct rtl_data): Add FRAME_SPACE_LIST member.
23511 * reload1.c (something_was_spilled): New static variable.
23512 (alter_reg): Set it.
23513 (reload): Test it in addition to testing if the frame size changed.
23514
23515 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
23516
23517 * config/s390/s390.c: Define sane prefetch settings and activate
23518 flag_prefetch_loop_arrays on -O3.
23519 * config/s390/s390.h: Declare that read can use write prefetch.
23520
23521 2010-05-17 Jakub Jelinek <jakub@redhat.com>
23522
23523 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
23524 build.
23525
23526 2010-05-16 Jan Hubicka <jh@suse.cz>
23527
23528 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
23529 function body; do not check stdarg field of struct function.
23530
23531 2010-05-16 Jan Hubicka <jh@suse.cz>
23532
23533 * cgraph.c (dump_cgraph_node): Dump versionable flag.
23534 * cgraph.h (cgraph_local_info): Add versionable flag.
23535 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
23536 (ipcp_versionable_function_p): Use it.
23537 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
23538 versionable flag.
23539
23540 2010-05-16 Jan Hubicka <jh@suse.cz>
23541
23542 * cgraph.c (cgraph_clone_node): Take decl argument and insert
23543 clone into hash when it is different from orig.
23544 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
23545 * cgraph.h (cgraph_clone_node): Update prototype.
23546 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
23547 (lto_cgraph_encoder_delete): Delete body map.
23548 (lto_cgraph_encoder_size): Move to header.
23549 (lto_cgraph_encoder_encode_body_p,
23550 lto_set_cgraph_encoder_encode_body): New.
23551 (lto_output_node): Do not take written_decls argument; output clone_of
23552 pointer.
23553 (add_node_to): Add include_body_argument; call
23554 lto_set_cgraph_encoder_encode_body on master of the clone.
23555 (add_references): Update use of add_node_to.
23556 (compute_ltrans_boundary): Likewise.
23557 (output_cgraph): Do not create written_decls bitmap.
23558 (input_node): Take nodes argument; stream in clone_of correctly.
23559 (input_cgraph_1): Update use of input_node.
23560 * lto-streamer-out.c (lto_output): Use encoder info to decide
23561 what bodies to output.
23562 * ipa-inline.c (cgraph_clone_inlined_nodes,
23563 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
23564 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
23565 (lto_cgraph_encoder_size): Define here.
23566 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
23567 Declare.
23568
23569 2010-05-16 Richard Guenther <rguenther@suse.de>
23570
23571 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
23572 -fipa-type-escape.
23573 * ipa-type-escape.c (gate_type_escape_vars): Run when
23574 -fipa-struct-reorg runs.
23575 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
23576 * common.opt (fipa-type-escape): Remove.
23577
23578 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
23579
23580 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
23581 (decode_options): Likewise.
23582 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
23583
23584 2010-05-16 Jan Hubicka <jh@suse.cz>
23585
23586 * ipa.c (function_and_variable_visibility): Also bring local all
23587 aliases.
23588
23589 2010-05-16 Richard Guenther <rguenther@suse.de>
23590
23591 * alias.c (nonoverlapping_memrefs_p): Remove use of
23592 IPA type-escape information.
23593
23594 2010-05-16 Joseph Myers <joseph@codesourcery.com>
23595
23596 * c-common.c (c_common_reswords): Add _Static_assert for C.
23597 * c-parser.c (c_token_starts_declaration,
23598 c_parser_next_token_starts_declaration,
23599 c_parser_static_assert_declaration_no_semi,
23600 c_parser_static_assert_declaration): New.
23601 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
23602 Handle static assertions if static_assert_ok.
23603 (c_parser_external_declaration, c_parser_declaration_or_fndef,
23604 c_parser_compound_statement_nostart, c_parser_label,
23605 c_parser_for_statement, c_parser_objc_methodprotolist,
23606 c_parser_omp_for_loop): All callers of
23607 c_parser_declaration_or_fndef changed.
23608 (c_parser_struct_declaration): Handle static assertions.
23609 (c_parser_compound_statement_nostart): Use
23610 c_parser_next_token_starts_declaration and
23611 c_token_starts_declaration to detect start of declarations.
23612 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
23613 Likewise.
23614
23615 2010-05-16 Anatoly Sokolov <aesok@post.ru>
23616
23617 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23618 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23619 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23620 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23621 (mmix_function_outgoing_value): Rename to...
23622 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
23623 (mmix_function_value_regno_p): Make static.
23624 (mmix_libcall_value): New function.
23625 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
23626 mmix_function_value_regno_p): Remove declaration.
23627
23628 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
23629
23630 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
23631 BUILT_IN_ALLOCA if stack checking is enabled.
23632
23633 2010-05-16 Richard Guenther <rguenther@suse.de>
23634
23635 * var-tracking.c (vars_copy_1): Inline ...
23636 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
23637 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
23638 (variable_merge_over_cur): Adjust. Merge asserts.
23639 (variable_merge_over_src): Likewise.
23640 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
23641 (variable_post_merge_new_vals): Merge asserts.
23642 (variable_post_merge_perm_vals): Likewise.
23643 (find_mem_expr_in_1pdv): Likewise.
23644 (dataflow_set_different_value): Remove.
23645 (onepart_variable_different_p): Merge asserts.
23646 (variable_different_p): Likewise.
23647 (dataflow_set_different_1): Inline ...
23648 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
23649 (emit_notes_for_differences_1): Merge asserts.
23650
23651 2010-05-16 Richard Guenther <rguenther@suse.de>
23652
23653 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
23654 * optabs.c (libfunc_decl_hash): Likewise.
23655 * varasm.c (emutls_decl): Likewise.
23656
23657 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
23658
23659 * c-decl.c: Don't include gimple.h.
23660 (merge_decls): Do not copy gimple_body.
23661
23662 2010-05-15 Jason Merrill <jason@redhat.com>
23663
23664 * c.opt: Add -fnothrow-opt.
23665
23666 2010-05-15 Jan Hubicka <jh@suse.cz>
23667
23668 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
23669 analyzed.
23670 * passes.c (ipa_write_summaries): Write all analyzed nodes.
23671
23672 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
23673
23674 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
23675 * Makefile.in: Add it.
23676 Fix all other Makefile dependencies for changes below.
23677 * tree.h: Include it instead of defining VEC primitives here.
23678 * gimple.h: Likewise.
23679 * rtl.h: Likewise.
23680 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
23681 * except.h: Include vecir.h, break dependence on tree.h.
23682
23683 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
23684 Move from here...
23685 * tree-iterator.c: ...to here.
23686 * tree-iterator.h: Fix file introduction comment. Add extern markers.
23687
23688 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
23689 tm_p.h.
23690 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
23691 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
23692 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
23693 tree-mudflap.h, and target.h.
23694 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
23695 predict.h, tree-inline.h, gimple.h, and langhooks.h.
23696 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
23697 Add FIXME for why gimple.h is still included (should be unnecessary
23698 since GCC 4.5 gimplification unit-at-a-time).
23699 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
23700 * c-pragma.c: Add FIXME for why function.h needs to be included just
23701 for cfun, at front-end level.
23702 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
23703 Do not include ggc.h, but include vecprim.h for VEC(char).
23704 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
23705 Explain why target.h is included.
23706 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
23707 Explain why gimple.h is included.
23708 * c-ppoutput.c: Do not include tm.h.
23709 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
23710 * c-parses.c: Explain why rtl.h is included, and that this (and only
23711 this) is also why tm.h must be included.
23712 Do not include except.h.
23713 * c-lang.c: Do not include ggc.h.
23714
23715 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
23716
23717 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
23718
23719 2010-05-15 Joseph Myers <joseph@codesourcery.com>
23720
23721 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
23722 unions by default if those structs and unions have no tags. Do
23723 not condition anonymous struct and unions handling on flag_iso.
23724 Allow anonymous structs and unions for C1X.
23725 (finish_struct): Do not diagnose lack of named fields when
23726 anonymous structs and unions present for C1X. Accept flexible
23727 array members in structure with anonymous structs or unions but no
23728 directly named fields.
23729 * doc/extend.texi (Unnamed Fields): Update.
23730
23731 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
23732
23733 * gimple.h (compare_field_offset): Rename into...
23734 (gimple_compare_field_offset): ...this.
23735 * gimple.c (compare_field_offset): Rename into...
23736 (gimple_compare_field_offset): ...this. Compare the full access if
23737 the offset is self-referential.
23738 (gimple_types_compatible_p): Adjust for above renaming.
23739 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
23740 DECL_NONADDRESSABLE_P flag of fields before merging them.
23741
23742 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
23743
23744 * tree.h (ctor_to_list): Delete.
23745 * tree.c (ctor_to_list): Delete.
23746
23747 2010-05-15 Jan Hubicka <jh@suse.cz>
23748
23749 * ipa-reference.c: Include toplev.h
23750 (is_proper_for_analysis): Only add to all_module_statics
23751 if it is allocated.
23752 (write_node_summary_p, stream_out_bitmap,
23753 ipa_reference_write_optimization_summary,
23754 ipa_reference_read_optimization_summary): New.
23755 (struct ipa_opt_pass_d pass_ipa_reference): Add
23756 optimization summary streaming.
23757 * lto-cgraph.c (referenced_from_this_partition_p,
23758 reachable_from_this_partition_p): New functions.
23759 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
23760 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
23761 * opts.c (decode_options): Enable ipa_reference.
23762 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
23763 * lto-streamer.h (referenced_from_this_partition_p,
23764 reachable_from_this_partition_p): Declare.
23765
23766 2010-05-15 Richard Guenther <rguenther@suse.de>
23767
23768 PR tree-optimization/44038
23769 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
23770 taking the address of a V_C_E of a constant.
23771
23772 2010-05-14 Jan Hubicka <jh@suse.cz>
23773
23774 * tree.h (memory_identifier_string): Remove.
23775 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
23776 (ipa_reference_global_vars_info_d): Remove statics_not_read and
23777 statics_not_written.
23778 (ipa_reference_optimization_summary_d): New structure.
23779 (ipa_reference_optimization_summary_t): New type and vector.
23780 (ipa_reference_vars_info_d): Embedd structures instead of using
23781 pointers.
23782 (reference_vars_to_consider): Remove out of GGC space.
23783 (module_statics_escape): Remove.
23784 (global_info_obstack): Rename to ...
23785 (optimization_summary_obstack): ... this one.
23786 (initialization_status_t): Remove.
23787 (memory_identifier_string): Remove.
23788 (get_reference_vars_info): Fix indenting.
23789 (set_reference_vars_info): Likewise.
23790 (get_reference_optimization_summary): New.
23791 (set_reference_optimization_summary): New.
23792 (get_global_reference_vars_info): Remove.
23793 (ipa_reference_get_read_global): Remove.
23794 (ipa_reference_get_written_global): Remove.
23795 (ipa_reference_get_not_read_global): Update.
23796 (ipa_reference_get_not_written_global): Update.
23797 (is_proper_for_analysis): Outlaw addressable.
23798 (propagate_bits): Update for new datastructures.
23799 (analyze_variable): Remove.
23800 (init_function_info): Update for new datastructures.
23801 (clean_function_local_data): Remove.
23802 (clean_function): Remove.
23803 (copy_global_bitmap): Use optimizations_summary_obstack.
23804 (duplicate_node_data): Duplicate optimization summary only.
23805 (remove_node_data): Remove optimization summary only.
23806 (generate_summary): Do not analyze variables; do not compute
23807 module_statics_escape; do not prune solutions by it.
23808 (read_write_all_from_decl): Fix typos in comments.
23809 (propagate): Doscover readonly and nonaddressable first;
23810 update for new datastructures; share global bitmaps.
23811 * ipa-reference.h (ipa_reference_get_read_global,
23812 ipa_reference_get_written_global): Remove.
23813 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
23814 * Makefile.in: Remove ipa-refereference from GT files.
23815
23816 2010-05-14 Jakub Jelinek <jakub@redhat.com>
23817
23818 PR debug/44112
23819 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
23820 for all SYMBOL_REF_DECLs.
23821
23822 2010-05-14 Jan Hubicka <jh@suse.cz>
23823
23824 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
23825 (varpool_all_refs_explicit_p): New inline function.
23826 * ipa-reference.c: Update comment.
23827 (module_statics_written): Remove.
23828 (get_static_decl): Remove.
23829 (ipa_init): Do not initialize module_statics_written.
23830 (analyze_function): Likewise.
23831 (generate_summary): Likewise; do not compute module_statics_readonly
23832 and do not update variable flags.
23833 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
23834 * ipa.c: Inlucde flags.h
23835 (cgraph_local_node_p): New.
23836 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
23837 promote functions to local.
23838 (ipa_discover_readonly_nonaddressable_vars): New function.
23839 (function_and_variable_visibility): Use cgraph_local_node_p.
23840 * varpool.c (varpool_finalize_decl): Set force_output for
23841 DECL_PRESERVE_P vars.
23842
23843 2010-05-14 Jan Hubicka <jh@suse.cz>
23844
23845 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
23846
23847 2010-05-14 Richard Guenther <rguenther@suse.de>
23848
23849 PR tree-optimization/44119
23850 * tree-ssa-pre.c (eliminate): Properly mark replacement of
23851 a PHI node necessary.
23852
23853 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
23854
23855 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
23856
23857 2010-05-14 Jason Merrill <jason@redhat.com>
23858
23859 PR c++/44127
23860 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
23861 (gimple_call_set_nothrow): New.
23862 * gimple.c (gimple_build_call_from_tree): Call it.
23863 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
23864
23865 PR c++/44127
23866 * gimplify.c (gimplify_seq_add_stmt): No longer static.
23867 * gimple.h: Declare it.
23868 * gimple.c (gimple_build_eh_filter): No ops.
23869
23870 2010-05-14 Jan Hubicka <jh@suse.cz>
23871
23872 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
23873 nodes already in queue.
23874 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
23875 re-enqueueing node.
23876
23877 2010-05-14 Jakub Jelinek <jakub@redhat.com>
23878
23879 PR debug/44136
23880 * cfgexpand.c (expand_debug_expr): If non-memory op0
23881 has BLKmode, return NULL.
23882
23883 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
23884
23885 * config.gcc: Add support for --with-cpu option for bdver1.
23886 * config/i386/i386.h (TARGET_BDVER1): New macro.
23887 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
23888 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
23889 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
23890 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
23891 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
23892 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
23893 (processor_type): Add PROCESSOR_BDVER1.
23894 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
23895 processor_type in config/i386/i386.h.
23896 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
23897 movaps <reg, reg> instead of movapd <reg, reg> when replacing
23898 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
23899 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
23900 to emit packed xor instead of packed double/packed integer
23901 xor for SSE and AVX when moving a zero value.
23902 * config/i386/sse.md: Add check for
23903 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
23904 movapd/movdqa for SSE and AVX.
23905 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
23906 single logical operations i.e and, or and xor instead of packed double
23907 logical operations for SSE and AVX.
23908 * config/i386/i386-c.c (ix86_target_macros_internal):
23909 Add PROCESSOR_BDVER1.
23910 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
23911 (has_fma4, has_xop): New.
23912 * config/i386/i386.c (bdver1_cost): New variable.
23913 (m_BDVER1): New macro.
23914 (m_AMD_MULTIPLE): Add m_BDVER1.
23915 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
23916 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
23917 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
23918 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
23919 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
23920 x86_tune_sse_partial_reg_dependency,
23921 x86_tune_sse_unaligned_load_optimal,
23922 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
23923 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
23924 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
23925 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
23926 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
23927 Enable/disable for bdver1.
23928 (processor_target_table): Add bdver1_cost.
23929 (cpu_names): Add bdver1.
23930 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
23931 processor_alias_table.
23932 (ix86_expand_vector_move_misalign): Change.
23933 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
23934 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
23935 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
23936 of movupd/movdqu for SSE and AVX.
23937 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
23938 (ix86_tune_adjust_cost): Add code for bdver1.
23939 (standard_sse_constant_opcode): Add check for
23940 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
23941 of packed double xor for SSE and AVX.
23942
23943 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
23944
23945 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
23946 result to unsigned.
23947
23948 2010-05-14 Tristan Gingold <gingold@adacore.com>
23949
23950 * toplev.c (default_debug_hooks): Remove this variable.
23951 (process_options): Remove assignments to default_debug_hooks.
23952
23953 2010-05-14 Martin Jambor <mjambor@suse.cz>
23954
23955 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
23956 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
23957 * langhooks.h (struct lang_hooks_for_decls): Removed field
23958 fold_obj_type_ref.
23959 * tree.c (free_lang_data): Remove assignment to
23960 lang_hooks.fold_obj_type_ref.
23961 * tree.def (OBJ_TYPE_REF): Update comment.
23962
23963 2010-05-14 Richard Guenther <rguenther@suse.de>
23964
23965 PR tree-optimization/44124
23966 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
23967
23968 2010-05-14 Alan Modra <amodra@gmail.com>
23969
23970 PR target/44075
23971 * config/rs6000/rs6000.c (struct machine_function): Reorder
23972 fields for better packing. Add lr_save_state.
23973 (rs6000_ra_ever_killed): Return lr_save_state if set.
23974 (rs6000_emit_eh_reg_restore): Set lr_save_state.
23975
23976 2010-05-13 Jan Hubicka <jh@suse.cz>
23977
23978 * varpool.c (decide_is_variable_needed): Drop code checking
23979 TREE_SYMBOL_REFERENCED.
23980
23981 2010-05-13 Jan Hubicka <jh@suse.cz>
23982
23983 * final.c (output_addr_const): Do not call mark_decl_referenced.
23984 * cgraphunit.c (process_function_and_variable_attributes): Use
23985 mark_needed_node dirrectly.
23986 (assemble_thunk): Do not call mark_decl_referenced.
23987
23988 2010-05-13 Anatoly Sokolov <aesok@post.ru>
23989
23990 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
23991
23992 2010-05-13 Jeff Law <law@redhat.com>
23993
23994 * ira-conflicts.c (print_allocno_conflicts): New function broken out
23995 from...
23996 (print_conflicts): Call print_allocno_conflicts.
23997
23998 2010-05-13 Jakub Jelinek <jakub@redhat.com>
23999
24000 PR debug/44104
24001 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
24002 if it is NULL.
24003
24004 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
24005
24006 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
24007 t-mingw-w64 or t-mingw-w32 for multilib configuration.
24008 * config/i386/t-mingw-w32: New.
24009 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
24010
24011 2010-05-13 Martin Jambor <mjambor@suse.cz>
24012
24013 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
24014 gimple-fold.c).
24015 * gimple-fold.c (get_base_binfo_for_type): New function.
24016 (gimple_get_relevant_ref_binfo): Likewise.
24017 (gimple_fold_obj_type_ref_known_binfo): Likewise.
24018 (gimple_fold_obj_type_ref): Likewise.
24019 (fold_gimple_call): Simplify condition for folding virtual calls
24020 and call gimple_fold_obj_type_ref.
24021 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
24022 (gimple_fold_obj_type_ref_known_binfo): Likewise.
24023
24024 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
24025
24026 * config/rs6000/rs6000-protos.h
24027 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
24028 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
24029 (rs6000_debug_mode_dependent_address)
24030 (rs6000_mode_dependent_address_ptr): Likewise.
24031
24032 2010-05-13 Jakub Jelinek <jakub@redhat.com>
24033
24034 PR debug/43983
24035 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
24036 by SRA.
24037 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
24038 * tree-sra.c (create_access_replacement): Call unshare_expr before
24039 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
24040 * dwarf2out.c: Include tree-flow.h.
24041 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
24042 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
24043 Handle DW_OP_bit_piece.
24044 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
24045 construct_piece_list, adjust_piece_list): New functions.
24046 (add_var_loc_to_decl): Handle SRA optimized variables.
24047 Adjust for var_loc_note to loc field renaming.
24048 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
24049 in VAR_LOCATION note.
24050 (new_loc_descr_op_bit_piece): New function.
24051 (dw_sra_loc_expr): New function.
24052 (dw_loc_list): Use it. Don't handle the last range after the
24053 loop, handle it inside of the loop. Adjust for var_loc_note
24054 to loc field renaming.
24055 (add_location_or_const_value_attribute): Only special case
24056 single entry loc lists if loc is NOTE_P. Adjust for
24057 var_loc_note to loc field renaming.
24058 (dwarf2out_var_location): Don't set newloc->var_loc_note
24059 and newloc->next here.
24060
24061 2010-05-12 Jan Hubicka <jh@suse.cz>
24062
24063 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
24064 flag.
24065 * cgraph.h (cgraph_only_called_directly_p,
24066 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
24067 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
24068 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
24069 (assemble
24070 * ipa.c (cgraph_remove_unreachable_nodes): Use
24071 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
24072 flags.
24073 * tree-inline.c (copy_bb): Check address_taken flag.
24074 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
24075 externally_visible flag.
24076
24077 2010-05-12 Jason Merrill <jason@redhat.com>
24078
24079 PR bootstrap/44048
24080 PR target/44099
24081 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
24082 * sdbout.c (plain_type_1): Likewise.
24083 * dwarf2out.c (is_base_type): Likewise.
24084 (gen_type_die_with_usage): Likewise. Generate
24085 DW_TAG_unspecified_type for any LANG_TYPE.
24086
24087 2010-05-12 Jan Hubicka <jh@suse.cz>
24088
24089 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
24090 indrect edges too.
24091 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
24092 (cgraph_clone_edge): Update.
24093 (cgraph_node_remove_callees): Remove indirect calls too.
24094 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
24095 (cgraph_create_indirect_edge): Update prototype.
24096 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
24097 is_proper_for_analysis.
24098 (add_new_function, visited_nodes, function_insertion_hook_holder,
24099 get_local_reference_vars_info, mark_address_taken, mark_address,
24100 mark_load, mark_store, check_asm_memory_clobber, check_call,
24101 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
24102 (ipa_init): Do not initialize visited_nodes;
24103 function_insertion_hook_holder.
24104 (analyze_variable): Rewrite.
24105 (analyze_function): Rewrite.
24106 (copy_local_bitmap): Remove.
24107 (duplicate_node_dat): Do not duplicate local info.
24108 (generate_summary): Simplify to only walk cgraph.
24109 (write_node_summary_p, ipa_reference_write_summary,
24110 ipa_reference_read_summary): Remove.
24111 (propagate): Do not remove function insertion;
24112 generate summary.
24113 (pass_ipa_reference): NULLify summary handling fields.
24114 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
24115 (input_edge): Input ecf_flags.
24116 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
24117 (update_indirect_edges_after_inlining): Ignore edges with unknown
24118 param.
24119
24120 2010-05-12 Sriraman Tallam <tmsriram@google.com>
24121
24122 * implicit-zee.c: New file.
24123 * tree-pass.h (pass_implicit_zee): Declare.
24124 * passes.c (init_optimization_passes): Add zee pass.
24125 * common.opt (fzee): New flag.
24126 * timevar.def (TV_ZEE): Define.
24127 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
24128 and beyond.
24129 * Makefile.in (implicit-zee.o): Add new build file.
24130
24131 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24132 Nathan Froyd <froydnj@codesourcery.com>
24133
24134 * c-common.c (sync_resolve_params): Remove write-only variable.
24135
24136 2010-05-12 Anatoly Sokolov <aesok@post.ru>
24137
24138 * target.h (struct gcc_target): Add mode_dependent_address_p field.
24139 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24140 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
24141 * targhooks.c (default_mode_dependent_address_p): New function.
24142 * targhooks.h (default_mode_dependent_address_p): Declare function.
24143 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24144 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
24145 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
24146 target hook. Change return type to bool.
24147 * recog.h (mode_dependent_address_p): Change return type to bool.
24148
24149 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24150 Nathan Froyd <froydnj@codesourcery.com>
24151
24152 * tree-mudflap.c (build_function_type_0, build_function_type_1,
24153 build_function_type_2, build_function_type_3): Remove.
24154 (mudflap_init): Use build_function_type_list.
24155
24156 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24157 Nathan Froyd <froydnj@codesourcery.com>
24158
24159 * coverage.c (build_fn_info_value): Call build_constructor instead of
24160 build_constructor_from_list.
24161 (build_ctr_info_value): Likewise.
24162 (build_gcov_info): Likewise.
24163
24164 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
24165
24166 * tree.c (build_constructor): Compute TREE_CONSTANT for the
24167 resultant constructor.
24168 (build_constructor_single): Don't set TREE_CONSTANT.
24169 (build_constructor_from_list): Don't compute TREE_CONSTANT.
24170
24171 2010-05-12 Jan Hubicka <jh@suse.cz>
24172
24173 * cgraph.h (struct varpool_node): Add aux.
24174 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
24175 * varpool.c (varpool_remove_node): Do not remove initializer.
24176 (varpool_reset_queue): Export.
24177 (varpool_finalize_decl): Volatile vars are forced to be output.
24178 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
24179 replaced decl.
24180 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
24181 process_references, varpool_can_remove_if_no_refs): New functions.
24182 (cgraph_remove_unreachable_nodes): Handle variables too.
24183
24184 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
24185
24186 PR target/44088
24187 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
24188
24189 2010-05-12 Jakub Jelinek <jakub@redhat.com>
24190
24191 PR middle-end/44085
24192 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
24193 change value of ORT_TASK.
24194 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
24195 (omp_notice_threadprivate_variable): New function.
24196 (omp_notice_variable): Call it for threadprivate variables.
24197 If enclosing ctx is a task, print enclosing task rather than
24198 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
24199 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
24200 if task has untied clause.
24201
24202 PR debug/42278
24203 * dwarf2out.c (base_type_die): Don't add name attribute here.
24204 (modified_type_die): Instead of sizetype use
24205 its underlying original type. If a DW_TAG_base_type doesn't
24206 have name added, add __unknown__.
24207 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
24208 always call force_type_die instead.
24209
24210 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
24211
24212 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
24213 for __stack_chk_guard.
24214
24215 2010-05-11 Jakub Jelinek <jakub@redhat.com>
24216
24217 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
24218 don't call start_source_file debug hook here...
24219 (finish_options): ... but here, after outputting predefined and
24220 command line defines and undefs.
24221
24222 PR middle-end/44071
24223 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
24224 no fallthru edge.
24225 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
24226 optimizing away empty bb with no successors, move over its
24227 footer chain to fallthru predecessor.
24228 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
24229 (rtl_split_edge): For asm goto call patch_jump_insn even if
24230 splitting fallthru edge.
24231
24232 PR c++/44059
24233 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
24234 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
24235 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
24236 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
24237 on DW.ref.* decls.
24238
24239 PR c++/44062
24240 * c-parser.c (c_parser_expression): Mark LHS of a comma
24241 expression as read if it is a decl, handled component or
24242 COMPOUND_EXPR with that on the RHS.
24243 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
24244 if it is a decl or handled component.
24245
24246 2010-05-11 Jan Hubicka <jh@suse.cz>
24247
24248 * lto-symtab.c (lto_symtab_free): New function.
24249 * lto-streamer.h (lto_symtab_free): Declare.
24250
24251 2010-05-11 Jan Hubicka <jh@suse.cz>
24252
24253 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
24254 that if function is needed it is reachable.
24255 (lto_output_node): See if it the function is reachable or referenced.
24256 (output_cgraph): Update call of lto_output_node.
24257 * lto-streamer.h (reachable_from_other_partition_p): Declare.
24258
24259 2010-05-11 Jan Hubicka <jh@suse.cz>
24260
24261 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
24262 Mark as used.
24263
24264 2010-05-11 Jan Hubicka <jh@suse.cz>
24265
24266 PR tree-optimize/44063
24267 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
24268 queue.
24269 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
24270 limits.
24271 (estimate_function_body_sizes): Compute sizes even when disregarding.
24272
24273 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
24274
24275 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
24276
24277 2010-05-11 Jan Hubicka <jh@suse.cz>
24278
24279 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
24280 into every boundary.
24281
24282 2010-05-11 Jan Hubicka <jh@suse.cz>
24283
24284 * matrix-reorg.c (matrix_reorg): Rebuild edges.
24285
24286 2010-05-11 Jan Hubicka <jh@suse.cz>
24287
24288 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
24289 lto_streamer_cache_delete): Put nodes into heap.
24290 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
24291 heap.
24292
24293 2010-05-11 Jan Hubicka <jh@suse.cz>
24294
24295 * cgraphbuild.c (cgraph_rebuild_references): New.
24296 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
24297 out extern inlines.
24298 * cgraph.h (cgraph_rebuild_references): Declare.
24299 * tree-inline.c (tree_function_versioning): Use it.
24300 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
24301
24302 2010-05-11 Jan Hubicka <jh@suse.cz>
24303
24304 * cgraph.c: Include ipa-utils.h
24305 (cgraph_create_virtual_clone): Update references.
24306 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
24307
24308 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
24309
24310 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
24311 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
24312 cache size.
24313
24314 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
24315
24316 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
24317
24318 2010-05-11 Jakub Jelinek <jakub@redhat.com>
24319
24320 * gcc.c (execute): For -### don't quote arguments that
24321 contain just alphanumerics and _/-. characters.
24322 * doc/invoke.texi: Document that change for -###.
24323
24324 PR debug/44023
24325 * df-problems.c (struct dead_debug): Add to_rescan field.
24326 (dead_debug_init): Clear to_rescan field.
24327 (dead_debug_finish): Rescan all debug insns in to_rescan
24328 bitmap and free the bitmap.
24329 (dead_debug_insert_before): Instead of rescanning debug insns
24330 immediately queue their rescanning until dead_debug_finish.
24331 (df_note_bb_compute): After dead_debug_add do continue instead
24332 of break.
24333
24334 2010-05-10 Jakub Jelinek <jakub@redhat.com>
24335
24336 PR debug/44028
24337 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
24338 clear also INSN_REG_USE_LIST.
24339
24340 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24341
24342 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
24343
24344 2010-05-10 Jan Hubicka <jh@suse.cz>
24345
24346 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
24347 commited change.
24348
24349 2010-05-10 Jan Hubicka <jh@suse.cz>
24350
24351 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
24352 Allocate encoders.
24353 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
24354 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
24355 (lto_streamer_cache_create): Init alloc pool.
24356 (lto_streamer_cache_delete): Free alloc pool.
24357 * lto-streamer.h: Include alloc pool.
24358 (lto_streamer_cache_d): Use alloc pool.
24359 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
24360
24361 2010-05-10 Jan Hubicka <jh@suse.cz>
24362
24363 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
24364 * cgraphbuild.c: Include except.h
24365 (record_type_list, record_eh_tables): New function.
24366 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
24367
24368 2010-05-10 Jan Hubicka <jh@suse.cz>
24369
24370 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
24371 __frame_dummy_init_array_entry, force_to_data): Attribute as used
24372 rather than unused.
24373
24374 2010-05-10 Michael Matz <matz@suse.de>
24375
24376 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
24377 (can_reassociate_p): Use FLOAT_TYPE_P.
24378 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
24379 (vect_force_simple_reduction): ... this.
24380 * tree-parloops.c (gather_scalar_reductions): Use
24381 vect_force_simple_reduction.
24382 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
24383 vect_is_simple_reduction, add modify argument, if true rewrite
24384 "a-b" into "a+(-b)".
24385 (vect_is_simple_reduction, vect_force_simple_reduction): New
24386 functions.
24387 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
24388
24389 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
24390 Vladimir Makarov <vmakarov@redhat.com>
24391
24392 PR rtl-optimization/44012
24393 * ira-build.c (remove_unnecessary_allocnos): Nullify
24394 regno_allocno_map of the removed allocno.
24395
24396 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24397
24398 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
24399 to /dev/null.
24400 * configure: Regenerate.
24401
24402 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24403
24404 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
24405 unused.
24406 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
24407 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
24408 support in Sun ld.
24409 * configure: Regenerate.
24410
24411 2010-05-10 Richard Guenther <rguenther@suse.de>
24412
24413 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
24414 marked if the entry identifier is marked.
24415
24416 2010-05-10 Richard Guenther <rguenther@suse.de>
24417
24418 * c-common.c (struct c_common_attributes): Add fnspec attribute.
24419 (handle_fnspec_attribute): New function.
24420 * gimple.h (gimple_call_return_flags): Declare.
24421 (gimple_call_arg_flags): Likewise.
24422 * gimple.c (gimple_call_arg_flags): New function.
24423 (gimple_call_return_flags): Likewise.
24424 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
24425 New argument flags.
24426 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
24427 return value flags.
24428 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
24429 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
24430 main work to ...
24431 (make_heapvar_for): ... this new function.
24432 (handle_rhs_call): Handle fnspec attribute argument specifiers.
24433 (handle_lhs_call): Likewise.
24434 (find_func_aliases): Adjust.
24435
24436 2010-05-10 Richard Guenther <rguenther@suse.de>
24437
24438 PR tree-optimization/44050
24439 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
24440
24441 2010-05-10 Wei Guozhi <carrot@google.com>
24442
24443 PR target/42879
24444 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
24445
24446 2010-05-09 Joseph Myers <joseph@codesourcery.com>
24447
24448 PR c/10676
24449 * c-typeck.c (lookup_field): Take a type directly. Update
24450 recursive calls.
24451 (build_component_ref): Update call to lookup_field.
24452 (set_init_label): Use lookup_field to find initialized field.
24453 Handle returned list of fields like a sequence of designators.
24454
24455 2010-05-09 Richard Guenther <rguenther@suse.de>
24456
24457 PR middle-end/44024
24458 * fold-const.c (tree_single_nonzero_warnv_p): Properly
24459 handle &FUNCTION_DECL.
24460
24461 2010-05-09 Joseph Myers <joseph@codesourcery.com>
24462
24463 PR c/4784
24464 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
24465 structures and unions recursively.
24466 (detect_field_duplicates): Move duplicate detection with a hash to
24467 detect_field_duplicates_hash. Always use a hash if anonymous
24468 structures or unions are present.
24469 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
24470 give errors.
24471
24472 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
24473
24474 PR target/44046
24475 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
24476 detect Atom, Core 2 and Core i7.
24477
24478 2010-05-09 Richard Guenther <rguenther@suse.de>
24479
24480 * gcc.c (store_arg): Handle temporary file deletion for
24481 joined arguments.
24482
24483 2010-05-09 Richard Guenther <rguenther@suse.de>
24484
24485 PR middle-end/44043
24486 * ipa-inline.c (estimate_function_body_sizes): Return after
24487 disregarding inline limits.
24488
24489 2010-05-09 Richard Guenther <rguenther@suse.de>
24490
24491 * gcc.c (store_arg): Revert last change.
24492
24493 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
24494
24495 PR middle-end/28685
24496 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
24497 (optimize_ops_list): Call it.
24498
24499 2010-05-08 Richard Guenther <rguenther@suse.de>
24500
24501 PR tree-optimization/44030
24502 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
24503 NECESSARY flag if we propagate from a inserted expression.
24504
24505 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
24506
24507 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
24508 domain types as equal if they are both PLACEHOLDER_EXPRs.
24509
24510 2010-05-08 Richard Guenther <rguenther@suse.de>
24511
24512 * lto-wrapper.c (run_gcc): Remove linker output from
24513 command line for LTRANS invocation.
24514
24515 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
24516
24517 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
24518 lto-macho as lto_binary_reader.
24519 * target.h (struct gcc_target): New hooks lto_start and lto_end.
24520 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
24521 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
24522 in lto_start and lto_end calls.
24523 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
24524 magic numbers.
24525 (scan_prog_file): Update is_elf_or_coff call.
24526 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
24527
24528 * collect2.c (main): Fix enum comparison.
24529
24530 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
24531 Add prototypes.
24532 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
24533 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
24534 and TARGET_ASM_LTO_END.
24535 * darwin.c: Include obstack.h and lto-streamer.h.
24536 (lto_section_names_offset, lto_section_names_obstack,
24537 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
24538 global variables.
24539 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
24540 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
24541 to a temporary file.
24542 (darwin_asm_lto_end): New function. Restore asm_out_file.
24543 (darwin_asm_named_section): For LTO sections, replace the name with
24544 the offset of the section name in a string table, and build this
24545 table.
24546 (darwin_file_start): Initialize global vars for LTO support.
24547 (darwin_file_end): If output to asm_out_file was redirected, append it
24548 to the proper asm_out_file here. Add the section names section.
24549
24550 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
24551
24552 * c-pragma.c (pending_weak_d, pending_weak): New.
24553 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
24554 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
24555 handle_pragma_weak): Update the uses of pending_weaks.
24556
24557 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24558
24559 PR documentation/44016
24560 * doc/standards.texi (Standards): Link to unversioned
24561 cxx0x_status.html page.
24562
24563 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
24564
24565 PR target/43708
24566 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
24567 in addition to TREE_USED, to avoid "set but unused" warnings.
24568
24569 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24570
24571 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
24572 (is_loop_prefetching_profitable): Do not insert prefetches
24573 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
24574 times the prefetch ahead distance.
24575
24576 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24577
24578 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
24579 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
24580 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
24581 the unroll_factor.
24582
24583 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24584
24585 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
24586 a diagnostic info when the insn-to-mem ratio is too small.
24587
24588 2010-05-07 Richard Guenther <rguenther@suse.de>
24589
24590 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
24591 the linker plugin.
24592 (store_arg): Queue temp_filename for deletion instead of
24593 the whole argument.
24594
24595 2010-05-07 Richard Guenther <rguenther@suse.de>
24596
24597 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
24598 (run_gcc): Handle LTRANS phase invocation.
24599 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
24600
24601 2010-05-07 Jakub Jelinek <jakub@redhat.com>
24602
24603 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
24604 this is also meaningful on PARM_DECLs and RESULT_DECLs.
24605
24606 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24607
24608 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
24609
24610 2010-05-07 Richard Guenther <rguenther@suse.de>
24611
24612 PR tree-optimization/44020
24613 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
24614 code when PRE is not yet initialized.
24615
24616 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24617
24618 * config/mips/dbxmdebug.h: Remove.
24619 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
24620
24621 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
24622
24623 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
24624 with null pointer and also warn about ordered comparison of zero with
24625 pointer if -Wextra.
24626
24627 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
24628
24629 * graphite-blocking.c
24630 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
24631 * graphite-clast-to-gimple.c
24632 (clast_to_gcc_expression): Same.
24633 (precision_for_value): Same.
24634 (precision_for_interval): Same.
24635 (gcc_type_for_interval): Same.
24636 (graphite_create_new_guard): Same.
24637 (compute_bounds_for_level): Same.
24638 (graphite_create_new_loop_guard): Same.
24639 * graphite-interchange.c
24640 (build_linearized_memory_access): Same.
24641 (pdr_stride_in_loop): Same.
24642 (memory_strides_in_loop_1): Same.
24643 (memory_strides_in_loop): Same.
24644 (extend_scattering): Same.
24645 (psct_scattering_dim_for_loop_depth): Same.
24646 (pbb_number_of_iterations): Same.
24647 * graphite-poly.h
24648 (debug_iteration_domains): Same.
24649 * graphite-ppl.c
24650 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
24651 (ppl_set_inhomogeneous_gmp): Same.
24652 (ppl_strip_loop): Same.
24653 (ppl_lexico_compare_linear_expressions): Same.
24654 (ppl_read_polyhedron_matrix): Same.
24655 (ppl_max_for_le_pointset): Same.
24656 * graphite-ppl.h
24657 (ppl_read_polyhedron_matrix): Same.
24658 (tree_int_to_gmp): Same.
24659 (gmp_cst_to_tree): Same.
24660 (ppl_set_inhomogeneous): Same.
24661 (ppl_set_inhomogeneous_tree): Same.
24662 (ppl_set_coef): Same.
24663 (ppl_set_coef_tree): Same.
24664 * graphite-sese-to-poly.c
24665 (build_pbb_scattering_polyhedrons): Same.
24666 (build_scop_scattering): Same.
24667 (scan_tree_for_params_right_scev): Same.
24668 (scan_tree_for_params): Same.
24669 (find_params_in_bb): Same.
24670 (find_scop_parameters): Same.
24671 (add_upper_bounds_from_estimated_nit): Same.
24672 (build_loop_iteration_domains): Same.
24673 (add_condition_to_domain): Same.
24674 (pdr_add_memory_accesses): Same.
24675
24676 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
24677
24678 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
24679 CLooG's value_* macros to their respective mpz_* counterparts.
24680 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
24681 (graphite_create_new_loop_guard): Same.
24682 * graphite-interchange.c (build_linearized_memory_access): Same.
24683 (pdr_stride_in_loop): Same.
24684 (memory_strides_in_loop_1): Same.
24685 (1st_interchange_profitable_p): Same.
24686 * graphite-poly.c (extend_scattering): Same.
24687 (psct_scattering_dim_for_loop_depth): Same.
24688 (pbb_number_of_iterations): Same.
24689 (pbb_number_of_iterations_at_time): Same.
24690 * graphite-poly.h (new_1st_loop): Same.
24691 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
24692 (oppose_constraint): Same.
24693 (insert_constraint_into_matrix): Same.
24694 (ppl_set_inhomogeneous_gmp): Same.
24695 (ppl_set_coef_gmp): Same.
24696 (ppl_strip_loop): Same.
24697 (ppl_lexico_compare_linear_expressions): Same.
24698 (ppl_max_for_le_pointset): Same.
24699 (ppl_min_for_le_pointset): Same.
24700 (ppl_build_realtion): Same.
24701 * graphite-ppl.h (gmp_cst_to_tree): Same.
24702 (ppl_set_inhomogeneous): Same.
24703 (ppl_set_inhomogeneous_tree): Same.
24704 (ppl_set_coef): Same.
24705 (ppl_set_coef_tree): Same.
24706 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
24707 (build_scop_scattering): Same.
24708 (add_value_to_dim): Same.
24709 (scan_tree_for_params_right_scev): Same.
24710 (scan_tree_for_params_int): Same.
24711 (scan_tree_for_params): Same.
24712 (find_params_in_bb): Same.
24713 (find_scop_parameters): Same.
24714 (add_upper_bounds_from_estimated_nit): Same.
24715 (build_loop_iteration_domains): Same.
24716 (create_linear_expr_from_tree): Same.
24717 (add_condition_to_domain): Same.
24718 (pdr_add_memory_accesses): Same.
24719
24720 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
24721 Jason Merrill <jason@redhat.com>
24722
24723 * c-common.c (c_common_reswords): Add nullptr.
24724 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
24725 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
24726 (gen_type_die_with_usage): Likewise.
24727 * dbxout.c (dbxout_type): Likewise.
24728 * sdbout.c (plain_type_1): Likewise.
24729
24730 2010-05-06 Jason Merrill <jason@redhat.com>
24731
24732 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
24733 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
24734 ret appropriately.
24735 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
24736
24737 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
24738 stripping WITH_SIZE_EXPR.
24739 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
24740 change.
24741
24742 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24743
24744 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
24745 list of obsolete configurations.
24746 Disabled check for obsolete configurations.
24747 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
24748 Removed support for previous versions.
24749 * config/mips/iris.h: Removed.
24750 * config/mips/iris5.h: Removed.
24751 * config/mips/iris6.h: Merged old iris.h contents.
24752 (TARGET_IRIX): Removed.
24753 (DRIVER_SELF_SPECS): Removed mabi=32.
24754 (IDENT_ASM_OP): Removed undef.
24755 (STARTFILE_SPEC): Removed mabi=32.
24756 (ENDFILE_SPEC): Likewise.
24757 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
24758 (MACHINE_TYPE): Update for IRIX 6.5.
24759 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
24760 TARGET_IRIX by TARGET_IRIX6.
24761 (mips_file_start): Likewise.
24762 (mips_output_external): Remove IRIX 5/6 O32 support.
24763 (mips_output_function_prologue): Likewise.
24764 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
24765 TARGET_IRIX6.
24766 (TARGET_CPU_CPP_BUILTINS): Likewise.
24767 (TARGET_IRIX): Removed.
24768 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
24769 (MULTILIB_DIRNAMES): Removed 32.
24770 (MULTILIB_OSDIRNAMES): Removed ../lib.
24771 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
24772 (Specific, mips-sgi-irix5): Document removal.
24773 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
24774 Remove references to older IRIX 6 releases and the O32 ABI.
24775
24776 2010-05-06 Jakub Jelinek <jakub@redhat.com>
24777
24778 PR bootstrap/43994
24779 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
24780 instead of DF_REF_REAL_REG.
24781
24782 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
24783
24784 PR target/43888
24785 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
24786 handling to still return true for x64 targets.
24787
24788 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
24789
24790 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
24791
24792 2010-05-06 Jan Hubicka <jh@suse.cz>
24793
24794 PR tree-optimization/43791
24795 * ipa-inline.c (update_caller_keys): Remove bogus
24796 disregard_inline_limits check.
24797
24798 2010-05-06 Michael Matz <matz@suse.de>
24799
24800 PR tree-optimization/43984
24801 * tree-ssa-pre.c (inserted_phi_names): Remove.
24802 (inserted_exprs): Change to bitmap.
24803 (create_expression_by_pieces): Set bits, don't append to vector.
24804 (insert_into_preds_of_block): Don't handle inserted_phi_names.
24805 (eliminate): Don't look at inserted_phi_names, remove deleted
24806 insns from inserted_exprs.
24807 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
24808 (init_pre, fini_pre): Allocate and free bitmaps.
24809 (execute_pre): Insert insns on edges before elimination.
24810
24811 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
24812
24813 * tree.c (initializer_zerop): Handle STRING_CST.
24814
24815 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
24816
24817 PR 40989
24818 * doc/invoke.texi (Wimplicit): Document as C only.
24819 * opts.c (common_handle_option): Add argument kind.
24820 (handle_option): Rename as read_cmdline_option. Factor out code to...
24821 (handle_option): ... here. New.
24822 (handle_options): Rename as read_cmdline_options.
24823 (decode_options): Update call.
24824 (set_option): Use option index instead of option pointer. Classify
24825 diagnostics correctly.
24826 (enable_warning_as_error): Call handle_option.
24827 * opts.h (set_option): Update declaration.
24828 (handle_option): Declare.
24829 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
24830 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
24831 * c-opts.c (set_Wimplicit): Delete.
24832 (c_family_lang_mask): New static constant.
24833 (c_common_handle_option): Add argument kind. Use handle_option
24834 instead of set_Wimplicit.
24835 (c_common_post_options): warn_implicit and warn_implicit_int
24836 are disabled by default.
24837 * c-common.c (warn_implicit): Do not define here.
24838 * c-common.h (warn_implicit): Do not declare here.
24839 (c_common_handle_option): Update declaration.
24840 * lto-opts.c (lto_reissue_options): Update call to set_option.
24841
24842 2010-05-06 Richard Guenther <rguenther@suse.de>
24843
24844 PR tree-optimization/43571
24845 * domwalk.c (walk_dominator_tree): Walk the dominator
24846 sons in more optimal order.
24847
24848 2010-05-06 Richard Guenther <rguenther@suse.de>
24849
24850 PR tree-optimization/43934
24851 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
24852 (stmt_cost): Likewise.
24853 (extract_true_false_args_from_phi): New helper.
24854 (determine_max_movement): For PHI nodes verify we can hoist them
24855 and compute their cost.
24856 (determine_invariantness_stmt): Handle PHI nodes.
24857 (move_computations_stmt): Likewise. Hoist PHI nodes in
24858 if-converted form using COND_EXPRs.
24859 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
24860 (tree_ssa_lim): Likewise.
24861 * tree-flow.h (tree_ssa_lim): Adjust prototype.
24862 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
24863
24864 2010-05-06 Richard Guenther <rguenther@suse.de>
24865
24866 PR tree-optimization/43987
24867 * tree-ssa-structalias.c (could_have_pointers): For possibly
24868 address-taken variables force pointers to be recorded.
24869 (create_variable_info_for_1): Likewise.
24870 (push_fields_onto_fieldstack): Pass in wheter all fields
24871 must have pointers.
24872 (find_func_aliases): Query types instead of vars whether
24873 they contain pointers where appropriate.
24874
24875 2010-05-06 Jan Hubicka <jh@suse.cz>
24876
24877 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
24878 (record_reference, mark_address, mark_load, mark_store): Record
24879 references.
24880 (record_references_in_initializer): Update call of record_references.
24881 (rebuild_cgraph_edges): Remove all references before rebuiding.
24882 * cgraph.c (cgraph_create_node): Clear ref list.
24883 (cgraph_remove_node): Remove references.
24884 (dump_cgraph_node): Dump references.
24885 (cgraph_clone_node): Clone references.
24886 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
24887 (struct cgraph_node, varpool_node): Add ref_lst.
24888 * ipa-ref.c: New file.
24889 * ipa-ref.h: New file.
24890 * ipa-ref-inline.h: New file.
24891 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
24892 (referenced_from_other_partition_p): New function.
24893 (lto_output_varpool_node): Take set arugment; call
24894 referenced_from_other_partition.
24895 (lto_output_ref): New.
24896 (add_references): New.
24897 (output_refs): New.
24898 (output_cgraph): Compute boundary based on references; output refs.
24899 (output_varpool): Accept cgraph_node_set argument.
24900 (input_ref): New.
24901 (input_refs): New.
24902 (input_cgraph): Call input_refs.
24903 * lto-section-in.c (lto_section_name): Add refs.
24904 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
24905 (ipa-ref.o): New file.
24906 * varpool.c (varpool_node): Clear ipa ref list.
24907 (varpool_remove_node): Remove references.
24908 (dump_varpool_node): Dump references.
24909 (varpool_assemble_decl): Only compile finalized ones.
24910 (varpool_extra_name_alias): Initialize ref list.
24911 * lto-streamer.c (lto-get_section_name): Add .refs section.
24912 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
24913 (referenced_from_other_partition_p): Declared.
24914
24915 2010-05-06 Ira Rosen <irar@il.ibm.com>
24916
24917 PR tree-optimization/43901
24918 * tree-vect-stmts.c (vectorizable_call): Assert that vector
24919 type is not NULL if it's transformation phase, and return
24920 FALSE if it's analysis.
24921 (vectorizable_conversion, vectorizable_operation,
24922 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
24923
24924 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
24925
24926 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
24927 Delete.
24928 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
24929 New define.
24930 * config/mips/mips-protos.h
24931 (mips_small_register_classes_for_mode_p): Delete prototype.
24932
24933 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
24934
24935 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
24936 * config/arm/arm.c (multiple_operation_profitable_p,
24937 compute_offset_order): New static functions.
24938 (load_multiple_sequence, store_multiple_sequence): Use them.
24939 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
24940 memory offsets, not register numbers.
24941 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
24942
24943 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
24944
24945 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
24946 (get_pending_sizes, put_pending_size, put_pending_sizes):
24947 Update the uses of pending_sizes.
24948 * c-decl.c (store_parm_decls): Likewise.
24949 * c-tree.h (struct c_arg_info): Likewise.
24950 * tree.h: Update the prototype for get_pending_sizes and
24951 put_pending_sizes.
24952
24953 2010-05-05 Jason Merrill <jason@redhat.com>
24954
24955 PR debug/43370
24956 * c-common.c (handle_aligned_attribute): Respect
24957 ATTR_FLAG_TYPE_IN_PLACE.
24958
24959 PR testsuite/43758
24960 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
24961 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
24962 (TARGET_INITIALIZER): Use it.
24963 * c-common.c (attribute_takes_identifier_p): Call it.
24964 * c-common.h: Update prototype.
24965 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
24966 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
24967
24968 2010-05-05 Jakub Jelinek <jakub@redhat.com>
24969
24970 PR debug/43950
24971 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
24972 DW_ID_down_case for Fortran compilation units.
24973
24974 2010-05-05 Jan Hubicka <jh@suse.cz>
24975
24976 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
24977 handle aliases.
24978
24979 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
24980
24981 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
24982 a variable-sized RESULT_DECL.
24983
24984 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
24985
24986 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
24987
24988 2010-05-05 Jason Merrill <jason@redhat.com>
24989
24990 PR c++/43787
24991 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
24992 returns GS_OK.
24993 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
24994
24995 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
24996 Jakub Jelinek <jakub@redhat.com>
24997
24998 PR debug/43478
24999 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
25000 (dead_debug_init, dead_debug_finish): New functions.
25001 (dead_debug_add, dead_debug_insert_before): Likewise.
25002 (df_note_bb_compute): Initialize a dead_debug object, add dead
25003 debug uses to it, insert debug bind insns before death insns,
25004 reset debug insns that refer to pending uses at the end.
25005 * rtl.h (make_debug_expr_from_rtl): New prototype.
25006 * varasm.c (make_debug_expr_from_rtl): New function.
25007
25008 2010-05-05 Jan Hubicka <jh@suse.cz>
25009
25010 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
25011 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
25012 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
25013 lto_varpool_encoder_deref, lto_varpool_encoder_size,
25014 lto_varpool_encoder_encode_initializer_p,
25015 lto_set_varpool_encoder_encode_initializer): New functions.
25016 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
25017 call output_varpool.
25018 (input_varpool_node): Do not always set analyzed.
25019 (input_cgraph_1): Return vector of cgraph nodes.
25020 (input_varpool_1): Return vector of varpools.
25021 (input_cgraph): Free the vectors.
25022 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25023 output only initializers needed.
25024 (lto_output): Only call output_cgraph.
25025 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
25026 * lto-section-out.c (lto_new_out_decl_state): Initialize
25027 state->varpool_node_encoder.
25028 * lto-streamer.h (lto_varpool_encoder_d): New.
25029 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
25030 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
25031 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
25032 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
25033 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
25034 Declare.
25035 (output_varpool, input_varpool): Remove declarations.
25036
25037 2010-05-05 Jan Hubicka <jh@suse.cz>
25038
25039 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
25040 with body can prevail.
25041
25042 2010-05-05 Jan Hubicka <jh@suse.cz>
25043
25044 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
25045 size.
25046
25047 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25048
25049 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
25050
25051 * gengtype.h (erro_at_line): Constify pos argument.
25052
25053 * gengtype.c: Include hashtab.h.
25054 (enum gc_used): Document GC_MAYBE_POINTED_TO.
25055 (error_at_line): Constify pos argument.
25056 (do_typedef): Initialize p->opt field.
25057 (get_file_gtfilename): Fix comment typo.
25058 (struct walk_type_data): Constify line field.
25059 (get_output_file_for_structure): New function.
25060 (write_local_func_for_structure): Constify orig_s argument.
25061 Use get_output_file_for_structure.
25062 (write_func_for_structure): Use get_output_file_for_structure.
25063 (INDENT): New define.
25064 (dump_pair, dump_type, dump_type_list, dump_typekind)
25065 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
25066 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
25067 functions.
25068 (seen_types): New variable.
25069 (main): New variable do_dump. Process "-d" command line option.
25070 Call dump_everything if dump requested.
25071
25072 2010-05-05 Jakub Jelinek <jakub@redhat.com>
25073
25074 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
25075 in a temporary instead of invoking the macro multiple times.
25076 (track_expr_p): Likewise.
25077
25078 2010-05-04 Neil Vachharajani <nvachhar@google.com>
25079
25080 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
25081 per new semantics.
25082 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
25083 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
25084 conditions for printing notes.
25085 * common.opt (-Wcoverage-mismatch): Allow negative, default to
25086 true, update documentation.
25087 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
25088
25089 2010-05-04 Jakub Jelinek <jakub@redhat.com>
25090
25091 PR c/43981
25092 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
25093 on dimen.
25094
25095 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25096
25097 PR target/43799
25098 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
25099 (*sse_prologue_save_insn1): Likewise.
25100 (SSE prologue save splitter): Likewise.
25101
25102 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
25103
25104 * tree.c (free_lang_data_in_one_sizepos): New inline function.
25105 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
25106 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
25107 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
25108 all decls. Call it on DECL_FIELD_OFFSET of fields.
25109 (find_decls_types_r): Follow DECL_VALUE_EXPR.
25110 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
25111
25112 2010-05-04 Martin Jambor <mjambor@suse.cz>
25113
25114 * tree-sra.c (build_access_from_expr_1): The first parameter type
25115 changed to simple tree.
25116 (build_access_from_expr): Likewise, gsi parameter was eliminated.
25117 (scan_assign_result): Renamed to assignment_mod_result, enum elements
25118 renamed as well.
25119 (build_accesses_from_assign): Removed all parameters except for a
25120 simple gimple statement. Now returns a simple bool.
25121 (scan_function): All non-analysis parts moved to separate functions
25122 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
25123 parameters and updated both callers.
25124 (sra_modify_expr): Removed parameter data.
25125 (sra_modify_function_body): New function.
25126 (perform_intra_sra): Call sra_modify_function_body to modify the
25127 function body.
25128 (replace_removed_params_ssa_names): Parameter data changed into
25129 adjustments vector.
25130 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
25131 changed the parameter dont_convert to convert with the opposite
25132 meaning.
25133 (sra_ipa_modify_assign): Parameter data changed into adjustments
25134 vector, return value changed to bool.
25135 (ipa_sra_modify_function_body): New function.
25136 (sra_ipa_reset_debug_stmts): Updated a comment.
25137 (modify_function): Use ipa_sra_modify_function_body to modify function
25138 body.
25139
25140 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25141
25142 PR middle-end/43671
25143 * alias.c (true_dependence): Handle the same VALUE in x and mem.
25144 (canon_true_dependence): Likewise.
25145 (write_dependence_p): Likewise.
25146
25147 2010-05-04 Jan Hubicka <jh@suse.cz>
25148
25149 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
25150 * cgraphbuild.c: Include ipa-utils.h
25151 (record_reference_ctx): New struct.
25152 (record_reference): Simplify to work on initializers; not statements.
25153 (mark_address, mark_load, mark_store): New.
25154 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25155 walk PHI nodes too.
25156 (record_references_in_initializer): Update use of record_reference.
25157 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25158 walk PHI nodes too.
25159
25160 2010-05-04 Jan Hubicka <jh@suse.cz>
25161
25162 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
25163 node will be removed anyway.
25164 (lto_varpool_replace_node): Allow also unanalyzed nodes;
25165 relink aliases of node into prevailing node.
25166 * varpool.c (varpool_remove_node): Remove aliases properly;
25167 when removing node, remove all its aliases too; remove DECL_INITIAL
25168 of removed node; ggc_free the varpool node.
25169
25170 2010-05-04 Richard Guenther <rguenther@suse.de>
25171
25172 PR tree-optimization/43879
25173 * tree-ssa-structalias.c (alias_get_name): Use
25174 DECL_ASSEMBLER_NAME if available.
25175 (create_function_info_for): Return the varinfo node.
25176 (ipa_pta_execute): Associate same-body aliases and extra names
25177 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
25178
25179 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
25180
25181 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
25182
25183 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
25184
25185 PR bootstrap/43964
25186 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
25187 only if HONOR_REG_ALLOC_ORDER is not defined.
25188
25189 2010-05-04 Richard Guenther <rguenther@suse.de>
25190
25191 PR tree-optimization/43949
25192 * tree-vrp.c (extract_range_from_binary_expr): Only handle
25193 TRUNC_MOD_EXPR.
25194
25195 2010-04-26 Jason Merrill <jason@redhat.com>
25196
25197 * c.opt (-fstrict-enums): New.
25198 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
25199
25200 2010-05-03 David Ung <davidu@mips.com>
25201 James E. Wilson <wilson@codesourcery.com>
25202
25203 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
25204 emit the trap instruction before the divide for TUNE_74K.
25205
25206 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
25207
25208 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
25209 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
25210 based on the above, for new target hook.
25211
25212 * hooks.c (hook_bool_mode_true): New generic hook.
25213 * hooks.h (hook_bool_mode_true): Add prototype.
25214
25215 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
25216 target hook.
25217 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
25218 target hook, set to hook_bool_mode_false.
25219 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
25220 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
25221 with targetm.small_register_classes_for_mode_p.
25222 (find_reusable_reload): Likewise.
25223 (combine_reloads): Likewise.
25224 * reload1.c (reload_as_needed): Likewise.
25225 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
25226 * ifcvt.c (noce_process_if_block, check_cond_move_block,
25227 dead_or_predicable): Likewise.
25228 * regmove.c (optimize_reg_copy_1): Likewise.
25229 * calls.c (prepare_call_address): Likewise.
25230 (precompute_register_parameters): Likewise.
25231
25232 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
25233 hook definition.
25234 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
25235 implementation of the hook that considers all register classes
25236 small except for SH64.
25237 (sh_override_options): Use the new hook.
25238 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
25239 Add prototype.
25240
25241 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
25242 hook definition.
25243 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
25244 implementation of the hook that considers all register classes
25245 small for THUMB1.
25246 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
25247 Add prototype.
25248
25249 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
25250 hook definition.
25251 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
25252 implementation of the hook that considers all register classes
25253 small for MIPS16.
25254 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
25255 Add prototype.
25256
25257 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
25258 hook definition.
25259 * config/m32c/m32c.h: Likewise.
25260 * config/pdp11/pdp11.h: Likewise.
25261 * config/avr/avr.h: Likewise.
25262 * config/xtensa/xtensa.h: Likewise.
25263 * config/m68hc11/m68hc11.h: Likewise.
25264 * config/mn10300/mn10300.h: Likewise.
25265 * config/mcore/mcore.h: Likewise.
25266 * config/h8300/h8300.h: Likewise.
25267 * config/bfin/bfin.h: Likewise.
25268
25269 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
25270 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
25271
25272 2010-05-03 Anatoly Sokolov <aesok@post.ru>
25273
25274 * double-int.h (tree_to_double_int): Remove macro.
25275 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
25276 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
25277 (tree_to_double_int): New function.
25278 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
25279 Move ...
25280 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
25281
25282 2010-05-03 Richard Guenther <rguenther@suse.de>
25283
25284 PR tree-optimization/43971
25285 * tree-ssa-structalias.c (get_constraint_for_1): Fix
25286 constraints in the !flag_delete_null_pointer_checks case.
25287
25288 2010-05-03 Jakub Jelinek <jakub@redhat.com>
25289
25290 PR debug/43972
25291 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
25292 result mode matches original rtl mode.
25293
25294 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
25295
25296 PR target/43888
25297 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
25298
25299 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25300
25301 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
25302 when processing flag options.
25303
25304 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25305
25306 * gcov-iov.c (main): Change format string placeholder
25307 from %#08x to 0x%08x.
25308 * genchecksum.c (dosum): Change format string placeholder
25309 from %#02x to 0x%02x.
25310
25311 2010-05-02 Richard Guenther <rguenther@suse.de>
25312
25313 PR tree-optimization/43879
25314 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
25315
25316 2010-05-02 Bruno Haible <bruno@clisp.org>
25317
25318 * doc/extend.texi (Function Attributes): Fix a typo.
25319
25320 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25321
25322 Revert:
25323 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
25324 placeholder from 0x%x to %#x.
25325 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
25326 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
25327 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
25328 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
25329 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
25330 * config/i386/i386.c (ix86_target_string): Ditto.
25331 * config/i386/i386.c (output_pic_addr_const): Ditto.
25332 (print_operand): Ditto.
25333
25334 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25335
25336 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
25337 placeholder from 0x%x to %#x.
25338 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
25339 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
25340 (ASM_OUTPUT_DEBUG_DATA): Ditto.
25341 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
25342 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
25343 * optc-gen.awk: Ditto.
25344 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
25345 (HOST_WIDE_INT_PRINT_HEX): Ditto.
25346 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
25347 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
25348
25349 2010-05-01 Anatoly Sokolov <aesok@post.ru>
25350
25351 * target.h (struct calls): Add function_value_regno_p field.
25352 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
25353 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
25354 * targhooks.c (default_function_value_regno_p): New function.
25355 * targhooks.h (default_function_value_regno_p): Declare function.
25356 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
25357 * builtins.c. (apply_result_size): (Ditto.).
25358 * combine.c. (likely_spilled_retval_p): (Ditto.).
25359 * mode-switching.c. Include 'target.h'.
25360 (create_pre_exit): Use function_value_regno_p hook.
25361 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
25362 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
25363 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
25364
25365 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
25366 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
25367 (ix86_function_value_regno_p): Declare as static, change argument
25368 type to const unsigned int.
25369 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
25370
25371 2010-05-01 Richard Guenther <rguenther@suse.de>
25372
25373 PR tree-optimization/43949
25374 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
25375 types.
25376 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
25377
25378 2010-05-01 Anatoly Sokolov <aesok@post.ru>
25379
25380 * rtl.h (CONST_DOUBLE_P): Define.
25381 (rtx_to_double_int): Declare.
25382 * emit-rtl.c (rtx_to_double_int): New function.
25383 * dwarf2out.c (insert_double): New function.
25384 (loc_descriptor, add_const_value_attribute): Clean up, use
25385 rtx_to_double_int and insert_double functions.
25386
25387 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
25388
25389 * doc/extend.texi (Inline): Add missing return keyword to examples.
25390 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
25391 "command-line".
25392
25393 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
25394
25395 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
25396 the variable part of the offset as well. Use highest_pow2_factor for
25397 all alignment checks.
25398
25399 2010-04-30 Richard Guenther <rguenther@suse.de>
25400
25401 PR tree-optimization/43879
25402 * tree-ssa-structalias.c (type_could_have_pointers): Functions
25403 can have pointers.
25404
25405 2010-04-30 Jan Hubicka <jh@suse.cz>
25406
25407 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
25408 varpool.
25409 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
25410
25411 2010-04-30 Jan Hubicka <jh@suse.cz>
25412
25413 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
25414 New.
25415 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
25416 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
25417 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
25418 cgraph_node_set_needs_ltrans_p): Remove.
25419
25420 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
25421
25422 * sdbout.c: Include vec.h, do not include varray.h.
25423 (deferred_global_decls, sdbout_global_decl,
25424 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
25425 * toplev.c: Do not include varray.h.
25426 (dump_memory_report): Do not dump VARRAY statistics.
25427 * gengtype.c (open_base_file): Ignore varray.h.
25428 * Makefile.in: Update for abovementioned changes.
25429 Remove all traces of varray.c and varray.h.
25430 * varray.c: Remove file.
25431 * varray.h: Remove file.
25432
25433 2010-04-30 Jan Hubicka <jh@suse.cz>
25434
25435 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
25436 references.
25437
25438 2010-04-30 Jan Hubicka <jh@suse.cz>
25439
25440 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
25441 needed.
25442
25443 2010-04-30 Richard Guenther <rguenther@suse.de>
25444
25445 * tree-ssa-structalias.c (get_constraint_for_1): Generate
25446 constraints for CONSTRUCTOR.
25447
25448 2010-04-30 Richard Guenther <rguenther@suse.de>
25449
25450 PR lto/43946
25451 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
25452 first after all lowering passes.
25453
25454 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
25455
25456 * toplev.c: Include varray.h for statistics dumping.
25457 * tree.h: Do not declare varray_head_tag.
25458 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
25459 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
25460 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
25461 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
25462 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
25463 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
25464 c-common.c, c-common.h, reg-stack.c, basic-block.h,
25465 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
25466 include varray.h.
25467 * Makefile.in: Update for abovementioned changes.
25468
25469 2010-04-30 Jakub Jelinek <jakub@redhat.com>
25470
25471 PR debug/43942
25472 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
25473
25474 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
25475
25476 * config/picochip/picochip.c (picochip_legitimize_address): Define.
25477 Use this function to do machine-specific conversion.
25478 (picochip_legitimize_reload_address): Likewise.
25479 (picochip_legitimate_address_p): Check valid base register only if
25480 strict.
25481 (picochip_check_conditional_copy): Check for modw only if opnd is
25482 register.
25483 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
25484 to call the function in c.
25485 * config/picochip/picochip-protos.h
25486 (picochip_legitimize_reload_address): Define.
25487 * config/picochip/picochip.md (supported_compare1): Define.
25488
25489 2010-04-30 Jan Hubicka <jh@suse.cz>
25490
25491 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
25492 (cgraph_global_info): Remove inlined.
25493 (LTO_cgraph_tag_names): Remove.
25494 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
25495 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
25496 simplify cgraph tags and document.
25497 (lto_output_node): Use only LTO_cgraph_unavail_node and
25498 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
25499 for_functions_valid, global info, process and output flags.
25500 (input_overwrite_node): Initialize estimated stack size and
25501 estimated growth. Do not read flags we no longer store.
25502 (input_node): Likewise do not read info no longer stored.
25503 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
25504 flag.
25505
25506 2010-04-30 Richard Guenther <rguenther@suse.de>
25507
25508 PR tree-optimization/43879
25509 * tree-ssa-structalias.c (get_constraint_for_1): Properly
25510 handle non-zero initializers.
25511
25512 2010-04-30 Richard Guenther <rguenther@suse.de>
25513
25514 * builtins.c (fold_builtin_1): Delete free (0).
25515
25516 2010-04-29 Jan Hubicka <jh@suse.cz>
25517
25518 * gengtype.c (open_base_files): Add lto-streamer.h
25519 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
25520 (pass_ipa_cp): GGC collect.
25521 * toplev. (compile_file): Do not output symbols.
25522 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
25523 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
25524 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
25525 * lto-section-in.c: Include ggc.h
25526 (lto_new_in_decl_state): Alloc in GGC.
25527 (lto_delete_in_decl_state): Likewise.
25528 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
25529 Collect.
25530
25531 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
25532
25533 PR target/42895
25534 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
25535 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
25536 (HONOR_REG_ALLOC_ORDER): Describe new macro.
25537 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
25538 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
25539 account only if HONOR_REG_ALLOC_ORDER is not defined.
25540 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
25541 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
25542
25543 2010-04-29 Jon Grant <04@jguk.org>
25544
25545 * collect2.c (vflag): Change type from int to bool.
25546 (debug): Likewise.
25547 (helpflag): New global bool.
25548 (main): Set vflag and debug with boolean, not integer truth values.
25549 Accept new "--help" option and output usage text if found.
25550 * collect2.h (vflag): Update prototype.
25551 (debug): Likewise.
25552
25553 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
25554
25555 PR bootstrap/43936
25556 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
25557
25558 2010-04-29 Richard Guenther <rguenther@suse.de>
25559
25560 PR bootstrap/43935
25561 * plugin.h (invoke_plugin_callbacks): Annotate arguments
25562 with ATTRIBUTE_UNUSED.
25563
25564 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
25565
25566 PR target/43921
25567 * config/i386/i386.c (get_some_local_dynamic_name): Replace
25568 INSN_P with NONDEBUG_INSN_P.
25569 (distance_non_agu_define): Likewise.
25570 (distance_agu_use): Likewise.
25571
25572 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
25573
25574 From Dominique d'Humieres <dominiq@lps.ens.fr>
25575 PR bootstrap/43858
25576 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
25577 test_set.
25578
25579 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
25580
25581 * plugin.h (invoke_plugin_callbacks): New inline function.
25582 * plugin.c (flag_plugin_added): New global flag.
25583 (add_new_plugin): Initialize above flag.
25584 (invoke_plugin_callbacks): Rename to ...
25585 (invoke_plugin_callbacks_full): ... this.
25586
25587 2010-04-28 Jan Hubicka <jh@suse.cz>
25588
25589 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
25590 (lto_varpool_replace_node): New.
25591 (lto_symtab_resolve_symbols): Resolve varpool nodes.
25592 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
25593 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
25594 * cgraph.h (varpool_node_ptr): New type.
25595 (varpool_node_ptr): New vector.
25596 (varpool_node_set_def): New structure.
25597 (varpool_node_set): New type.
25598 (varpool_node_set): New vector.
25599 (varpool_node_set_element_def): New structure.
25600 (varpool_node_set_element, const_varpool_node_set_element): New types.
25601 (varpool_node_set_iterator): New type.
25602 (varpool_node): Add prev pointers, add used_from_other_partition,
25603 in_other_partition.
25604 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
25605 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
25606 varpool_get_node, varpool_remove_node): Declare.
25607 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
25608 varpool_node_set_size): New inlines.
25609 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
25610 * tree-pass.h (varpool_node_set_def): Forward declare.
25611 (ipa_opt_pass_d): Summary writting takes vnode sets too.
25612 (ipa_write_optimization_summaries): Update prototype.
25613 * ipa-cp.c (ipcp_write_summary): Update.
25614 * ipa-reference.c (ipa_reference_write_summary): Update.
25615 * lto-cgraph.c (lto_output_varpool_node): New static function.
25616 (output_varpool): New function.
25617 (input_varpool_node): New static function.
25618 (input_varpool_1): New function.
25619 (input_cgraph): Input varpool.
25620 * ipa-pure-const.c (pure_const_write_summary): Update.
25621 * lto-streamer-out.c (lto_output): Update, output varpool too.
25622 (write_global_stream): Kill WPA hack.
25623 (produce_asm_for_decls): Update.
25624 (output_alias_pair_p): Handle variables.
25625 (output_unreferenced_globals): Output only needed partition of varpool.
25626 * ipa-inline.c (inline_write_summary): Update.
25627 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
25628 cgraph.
25629 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
25630 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
25631 varpool_node_set_new, varpool_node_set_add,
25632 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
25633 debug_varpool_node_set): New functions.
25634 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
25635 (execute_one_pass): Process new decls too.
25636 (ipa_write_summaries_2): Pass around vsets.
25637 (ipa_write_summaries_1): Likewise.
25638 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
25639 to add.
25640 (ipa_write_optimization_summaries_1): Pass around vsets.
25641 (ipa_write_optimization_summaries): Likewise.
25642 * varpool.c (varpool_get_node): New.
25643 (varpool_node): Update doubly linked lists.
25644 (varpool_remove_node): New.
25645 (dump_varpool_node): More dumping.
25646 (varpool_enqueue_needed_node): Update doubly linked lists.
25647 (decide_is_variable_needed): Kill ltrans hack.
25648 (varpool_finalize_decl): Kill lto hack.
25649 (varpool_assemble_decl): Skip decls in other partitions.
25650 (varpool_assemble_pending_decls): Update doubly linkes lists.
25651 (varpool_empty_needed_queue): Likewise.
25652 (varpool_extra_name_alias): Likewise.
25653 * lto-streamer.c (lto_get_section_name): Add vars section.
25654 * lto-streamer.h (lto_section_type): Update.
25655 (output_varpool, input_varpool): Declare.
25656
25657 2010-04-28 Mike Stump <mikestump@comcast.net>
25658
25659 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
25660
25661 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25662
25663 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
25664 record or union type with RECORD_OR_UNION_TYPE_P predicate.
25665 (lto_input_ts_type_tree_pointers): Likewise.
25666 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
25667 (lto_output_ts_type_tree_pointers): Likewise.
25668
25669 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25670
25671 Uniquization of constants at the Tree level
25672 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
25673 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
25674 bit to the end.
25675 (tree_output_constant_def): Declare.
25676 * gimplify.c (gimplify_init_constructor): When using block copy, first
25677 uniquize the constant constructor on the RHS.
25678 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
25679 DECL_IN_CONSTANT_POOL flag.
25680 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
25681 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
25682 constant pool.
25683 (assemble_variable): Deal with symbols belonging to the tree constant
25684 pool.
25685 (get_constant_section): Add ALIGN parameter and simplify.
25686 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
25687 (assemble_constant_contents): Use the expression of the VAR_DECL.
25688 (output_constant_def_contents): Use the alignment of the VAR_DECL.
25689 (tree_output_constant_def): New global function.
25690 (mark_constant): Use the expression of the VAR_DECL.
25691 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
25692 its expression.
25693 (output_object_block): Likewise and assemble the expression.
25694
25695 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25696
25697 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
25698 hash_tree, eq_tree): New tree hash table.
25699 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
25700 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
25701 lto_orig_address_remove): Reimplement.
25702
25703 2010-04-28 Xinliang David Li <davidxl@google.com>
25704
25705 PR c/42643
25706 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
25707 (compute_uninit_opnds_pos): New function.
25708 (is_non_loop_exit_postdominating): New function.
25709 (compute_control_dep_chain): New function.
25710 (find_pdom): New function.
25711 (convert_control_dep_chain_into_preds): New function.
25712 (find_predicates): New function.
25713 (find_control_equiv_block): New function.
25714 (collect_phi_def_edges): New function.
25715 (find_def_preds): New function.
25716 (find_dom): New function.
25717 (dump_predicates): New function.
25718 (get_cmp_code): New function.
25719 (is_value_included_in): New function.
25720 (find_matching_predicate_in_rest_chains): New function.
25721 (use_pred_not_overlap_with_undef_path_pred): New function.
25722 (is_use_properly_guarded): New function.
25723 (normalize_cond_1): New function.
25724 (is_and_or_or): New function.
25725 (normalize_cond): New function.
25726 (is_gcond_subset_of): New function.
25727 (is_subset_of_any): New function.
25728 (is_or_set_subset_of): New function.
25729 (is_and_set_subset_of): New function.
25730 (is_norm_cond_subset_of): New function.
25731 (is_pred_expr_subset_of): New function.
25732 (is_pred_chain_subset_of): New function.
25733 (is_included_in): New function.
25734 (is_superset_of): New function.
25735 (find_uninit_use): New function.
25736 (warn_uninitialized_phi): New function.
25737 (compute_possibly_undefined_names): New function.
25738 (ssa_undefined_value_p): New function.
25739 (execute_late_warn_uninitialized): New function.
25740 * tree-ssa.c (ssa_undefined_value_p): Removed.
25741 (warn_uninit): Changed to extern.
25742 (warn_uninitialized_phi): Removed.
25743 (warn_uninitialized_vars): Changed to extern.
25744 (execute_late_warn_uninitialized): Removed
25745 * tree-flow.h: Add new prototypes.
25746 * timevar.def: Add new time variable.
25747 * Makefile.in: Add new build file.
25748
25749 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
25750
25751 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
25752 type if available.
25753
25754 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25755
25756 PR target/22224
25757 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
25758
25759 2010-04-28 Martin Jambor <mjambor@suse.cz>
25760
25761 * cgraph.h (struct cgraph_node): New field indirect_calls.
25762 (struct cgraph_indirect_call_info): New type.
25763 (struct cgraph_edge): Removed field indirect_call. New fields
25764 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
25765 (cgraph_create_indirect_edge): Declare.
25766 (cgraph_make_edge_direct): Likewise.
25767 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
25768 * ipa-prop.h (struct ipa_param_call_note): Removed.
25769 (struct ipa_node_params): Removed field param_calls.
25770 (ipa_create_all_structures_for_iinln): Declare.
25771 * cgraph.c: Described indirect edges and uids in initial comment.
25772 (cgraph_add_edge_to_call_site_hash): New function.
25773 (cgraph_edge): Search also among the indirect edges, use
25774 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
25775 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
25776 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
25777 site hash.
25778 (initialize_inline_failed): Assign a reason to indirect edges.
25779 (cgraph_create_edge_1): New function.
25780 (cgraph_create_edge): Moved some functionality to
25781 cgraph_create_edge_1.
25782 (cgraph_create_indirect_edge): New function.
25783 (cgraph_edge_remove_callee): Add an assert checking for
25784 non-indirectness.
25785 (cgraph_edge_remove_caller): Special-case indirect edges.
25786 (cgraph_remove_edge): Likewise.
25787 (cgraph_set_edge_callee): New function.
25788 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
25789 (cgraph_make_edge_direct): New function.
25790 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
25791 the declaration of the call statement matches.
25792 (cgraph_node_remove_callees): Special-case indirect edges.
25793 (cgraph_clone_edge): Likewise.
25794 (cgraph_clone_node): Clone also the indirect edges.
25795 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
25796 indirect_call, dump count of indirect_calls edges.
25797 * ipa-prop.c (iinlining_processed_edges): New variable.
25798 (ipa_note_param_call): Create indirect edges instead of
25799 creating notes. New parameter node.
25800 (ipa_analyze_call_uses): New parameter node, pass it on to
25801 ipa_note_param_call.
25802 (ipa_analyze_stmt_uses): Likewise.
25803 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
25804 (print_edge_addition_message): Work on edges rather than on notes.
25805 (update_call_notes_after_inlining): Likewise, renamed to
25806 update_indirect_edges_after_inlining.
25807 (ipa_create_all_structures_for_iinln): New function.
25808 (ipa_free_node_params_substructures): Do not free notes.
25809 (ipa_edge_duplication_hook): Propagate bits within
25810 iinlining_processed_edges bitmap.
25811 (ipa_node_duplication_hook): Do not duplicate notes.
25812 (free_all_ipa_structures_after_ipa_cp): Renamed to
25813 ipa_free_all_structures_after_ipa_cp.
25814 (free_all_ipa_structures_after_iinln): Renamed to
25815 ipa_free_all_structures_after_iinln.
25816 (ipa_write_param_call_note): Removed.
25817 (ipa_read_param_call_note): Removed.
25818 (ipa_write_indirect_edge_info): New function.
25819 (ipa_read_indirect_edge_info): Likewise.
25820 (ipa_write_node_info): Do not stream notes, do stream information
25821 in indirect edges.
25822 (ipa_read_node_info): Likewise.
25823 (lto_ipa_fixup_call_notes): Removed.
25824 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
25825 * ipa-inline.c (pass_ipa_inline): Likewise.
25826 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
25827 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
25828 * tree-inline.c (copy_bb): Removed an unnecessary double check for
25829 is_gimple_call.
25830 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
25831 edges.
25832 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
25833 (output_cgraph): Stream also indirect edges.
25834 (lto_output_edge): Added capability to stream indirect edges.
25835 (input_edge): Likewise.
25836 (input_cgraph_1): Likewise.
25837 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
25838 of indirect edges.
25839
25840 2010-04-28 Richard Guenther <rguenther@suse.de>
25841
25842 PR tree-optimization/43879
25843 PR tree-optimization/43909
25844 * tree-ssa-structalias.c (struct variable_info): Add
25845 only_restrict_pointers flag.
25846 (new_var_info): Initialize it. Increment stats.total_vars here.
25847 (create_function_info_for): Do not increment stats.total_vars here.
25848 (get_function_part_constraint): Fix build with C++.
25849 (insert_into_field_list): Remove.
25850 (push_fields_onto_fieldstack): Properly merge fields.
25851 (create_variable_info_for): Split and simplify.
25852 (create_variable_info_for_1): New piece.
25853 (intra_create_variable_infos): Properly make restrict constraints
25854 from parameters.
25855
25856 2010-04-28 Richard Guenther <rguenther@suse.de>
25857
25858 PR c++/43880
25859 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
25860
25861 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
25862 Jan Hubicka <hubicka@ucw.cz>
25863
25864 * doc/invoke.texi (-Wsuggest-attribute=const,
25865 -Wsuggest-attribute=pure): Document.
25866 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
25867 (function_always_visible_to_compiler_p,
25868 suggest_attribute, warn_function_pure, warn_function_const):
25869 New functions.
25870 (check_call): Improve debug info.
25871 (analyze_function): Do not check availability.
25872 (add_new_function): Check availability.
25873 (propagate): Output warnings.
25874 (skip_function_for_local_pure_const): New function.
25875 (local_pure_const): Use it; output warnings.
25876 * common.opt (Wsuggest-attribute=const,
25877 Wsuggest-attribute=pure): New.
25878
25879 2010-04-27 Jakub Jelinek <jakub@redhat.com>
25880
25881 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
25882 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
25883 or DW_CFA_def_cfa_offset{,_sf}.
25884
25885 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
25886
25887 * tree.h: Fix truncated long macros.
25888
25889 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
25890
25891 * collect2.c (TARGET_64BIT): Redefine to target's default.
25892 * tlink.c: Likewise.
25893 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
25894 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
25895 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
25896 for underscoring __USER_LABEL_PREFIX__.
25897 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
25898 (SUB_LINK_ENTRY32): New.
25899 (SUB_LINK_ENTRY64): New.
25900 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
25901 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
25902 (SUB_LINK_ENTRY64): New.
25903 (SUB_LINK_ENTRY): New.
25904 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
25905 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
25906 x64 target is choosen.
25907 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
25908 * configure: Regenerated.
25909 * configure.ac (leading-mingw64-underscores): Option added.
25910
25911 2010-04-27 Jan Hubicka <jh@suse.cz>
25912
25913 * doc/invoke.texi (-fipa-profile): Document.
25914 * opts.c (decode_options): Enable ipa-profile at -O1.
25915 * timevar.def (TV_IPA_PROFILE): Define.
25916 * common.opt (fipa-profile): Add.
25917 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
25918 flag for clones.
25919 (cgraph_propagate_frequency): Handle only local ones.
25920 * tree-pass.h (pass_ipa_profile): Declare.
25921 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
25922 (pass_ipa_profile): Use TV_IPA_PROFILE.
25923 * ipa.c (ipa_profile): New function.
25924 (gate_ipa_profile): Likewise.
25925 (pass_ipa_profile): New global variable.
25926 * passes.c (pass_ipa_profile): New.
25927
25928 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
25929
25930 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
25931
25932 2010-04-27 Martin Jambor <mjambor@suse.cz>
25933
25934 PR middle-end/43812
25935 * ipa.c (dissolve_same_comdat_group_list): New function.
25936 (function_and_variable_visibility): Call
25937 dissolve_same_comdat_group_list when comdat group contains external or
25938 newly local nodes.
25939 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
25940 lists are circular and that they contain only DECL_ONE_ONLY nodes.
25941
25942 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
25943
25944 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
25945 (const_hash_1) <VECTOR_CST>: New case.
25946 (compare_constant) <VECTOR_CST>: Likewise.
25947 <ADDR_EXPR>: Deal with LABEL_REFs.
25948 (copy_constant) <VECTOR_CST>: New case.
25949
25950 2010-04-27 Jan Hubicka <jh@suse.cz>
25951
25952 * cgraph.c (cgraph_propagate_frequency): New function.
25953 * cgraph.h (cgraph_propagate_frequency): Declare.
25954 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
25955 cgraph_propagate_frequency.
25956
25957 2010-04-27 Jakub Jelinek <jakub@redhat.com>
25958
25959 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
25960
25961 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
25962
25963 PR target/40657
25964 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
25965 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
25966 here to determine which regs to push and how much stack to reserve.
25967
25968 2010-04-27 Jie Zhang <jie@codesourcery.com>
25969
25970 * doc/gimple.texi (gimple_statement_with_ops): Remove
25971 addresses_taken field.
25972 (gimple_statement_with_memory_ops): Likewise.
25973
25974 2010-04-27 Jan Hubicka <jh@suse.cz>
25975
25976 * tree-inline.c (eni_inlining_weights): Remove.
25977 (estimate_num_insns): Special case more builtins.
25978
25979 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
25980
25981 PR c/32207
25982 * c-typeck.c (build_binary_op): Move forward check for comparison
25983 pointer with null pointer constant and adjust the diagnostic message.
25984
25985 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
25986
25987 PR lto/42776
25988 * configure.ac (gcc_cv_as_section_has_align): Set if installed
25989 binutils supports extended .section directive needed by LTO, or
25990 warn if older binutils found.
25991 (LTO_BINARY_READER): New AC_SUBST'd variable.
25992 (LTO_USE_LIBELF): Likewise.
25993 * config.gcc (lto_binary_reader): New target-specific configure
25994 variable.
25995 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
25996 (LTO_USE_LIBELF): Likewise.
25997 * configure: Regenerate.
25998
25999 * collect2.c (is_elf): Rename from this ...
26000 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
26001 object files in addition to ELF-formatted ones.
26002 (scan_prog_file): Caller updated. Also allow for LTO info marker
26003 symbol to be prefixed or not by an extra underscore.
26004
26005 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
26006 * config/i386/winnt.c: Also #include lto-streamer.h
26007 (i386_pe_asm_named_section): Specify 1-byte section alignment for
26008 LTO named sections.
26009 (i386_pe_asm_output_aligned_decl_common): Add comment.
26010 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
26011
26012 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
26013
26014 PR target/43889
26015 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
26016 Add missing earlyclobber for second alternative.
26017
26018 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
26019
26020 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
26021 bits for artificial defs at the top of the block.
26022 * fwprop.c (single_def_use_enter_block): Don't call it.
26023
26024 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
26025
26026 PR 43715
26027 * configure.ac: Use "$gcc_cv_nm -g" on darwin
26028 instead of "$gcc_cv_objdump -T".
26029 Use "-undefined dynamic_lookup" on darwin.
26030 * configure: Regenerate.
26031
26032 2010-04-26 Jakub Jelinek <jakub@redhat.com>
26033
26034 PR c/43893
26035 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
26036
26037 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
26038
26039 * c-parser.c (struct c_token): Move location field up.
26040 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
26041 (struct c_declspecs): Convert typespec_word, storage_class, and
26042 default_int_p into bitfields.
26043 (struct c_declarator): Move loc field up.
26044
26045 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
26046
26047 * cfgloop.h (struct loop): Move can_be_parallel field up.
26048 * ipa-prop.h (struct ip_node_params): Move bitfields up.
26049 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
26050 down.
26051 (struct iv_cand): Convert pos field into a bitfield.
26052 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
26053 field up.
26054 (struct _stmt_vec_info): Shuffle fields for better packing.
26055
26056 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
26057
26058 * varasm.c (IN_NAMED_SECTION): Remove guard.
26059 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
26060 (IN_NAMED_SECTION_P): ...this.
26061 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
26062 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
26063
26064 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
26065
26066 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
26067 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
26068 of shadowing it. Fix comments.
26069
26070 2010-04-26 Jan Hubicka <jh@suse.cz>
26071
26072 * cgraph.c (cgraph_create_node): Set node frequency to normal.
26073 (cgraph_clone_node): Copy function frequency.
26074 * cgraph.h (node_frequency): New enum
26075 (struct cgraph_node): Add.
26076 * final.c (rest_of_clean_state): Update.
26077 * lto-cgraph.c (lto_output_node): Output node frequency.
26078 (input_overwrite_node): Input node frequency.
26079 * tre-ssa-loop-ivopts (computation_cost): Update.
26080 * lto-streamer-out.c (output_function): Do not output function
26081 frequency.
26082 * predict.c (maybe_hot_frequency_p): Update and handle functions
26083 executed once.
26084 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
26085 attribute lookup.
26086 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
26087 (compute_function_frequency): Set noreturn functions to be executed
26088 once.
26089 (choose_function_section): Update.
26090 * lto-streamer-in.c (input_function): Do not input function frequency.
26091 * function.c (allocate_struct_function): Do not initialize function
26092 frequency.
26093 * function.h (function_frequency): Remove.
26094 (struct function): Remove function frequency.
26095 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
26096 (try_update): Update.
26097 * tree-inline.c (initialize_cfun): Do not update function frequency.
26098 * passes.c (pass_init_dump_file): Update.
26099 * i386.c (ix86_compute_frame_layout): Update.
26100 (ix86_pad_returns): Update.
26101
26102 2010-04-26 Jie Zhang <jie@codesourcery.com>
26103
26104 PR tree-optimization/43833
26105 * tree-vrp.c (range_int_cst_p): New.
26106 (range_int_cst_singleton_p): New.
26107 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
26108 when both operands are constants. Use range_int_cst_p in
26109 BIT_IOR_EXPR case.
26110
26111 2010-04-26 Jan Hubicka <jh@suse.cz>
26112
26113 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
26114
26115 2010-04-26 Richard Guenther <rguenther@suse.de>
26116
26117 PR lto/43080
26118 * gimple.c (gimple_decl_printable_name): Deal gracefully
26119 with a NULL DECL_NAME.
26120
26121 2010-04-26 Richard Guenther <rguenther@suse.de>
26122
26123 PR lto/42425
26124 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
26125 if emitting debug information and it is either a function
26126 or a namespace decl.
26127
26128 2010-04-26 Ira Rosen <irar@il.ibm.com>
26129
26130 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
26131 determine if the statement is vectorizable, and a macro to access it.
26132 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26133 Skip statements that can't be vectorized. If the analysis fails,
26134 mark the statement as unvectorizable if vectorizing basic block.
26135 (vect_compute_data_refs_alignment): Likewise.
26136 (vect_verify_datarefs_alignment): Skip statements marked as
26137 unvectorizable. Add print.
26138 (vect_analyze_group_access): Skip statements that can't be
26139 vectorized. If the analysis fails, mark the statement as
26140 unvectorizable if vectorizing basic block.
26141 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
26142 * tree-vect-stmts.c (vectorizable_store): Fix the number of
26143 generated stmts for SLP.
26144 (new_stmt_vec_info): Initialize the new field.
26145 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
26146 statements marked as unvectorizable.
26147
26148 2010-04-25 Joseph Myers <joseph@codesourcery.com>
26149
26150 * c-common.c (flag_isoc1x): New.
26151 (flag_isoc99): Update comment.
26152 * c-common.h (flag_isoc1x): New.
26153 (flag_isoc99): Update comment.
26154 * c-cppbuiltin.c (builtin_define_float_constants): Also define
26155 __<type>_DECIMAL_DIG__.
26156 * c-opts.c (set_std_c1x): New.
26157 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
26158 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
26159 * c.opt (-std=c1x, -std=gnu1x): New options.
26160 * doc/cpp.texi: Mention -std=c1x.
26161 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
26162 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
26163 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
26164 * doc/standards.texi: Mention C1X.
26165 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
26166 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
26167 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
26168 Define for C1X.
26169
26170 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
26171
26172 * config/i386/gmon-sol2.c (_mcleanup): Change format string
26173 placeholder from 0x%x to %#x.
26174 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26175 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
26176 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
26177 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
26178 * config/i386/i386.c (ix86_target_string): Ditto.
26179 (output_pic_addr_const): Ditto.
26180 (print_operand): Ditto.
26181
26182 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
26183
26184 * combine.c (find_split_point): Add third argument. Use it
26185 to find nested multiply-accumulate instructions. Adjust calls.
26186 (try_combine): Adjust call to find_split_point.
26187
26188 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
26189
26190 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
26191
26192 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
26193
26194 PR tree-optimization/41442
26195 * fold-const.c (merge_truthop_with_opposite_arm): New function.
26196 (fold_binary_loc): Call it.
26197
26198 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
26199
26200 * toplev.c (general_init): Set default for fdiagnostics-show-option.
26201 * opts.c (common_handle_option): Allow disabling it.
26202 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
26203
26204 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
26205
26206 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
26207 between modes if both types are integral.
26208
26209 2010-04-23 Richard Guenther <rguenther@suse.de>
26210
26211 PR tree-optimization/43572
26212 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
26213
26214 2010-04-23 Richard Guenther <rguenther@suse.de>
26215
26216 PR lto/43455
26217 * tree-inline.c (tree_can_inline_p): Also check compatibility
26218 of return types.
26219
26220 2010-04-23 Martin Jambor <mjambor@suse.cz>
26221
26222 PR tree-optimization/43846
26223 * tree-sra.c (struct access): New flag grp_assignment_read.
26224 (build_accesses_from_assign): Set grp_assignment_read.
26225 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
26226 (enum mark_read_status): New type.
26227 (analyze_access_subtree): Propagate grp_assignment_read, create
26228 accesses also if both direct_read and root->grp_assignment_read.
26229
26230 2010-04-23 Martin Jambor <mjambor@suse.cz>
26231
26232 PR middle-end/43835
26233 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
26234 function does not have type attributes.
26235
26236 2010-04-23 Richard Guenther <rguenther@suse.de>
26237
26238 PR lto/42653
26239 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
26240 of FUNCTION_DECLs.
26241
26242 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26243
26244 * sese.h (create_if_region_on_edge): Remove.
26245
26246 * sese.c (create_if_region_on_edge): Make static.
26247
26248 * tree-inline.c: Do not include ggc.h.
26249
26250 * expr.c: Do not include ggc.h.
26251
26252 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
26253 dependencies.
26254
26255 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
26256
26257 PR target/43744
26258 * config/sh/sh.c (find_barrier): Don't emit a constant pool
26259 in the middle of insns for casesi_worker_2.
26260
26261 2010-04-22 David Edelsohn <edelsohn@gnu.org>
26262
26263 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
26264
26265 2010-04-22 Ira Rosen <irar@il.ibm.com>
26266
26267 PR tree-optimization/43842
26268 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
26269 loop unrolling in update of exit phis. Fix comment.
26270 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
26271 least two reduction statements in the loop before starting SLP
26272 analysis.
26273
26274 2010-04-22 Nick Clifton <nickc@redhat.com>
26275
26276 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
26277
26278 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
26279
26280 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
26281 to simplify a + ~a.
26282
26283 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26284
26285 * tree-parloops.c (loop_parallel_p): New argument
26286 parloop_obstack. Pass it down.
26287 (parallelize_loops): New variable parloop_obstack. Initialize it,
26288 pass it down, free it.
26289
26290 * tree-loop-linear.c (linear_transform_loops): Pass down
26291 lambda_obstack.
26292
26293 * tree-data-ref.h (lambda_compute_access_matrices): New argument
26294 of type struct obstack *.
26295
26296 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
26297 scratch_obstack. Initialize it, pass down, free it.
26298
26299 * lambda.h (lambda_loop_new): Remove.
26300 (lambda_matrix_new, lambda_matrix_inverse)
26301 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
26302 argument of type struct obstack *.
26303
26304 * lambda-trans.c (lambda_trans_matrix_new): New argument
26305 lambda_obstack. Pass it down, use obstack allocation for ret.
26306 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
26307 it down.
26308
26309 * lambda-mat.c (lambda_matrix_get_column)
26310 (lambda_matrix_project_to_null): Remove.
26311 (lambda_matrix_new): New argument lambda_obstack. Use obstack
26312 allocation for mat.
26313 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
26314 lambda_obstack.
26315
26316 * lambda-code.c (lambda_loop_new): New function.
26317 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
26318 (lambda_compute_auxillary_space, lambda_compute_target_space)
26319 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
26320 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
26321 (build_access_matrix): New argument lambda_obstack. Use obstack
26322 allocation for am.
26323 (lambda_compute_step_signs, lambda_compute_access_matrices): New
26324 argument lambda_obstack. Pass it down.
26325
26326 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26327
26328 * optabs.h (expand_widening_mult): Declare.
26329
26330 2010-04-22 Richard Guenther <rguenther@suse.de>
26331
26332 PR tree-optimization/43845
26333 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
26334 lookup the CALL_EXPR function and arguments.
26335
26336 2010-04-22 Nick Clifton <nickc@redhat.com>
26337
26338 * config/stormy16/stormy16.c
26339 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
26340 * config/stormy16/stormy16.h: Tidy up formatting.
26341 (DONT_USE_BUILTIN_SETJMP): Remove definition.
26342 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
26343 (ineqbranchsi): Delete pattern.
26344 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
26345 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
26346 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
26347 stormy16-lib2-ucmpsi2.c.
26348
26349 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26350
26351 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
26352 df_simulate_find_noclobber_defs as appropriate. Keep track of an
26353 extra set merge_set_noclobber, and use it to relax the final test
26354 slightly.
26355 * df.h (df_simulate_find_noclobber_defs): Declare.
26356 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
26357 conditional defs.
26358 (df_simulate_find_noclobber_defs): New function.
26359
26360 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
26361
26362 * config/i386/i386.md: Use {} around multi-line preparation statements.
26363
26364 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26365
26366 * c-tree.h (push_init_level, pop_init_level, set_init_index)
26367 (process_init_element): New argument of type struct obstack *.
26368
26369 * c-typeck.c (push_init_level, pop_init_level, set_designator)
26370 (set_init_index, set_init_label, set_nonincremental_init)
26371 (set_nonincremental_init_from_string, find_init_member)
26372 (output_init_element, output_pending_init_elements)
26373 (process_init_element): New argument braced_init_obstack. Pass it
26374 down.
26375 (push_range_stack, add_pending_init): New argument
26376 braced_init_obstack. Use obstack allocation.
26377
26378 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
26379 braced_init_obstack. Pass it down.
26380 (c_parser_braced_init): New variables ret, braced_init_obstack.
26381 Initialize obstack, pass it down and finally free it.
26382
26383 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26384
26385 PR middle-end/29274
26386 * tree-pass.h (pass_optimize_widening_mul): Declare.
26387 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
26388 gate_optimize_widening_mul): New static functions.
26389 (pass_optimize_widening_mul): New.
26390 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
26391 <case MULT_EXPR>: Remove support for widening multiplies.
26392 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
26393 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
26394 simplify_gen_unary rather than directly building extensions.
26395 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
26396 WIDEN_MULT_EXPR.
26397 * expmed.c (expand_widening_mult): New function.
26398 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
26399
26400 2010-04-21 Jan Hubicka <jh@suse.cz>
26401
26402 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
26403 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
26404 * lto-wpa-fixup.c: Remove.
26405 * Makefile.in (lto-wpa-fixup.o): Remove.
26406 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
26407 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
26408 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
26409
26410 2010-04-21 Jan Hubicka <jh@suse.cz>
26411
26412 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
26413 add write_optimization_summary, read_optimization_summary.
26414 (ipa_write_summaries_of_cgraph_node_set): Remove.
26415 (ipa_write_optimization_summaries): Declare.
26416 (ipa_read_optimization_summaries): Declare.
26417 * ipa-cp.c (pass_ipa_cp): Update.
26418 * ipa-reference.c (pass_ipa_reference): Update.
26419 * ipa-pure-const.c (pass_ipa_pure_const): Update.
26420 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
26421 Update.
26422 * ipa-inline.c (pass_ipa_inline): Update.
26423 * ipa.c (pass_ipa_whole_program): Update.
26424 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
26425 * passes.c (ipa_write_summaries_1): Do not test wpa.
26426 (ipa_write_optimization_summaries_1): New.
26427 (ipa_write_optimization_summaries): New.
26428 (ipa_read_summaries): Do not test ltrans.
26429 (ipa_read_optimization_summaries_1): New.
26430 (ipa_read_optimization_summaries): New.
26431
26432 2010-04-21 Jan Hubicka <jh@suse.cz>
26433
26434 * lto-cgraph.c (lto_output_node): Do not output comdat groups
26435 for boundary nodes.
26436 (output_cgraph): Do not arrange comdat groups for boundary nodes.
26437
26438 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26439
26440 PR debug/40040
26441 * dwarf2out.c (add_name_and_src_coords_attributes): Add
26442 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
26443
26444 2010-04-21 Jan Hubicka <jh@suse.cz>
26445
26446 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
26447
26448 2010-04-21 Jan Hubicka <jh@suse.cz>
26449
26450 * varpool.c (decide_is_variable_needed): Variable is always needed
26451 during ltrans.
26452
26453 2010-04-21 Jan Hubicka <jh@suse.cz>
26454
26455 * opts.c (decode_options): Enable pure-const pass for whopr.
26456
26457 2010-04-21 Jan Hubicka <jh@suse.cz>
26458
26459 * cgraph.c (dump_cgraph_node): Dump also assembler name.
26460 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
26461 at WPA dumping.
26462 (cgraph_decide_inlining): Do not expect callee to be removed in all
26463 cases.
26464
26465 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
26466
26467 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
26468
26469 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
26470
26471 * config/i386/i386.md (x86_shrd): Add athlon_decode and
26472 amdfam10_decode attributes.
26473
26474 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26475
26476 PR middle-end/43570
26477 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
26478 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
26479 (lower_copyprivate_clauses): Use private var in outer
26480 context instead of original var. Make sure the types
26481 are correct for VLAs.
26482
26483 2010-04-21 Richard Guenther <rguenther@suse.de>
26484
26485 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
26486 to non-pointer objects.
26487
26488 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26489
26490 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
26491 last chain entry if it starts with the still current label.
26492 (add_location_or_const_value_attribute): Check that
26493 loc_list->first->next is NULL instead of comparing ->first with ->last.
26494 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
26495 to add_var_loc_to_decl.
26496
26497 * dwarf2out.c (output_call_frame_info): For dw_cie_version
26498 >= 4 add also address size and segment size fields into CIE header.
26499
26500 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
26501 long as address size is the same as sizeof (void *) and
26502 segment size is 0.
26503 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
26504 address size or segment size is unexpected, return DW_EH_PE_omit.
26505 (classify_object_over_fdes): If get_cie_encoding returned
26506 DW_EH_PE_omit, return -1.
26507 (init_object): If classify_object_over_fdes returned -1,
26508 pretend there were no FDEs at all.
26509
26510 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
26511
26512 * config/i386/i386.md (bswap<mode>2): Macroize expander from
26513 bswap{si,di}2 using SWI48 mode iterator.
26514 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
26515 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
26516 set modrm attribute of bswap insn to 0 and remove length attribute.
26517 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
26518 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
26519 set mode attribute to <MODE> and remove length attribute.
26520
26521 2010-04-20 James E. Wilson <wilson@codesourcery.com>
26522
26523 PR rtl-optimization/43520
26524 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
26525 zero available registers.
26526
26527 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26528
26529 * builtins.c (fold_builtin_cproj): Fold more cases.
26530
26531 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26532
26533 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
26534 (fold_builtin_1): Fold builtin cproj.
26535 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
26536 Use ATTR_CONST_NOTHROW_LIST.
26537
26538 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
26539
26540 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
26541 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
26542 ffsi2_no_cmove for !TARGET_CMOVE.
26543 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
26544 (ffssi2): Remove expander.
26545 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
26546 mode iterator.
26547 (ctz<mode>2): Ditto from ctz{si,di}2.
26548 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
26549 mode iterator.
26550 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
26551 mode iterator.
26552
26553 2010-04-20 Jakub Jelinek <jakub@redhat.com>
26554
26555 * dwarf2out.c (AT_linkage_name): Define.
26556 (clone_as_declaration): Handle DW_AT_linkage_name.
26557 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
26558 of DW_AT_MIPS_linkage_name.
26559 (move_linkage_attr): Likewise.
26560 (dwarf2out_finish): Likewise.
26561
26562 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
26563
26564 PR middle-end/41952
26565 * fold-const.c (fold_comparison): New folding rule.
26566
26567 2010-04-20 Anatoly Sokolov <aesok@post.ru>
26568
26569 * double-int.h (double_int_setbit): Declare.
26570 * double-int.c (double_int_setbit): New function.
26571 * rtl.h (immed_double_int_const): Declare.
26572 * emit-rtl.c (immed_double_int_const): New function.
26573 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
26574 and immed_double_int_const functions.
26575 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
26576 expand_copysign_bit): (Ditto.).
26577 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
26578 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
26579 * dojump.c (prefer_and_bit_test): (Ditto.).
26580 * expr.c (convert_modes, reduce_to_bit_field_precision,
26581 const_vector_from_tree): (Ditto.).
26582 * expmed.c (mask_rtx, lshift_value): (Ditto.).
26583
26584 2010-04-20 Jan Hubicka <jh@suse.cz>
26585
26586 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
26587 (dump_cgraph_node): Dump new flags.
26588 * cgraph.h (struct cgraph_node): Add flags
26589 reachable_from_other_partition and in_other_partition.
26590 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
26591 other partition can not be removed.
26592 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
26593 the other partition must be output; silence sanity checking on
26594 leaking functions bodies from other paritition.
26595 * lto-cgraph.c (reachable_from_other_partition_p): New function.
26596 (lto_output_node): Output new flags; do not sanity check that inline
26597 clones are output; drop lto_forced_extern_inline_p code; do not mock
26598 visibility flags at partition boundaries.
26599 (add_node_to): New function.
26600 (output_cgraph): Use it to sort functions so masters appear before
26601 clones.
26602 (input_overwrite_node): Input new flags.
26603 * passes.c (ipa_write_summaries): Do not call
26604 lto_new_extern_inline_states.
26605 * lto-section-out.c (forced_extern_inline,
26606 lto_new_extern_inline_states lto_delete_extern_inline_states,
26607 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
26608 * lto-streamer.h (lto_new_extern_inline_states,
26609 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
26610 lto_forced_extern_inline_p): Kill.
26611
26612 2010-04-20 Richard Guenther <rguenther@suse.de>
26613
26614 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
26615 from vars that can have pointers.
26616 (process_constraint): Dump useless constraints.
26617
26618 2010-04-20 Richard Guenther <rguenther@suse.de>
26619
26620 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
26621 (dump_sa_points_to_info): Remove asserts.
26622 (init_base_vars): nothing_id isn't an escape point nor does it
26623 have pointers.
26624
26625 2010-04-20 Jakub Jelinek <jakub@redhat.com>
26626
26627 * tree.h (TYPE_REF_IS_RVALUE): Define.
26628 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
26629 should_move_die_to_comdat, prune_unused_types_walk): Handle
26630 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
26631 (modified_type_die, gen_reference_type_die): Emit
26632 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
26633 if TYPE_REF_IS_RVALUE and -gdwarf-4.
26634
26635 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26636
26637 PR target/43635
26638 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
26639 calls for -fpic -m31 if they have been sibcall optimized.
26640
26641 2010-04-19 James E. Wilson <wilson@codesourcery.com>
26642
26643 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
26644 ar.lc fixed and call-used.
26645
26646 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
26647
26648 2010-04-19 Jan Hubicka <jh@suse.cz>
26649
26650 * opts.c (decode_options): Disable whpr incompatible passes.
26651 * lto/lto.c (lto_1_to_1_map): Skip clones.
26652 (read_cgraph_and_symbols): Do not mark everything as needed.
26653 (do_whole_program_analysis): Do map only after optimizing;
26654 set proper cgraph_state; use passmanager.
26655
26656 2010-04-19 DJ Delorie <dj@redhat.com>
26657
26658 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
26659 POINTER_PLUS_EXPR and fix them.
26660
26661 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
26662
26663 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
26664 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
26665 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
26666 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
26667 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
26668 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
26669 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
26670 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
26671 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
26672 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
26673 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
26674
26675 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
26676
26677 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
26678 (check_cond_move_block): Likewise.
26679 (cond_move_process_if_block): Likewise.
26680 (noce_find_if_block): Improve formatting.
26681 (find_if_header): Pass 0 to memset and tweak conditions.
26682 (cond_exec_find_if_block): Fix long lines and tweak conditions.
26683
26684 2010-04-19 Jakub Jelinek <jakub@redhat.com>
26685
26686 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
26687 for -gdwarf-4.
26688
26689 PR middle-end/43337
26690 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
26691 with non-local decl doesn't need chain.
26692
26693 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
26694
26695 * ira-color.c (allocno_reload_assign): Avoid accumulating
26696 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
26697
26698 2010-04-19 Martin Jambor <mjambor@suse.cz>
26699
26700 * gimple.h (create_tmp_reg): Declare.
26701 * gimplify.c (create_tmp_reg): New function.
26702 (gimplify_return_expr): Use create_tmp_reg.
26703 (gimplify_omp_atomic): Likewise.
26704 (gimple_regimplify_operands): Likewise.
26705 * tree-dfa.c (make_rename_temp): Likewise.
26706 * tree-predcom.c (predcom_tmp_var): Likewise.
26707 (reassociate_to_the_same_stmt): Likewise.
26708 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
26709 (get_replaced_param_substitute): Likewise.
26710 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
26711 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
26712 * tree-ssa-pre.c (get_representative_for): Likewise.
26713 (create_expression_by_pieces): Likewise.
26714 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
26715 (create_tailcall_accumulator): Likewise.
26716
26717 2010-04-19 Martin Jambor <mjambor@suse.cz>
26718
26719 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
26720 new_stmt.
26721 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
26722
26723 2010-04-19 Richard Guenther <rguenther@suse.de>
26724
26725 PR tree-optimization/43796
26726 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
26727 from SCEV in the lattice.
26728 (vrp_visit_phi_node): Dump change.
26729
26730 2010-04-19 Richard Guenther <rguenther@suse.de>
26731
26732 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
26733 * configure: Re-generated.
26734
26735 2010-04-19 Richard Guenther <rguenther@suse.de>
26736
26737 PR tree-optimization/43783
26738 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
26739 constant ARRAY_REF operands two and three if possible.
26740
26741 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
26742
26743 PR target/43766
26744 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
26745
26746 2010-04-19 Jie Zhang <jie@codesourcery.com>
26747
26748 PR target/43662
26749 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
26750
26751 2010-04-19 Ira Rosen <irar@il.ibm.com>
26752
26753 PR tree-optimization/37027
26754 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
26755 and macro to access it.
26756 (vectorizable_reduction): Add argument.
26757 (vect_get_slp_defs): Likewise.
26758 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
26759 statements for possible use in SLP.
26760 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
26761 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
26762 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
26763 add new argument.
26764 (vectorizable_reduction): Likewise.
26765 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
26766 vect_get_slp_defs.
26767 (vectorizable_type_demotion, vectorizable_type_promotion,
26768 vectorizable_store): Likewise.
26769 (vect_analyze_stmt): Update call to vectorizable_reduction.
26770 (vect_transform_stmt): Likewise.
26771 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
26772 (vect_build_slp_tree): Fix indentation. Check that there are no loads
26773 from different interleaving chains in same node.
26774 (vect_slp_rearrange_stmts): New function.
26775 (vect_supported_load_permutation_p): Allow load permutations for
26776 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
26777 inside SLP nodes if necessary.
26778 (vect_analyze_slp_instance): Handle reductions.
26779 (vect_analyze_slp): Try to build SLP instances originating from groups
26780 of reductions.
26781 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
26782 (vect_get_constant_vectors): Create initial vectors for reductions
26783 according to reduction code. Add new argument.
26784 (vect_get_slp_defs): Add new argument, pass it to
26785 vect_get_constant_vectors.
26786 (vect_schedule_slp_instance): Remove SLP tree root statements.
26787
26788 2010-04-19 Jakub Jelinek <jakub@redhat.com>
26789
26790 * tree.h (ENUM_IS_SCOPED): Define.
26791 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
26792 for ENUM_IS_SCOPED enums.
26793
26794 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
26795
26796 * fold-const.c (fold_comparison): Use ssizetype.
26797 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
26798 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
26799 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
26800 * tree-object-size.c (compute_object_sizes): Use size_type_node.
26801
26802 * tree.h (initialize_sizetypes): Remove parameter.
26803 (build_common_tree_nodes): Remove second parameter.
26804 * stor-layout.c (initialize_sizetypes): Remove parameter.
26805 Always create an unsigned type.
26806 (set_sizetype): Assert that the passed type is unsigned and simplify.
26807 * tree.c (build_common_tree_nodes): Remove second parameter.
26808 Adjust call to initialize_sizetypes.
26809 * c-decl.c (c_init_decl_processing): Remove second argument in call to
26810 build_common_tree_nodes.
26811
26812 2010-04-18 Matthias Klose <doko@ubuntu.com>
26813
26814 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
26815
26816 2010-04-18 Ira Rosen <irar@il.ibm.com>
26817
26818 PR tree-optimization/43771
26819 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
26820 load permutation doesn't have gaps.
26821
26822 2010-04-18 Jan Hubicka <jh@suse.cz>
26823
26824 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
26825 (sse_prologue_save_insn expander): Use new pattern.
26826 (sse_prologue_save_insn1): New pattern and splitter.
26827 (sse_prologue_save_insn): Update to deal also with 64bit aligned
26828 blocks.
26829 * i386.c (setup_incoming_varargs_64): Do not compute jump
26830 destination here.
26831 (ix86_gimplify_va_arg): Update alignment needed.
26832 (ix86_local_alignment): Do not align all local arrays to 128bit.
26833
26834 2010-04-17 Jan Hubicka <jh@suse.cz>
26835
26836 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
26837
26838 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
26839
26840 * arm.md (negdi2): Remove redundant code to force values into a
26841 register.
26842
26843 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
26844
26845 * arm/bpabi.S: Add EABI alignment attributes to objects.
26846 * arm/bpabi-v6m.S: Likewise.
26847 * arm/crti.asm: Likewise.
26848 * arm/crtn.asm: Likewise.
26849 * arm/lib1funcs.asm: Likewise.
26850 * arm/libunwind.S: Likewise.
26851
26852 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
26853
26854 * arm-protos.h (tune_params): New structure.
26855 * arm.c (current_tune): New variable.
26856 (arm_constant_limit): Delete.
26857 (struct processors): Add pointer to the tune parameters.
26858 (arm_slowmul_tune): New tuning option.
26859 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
26860 (all_cores): Adjust to pick up the tuning model.
26861 (arm_constant_limit): New function.
26862 (arm_override_options): Select the appropriate tuning model. Delete
26863 initialization of arm_const_limit.
26864 (arm_split_constant): Use the new constant-limit model.
26865 (arm_rtx_costs): Pick up the current tuning model.
26866 * arm.md (is_strongarm, is_xscale): Delete.
26867 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
26868 for Xscale variant architectures.
26869 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
26870
26871 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26872
26873 * config/arm/arm.c (arm_gen_constant): Remove unused variable
26874 can_shift.
26875 (arm_rtx_costs_1): Remove unused variable extra_cost.
26876 (arm_unwind_emit_set): Use variable offset.
26877 (thumb1_output_casesi): Remove unused variable flags.
26878
26879 2010-04-16 Jeff Law <law@redhat.com>
26880
26881 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
26882 needing assignment rather than doing a two-phase assignment. Remove
26883 unused variable 'm'.
26884
26885 2010-04-16 Jakub Jelinek <jakub@redhat.com>
26886
26887 PR bootstrap/43767
26888 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
26889
26890 2010-04-16 Doug Kwan <dougkwan@google.com>
26891
26892 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
26893 (next_operand_entry_id): New static variable.
26894 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
26895 (add_to_ops_vec): Assigned unique ID to operand entry.
26896 (struct oecount_s): New field ID.
26897 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
26898 (undistribute_ops_list): Assign unique IDs to oecounts.
26899 (init_reassoc): reset next_operand_entry_id.
26900
26901 2010-04-16 Doug Kwan <dougkwan@google.com>
26902
26903 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
26904 missing left parenthesis.
26905
26906 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
26907
26908 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
26909 *btdi_rex64 using SWI48 mode iterator.
26910 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
26911 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
26912 *jcc_btdi_mask_rex64.
26913
26914 2010-04-16 Anatoly Sokolov <aesok@post.ru>
26915
26916 * double-int.h (tree_to_double_int): Convert to macro.
26917 * double-int.c (tree_to_double_int): Remove.
26918
26919 2010-04-16 Jakub Jelinek <jakub@redhat.com>
26920
26921 PR debug/43762
26922 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
26923 with want_address 2 and in case a single element list might be
26924 possible, call it again with want_address 0.
26925
26926 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26927
26928 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
26929 case 'W' print operands for HI mode.
26930 * config/h8300/h8300.h (Y0, Y2) : New constraints.
26931 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
26932 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
26933 * config/h8300/predicate.md (bit_register_indirect_operand): New.
26934
26935 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
26936
26937 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
26938 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
26939 #xx:3 and #xx:4 mode.
26940
26941 * config/h8300/h8300.md (inverted load with HImode dest): Add
26942 support for H8300SX.
26943
26944 * config/h8300/predicate.md (bit_operand): Allow immediate values that
26945 satisfy 'U' constraint.
26946
26947 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26948
26949 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
26950 * configure: Regenerate.
26951 * config.in: Regenerate.
26952 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
26953 works.
26954
26955 2010-04-16 Richard Guenther <rguenther@suse.de>
26956
26957 * tree.h (struct tree_decl_minimal): Move pt_uid ...
26958 (struct tree_decl_common): ... here.
26959 (DECL_PT_UID): Adjust.
26960 (SET_DECL_PT_UID): Likewise.
26961 (DECL_PT_UID_SET_P): Likewise.
26962
26963 2010-04-16 Richard Guenther <rguenther@suse.de>
26964
26965 PR tree-optimization/43572
26966 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
26967 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
26968 * tree-flow.h (is_call_clobbered): Remove.
26969 * tree-flow-inline.h (is_call_clobbered): Likewise.
26970 * tree-dfa.c (dump_variable): Do not dump call clobber state.
26971 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
26972 (execute_return_slot_opt): Adjust.
26973 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
26974 check for call clobbered vars here.
26975 (find_tail_calls): Move tailcall verification to the
26976 proper place.
26977
26978 2010-04-16 Diego Novillo <dnovillo@google.com>
26979
26980 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
26981
26982 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
26983
26984 PR target/40603
26985 * config/arm/arm.md (cbranchqi4): New pattern.
26986 * config/arm/predicates.md (const0_operand,
26987 cbranchqi4_comparison_operator): New predicates.
26988
26989 2010-04-16 Richard Guenther <rguenther@suse.de>
26990
26991 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
26992 (dump_gimple_stmt): Likewise.
26993
26994 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
26995
26996 * recog.h (struct recog_data): New field is_operator.
26997 (struct insn_operand_data): New field is_operator.
26998 * recog.c (extract_insn): Set recog_data.is_operator.
26999 * genoutput.c (output_operand_data): Emit code to set the
27000 is_operator field.
27001 * reload.c (find_reloads): Use it rather than testing for an
27002 empty constraint string.
27003
27004 PR target/41514
27005 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
27006 If the previous insn is a cbranchsi4_insn with the same arguments,
27007 omit the compare instruction.
27008
27009 * config/arm/arm.md (addsi3_cbranch): If destination is a high
27010 register, inputs must be low registers and we need a low register
27011 scratch. Handle alternative 2 like alternative 3.
27012
27013 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27014
27015 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
27016 don't call get_addr on both. If one expression is a VALUE and
27017 the other a REG, check VALUE's locs if the REG isn't among them.
27018
27019 2010-04-16 Christian Bruel <christian.bruel@st.com>
27020
27021 * config/sh/sh.h (sh_frame_pointer_required): New function.
27022 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
27023 (flag_omit_frame_pointer) Set.
27024 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
27025 (rounded_frame_size): Adjust size with outgoing_args_size.
27026 (sh_set_return_address): Must return from stack pointer.
27027 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
27028 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
27029 (ACCUMULATE_OUTGOING_ARGS): Define.
27030 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
27031 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
27032
27033 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
27034
27035 PR target/43471
27036 * config/sh/sh.c (sh_legitimize_reload_address): Use
27037 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
27038 Remove a unneeded check for offset_base.
27039
27040 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
27041
27042 * configure: Regenerated.
27043
27044 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27045
27046 * config/s390/s390.c (s390_call_save_register_used): Switch back
27047 to HARD_REGNO_NREGS.
27048
27049 2010-04-15 Richard Guenther <rguenther@suse.de>
27050
27051 * alias.c (alias_set_subset_of): Handle alias-set zero
27052 child properly.
27053
27054 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
27055 Julian Brown <julian@codesourcery.com>
27056
27057 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
27058 alternatives according to use of high and low regs.
27059 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
27060 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
27061 optimizing for size on Thumb-2.
27062
27063 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
27064
27065 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
27066
27067 2010-04-15 Richard Guenther <rguenther@suse.de>
27068
27069 * tree-ssa-structalias.c (struct variable_info): Add
27070 is_fn_info flag.
27071 (new_var_info): Initialize it.
27072 (dump_constraints): Support printing last added constraints.
27073 (debug_constraints): Adjust.
27074 (dump_constraint_graph): Likewise.
27075 (make_heapvar_for): Check for NULL cfun.
27076 (get_function_part_constraint): New function.
27077 (get_fi_for_callee): Likewise.
27078 (find_func_aliases): Properly implement IPA PTA constraints.
27079 (process_ipa_clobber): New function.
27080 (find_func_clobbers): Likewise.
27081 (insert_into_field_list_sorted): Remove.
27082 (create_function_info_for): Properly allocate vars for IPA mode.
27083 Do not use insert_into_field_list_sorted.
27084 (create_variable_info_for): Properly generate constraints for
27085 global vars in IPA mode.
27086 (dump_solution_for_var): Always dump the solution.
27087 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
27088 (find_what_var_points_to): Adjust.
27089 (pt_solution_set): Change.
27090 (pt_solution_ior_into): New function.
27091 (pt_solution_empty_p): Export.
27092 (pt_solution_includes_global): Adjust.
27093 (pt_solution_includes_1): Likewise.
27094 (pt_solutions_intersect_1): Likewise.
27095 (dump_sa_points_to_info): Check some invariants.
27096 (solve_constraints): Move constraint dumping ...
27097 (compute_points_to_sets): ... here.
27098 (ipa_pta_execute): ... and here.
27099 (compute_may_aliases): Do not re-compute points-to info
27100 locally if IPA info is available.
27101 (ipa_escaped_pt): New global var.
27102 (ipa_pta_execute): Properly implement IPA PTA.
27103 * tree-into-ssa.c (dump_decl_set): Support dumping
27104 decls not in referenced-vars.
27105 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
27106 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
27107 (dump_points_to_solution): Likewise.
27108 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
27109 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
27110 (remap_gimple_stmt): Reset call clobber/use information if necessary.
27111 (copy_decl_to_var): Copy DECL_PT_UID.
27112 (copy_result_decl_to_var): Likewise.
27113 * tree.c (make_node_stat): Initialize DECL_PT_UID.
27114 (copy_node_stat): Copy it.
27115 * tree.h (DECL_PT_UID): New macro.
27116 (SET_DECL_PT_UID): Likewise.
27117 (DECL_PT_UID_SET_P): Likewise.
27118 (struct tree_decl_minimal): Add pt_uid member.
27119 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
27120 (pt_solution_empty_p): Declare.
27121 (pt_solution_set): Adjust.
27122 (ipa_escaped_pt): Declare.
27123 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
27124 * gimple-pretty-print.c (pp_points_to_solution): New function.
27125 (dump_gimple_call): Dump call clobber/use information.
27126 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
27127 * tree-pass.h (TDF_ALIAS): New dump option.
27128 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
27129 * doc/invoke.texi (-fipa-pta): Update documentation.
27130
27131 2010-04-15 Richard Guenther <rguenther@suse.de>
27132
27133 * Makefile.in (OBJS-common): Add gimple-fold.o.
27134 (gimple-fold.o): New rule.
27135 * tree.h (maybe_fold_offset_to_reference,
27136 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
27137 prototypes ...
27138 * gimple.h: ... here.
27139 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
27140 may_propagate_address_into_dereference): Move prototypes ...
27141 * gimple.h: ... here.
27142 * tree-ssa-ccp.c (get_symbol_constant_value,
27143 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
27144 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
27145 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
27146 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
27147 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
27148 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
27149 gimplify_and_update_call_from_tree): Move ...
27150 * gimple-fold.c: ... here. New file.
27151 (ccp_fold_builtin): Rename to ...
27152 (gimple_fold_builtin): ... this.
27153 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
27154
27155 2010-04-15 Richard Guenther <rguenther@suse.de>
27156
27157 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
27158 fit_double_type, force_fit_type_double, add_double_with_sign,
27159 neg_double, mul_double_with_sign, lshift_double, rshift_double,
27160 lrotate_double, rrotate_double, div_and_round_double): Move ...
27161 * double-int.c: ... here.
27162 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
27163 add_double, neg_double, mul_double_with_sign, mul_double,
27164 lshift_double, rshift_double, lrotate_double, rrotate_double,
27165 div_and_round_double): Move prototypes ...
27166 * double-int.h: ... here.
27167
27168 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
27169
27170 PR target/43742
27171 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
27172 matching constraints to ensure inputs match the output.
27173
27174 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
27175
27176 PR target/43742
27177 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
27178 in an input-only operand.
27179
27180 2010-04-15 Anatoly Sokolov <aesok@post.ru>
27181
27182 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
27183 (double_int_not, double_int_lshift, double_int_rshift): Declare.
27184 (double_int_negative_p): Convert to static inline function.
27185 * double-int.c (double_int_lshift, double_int_lshift): New functions.
27186 (double_int_negative_p): Remove.
27187 * tree.h (lshift_double, rshift_double):
27188 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
27189 * fold-const.c (fold_convert_const_int_from_real,
27190 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
27191 (lshift_double): Change type of arith argument to bool.
27192 (rshift_double): Change type of arith argument to bool. Correct
27193 comment.
27194 * expmed.c (mask_rtx, lshift_value): (Ditto.).
27195
27196 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
27197
27198 PR target/21803
27199 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
27200 at the start and end of the then/else blocks, and omit them from the
27201 conversion.
27202 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
27203 argument; all callers changed. Pass zero to old_insns_match_p instead.
27204 (flow_find_head_matching_sequence): New function.
27205 (old_insns_match_p): Check REG_EH_REGION notes for calls.
27206 * basic-block.h (flow_find_cross_jump,
27207 flow_find_head_matching_sequence): Declare functions.
27208
27209 2010-04-14 Jason Merrill <jason@redhat.com>
27210
27211 PR c++/36625
27212 * c-common.c (attribute_takes_identifier_p): New fn.
27213 * c-common.h: Declare it.
27214
27215 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27216
27217 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
27218 splitter condition.
27219 (*udivmod<mode>4): Ditto.
27220
27221 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27222
27223 * config/i386/i386.md (maxmin_int): Rename code attribute from
27224 maxminiprefix and update all users.
27225 (maxmin_float): Ditto from maxminfprefix.
27226 (logic): Ditto from logicprefix.
27227 (absneg_mnemonic): Ditto from absnegprefix.
27228 * config/i386/mmx.md: Update all users of maxminiprefix,
27229 maxminfprefix and logicprefix for rename.
27230 * config/i386/sse.md: Ditto.
27231 * config/i386/sync.md (sync_<code><mode>): Update for
27232 logicprefix rename.
27233
27234 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
27235
27236 PR 42966
27237 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
27238 warnings converted to errors.
27239
27240 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27241
27242 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
27243 used insn_type variable.
27244 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
27245 to avoid set-but-not-used warning.
27246
27247 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27248
27249 * df-core.c (df_ref_debug): Change format string placeholder
27250 from 0x%x to %#x.
27251 * dwarf2asm.c (dw2_asm_output_data_raw,
27252 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
27253 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
27254 * dwarf2out.c (output_cfi, output_cfi_directive,
27255 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
27256 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
27257 Ditto.
27258 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
27259 * print-rtl.c (print_rtx): Ditto.
27260
27261 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27262
27263 PR middle-end/42694
27264 * builtins.c (expand_builtin_pow_root): New function to expand pow
27265 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
27266 series of sqrt and cbrt calls under -ffast-math.
27267 (expand_builtin_pow): Call it.
27268
27269 2010-04-14 Michael Matz <matz@suse.de>
27270
27271 PR tree-optimization/42963
27272 * tree-cfg.c (touched_switch_bbs): New static variable.
27273 (group_case_labels_stmt): New function broken out from ...
27274 (group_case_labels): ... here, use the above.
27275 (start_recording_case_labels): Allocate touched_switch_bbs.
27276 (end_recording_case_labels): Deallocate it, call
27277 group_case_labels_stmt.
27278 (gimple_redirect_edge_and_branch): Remember index of affected BB.
27279
27280 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27281
27282 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
27283 from insn template.
27284
27285 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27286
27287 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
27288
27289 2010-04-13 Jan Hubicka <jh@suse.cz>
27290
27291 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
27292 of optimized out static functions.
27293 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
27294 cost computation. Also sanity check for overflows.
27295 (update_caller_keys): Update cgraph_edge_badness call; properly
27296 update fibheap and sanity check that it is up to date.
27297 (add_new_edges_to_heap): Update cgraph_edge_badness.
27298 (cgraph_decide_inlining_of_small_function): Likewise;
27299 add sanity checking that badness in heap is up to date;
27300 improve dumping of reason; Update badness of calls to the
27301 offline copy of function currently inlined; dump badness
27302 of functions not inlined because of unit growth limits.
27303
27304 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
27305
27306 PR middle-end/32628
27307 * c-common.c (pointer_int_sum): Disregard overflow that occured only
27308 because of sign-extension change when converting to sizetype here...
27309 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
27310
27311 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
27312 the folding to constants. Remove redundant final conversion.
27313 (fold_binary) <associate>: Do not associate if the re-association of
27314 constants alone overflows.
27315 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
27316 to the end of the list.
27317 (multiple_of_p) <COND_EXPR>: New case.
27318
27319 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
27320
27321 * opt-functions.awk (opt_sanitized_name): New.
27322 (opt_enum): New.
27323 * optc-gen.awk: Use it
27324 * opth-gen.awk: Use it.
27325
27326 2010-04-13 Martin Jambor <mjambor@suse.cz>
27327
27328 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
27329 (sra_modify_assign): Delete stmts loading dead data even if racc has no
27330 children. Call replace_uses_with_default_def_ssa_name to handle
27331 SSA_NAES on lhs.
27332
27333 2010-04-13 Michael Matz <matz@suse.de>
27334
27335 PR middle-end/43730
27336 * builtins.c (expand_builtin_interclass_mathfn): Also create
27337 a register if the predicate doesn't match.
27338
27339 2010-04-13 Diego Novillo <dnovillo@google.com>
27340
27341 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
27342 * c-pch.c: Include timevar.h.
27343 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
27344 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
27345 * ggc-common.c: Include timevar.h.
27346 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
27347 * timevar.def (TV_PCH_SAVE): Define.
27348 (TV_PCH_CPP_SAVE): Define.
27349 (TV_PCH_PTR_REALLOC): Define.
27350 (TV_PCH_PTR_SORT): Define.
27351 (TV_PCH_RESTORE): Define.
27352 (TV_PCH_CPP_RESTORE): Define.
27353
27354 2010-04-13 Michael Matz <matz@suse.de>
27355
27356 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
27357 into MINUS_EXPRs.
27358 (can_reassociate_p): New function.
27359 (break_up_subtract_bb, reassociate_bb): Use it.
27360
27361 2010-04-13 Richard Guenther <rguenther@suse.de>
27362
27363 PR bootstrap/43737
27364 * builtins.c (c_readstr): Fix assert.
27365
27366 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
27367
27368 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
27369 when generating cltd insn.
27370
27371 (*ashl<mode>3_1): Remove special handling for register operand 2.
27372 (*ashlsi3_1_zext): Ditto.
27373 (*ashlhi3_1): Ditto.
27374 (*ashlhi3_1_lea): Ditto.
27375 (*ashlqi3_1): Ditto.
27376 (*ashlqi3_1_lea): Ditto.
27377 (*<shiftrt_insn><mode>3_1): Ditto.
27378 (*<shiftrt_insn>si3_1_zext): Ditto.
27379 (*<shiftrt_insn>qi3_1_slp): Ditto.
27380 (*<rotate_insn><mode>3_1): Ditto.
27381 (*<rotate_insn>si3_1_zext): Ditto.
27382 (*<rotate_insn>qi3_1_slp): Ditto.
27383
27384 2010-04-13 Richard Guenther <rguenther@suse.de>
27385
27386 * tree-ssa-structalias.c (callused_id): Remove.
27387 (call_stmt_vars): New.
27388 (get_call_vi): Likewise.
27389 (lookup_call_use_vi): Likewise.
27390 (lookup_call_clobber_vi): Likewise.
27391 (get_call_use_vi): Likewise.
27392 (get_call_clobber_vi): Likewise.
27393 (make_transitive_closure_constraints): Likewise.
27394 (handle_const_call): Adjust to do per-call call-used handling.
27395 (handle_pure_call): Likewise.
27396 (find_what_var_points_to): Remove general callused handling.
27397 (init_base_vars): Likewise.
27398 (init_alias_vars): Initialize call_stmt_vars.
27399 (compute_points_to_sets): Process call-used and call-clobbered
27400 vars for call statements.
27401 (delete_points_to_sets): Free call_stmt_vars.
27402
27403 2010-04-13 Richard Guenther <rguenther@suse.de>
27404
27405 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27406 Only add RW dependence for dependence distance zero.
27407 Adjust maximal vectorization factor according to dependences.
27408 Move alignment handling ...
27409 (vect_find_same_alignment_drs): ... here. New function.
27410 (vect_analyze_data_ref_dependences): Adjust.
27411 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
27412 (vect_analyze_data_refs): Adjust minimal vectorization factor
27413 according to data references.
27414 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
27415 dependences before determining the vectorization factor.
27416 Analyze alignment after determining the vectorization factor.
27417 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
27418 dependences before alignment.
27419 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
27420 Adjust prototype.
27421 (vect_analyze_data_refs): Likewise.
27422 (MAX_VECTORIZATION_FACTOR): New define.
27423
27424 2010-04-13 Duncan Sands <baldrick@free.fr>
27425
27426 * except.h (lang_eh_type_covers): Remove.
27427 * except.c (lang_eh_type_covers): Likewise.
27428
27429 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27430 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27431
27432 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
27433 * config/s390/s390.c: Replace UNTIS_PER_WORD with
27434 UNITS_PER_LONG where it is ABI relevant.
27435 (s390_return_addr_rtx): Likewise.
27436 (s390_back_chain_rtx): Likewise.
27437 (s390_frame_area): Likewise.
27438 (s390_frame_info): Likewise.
27439 (s390_initial_elimination_offset): Likewise.
27440 (save_gprs): Likewise.
27441 (s390_emit_prologue): Likewise.
27442 (s390_emit_epilogue): Likewise.
27443 (s390_function_arg_advance): Likewise.
27444 (s390_function_arg): Likewise.
27445 (s390_va_start): Likewise.
27446 (s390_gimplify_va_arg): Likewise.
27447 (s390_function_profiler): Likewise.
27448 (s390_optimize_prologue): Likewise.
27449 (s390_rtx_costs): Likewise.
27450 (s390_secondary_reload): Likewise.
27451 (s390_promote_function_mode): Likewise.
27452 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
27453 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
27454 registers available.
27455 (s390_unwind_word_mode): New function.
27456 (s390_function_value): Split 64 bit values into register pair if
27457 used as return value.
27458 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
27459 function call parameters. Handle parallels.
27460 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
27461 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
27462 (DWARF_CIE_DATA_ALIGNMENT): New macro.
27463 (s390_expand_setmem): Remove unused variable src_addr.
27464 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
27465 deal with 64 bit registers.
27466 * config/s390/s390.h: Define __zarch__ predefined macro.
27467 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
27468 (UNITS_PER_LONG): New macro.
27469 * libjava/include/s390-signal.h: Define extended ucontext
27470 structure containing the upper halfs of the 64 bit registers.
27471
27472 2010-04-13 Simon Baldwin <simonb@google.com>
27473
27474 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
27475
27476 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
27477
27478 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
27479 rvalue on the RHS if the LHS is of a non-renamable type.
27480 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
27481
27482 2010-04-13 Matthias Klose <doko@ubuntu.com>
27483
27484 * gcc.c (cc1_options): Handle -iplugindir before processing
27485 the cc1 spec. Only add -iplugindir once.
27486 (cpp_unique_options): Add -iplugindir option if -fplugin* options
27487 found.
27488 * common.opt (iplugindir): Remove `Separate' property, initialize.
27489 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
27490 option.
27491 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
27492 (distclean): Remove plugin dir.
27493 * doc/invoke.texi: Document -iplugindir.
27494
27495 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
27496
27497 * doc/plugins.texi (Loading Plugins): Document short
27498 -fplugin=foo option.
27499 (Plugin API): Mention default_plugin_dir_name function.
27500
27501 * gcc.c (find_file_spec_function): Add new declaration.
27502 (static_spec_func): Use it for "find-file".
27503 (find_file_spec_function): Add new function.
27504 (cc1_options): Add -iplugindir option if -fplugin* options found.
27505
27506 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
27507
27508 * plugin.c (add_new_plugin): Updated comment, and handle short
27509 plugin name.
27510 (default_plugin_dir_name): Added new function.
27511
27512 * common.opt (iplugindir): New option to set the plugin directory.
27513
27514 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
27515
27516 * config/i386/i386.md (any_rotate): New code iterator.
27517 (rotate_insn): New code attribute.
27518 (rotate): Ditto.
27519 (SWIM124): New mode iterator.
27520 (<rotate_insn>ti3): New expander.
27521 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
27522 any_rotate code iterator.
27523 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
27524 using any_rotate code iterator and SWIM124 mode iterator.
27525 (ix86_rotlti3): New insn_and_split pattern.
27526 (ix86_rotrti3): Ditto.
27527 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
27528 ix86_rotl{di,ti}3 patterns.
27529 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
27530 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
27531 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
27532 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
27533 code iterator and SWI mode iterator.
27534 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
27535 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
27536 code iterator.
27537 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
27538 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
27539 (bswap rotatert splitter): Add splitter.
27540 (bswap splitter): Macroize splitter using any_rotate code iterator.
27541 Add insn predicate to split only for TARGET_USE_XCHGB or when
27542 optimizing function for size.
27543
27544 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27545
27546 * config/pa/pa.c (emit_move_sequence): Remove use of
27547 deleted variable flag_argument_noalias.
27548
27549 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27550
27551 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
27552 configurations.
27553 Add to unsupported targets list.
27554 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
27555 sparc*-sun-solaris2.[567]* from target lists.
27556 * configure: Regenerate.
27557 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
27558 removal.
27559 Remove Solaris 7 patch references.
27560 (Specific, sparc-sun-solaris2.7): Removed.
27561 (sparc-sun-solaris2*): Update Solaris 7 example.
27562 (sparc64-*-solaris2*): Likewise.
27563
27564 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27565
27566 * config.build (alpha*-dec-osf4*): Remove.
27567 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
27568 of obsolete configurations.
27569 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
27570 support.
27571 * config/alpha/t-osf4: Renamed to ...
27572 * config/alpha/t-osf5: ... this.
27573 * config/alpha/osf.h: Renamed to ...
27574 * config/alpha/osf5.h: ... this.
27575 Merged old osf5.h contents.
27576 Update comments.
27577 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
27578 (EXTRA_SPECS): Removed.
27579 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
27580 reflect removal of Tru64 UNIX V4.0/V5.0 support.
27581 Document that.
27582
27583 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27584
27585 * doc/contrib.texi (Contributors, Rainer Orth): Update.
27586
27587 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
27588
27589 PR/43702
27590 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
27591 __thiscall convention.
27592
27593 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27594
27595 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
27596 orig_base.
27597 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
27598
27599 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27600
27601 * function.c (assign_parms_initialize_all): Add unused attribute
27602 to fntype.
27603
27604 2010-04-12 Richard Guenther <rguenther@suse.de>
27605
27606 * gsstruct.def (GSS_CALL): New.
27607 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
27608 * gimple.h: Include tree-ssa-alias.h.
27609 (struct gimple_statement_call): New.
27610 (union gimple_statement_struct_d): Add gimple_call member.
27611 (gimple_call_reset_alias_info): Declare.
27612 (gimple_call_use_set): New function.
27613 (gimple_call_clobber_set): Likewise.
27614 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
27615 * gimple.c (gimple_call_reset_alias_info): New function.
27616 (gimple_build_call_1): Call it.
27617 * lto-streamer-in.c (input_gimple_stmt): Likewise.
27618 * tree-inline.c (remap_gimple_stmt): Likewise.
27619 (expand_call_inline): Remove callused handling.
27620 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
27621 * tree-dfa.c (dump_variable): Likewise.
27622 * tree-parloops.c (parallelize_loops): Likewise.
27623 * tree-ssa.c (init_tree_ssa): Likewise.
27624 (delete_tree_ssa): Likewise.
27625 * tree-flow-inline.h (is_call_used): Remove.
27626 * tree-flow.h (struct gimple_df): Remove callused member.
27627 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
27628 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
27629 (ref_maybe_used_by_call_p_1): Simplify.
27630 (call_may_clobber_ref_p_1): Likewise.
27631 * tree-ssa-structalias.c (compute_points_to_sets): Set
27632 the call stmt used and clobbered sets.
27633 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
27634 (find_tail_calls): Verify the tail call.
27635
27636 2010-04-12 Richard Guenther <rguenther@suse.de>
27637
27638 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
27639 single-iteration always-inline inlining.
27640 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
27641 (cgraph_decide_inlining): Do not handle always-inline specially.
27642 (try_inline): Remove always-inline cycle detection special case.
27643 Do not recurse on always-inlines.
27644 (cgraph_early_inlining): Do not iterate if not optimizing.
27645 (cgraph_gate_early_inlining): remove.
27646 (pass_early_inline): Run unconditionally.
27647 (gate_cgraph_decide_inlining): New function.
27648 (pass_ipa_inline): Use it. Do not run the IPA inliner if
27649 not inlining or optimizing.
27650 (cgraph_decide_inlining_of_small_functions): Also consider
27651 always-inline functions.
27652 (cgraph_default_inline_p): Return true for nodes which should
27653 disregard inline limits.
27654 (estimate_function_body_sizes): Assume zero size and time for
27655 nodes which are marked as disregarding inline limits.
27656 (cgraph_decide_recursive_inlining): Do not perform recursive
27657 inlining on always-inline nodes.
27658
27659 2010-04-12 Jakub Jelinek <jakub@redhat.com>
27660
27661 PR bootstrap/43699
27662 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
27663 for exprs satisfying handled_component_p.
27664
27665 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
27666
27667 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
27668 non-constant aggregate elements.
27669
27670 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
27671 is a real initialization.
27672
27673 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
27674
27675 PR c/36774
27676 * c-decl.c (start_function): Move forward check for nested function.
27677
27678 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
27679
27680 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
27681 * config/sh/sh.c: Include reload.h.
27682 (sh_legitimize_reload_address): New.
27683 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
27684 sh_legitimize_reload_address.
27685
27686 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27687
27688 * config/sh/sh.md (*movqi_pop): New insn pattern.
27689 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
27690
27691 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27692
27693 * config/i386/i386.md (any_shiftrt): New code iterator.
27694 (shiftrt_insn): New code attribute.
27695 (shiftrt): Ditto.
27696 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
27697 using any_shiftrt code iterator.
27698 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
27699 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
27700 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
27701 pattern from corresponding peephole2 patterns.
27702 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
27703 using any_shiftrt code iterator.
27704 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
27705 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
27706 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
27707 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
27708 *{ashr,lshr}<mode>3_cmp_zext.
27709 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
27710
27711 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27712
27713 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
27714 scratch register.
27715 (*lshr<mode>3_cconly): Ditto.
27716
27717 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27718
27719 * config/i386/i386.md (lshr<mode>3): Macroize expander from
27720 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
27721 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
27722 pattern from *lshr{di,ti}3_1 and corresponding splitters using
27723 DWI mode iterator.
27724 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
27725 from corresponding peephole2 patterns.
27726 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
27727 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
27728 and *lshrdi3_1_rex64 using SWI mode iterator.
27729 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
27730 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
27731 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
27732 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
27733 and *lshrdi3_cmp_rex64 using SWI mode iterator.
27734 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
27735 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
27736 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
27737 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
27738 SWI mode iterator.
27739
27740 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
27741
27742 * config/i386/i386.md (ashr<mode>3): Macroize expander from
27743 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
27744 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
27745 pattern from *ashr{di,ti}3_1 and corresponding splitters using
27746 DWI mode iterator.
27747 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
27748 from corresponding peephole2 patterns.
27749 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
27750 (ashrsi3_cvt): Rename from ashrsi3_31.
27751 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
27752 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
27753 and x86_64_shift_adj_3 using SWI48 mode iterator.
27754 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
27755 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
27756 and *ashrdi3_1_rex64 using SWI mode iterator.
27757 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
27758 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
27759 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
27760 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
27761 and *ashrdi3_cmp_rex64 using SWI mode iterator.
27762 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
27763 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
27764 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
27765 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
27766 SWI mode iterator.
27767 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
27768 * config/i386/i386.c (ix86_split_ashr): Update for renamed
27769 x86_shift<mode>_adj_3 expanders.
27770
27771 2010-04-10 Wei Guozhi <carrot@google.com>
27772
27773 PR target/42601
27774 * config/arm/arm.c (arm_pic_static_addr): New function.
27775 (legitimize_pic_address): Call arm_pic_static_addr when it detects
27776 a static symbol.
27777 (arm_output_addr_const_extra): Output expression for new pattern.
27778 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
27779
27780 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
27781
27782 * ira-costs.c (record_reg_classes): Ignore alternatives that are
27783 not enabled.
27784
27785 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
27786 * web.c: Include "insn-config.h" and "recog.h".
27787 (union_match_dups): New function.
27788 (web_main): Call it.
27789 (union_defs): Don't try to recognize match_dups.
27790
27791 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
27792 if doing so would replace the entire pattern.
27793
27794 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
27795
27796 PR target/43707
27797 PR target/43709
27798 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
27799 and splitter pattern. Change splitter operand 1 predicate to
27800 nonmemory_operand.
27801
27802 2010-04-09 Martin Jambor <mjambor@suse.cz>
27803
27804 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
27805 lattices are addresses of CONST_DECLs with the same initial value.
27806 (ipcp_print_all_lattices): Print values of CONST_DECLs.
27807 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
27808
27809 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
27810 Bernd Schmidt <bernds@codesourcery.com>
27811
27812 * loop-invariant.c (replace_uses): New static function.
27813 (move_invariant_reg): Use it to ensure we can replace the uses.
27814
27815 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
27816
27817 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
27818 function template.
27819 (picochip_override_options): Enable section anchors only above -O1.
27820 (picochip_reorg): Fixed a couple of build warnings.
27821
27822 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27823
27824 * configure.ac (plugin -rdynamic test): Log result.
27825 * configure: Regenerate.
27826 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
27827 (RDYNAMIC_SPEC): Define.
27828 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
27829
27830 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27831
27832 * configure.ac: Determine Sun ld version numbers.
27833 (comdat_group): Restrict GNU ld version checks to gld.
27834 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
27835 (enable_comdat): Support --enable-comdat.
27836 * configure: Regenerate.
27837 * doc/install.texi (Configuration): Document --enable-comdat.
27838
27839 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27840
27841 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
27842 * config/sol2-gld.h: ... here.
27843 * config.gcc (sparc*-*-solaris2*): Reflect this.
27844 (i[34567]86-*-solaris2*): Use it.
27845
27846 2010-04-09 Steve Ellcey <sje@cup.hp.com>
27847
27848 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
27849 setup_clocks_p.
27850 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
27851
27852 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
27853
27854 PR 42965
27855 * diagnostic.c (diagnostic_initialize): Initialize
27856 some_warnings_are_errors.
27857 (diagnostic_finish): New.
27858 (diagnostic_action_after_output): Call it before exiting.
27859 (diagnostic_report_diagnostic): Do not print message here. Set
27860 some_warnings_are_errors.
27861 * diagnostic.h (diagnostic_context): Delete
27862 issue_warnings_are_errors_message. Add some_warnings_are_errors.
27863 (diagnostic_finish): Declare.
27864 * toplev.c (toplev_main): Call it before exit.
27865
27866 2010-04-09 Jason Merrill <jason@redhat.com>
27867
27868 PR c++/42623
27869 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
27870 for incomplete type.
27871
27872 PR c++/41788
27873 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
27874 based on a warning flag.
27875
27876 2010-04-09 Richard Guenther <rguenther@suse.de>
27877
27878 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
27879
27880 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
27881
27882 PR bootstrap/43684
27883 * varasm.c (default_assemble_visibility): Wrap vars that are
27884 set, but unused, by targets without GAS.
27885 * config/rs6000/rs6000.c (paired_emit_vector_compare):
27886 Remove set, but unused, vars.
27887 (rs6000_legitimize_tls_address): Likewise.
27888 (altivec_expand_dst_builtin): Likewise.
27889 * config/darwin.c (machopic_classify_symbol): Likewise.
27890 (machopic_indirection_name): Likewise.
27891
27892 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
27893
27894 * config/i386/i386.md (DWI): New mode iterator.
27895 (S): New mode attribute.
27896 (shift_operand): Ditto.
27897 (shift_immediate_operand): Ditto.
27898 (ashl_input_operand): Ditto.
27899 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
27900 using SDWIM mode iterator.
27901 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
27902 pattern from *ashl{di,ti}3_1 and corresponding splitters using
27903 DWI mode iterator.
27904 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
27905 from corresponding peephole2 patterns.
27906 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
27907 and x86_64_shift_adj_1 using SWI48 mode iterator.
27908 (x86_shift<mode>_adj_2): Ditto.
27909 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
27910 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
27911 using SWI48 mode iterator.
27912 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
27913 *ashldi3_cmp_rex64 using SWI mode iterator.
27914 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
27915 *ashldi3_cconly_rex64 using SWI mode iterator.
27916 * config/i386/i386.c (ix86_split_ashl): Update for renamed
27917 x86_shift<mode>_adj_{1,2}.
27918 (ix86_split_ashr): Ditto.
27919 (ix86_split_lshr): Ditto.
27920
27921 2010-04-09 Richard Guenther <rguenther@suse.de>
27922
27923 * target.h (builtin_conversion): Pass in input and output types.
27924 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
27925 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
27926 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
27927 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
27928
27929 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
27930 Handle AVX modes.
27931 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
27932
27933 2010-04-09 Richard Guenther <rguenther@suse.de>
27934
27935 PR target/43152
27936 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
27937
27938 2010-04-09 Richard Guenther <rguenther@suse.de>
27939
27940 * tree-vectorizer.h (struct _stmt_vec_info): Document
27941 that vectype is the type of the LHS.
27942 (supportable_widening_operation, supportable_narrowing_operation):
27943 Get both input and output vector types as arguments.
27944 (vect_is_simple_use_1): Declare.
27945 (get_same_sized_vectype): Likewise.
27946 * tree-vect-loop.c (vect_determine_vectorization_factor):
27947 Set STMT_VINFO_VECTYPE to the vector type of the def.
27948 (vectorizable_reduction): Adjust.
27949 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
27950 Adjust. Specify the output vector type.
27951 (vect_pattern_recog_1): Adjust.
27952 * tree-vect-stmts.c (get_same_sized_vectype): New function.
27953 (vectorizable_call): Adjust.
27954 (vectorizable_conversion): Likewise.
27955 (vectorizable_operation): Likewise.
27956 (vectorizable_type_demotion): Likewise.
27957 (vectorizable_type_promotion): Likewise.
27958 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
27959 the def.
27960 (vect_is_simple_use_1): New function.
27961 (supportable_widening_operation): Get both input and output
27962 vector types.
27963 (supportable_narrowing_operation): Likewise.
27964 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
27965
27966 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
27967
27968 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
27969 __thiscall and _thiscall as predefined macros.
27970 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
27971 thiscall attribute handling.
27972 (ix86_comp_type_attributes): Likewise.
27973 (ix86_function_regparm): Likewise.
27974 (ix86_return_pops_args): Likewise.
27975 (init_cumulative_args): Likewise.
27976 (find_drap_reg): Likewise.
27977 (ix86_static_chain): Likewise.
27978 (x86_this_parameter): Likewise.
27979 (x86_output_mi_thunk): Likewise.
27980 (ix86_attribute_table): Add description for thiscall attribute.
27981 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
27982 * doc/extend.texi: Add documentation for thiscall.
27983
27984 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
27985
27986 PR c++/28584
27987 * c.opt (Wint-to-pointer-cast): Available in C++.
27988 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
27989
27990 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
27991
27992 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
27993 * calls.c (expand_call): Pass the function type to aggregate_value_p.
27994 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
27995 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
27996 function type instead. Reorder and simplify checks.
27997
27998 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
27999
28000 2010-04-08 Jing Yu <jingyu@google.com>
28001 Zdenek Dvorak <ook@ucw.cz>
28002
28003 PR tree-optimization/42720
28004 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
28005 loop unswitch conditions here from ...
28006 (tree_unswitch_single_loop): ... here.
28007
28008 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
28009
28010 * tree-if-conv.c: Fix comments and simplify logic.
28011
28012 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
28013
28014 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
28015 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
28016 (main_tree_if_conversion): Update call to tree_if_conversion.
28017
28018 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
28019
28020 PR 42485
28021 * doc/invoke.texi (-b,-V): Delete.
28022 * doc/tm.texi: Do not mention -b.
28023 * gcc.c (display_help): Delete -b and -V.
28024 (process_command): Delete -b and -V.
28025 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
28026
28027 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
28028 Wolfgang Gellerich <gellerich@de.ibm.com>
28029
28030 Implement target hook for loop unrolling
28031 * target.h (loop_unroll_adjust): Add a new target hook function.
28032 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
28033 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
28034 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
28035 (s390_loop_unroll_adjust): Implement the new target hook for s390.
28036 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
28037 target hook.
28038 (decide_unroll_stupid): Likewise.
28039
28040 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28041
28042 PR target/43643
28043 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
28044
28045 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28046
28047 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
28048 (Specific, *-*-solaris2*): Likewise.
28049 Don't prefer Sun as over GNU as.
28050
28051 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
28052
28053 * config/s390/s390.c (override_options): Adjust the z10 defaults
28054 for max-unroll-times, max-completely-peeled-insns
28055 and max-completely-peel-times.
28056
28057 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28058
28059 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
28060 instructions for z10.
28061 (s390_expand_setmem): Likewise.
28062 (s390_expand_cmpmem): Likewise.
28063
28064 2010-04-08 Richard Guenther <rguenther@suse.de>
28065
28066 PR tree-optimization/43679
28067 * tree-ssa-pre.c (eliminate): Only propagate copies.
28068
28069 2010-04-08 Jakub Jelinek <jakub@redhat.com>
28070
28071 PR bootstrap/43681
28072 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
28073 set but not used variable warning.
28074
28075 2010-04-08 Wei Guozhi <carrot@google.com>
28076
28077 PR target/41653
28078 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
28079 (arm_size_rtx_costs): Call the new function when optimized for size.
28080
28081 2010-04-08 Jakub Jelinek <jakub@redhat.com>
28082
28083 PR debug/43670
28084 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
28085 op0 is not a MEM, just return NULL instead of assertion
28086 failure.
28087 (discover_nonconstant_array_refs): Don't walk debug stmts.
28088
28089 2010-04-08 Doug Kwan <dougkwan@google.com>
28090
28091 * configure.ac: Recognize gold and do not use its version number
28092 to test ld features.
28093 * configure: Regenerate.
28094
28095 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
28096
28097 PR middle-end/40815
28098 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
28099 (negate_value): Move code to push elements to broken_up_substracts ...
28100 (eliminate_plus_minus_pair): ... here. Push operands that have no
28101 negative pair to plus_negates.
28102 (repropagate_negates, init_reassoc, fini_reassoc): Update.
28103
28104 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28105
28106 * doc/install.texi (Configuration): Move description of
28107 --enable-lto, --with-libelf*, --enable-gold from Java section to
28108 general section.
28109
28110 * doc/generic.texi (Working with declarations)
28111 (Function Properties, C and C++ Trees): Fix typos.
28112 * doc/sourcebuild.texi (Top Level): Likewise.
28113
28114 2010-04-07 Jakub Jelinek <jakub@redhat.com>
28115
28116 PR c/18624
28117 * tree.h (DECL_READ_P): Define.
28118 (struct tree_decl_common): Add decl_read_flag.
28119 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
28120 a set but not used warning.
28121 (merge_decls): Merge DECL_READ_P flag.
28122 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
28123 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
28124 * c-common.c (handle_used_attribute, handle_unused_attribute):
28125 Likewise.
28126 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
28127 New prototypes.
28128 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
28129 New functions.
28130 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
28131 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
28132 c_parser_binary_expression, c_parser_cast_expression,
28133 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
28134 Call default_function_array_read_conversion instead of
28135 default_function_array_conversion where needed.
28136 (c_parser_unary_expression, c_parser_conditional_expression,
28137 c_parser_postfix_expression_after_primary, c_parser_initelt):
28138 Likewise. Call mark_exp_read where needed.
28139 (c_parser_statement_after_labels, c_parser_asm_operands,
28140 c_parser_typeof_specifier, c_parser_sizeof_expression,
28141 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
28142 where needed.
28143 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
28144 New.
28145 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
28146 (warn_unused_but_set_parameter): Default to warn_unused
28147 && extra_warnings.
28148 * doc/invoke.texi: Document -Wunused-but-set-variable and
28149 -Wunused-but-set-parameter.
28150
28151 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
28152 used count variable.
28153 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
28154 when operandN variables aren't used in the body of the expander
28155 or splitter.
28156 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
28157 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
28158 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
28159 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
28160 FOR_EACH_IMM_USE_ON_STMT): Likewise.
28161 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
28162 * tree.c (PROCESS_ARG): Likewise.
28163
28164 2010-04-07 Simon Baldwin <simonb@google.com>
28165
28166 * diagnostic.h (diagnostic_override_option_index): New macro to
28167 set a diagnostic's option_index.
28168 * c-tree.h (c_cpp_error): Add warning reason argument.
28169 * opts.c (_warning_as_error_callback): New.
28170 (register_warning_as_error_callback): Store callback for
28171 warnings enabled via enable_warning_as_error.
28172 (enable_warning_as_error): Call callback, minor code tidy.
28173 * opts.h (register_warning_as_error_callback): Declare.
28174 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
28175 response to -Werror=.
28176 (c_common_init_options): Register warning_as_error_callback in opts.c.
28177 * common.opt: Add -Wno-cpp option.
28178 * c-common.c (struct reason_option_codes_t): Map cpp warning
28179 reason codes to gcc option indexes.
28180 * (c_option_controlling_cpp_error): New function, lookup the gcc
28181 option index for a cpp warning reason code.
28182 * (c_cpp_error): Add warning reason argument, call
28183 c_option_controlling_cpp_error for diagnostic_override_option_index.
28184 * doc/invoke.texi: Document -Wno-cpp.
28185
28186 2010-04-07 Richard Guenther <rguenther@suse.de>
28187
28188 * ipa-reference.c (mark_load): Use get_base_address.
28189 (mark_store): Likewise.
28190
28191 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
28192 inserting GIMPLE_NOPs into the IL.
28193 * tree-ssa-structalias.c (get_constraint_for_component_ref):
28194 Explicitly strip handled components and indirect references.
28195
28196 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
28197 folding address expressions.
28198 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
28199 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
28200 operand_equal_p to compare decls.
28201 (ptr_deref_may_alias_decl_p): Likewise.
28202 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
28203 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
28204 Handle reversed comparison ops.
28205 * tree-sra.c (asm_visit_addr): Use get_base_address.
28206 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
28207 * ipa-reference.c (mark_address): Use get_base_address.
28208
28209 2010-04-07 Richard Guenther <rguenther@suse.de>
28210
28211 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
28212 Propagate constants everywhere.
28213
28214 2010-04-07 Jakub Jelinek <jakub@redhat.com>
28215
28216 PR debug/43516
28217 * tree.c (MAX_INT_CACHED_PREC): Define.
28218 (nonstandard_integer_type_cache): New array.
28219 (build_nonstandard_integer_type): Cache results for precision
28220 <= MAX_INT_CACHED_PREC.
28221
28222 2010-04-07 Richard Guenther <rguenther@suse.de>
28223
28224 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
28225 -fargument-noalias-global, -fargument-noalias-anything): Remove.
28226 * common.opt: Likewise.
28227 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
28228 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
28229 (nonoverlapping_memrefs_p): Likewise.
28230 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
28231 * opts.c (common_handle_option): Handle OPT_fargument_alias,
28232 OPT_fargument_noalias, OPT_fargument_noalias_anything and
28233 OPT_fargument_noalias_global for backward compatibility.
28234
28235 2010-04-07 Richard Guenther <rguenther@suse.de>
28236
28237 PR tree-optimization/43270
28238 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
28239 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
28240 * tree-ssa-pre.c (phi_translate_1): Adjust.
28241 (fully_constant_expression): Split out vn_reference handling to ...
28242 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
28243 Fold reads from constant strings.
28244 (vn_reference_lookup): Handle fully constant references.
28245 (vn_reference_lookup_pieces): Likewise.
28246 * Makefile.in (expmed.o-warn): Add -Wno-error.
28247
28248 2010-04-07 Martin Jambor <mjambor@suse.cz>
28249
28250 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
28251
28252 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
28253
28254 PR driver/41594
28255 * gcc.c: Add -static-libstdc++ to list of recognized options.
28256
28257 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28258
28259 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
28260
28261 2010-04-07 Richard Guenther <rguenther@suse.de>
28262
28263 PR middle-end/42617
28264 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
28265 bases build simple mem attributes to retain points-to information.
28266
28267 2010-04-07 Richard Guenther <rguenther@suse.de>
28268
28269 PR middle-end/42617
28270 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
28271 preserve points-to related information.
28272
28273 2010-04-07 Richard Guenther <rguenther@suse.de>
28274
28275 PR middle-end/42617
28276 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
28277 discard plain indirect references.
28278 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
28279 * tree.c (tree_nop_conversion): Likewise.
28280
28281 2010-04-07 Dodji Seketeli <dodji@redhat.com>
28282
28283 PR debug/43628
28284 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
28285
28286 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
28287
28288 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
28289 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
28290
28291 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28292
28293 * tree-if-conv.c: Fix indentation and comments.
28294
28295 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28296
28297 * tree-if-conv.c: Sort static functions in topological order.
28298
28299 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28300
28301 * tree-if-conv.c: Fix indentation and comments.
28302
28303 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28304
28305 PR middle-end/43519
28306 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
28307 lang_hooks.types.type_for_size instead of
28308 build_nonstandard_integer_type.
28309 When converting an unsigned type to signed, double its precision.
28310 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
28311 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
28312 (graphite_create_new_loop_guard): When ub + 1 wraps around,
28313 use lb <= ub.
28314
28315 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28316
28317 PR middle-end/43519
28318 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
28319 POINTER_PLUS_EXPR for pointer types.
28320
28321 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28322
28323 PR middle-end/43519
28324 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
28325 * graphite-clast-to-gimple.c: Include langhooks.h.
28326 (max_signed_precision_type): New.
28327 (max_precision_type): Takes two types as arguments.
28328 (precision_for_value): New.
28329 (precision_for_interval): New.
28330 (gcc_type_for_interval): New.
28331 (gcc_type_for_value): New.
28332 (gcc_type_for_clast_term): New.
28333 (gcc_type_for_clast_red): New.
28334 (gcc_type_for_clast_bin): New.
28335 (gcc_type_for_clast_expr): Split up into several functions.
28336 (gcc_type_for_clast_eq): Rewritten.
28337 (compute_bounds_for_level): New.
28338 (compute_type_for_level_1): New.
28339 (compute_type_for_level): New.
28340 (gcc_type_for_cloog_iv): Removed.
28341 (gcc_type_for_iv_of_clast_loop): Rewritten.
28342 (graphite_create_new_loop): Compute the lower and upper bound types
28343 with gcc_type_for_clast_expr.
28344 (graphite_create_new_loop_guard): Same.
28345 (find_cloog_iv_in_expr): Removed.
28346 (compute_cloog_iv_types_1): Removed.
28347 (compute_cloog_iv_types): Removed.
28348 (gloog): Do not call compute_cloog_iv_types.
28349 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
28350 GBB_CLOOG_IV_TYPES.
28351 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
28352 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
28353 (GBB_CLOOG_IV_TYPES): Removed.
28354
28355 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28356
28357 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
28358 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
28359 (detect_commutative_reduction): Same.
28360
28361 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28362
28363 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
28364 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
28365 argument.
28366 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
28367 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
28368 (rewrite_commutative_reductions_out_of_ssa): Same.
28369 * passes.c (execute_function_todo): Call verify_ssa for every pass
28370 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
28371 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
28372 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
28373 with an extra argument.
28374 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
28375 verify_ssa only when the extra argument is true.
28376 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
28377 with an extra argument.
28378 (tree_transform_and_unroll_loop): Same.
28379
28380 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28381
28382 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
28383 for all the passes of the LNO having LOOP_CLOSED_SSA.
28384 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
28385 * tree-loop-distribution.c (pass_loop_distribution): Same.
28386 * tree-pass.h (TODO_verify_loops): Removed.
28387 * tree-ssa-loop.c (pass_tree_loop_init): Same.
28388 (pass_lim): Same.
28389 (pass_tree_unswitch): Same.
28390 (pass_predcom): Same.
28391 (pass_vectorize): Same.
28392 (pass_linear_transform): Same.
28393 (pass_graphite_transforms): Same.
28394 (pass_iv_canon): Same.
28395 (pass_complete_unroll): Same.
28396 (pass_complete_unrolli): Same.
28397 (pass_parallelize_loops): Same.
28398 (pass_loop_prefetch): Same.
28399 (pass_iv_optimize): Same.
28400
28401 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
28402
28403 PR middle-end/32824
28404 * passes.c (init_optimization_passes): Move pass_lim before
28405 pass_copy_prop and pass_dce_loop.
28406
28407 2010-04-06 Jakub Jelinek <jakub@redhat.com>
28408
28409 PR target/43667
28410 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
28411 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
28412 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
28413 MULTI_* defines for 4 argument vpermil2p* builtins.
28414
28415 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
28416
28417 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
28418 * config/i386/i386.c (x86_maybe_negate_const_int): New.
28419 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
28420 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
28421 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
28422 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
28423 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
28424 Use x86_maybe_negate_const_int to output insn mnemonic.
28425 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
28426 check from instruction predicate. Update comments.
28427 * config/i386/sync.md (sync_add<mode>): Use
28428 x86_maybe_negate_const_int to output insn mnemonic.
28429
28430 2010-04-06 Jan Hubicka <jh@suse.cz>
28431
28432 PR tree-optimization/42906
28433 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
28434 IGNORE_SELF argument. Set visited_control_parents for fully
28435 processed BBs.
28436 (find_obviously_necessary_stmts): Update call of
28437 mark_control_dependent_edges_necessary.
28438 (propagate_necessity): Likewise. Handle PHI edges more curefully.
28439
28440 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
28441
28442 * config/i386/i386.md: Remove comment about 'e' and 'E'
28443 operand modifier.
28444
28445 2010-04-06 Richard Guenther <rguenther@suse.de>
28446
28447 PR tree-optimization/43627
28448 * tree-vrp.c (extract_range_from_unary_expr): Widenings
28449 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
28450 not varying.
28451
28452 2010-04-06 Jakub Jelinek <jakub@redhat.com>
28453
28454 * BASE-VER: Change to 4.6.0.
28455
28456 PR target/43638
28457 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
28458 handling.
28459
28460 2010-04-06 Richard Guenther <rguenther@suse.de>
28461
28462 PR middle-end/43661
28463 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
28464
28465 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28466
28467 * doc/invoke.texi (Optimize Options): Document that LTO
28468 won't remove object access purely due to incompatible
28469 declarations.
28470
28471 2010-04-04 Matthias Klose <doko@ubuntu.com>
28472
28473 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
28474 Initialize variable.
28475
28476 2010-04-03 Richard Guenther <rguenther@suse.de>
28477
28478 PR middle-end/42509
28479 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
28480 require a non-NULL MEM_OFFSET.
28481
28482 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
28483
28484 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
28485 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
28486 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
28487 config/alpha/predicates.md, config/arm/arm.md,
28488 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
28489 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
28490 config/darwin9.h, config/darwin.c, config/darwin.h,
28491 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
28492 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
28493 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
28494 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
28495 config/mips/mips.md, config/mn10300/mn10300.c,
28496 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
28497 config/rs6000/aix.h, config/rs6000/dfp.md,
28498 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
28499 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
28500 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
28501 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
28502 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
28503 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
28504 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
28505 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
28506 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
28507 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
28508 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
28509 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
28510 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
28511 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
28512 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
28513 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
28514 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
28515 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
28516 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
28517 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
28518 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
28519 opt-functions.awk, opth-gen.awk, params.def, passes.c,
28520 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
28521 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
28522 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
28523 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
28524 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
28525 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
28526 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
28527 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
28528 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
28529 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
28530 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
28531 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
28532 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
28533 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
28534
28535 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28536
28537 PR other/43620
28538 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
28539 * aclocal.m4: Regenerate.
28540
28541 2010-04-02 Richard Guenther <rguenther@suse.de>
28542
28543 PR tree-optimization/43629
28544 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
28545 if we have seen a constant value.
28546
28547 2010-04-02 Joseph Myers <joseph@codesourcery.com>
28548
28549 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
28550
28551 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
28552
28553 PR target/43469
28554 * arm.c (legitimize_tls_address): Adjust call to
28555 gen_tls_load_dot_plus_four.
28556 (arm_note_pic_base): New function.
28557 (arm_cannot_copy_insn_p): Use it.
28558 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
28559 constraint.
28560
28561 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28562
28563 PR bootstrap/43531
28564
28565 Revert:
28566 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28567
28568 * Makefile.in ($(out_object_file)): Depend on
28569 gt-$(basename $(notdir $(out_file))).h.
28570
28571 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
28572
28573 * config.gcc (lm32-*-rtems*): Add t-lm32.
28574
28575 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
28576
28577 * config.gcc: Add lm32-*-rtems*.
28578 * config/lm32/rtems.h: New file.
28579
28580 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
28581
28582 PR target/42609
28583 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
28584
28585 2010-04-01 Jakub Jelinek <jakub@redhat.com>
28586
28587 * dwarf2out.c (output_compilation_unit_header): For
28588 -gdwarf-4 use version 4 instead of version 3.
28589 (output_line_info): For version 4 and above emit additional
28590 maximum ops per insn header field.
28591 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
28592
28593 * dwarf2out.c (is_c_family, is_java): Remove.
28594 (lower_bound_default): New function.
28595 (add_bound_info, gen_descr_array_type_die): Use it.
28596
28597 2010-04-01 Dodji Seketeli <dodji@redhat.com>
28598
28599 PR debug/43325
28600 * dwarf2out.c (gen_variable_die): Allow debug info for variable
28601 re-declaration when it happens in a function.
28602
28603 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
28604
28605 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
28606 (cgraph_remove_function_insertion_hook): Same.
28607 (cgraph_call_function_insertion_hooks): Same.
28608
28609 2010-04-01 Richard Guenther <rguenther@suse.de>
28610
28611 PR middle-end/43614
28612 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
28613 and TREE_THIS_VOLATILE.
28614 (copy_ref_info): Likewise.
28615 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
28616 * tree.c (build6_stat): Ignore side-effects of all but arg5
28617 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
28618 TARGET_MEM_REF.
28619
28620 2010-04-01 Richard Guenther <rguenther@suse.de>
28621
28622 PR tree-optimization/43607
28623 * ipa-type-escape.c (check_call): Do not access non-existing
28624 arguments.
28625
28626 2010-04-01 Richard Guenther <rguenther@suse.de>
28627
28628 PR middle-end/43602
28629 Revert
28630 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
28631 Jack Howarth <howarth@bromo.med.uc.edu>
28632
28633 * tree-profile.c (tree_init_ic_make_global_vars): Make static
28634 variables TLS.
28635
28636 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28637
28638 * doc/install.texi (Prerequisites): Document libelf usability on
28639 IRIX 5/6 and Solaris 2.
28640 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
28641 Update GNU as, GNU ld requirements.
28642 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
28643 Document Sun Studio compiler download.
28644 Update and simplify as, ld recommendations.
28645 (Specific, *-*-solaris2.7): Note obsoletion, removal.
28646
28647 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28648
28649 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
28650 with_tune_32 to pentium4.
28651
28652 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
28653
28654 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
28655
28656 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28657
28658 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
28659 obsoletion, removal.
28660 Update IDO URL.
28661 Document GNU as requirement.
28662 Update configure requirements.
28663 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
28664 Recomment IRIX 6.5.18+.
28665 Document IDF/IDL requirement.
28666 Document GNU as requirement.
28667 Document GNU ld bootstrap failure.
28668 Remove freeware.sgi.com reference.
28669
28670 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28671
28672 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
28673 UNIX V4.0, V5.0 obsoletion, removal.
28674 Remove --with-gc=simple reference.
28675 Update VM requirements during bootstrap.
28676 Remove -oldas bootstrap description.
28677 Update binutils reference.
28678 Remove comparison failure note.
28679
28680 2010-03-31 Richard Guenther <rguenther@suse.de>
28681 Zdenek Dvorak <ook@ucw.cz>
28682 Sebastian Pop <sebastian.pop@amd.com>
28683
28684 PR middle-end/43464
28685 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
28686 with multiple arguments.
28687 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
28688
28689 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28690
28691 * graphite-dependences.c (print_pddr): Call print_pdr with an
28692 extra argument.
28693 * graphite-poly.c (debug_pdr): Add an extra argument for the
28694 verbosity level.
28695 (print_pdr): Same.
28696 (print_pbb_domain): Same.
28697 (print_pbb): Same.
28698 (print_scop_context): Same.
28699 (print_scop): Same.
28700 (print_cloog): Same.
28701 (debug_pbb_domain): Same.
28702 (debug_pbb): Same.
28703 (print_pdrs): Same.
28704 (debug_pdrs): Same.
28705 (debug_scop_context): Same.
28706 (debug_scop): Same.
28707 (debug_cloog): Same.
28708 (print_scop_params): Same.
28709 (debug_scop_params): Same.
28710 (print_iteration_domain): Same.
28711 (print_iteration_domains): Same.
28712 (debug_iteration_domain): Same.
28713 (debug_iteration_domains): Same.
28714 (print_scattering_function): Same.
28715 (print_scattering_functions): Same.
28716 (debug_scattering_function): Same.
28717 (debug_scattering_functions): Same.
28718 * graphite-poly.h (debug_pdr): Update declaration.
28719 (print_pdr): Same.
28720 (print_pbb_domain): Same.
28721 (print_pbb): Same.
28722 (print_scop_context): Same.
28723 (print_scop): Same.
28724 (print_cloog): Same.
28725 (debug_pbb_domain): Same.
28726 (debug_pbb): Same.
28727 (print_pdrs): Same.
28728 (debug_pdrs): Same.
28729 (debug_scop_context): Same.
28730 (debug_scop): Same.
28731 (debug_cloog): Same.
28732 (print_scop_params): Same.
28733 (debug_scop_params): Same.
28734 (print_iteration_domain): Same.
28735 (print_iteration_domains): Same.
28736 (debug_iteration_domain): Same.
28737 (debug_iteration_domains): Same.
28738 (print_scattering_function): Same.
28739 (print_scattering_functions): Same.
28740 (debug_scattering_function): Same.
28741 (debug_scattering_functions): Same.
28742
28743 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28744
28745 * graphite-poly.c (print_scattering_function_1): New.
28746 (print_scattering_function): Call it.
28747 (print_scop_params): Remove spaces at the end of lines.
28748 (print_cloog): New.
28749 (debug_cloog): New.
28750 * graphite-poly.h (print_cloog): Declared.
28751 (debug_cloog): Declared.
28752
28753 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28754
28755 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
28756 in loop->header.
28757 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
28758 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
28759 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
28760 to switch between adding the IV bump in loop->latch or in loop->header.
28761
28762 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28763
28764 * graphite-poly.c (print_scattering_function): Pretty print following
28765 the scoplib format.
28766 (print_pdr): Same.
28767 (print_pbb_domain): Same.
28768 (dump_gbb_cases): Same.
28769 (dump_gbb_conditions): Same.
28770 (print_pdrs): Same.
28771 (print_pbb): Same.
28772 (print_scop_params): Same.
28773 (print_scop_context): Same.
28774 (print_scop): Same.
28775 (print_pbb_body): New.
28776 (lst_indent_to): New.
28777 (print_lst): Start new lines with a #.
28778 * graphite-poly.h (pbb_bb): New.
28779 (pbb_index): Use pbb_bb.
28780 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
28781 disjuncts.
28782 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
28783
28784 2010-03-31 Jakub Jelinek <jakub@redhat.com>
28785
28786 * dwarf2out.c (size_of_die): For -gdwarf-4 use
28787 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
28788 and 0 instead of 1 for dw_val_class_flag.
28789 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
28790 dw_val_class_range_list, dw_val_class_loc_list,
28791 dw_val_class_lineptr and dw_val_class_macptr, use
28792 DW_FORM_flag_present for dw_val_class_flag and
28793 DW_FORM_exprloc for dw_val_class_loc.
28794 (output_die): For -gdwarf-4 print dw_val_class_loc
28795 size as uleb128 instead of 1 or 2 bytes and don't print
28796 anything for dw_val_class_flag.
28797
28798 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
28799 instead of cselib_lookup following by tweaking locs->setting_insn.
28800
28801 PR bootstrap/43596
28802 * cselib.c (cselib_process_insn): Clear cselib_current_insn
28803 even before returning from label, setjmp call or volatile asm
28804 handling.
28805
28806 2010-03-31 Richard Guenther <rguenther@suse.de>
28807
28808 PR middle-end/43600
28809 * cgraphunit.c (cgraph_output_in_order): Do not allocate
28810 temporary data on stack.
28811
28812 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28813
28814 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
28815 (PUSHSECTION_ASM_OP): Remove.
28816 (POPSECTION_ASM_OP): Remove.
28817 (PUSHSECTION_FORMAT): Remove.
28818 * config/sol2.h (PUSHSECTION_FORMAT): Define.
28819 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
28820 * config/sol2.c (solaris_output_init_fini): Use it.
28821
28822 2010-03-31 Jie Zhang <jie@codesourcery.com>
28823
28824 PR 43574
28825 * opt-functions.awk (var_type_struct): Use signed char type
28826 for simple variables.
28827
28828 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28829
28830 * config/sol2.c: Include output.h.
28831 (solaris_assemble_visibility): New function.
28832 * config/t-sol2 (sol2.o): Add output.h dependency.
28833 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
28834 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
28835 Redefine.
28836
28837 2010-03-31 Jakub Jelinek <jakub@redhat.com>
28838
28839 PR target/43580
28840 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
28841 V2SImode or XFmode on PRE_DEC.
28842
28843 PR debug/43557
28844 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
28845 BLKmode.
28846
28847 2010-03-31 Jie Zhang <jie@codesourcery.com>
28848
28849 PR 43562
28850 * reload.h (caller_save_initialized_p): Declare.
28851 * toplev.c (backend_init_target): Don't call
28852 init_caller_save but set caller_save_initialized_p to false.
28853 * caller-save.c (caller_save_initialized_p): Define.
28854 (init_caller_save): Check caller_save_initialized_p.
28855 * ira.c (ira): Call init_caller_save if flag_caller_saves.
28856
28857 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28858
28859 PR target/39048
28860 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
28861 and soft-fp/t-softfp to tmake_file.
28862 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
28863 (LIBGCC2_TF_CEXT): Define.
28864 (TF_SIZE): Define.
28865
28866 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
28867
28868 PR debug/42977
28869 * cselib.c (n_useless_values): Document handling of debug locs.
28870 (n_useless_debug_values, n_debug_values): New variables.
28871 (new_elt_loc_list): Don't add to debug values, keep count.
28872 (promote_debug_loc): New.
28873 (cselib_reset_table): Zero new variables.
28874 (entry_and_rtx_equal_p): Promote debug locs.
28875 (discard_useless_locs): Increment n_useless_debug_values for
28876 debug values.
28877 (remove_useless_values): Adjust n_useless_values and n_debug_values
28878 with n_useless_debug_values.
28879 (add_mem_for_addr): Promote debug locs.
28880 (cselib_lookup_mem): Likewise.
28881 (cselib_lookup_addr): Renamed to...
28882 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
28883 (cselib_log_lookup): ... this. Turn into...
28884 (cselib_lookup_addr): ... new wrapper.
28885 (cselib_lookup_from_insn): New.
28886 (cselib_invalidate_regno): Increment n_useless_debug_values for
28887 debug values.
28888 (cselib_invalidate_mem): Likewise.
28889 (cselib_process_insn): Take n_deleted and n_debug_values into
28890 account to guard remove_useless_value call.
28891 (cselib_finish): Zero n_useless_debug_values.
28892 * cselib.h (cselib_lookup_from_insn): Declare.
28893 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
28894 (sched_analyze_2): Likewise.
28895
28896 2010-03-30 Jakub Jelinek <jakub@redhat.com>
28897
28898 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
28899 functions.
28900 (adjust_mems): Replace narrowing SUBREG of expression containing
28901 just PLUS, MINUS, MULT and ASHIFT of registers and constants
28902 with operations in the narrower mode.
28903
28904 PR debug/43593
28905 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
28906 regs_invalidated_by_call instead all call_used_reg_set registers.
28907
28908 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
28909
28910 PR middle-end/43430
28911 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
28912 pointer comparisons with types_compatible_p.
28913 * tree-vect-stmts.c (vectorizable_call): Same.
28914 (vectorizable_condition): Same.
28915
28916 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28917
28918 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
28919 stack check if the mask would be zero.
28920
28921 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
28922 Jack Howarth <howarth@bromo.med.uc.edu>
28923
28924 * tree-profile.c (tree_init_ic_make_global_vars): Make static
28925 variables TLS.
28926
28927 2010-03-30 Joseph Myers <joseph@codesourcery.com>
28928
28929 PR other/25232
28930 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
28931 and __unordtf2.
28932 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
28933 Include ___unordxf2 and ___unordtf2.
28934 * config/i386/libgcc-glibc.ver: Do not define inheritance from
28935 GCC_4.4.0 here.
28936
28937 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
28938
28939 * config/lm32/t-lm32: New file.
28940 * config.gcc: Use the above file when targetting lm32.
28941
28942 2010-03-28 Duncan Sands <baldrick@free.fr>
28943
28944 * Makefile.in (PLUGIN_HEADERS): Add except.h.
28945
28946 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
28947
28948 PR middle-end/43431
28949 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
28950 Improve vectorization cost model diagnostic.
28951
28952 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
28953
28954 PR middle-end/43436
28955 * tree-vect-data-refs.c (vect_analyze_data_refs): When
28956 compute_data_dependences_for_loop returns false, early exit
28957 and output an extra diagnostic for the failed data reference
28958 analysis.
28959
28960 2010-03-29 Richard Guenther <rguenther@suse.de>
28961
28962 PR tree-optimization/43560
28963 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
28964 (can_sm_ref_p): Treat stores to readonly locations as trapping.
28965
28966 2010-03-29 Jie Zhang <jie@codesourcery.com>
28967
28968 PR 43564
28969 * toplev.c (process_options): Set optimization_default_node
28970 and optimization_current_node.
28971 * opts.c (decode_options): Don't set optimization_default_node
28972 and optimization_current_node.
28973
28974 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
28975
28976 * config/rtems.h: Abandon -qrtems_debug.
28977
28978 2010-03-28 Jan Hubicka <jh@suse.cz>
28979
28980 PR tree-optimization/43505
28981 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
28982 map should not be copied.
28983
28984 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28985
28986 PR middle-end/41674
28987 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
28988 cdtors, set DECL_PRESERVE_P.
28989 * ipa.c (cgraph_externally_visible_p): Return true if declaration
28990 should be preseved.
28991
28992 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
28993
28994 PR tree-optimization/43528
28995 * stor-layout.c (place_field): Check that constant fits into
28996 unsigned HWI when skipping calculation of MS bitfield layout.
28997
28998 2010-03-27 Jan Hubicka <jh@suse.cz>
28999
29000 PR middle-end/43391
29001 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
29002 notice_global_symbol work.
29003
29004 2010-03-27 Jakub Jelinek <jakub@redhat.com>
29005
29006 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
29007 instead of dwarf2out_decl.
29008 (struct var_loc_node): Remove section_label field.
29009 (dwarf2out_function_decl): New function.
29010 (dwarf2out_var_location): Don't set section_label field.
29011 (dwarf2out_begin_function): Don't empty decl_loc_table here.
29012
29013 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
29014
29015 PR tree-optimization/43544
29016 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
29017 First argument for builtin vectorized function hook is now a
29018 tree to be able to distinguish between machine specific and
29019 standard builtins.
29020 * targhooks.c (default_builtin_vectorized_function): Ditto.
29021 * targhooks.h (default_builtin_vectorized_function): Ditto.
29022 * target.h (struct gcc_target): Ditto.
29023 * tree-vect-stmts.c (vectorizable_function): Ditto.
29024 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
29025 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
29026 Ditto.
29027
29028 2010-03-26 Joseph Myers <joseph@codesourcery.com>
29029
29030 PR c/43381
29031 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
29032 nested binding iff it is a FUNCTION_DECL.
29033 (store_parm_decls_newstyle): Pass nested=true to bind for
29034 FUNCTION_DECLs amongst parameters.
29035
29036 2010-03-26 Jakub Jelinek <jakub@redhat.com>
29037
29038 * var-tracking.c (vt_expand_loc_callback): Don't run
29039 cselib_expand_value_rtx_cb in dummy mode if
29040 cselib_dummy_expand_value_rtx_cb returned false.
29041
29042 * var-tracking.c (emit_note_insn_var_location): For one part
29043 notes with offset 0, don't add EXPR_LIST around the location.
29044 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
29045 add_location_or_const_value_attribute): Adjust for that change.
29046
29047 PR debug/43540
29048 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
29049 into first operand and location into second.
29050 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
29051 dw_cfi_oprnd_loc for DW_CFA_expression.
29052 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
29053 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
29054 assume first argument is regnum and second argument is location.
29055
29056 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
29057
29058 PR target/42113
29059 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
29060 of scratch register to DImode. Split to DImode comparison operator.
29061 Use SImode subreg of scratch register in the multiplication.
29062 (*cmp_sadd_sidi): Ditto.
29063 (*cmp_ssub_si): Ditto.
29064 (*cmp_ssub_sidi): Ditto.
29065
29066 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
29067
29068 PR target/43524
29069 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
29070 Remove invalid assert and wrong comment.
29071
29072 2010-03-26 Jakub Jelinek <jakub@redhat.com>
29073
29074 PR debug/43516
29075 * flags.h (final_insns_dump_p): New extern.
29076 * final.c (final_insns_dump_p): New variable.
29077 (rest_of_clean_state): Set it before -fdump-final-insns=
29078 dumping, clear afterwards.
29079 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
29080 MEM_ALIAS_SET on MEMs.
29081
29082 2010-03-26 David S. Miller <davem@davemloft.net>
29083
29084 * configure.ac: Fix sparc GOTDATA_OP bug check.
29085 * configure: Rebuild.
29086
29087 2010-03-26 Alan Modra <amodra@gmail.com>
29088
29089 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
29090
29091 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29092
29093 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
29094 TLS_SECTION_ASM_FLAG.
29095
29096 2010-03-25 Jakub Jelinek <jakub@redhat.com>
29097
29098 PR bootstrap/43511
29099 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
29100 Clear first_function_block_is_cold.
29101
29102 PR c/43385
29103 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
29104 argument if the argument is truth_value_p.
29105
29106 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
29107
29108 * config/rs6000/constraints.md: Update copyright year for my changes.
29109
29110 PR target/43484
29111 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
29112 used in reg+reg addressing, swap registers.
29113
29114 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29115
29116 PR debug/43293
29117 * target.h (struct gcc_target): Add code_end hook.
29118 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
29119 if not yet defined.
29120 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
29121 * toplev.c (compile_file): Call targetm.asm_out.code_end
29122 hook before unwind info/debug info output.
29123 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
29124 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
29125 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29126 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
29127 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29128 * config/i386/i386.c (ix86_file_end): Renamed to...
29129 (ix86_code_end): ... this. Make static. Don't call
29130 file_end_indicate_exec_stack. Emit unwind info using
29131 final_start_function/final_end_function.
29132 (darwin_x86_file_end): Remove.
29133 (TARGET_ASM_CODE_END): Define.
29134 * config/i386/i386.h (TARGET_ASM_FILE_END,
29135 NEED_INDICATE_EXEC_STACK): Don't define.
29136 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
29137 (TARGET_ASM_FILE_END): Define to darwin_file_end.
29138 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
29139 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
29140
29141 PR target/43498
29142 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
29143 at the beginning and final_end_function at the end.
29144 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
29145
29146 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29147
29148 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
29149 and Sun as TLS syntax.
29150 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
29151 * configure: Regenerate.
29152 * config.in: Regenerate.
29153 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
29154 (default_elf_asm_named_section): Use it.
29155 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
29156 (i386_output_dwarf_dtprel): Likewise.
29157 (output_addr_const_extra): Likewise.
29158 (output_pic_addr_const): Lowercase @GOTTPOFF.
29159 (output_addr_const_extra): Likewise.
29160 (output_pic_addr_const): Lowercase @GOTNTPOFF.
29161 (output_addr_const_extra): Likewise.
29162 (output_pic_addr_const): Lowercase @INDNTPOFF.
29163 (output_addr_const_extra): Likewise.
29164 (output_pic_addr_const): Lowercase @NTPOFF.
29165 (output_addr_const_extra): Likewise.
29166 (output_pic_addr_const): Lowercase @TPOFF.
29167 (output_addr_const_extra): Likewise.
29168 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
29169 (*tls_global_dynamic_64): Likewise.
29170 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
29171 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
29172
29173 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
29174 (ASM_OUTPUT_TLS_COMMON): Use it.
29175 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
29176
29177 PR target/38118
29178 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
29179 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
29180 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
29181 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
29182 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
29183 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
29184
29185 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29186
29187 * config/i386/i386.c (override_options): Don't accept
29188 -mtls-dialect=sun any longer.
29189 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
29190 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
29191 (*tls_local_dynamic_base_32_sun): Likewise.
29192 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
29193
29194 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29195
29196 PR debug/43508
29197 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
29198 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
29199
29200 PR debug/43479
29201 * ira.c (adjust_cleared_regs): New function.
29202 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
29203
29204 PR debug/19192
29205 PR debug/43479
29206 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
29207 from gimple_block.
29208 * expr.c (expand_expr_real): Restore previous
29209 curr_insn_source_location and curr_insn_block after
29210 expand_expr_real_1 call.
29211 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
29212 instead of expand_expr_real_1.
29213
29214 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
29215
29216 PR rtl-optimization/43413
29217 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
29218 hard regs too.
29219
29220 2010-03-22 James E. Wilson <wilson@codesourcery.com>
29221
29222 PR target/43348
29223 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
29224 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
29225
29226 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
29227
29228 * config/i386/i386.c (ix86_target_string): Add -mfma.
29229 Fix a typo in comment.
29230
29231 2010-03-22 Mike Stump <mikestump@comcast.net>
29232
29233 PR target/23071
29234 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
29235 Don't overly align based upon packed packed fields.
29236
29237 2010-03-22 Jason Merrill <jason@redhat.com>
29238
29239 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
29240 Use () rather than [], and move before the element type.
29241
29242 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29243
29244 * doc/configfiles.texi (Configuration Files): Removed
29245 fixinc/Makefile*, intl/Makefile.*.
29246 * doc/makefile.texi: Fixed markup. Abstract from version
29247 control system used.
29248 (Makefile): Removed obsolete java/parse.y example.
29249 * doc/sourcebuild.texi: Likewise.
29250 (Top Level): Added config, gnattools, libdecnumber, libgcc,
29251 libgomp, libssp. Removed fastjar.
29252 (Miscellaneous Docs): Clarify location.
29253 Added COPYING3, COPYING3.LIB.
29254 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
29255
29256 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29257
29258 PR target/38085
29259 * config/i386/i386.c (x86_function_profiler)
29260 [!NO_PROFILE_COUNTERS]: Fix typo.
29261 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
29262 instead of callq.
29263
29264 2010-03-22 Janis Johnson <janis187@us.ibm.com>
29265 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29266
29267 * doc/sourcebuild.texi (Test Directives): Split into six
29268 subsections, with most of the current text in new subsections
29269 Directives, Selectors, and Final Actions.
29270 (Directives): Split list of test directives into multiple
29271 subsubsections.
29272 (Selectors): Describe use and syntax of selectors.
29273 (Effective-Target Keywords): Describe all existing keywords.
29274 (Add Options): Describe features for dg-add-options.
29275 (Require Support): Describe variants of dg-require-support.
29276 (Final Actions): Describe commands to use in dg-final.
29277
29278 2010-03-22 Michael Matz <matz@suse.de>
29279
29280 PR middle-end/43475
29281 * recog.c (validate_replace_rtx_group): Replace also in
29282 REG_EQUAL and REG_EQUIV notes.
29283
29284 2010-03-22 Richard Guenther <rguenther@suse.de>
29285
29286 PR tree-optimization/43390
29287 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
29288 sure vector extracts are type correct.
29289
29290 2010-03-22 Richard Guenther <rguenther@suse.de>
29291
29292 PR middle-end/40106
29293 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
29294 x * sqrt (x) even when optimizing for size if the target
29295 has native support for sqrt.
29296
29297 2010-03-22 Jakub Jelinek <jakub@redhat.com>
29298
29299 * varasm.c (make_decl_rtl_for_debug): Also clear
29300 flag_mudflap for the duration of make_decl_rtl call.
29301
29302 PR debug/43443
29303 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
29304 locs from preserved VALUEs.
29305
29306 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29307
29308 PR middle-end/42718
29309 * pa.md (movmemsi): Set align to one if zero.
29310 (movmemdi): Likewise.
29311
29312 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
29313
29314 PR target/42321
29315 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
29316 with their corresponding prologue pushes.
29317
29318 2010-03-20 Andrew Pinski <pinskia@gmail.com>
29319
29320 PR target/43156
29321 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
29322 at the begining or end.
29323 (spu_expand_epilogue): Likewise.
29324
29325 2010-03-20 Richard Guenther <rguenther@suse.de>
29326
29327 PR rtl-optimization/43438
29328 * combine.c (make_extraction): Properly zero-/sign-extend an
29329 extraction of the low part of a CONST_INT. Also handle
29330 CONST_DOUBLE.
29331
29332 2010-03-19 Mike Stump <mikestump@comcast.net>
29333
29334 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
29335 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
29336 (override_options): Use SUBTARGET32_DEFAULT_CPU.
29337
29338 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
29339
29340 PR c/43211
29341 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
29342 an error.
29343
29344 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
29345
29346 PR rtl-optimization/42258
29347 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
29348 use that may match DEF.
29349
29350 PR target/40697
29351 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
29352 the cost of loading the constant rather than assuming
29353 COSTS_N_INSNS (1).
29354 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
29355 outer code is AND, do the same tests as the andsi3 expander and
29356 return COSTS_N_INSNS (1) if and is cheap.
29357
29358 * optabs.c (avoid_expensive_constant): Fix formatting.
29359
29360 2010-03-19 Michael Matz <matz@suse.de>
29361
29362 PR c++/43116
29363 * attribs.c (decl_attributes): When rebuilding a function pointer
29364 type use the same qualifiers as the original pointer type.
29365
29366 2010-03-19 Martin Jambor <mjambor@suse.cz>
29367
29368 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
29369 and is_gimple_ip_invariant_address.
29370
29371 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29372
29373 Revert
29374 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29375
29376 * config/arm/arm.c (arm_override_options): Turn off
29377 flag_dwarf2_cfi_asm for AAPCS variants.
29378
29379 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29380
29381 PR target/43399
29382 * config/arm/arm.c (emit_multi_reg_push): Update comments.
29383 Use PRE_MODIFY instead of PRE_DEC.
29384 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
29385 (vfp_emit_fstmd): Likewise.
29386
29387 2010-03-19 Michael Matz <matz@suse.de>
29388
29389 PR target/43305
29390 * builtins.c (expand_builtin_interclass_mathfn,
29391 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
29392 if that fails.
29393
29394 2010-03-19 Richard Guenther <rguenther@suse.de>
29395
29396 PR tree-optimization/43415
29397 * tree-ssa-pre.c (phi_translate): Split out worker to ...
29398 (phi_translate_1): ... this.
29399 (phi_translate): Move all caching here. Cache all NARY
29400 and REFERENCE translations.
29401
29402 2010-03-19 David S. Miller <davem@davemloft.net>
29403
29404 With help from Eric Botcazou.
29405 * config/sparc/sparc.c: Include dwarf2out.h.
29406 (emit_pic_helper): Delete.
29407 (pic_helper_symbol_name): Delete.
29408 (pic_helper_emitted_p): Delete.
29409 (pic_helper_needed): New.
29410 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
29411 (get_pc_thunk_name): New.
29412 (load_pic_register): Remove 'delay_pic_helper' arg. Use
29413 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
29414 Set pic_helper_needed to true. Don't call emit_pic_helper.
29415 (sparc_expand_prologue): Update load_pic_register call.
29416 (sparc_output_mi_thunk): Likewise.
29417 (sparc_file_end): Emit a hidden comdat symbol for the PIC
29418 thunk if possible. Output CFI information as needed.
29419
29420 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
29421 Jack Howarth <howarth@bromo.med.uc.edu>
29422
29423 PR target/36399
29424 * config/i386/i386.h: Fix ABI on darwin x86-32.
29425
29426 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
29427
29428 * tree.h: Declare make_decl_rtl_for_debug.
29429 * varasm.c (make_decl_rtl_for_debug): New.
29430 * dwarf2out.c (rtl_for_decl_location): Call it.
29431 * cfgexpand.c (expand_debug_expr): Call it.
29432
29433 2010-03-18 Jakub Jelinek <jakub@redhat.com>
29434
29435 PR bootstrap/43399
29436 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
29437 mem_mode.
29438
29439 PR bootstrap/43403
29440 * var-tracking.c (vt_init_cfa_base): Do nothing if
29441 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
29442
29443 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
29444
29445 PR debug/42873
29446 * var-tracking.c (canonicalize_vars_star): New.
29447 (dataflow_post_merge_adjust): Use it.
29448
29449 2010-03-18 Jakub Jelinek <jakub@redhat.com>
29450
29451 PR debug/43058
29452 * var-tracking.c (non_suitable_const): New function.
29453 (add_uses): For DEBUG_INSNs with constants, don't record any
29454 value, instead just the constant value itself.
29455 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
29456 is not VAR_LOC_UNKNOWN_P, set var to the constant.
29457 (emit_notes_in_bb): Likewise.
29458 (emit_note_insn_var_location): For onepart variables if
29459 cur_loc is a VOIDmode constant, use DECL_MODE.
29460
29461 2010-03-18 Martin Jambor <mjambor@suse.cz>
29462
29463 PR middle-end/42450
29464 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
29465 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
29466 all non-clones. Moved call redirection...
29467 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
29468 (cgraph_materialize_all_clones): Dispose of all
29469 combined_args_to_skip bitmaps.
29470 (verify_cgraph_node): Do not check for edges pointing to wrong
29471 nodes in inline clones.
29472 * tree-inline.c (copy_bb): Call
29473 cgraph_redirect_edge_call_stmt_to_callee.
29474 * ipa.c (cgraph_remove_unreachable_nodes): Call
29475 cgraph_node_remove_callees even when there are used clones.
29476
29477 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
29478
29479 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
29480
29481 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
29482
29483 PR target/43383
29484 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
29485 for 32bit.
29486
29487 2010-03-18 Michael Matz <matz@suse.de>
29488
29489 PR middle-end/43419
29490 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
29491 into sqrt(x) if we need to preserve signed zeros.
29492
29493 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
29494 Eric Botcazou <ebotcazou@adacore.com>
29495
29496 PR rtl-optimization/43360
29497 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
29498 note if we don't know its invariant status.
29499
29500 2010-03-18 Michael Matz <matz@suse.de>
29501
29502 PR tree-optimization/43402
29503 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
29504 PHI chains of ssa names registered for update.
29505
29506 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
29507
29508 PR target/42427
29509 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
29510 non-offsettable and pre_modify update addressing.
29511 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
29512 and "2" alternatives "#".
29513 (*movdd_softfloat32): Make all alternatives "#";
29514 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
29515 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
29516 (*movdf_softfloat32): Make all alternatives "#";
29517 (movdi): Use the new DIFD mode iterator to create a common splitter
29518 for movdi, movdf and movdd patterns.
29519
29520 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
29521
29522 * common.opt (dumpdir): Remove redundant tab.
29523
29524 2010-03-17 Martin Jambor <mjambor@suse.cz>
29525
29526 PR tree-optimization/43347
29527 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
29528 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
29529
29530 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
29531
29532 PR rtl-optimization/42216
29533 * regrename.c (create_new_chain): New function, broken out from...
29534 (scan_rtx_reg): ... here. Call it. Handle the case where we are
29535 appending a use to an empty chain.
29536 (build_def_use): Remove previous changes that convert OP_INOUT to
29537 OP_OUT operands; instead detect the case where an OP_INOUT operand
29538 uses a previously untracked register and create an empty chain for it.
29539
29540 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29541
29542 * doc/extend.texi (Function Attributes): Rewrite unfinished
29543 sentence in ms_abi documentation.
29544
29545 2010-03-17 Alan Modra <amodra@gmail.com>
29546
29547 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
29548 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
29549 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
29550 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
29551
29552 2010-03-16 Richard Henderson <rth@redhat.com>
29553
29554 PR middle-end/43365
29555 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
29556 (lower_try_finally): Save and restore eh_seq around the expansion
29557 of the try-finally.
29558
29559 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
29560
29561 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
29562 statements before splitting block.
29563
29564 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29565
29566 * doc/sourcebuild.texi (Testsuites): Fix markup.
29567 Use pathnames relative to gcc/testsuite.
29568 (Test Directives): Move description of how timeout is determined.
29569 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
29570 (C Tests): Correct gcc.misc-tests directory.
29571 Framework tests now live in gcc.test-framework.
29572
29573 2010-03-16 Richard Guenther <rguenther@suse.de>
29574
29575 PR middle-end/43379
29576 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
29577 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
29578
29579 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
29580 Alexandre Oliva <aoliva@redhat.com>
29581
29582 PR tree-optimization/42917
29583 * lambda-code.c (remove_iv): Skip debug statements.
29584 (lambda_loopnest_to_gcc_loopnest): Likewise.
29585 (not_interesting_stmt): Debug statements are not interesting.
29586
29587 2010-03-16 Jakub Jelinek <jakub@redhat.com>
29588
29589 PR debug/43051
29590 PR debug/43092
29591 * cselib.c (cselib_preserve_constants,
29592 cfa_base_preserved_val): New static variables.
29593 (preserve_only_constants): New function.
29594 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
29595 clear its REG_VALUES. If cselib_preserve_constants, don't
29596 empty the whole hash table, but preserve there VALUEs with constants,
29597 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
29598 (cselib_preserve_cfa_base_value): New function.
29599 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
29600 (cselib_init): Change argument to int bitfield. Set
29601 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
29602 is in it.
29603 (cselib_finish): Clear cselib_preserve_constants and
29604 cfa_base_preserved_val.
29605 * cselib.h (enum cselib_record_what): New enum.
29606 (cselib_init): Change argument to int.
29607 (cselib_preserve_cfa_base_value): New prototype.
29608 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
29609 * dse.c (dse_step1): Likewise.
29610 * cfgcleanup.c (thread_jump): Likewise.
29611 * sched-deps.c (sched_analyze): Likewise.
29612 * gcse.c (local_cprop_pass): Likewise.
29613 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
29614 If FN is non-NULL, call the callback always and whenever it returns
29615 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
29616 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
29617 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
29618 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
29619 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
29620 * var-tracking.c: Include recog.h.
29621 (bb_stack_adjust_offset): Remove.
29622 (vt_stack_adjustments): Don't call it, instead just gather the
29623 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
29624 (adjust_stack_reference): Remove.
29625 (compute_cfa_pointer): New function.
29626 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
29627 (struct adjust_mem_data): New type.
29628 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
29629 functions.
29630 (get_address_mode): New function.
29631 (replace_expr_with_values): Use it.
29632 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
29633 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
29634 (adjust_sets): Remove.
29635 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
29636 Use get_address_mode.
29637 (get_adjusted_src): Remove.
29638 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
29639 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
29640 (add_with_sets): Don't call adjust_sets.
29641 (fp_setter, vt_init_cfa_base): New functions.
29642 (vt_initialize): Change return type to bool. Move most of pool etc.
29643 initialization to the beginning of the function from end. Pass
29644 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
29645 If !frame_pointer_needed, call vt_stack_adjustment before mos
29646 vector is filled, call vt_init_cfa_base if argp/framep has been
29647 eliminated to sp. If frame_pointer_needed and argp/framep has
29648 been eliminated to hard frame pointer, set
29649 hard_frame_pointer_adjustment and call vt_init_cfa_base after
29650 encountering fp setter in the prologue. For MO_ADJUST, call
29651 log_op_type before pusing the op into mos vector, not afterwards.
29652 Call adjust_insn before cselib_process_insn/add_with_sets,
29653 call cancel_changes (0) afterwards.
29654 (variable_tracking_main_1): Adjust for vt_initialize calling
29655 vt_stack_adjustments and returning whether it succeeded or not.
29656
29657 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
29658
29659 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
29660 debug statements.
29661
29662 2010-03-15 Jakub Jelinek <jakub@redhat.com>
29663
29664 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
29665 has been set.
29666 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
29667 drap_reg has not been set.
29668
29669 2010-03-15 Michael Matz <matz@suse.de>
29670
29671 PR middle-end/43300
29672 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
29673 use it to expand block copies.
29674 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
29675 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
29676 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
29677
29678 2010-03-15 Richard Guenther <rguenther@suse.de>
29679
29680 PR tree-optimization/43367
29681 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
29682 elimination check.
29683
29684 2010-03-15 Richard Guenther <rguenther@suse.de>
29685
29686 PR tree-optimization/43317
29687 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
29688
29689 2010-03-15 Martin Jambor <mjambor@suse.cz>
29690
29691 PR tree-optimization/43141
29692 * tree-sra.c (create_abstract_origin): New function.
29693 (modify_function): Call create_abstract_origin.
29694
29695 2010-03-15 Chris Demetriou <cgd@google.com>
29696
29697 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
29698 wasn't copied.
29699
29700 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29701
29702 PR middle-end/43354
29703 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
29704 call insert_out_of_ssa_copy for default definitions.
29705
29706 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29707
29708 * graphite-clast-to-gimple.c (my_long_long): Defined.
29709 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
29710 * graphite-sese-to-poly.c (my_long_long): Defined.
29711 (scop_ivs_can_be_represented): Use it.
29712
29713 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29714
29715 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
29716 graphite-max-bbs-per-function, and loop-block-tile-size.
29717 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
29718 with "maximum".
29719 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
29720
29721 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29722
29723 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
29724 forward declaration.
29725 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
29726 (add_upper_bounds_from_estimated_nit): New.
29727 (build_loop_iteration_domains): Use it.
29728
29729 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29730
29731 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
29732
29733 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29734
29735 PR middle-end/43306
29736 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
29737 should be an INTEGER_CST. Also handle CASE_CONVERT.
29738
29739 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29740
29741 * graphite.c (graphite_initialize): To bound the number of bbs per
29742 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
29743 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
29744 * doc/invoke.texi: Document it.
29745
29746 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29747
29748 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
29749 * graphite-sese-to-poly.h (build_poly_scop): Same.
29750
29751 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29752
29753 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
29754 the number of parameters in the scop. Use as an upper bound
29755 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
29756 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
29757 * doc/invoke.texi: Document it.
29758
29759 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
29760
29761 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
29762 * doc/c-tree.texi: Remove.
29763 * doc/generic.texi: Merge c-tree.texi here.
29764 * doc/gccint.texi (Trees): Remove menu entry.
29765 (c-tree.texi): Remove @include.
29766 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
29767 * doc/languages.texi (Reading RTL): Ditto.
29768
29769 2010-03-12 Steve Ellcey <sje@cup.hp.com>
29770
29771 PR target/42869
29772 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
29773
29774 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
29775
29776 PR middle-end/42431
29777 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
29778 code added to work around reload clobbering CONST insns.
29779
29780 2010-03-12 Jakub Jelinek <jakub@redhat.com>
29781
29782 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
29783 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
29784 (cselib_preserve_only_values): Remove retain argument, don't
29785 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
29786 * cselib.h (cselib_preserve_only_values): Remove retain argument.
29787 * var-tracking.c (micro_operation): Move insn field before union.
29788 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
29789 (struct variable_tracking_info_def): Remove n_mos field, change
29790 mos into a vector of micro_operations.
29791 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
29792 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
29793 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
29794 changing into a vector.
29795 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
29796 come before all other uops generated by add_stores.
29797 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
29798 argument removal.
29799 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
29800 a vector. Run just one pass over the bbs instead of separate counting
29801 and computation phase.
29802 (vt_finalize): Free VTI (bb)->mos vector instead of array.
29803
29804 PR debug/43329
29805 * tree-inline.c (remap_decls): Put old_var rather than origin_var
29806 into *nonlocalized_list vector.
29807 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
29808 even if origin is non-NULL.
29809 (gen_variable_die): Likewise.
29810 (process_scope_var): Don't change origin.
29811 (gen_decl_die): Likewise.
29812 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
29813 before adding new edges instead of after it, fix moving over
29814 debug stmts.
29815
29816 2010-03-11 David S. Miller <davem@davemloft.net>
29817
29818 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
29819 of four.
29820 * configure: Rebuild.
29821
29822 2010-03-11 Martin Jambor <mjambor@suse.cz>
29823
29824 PR tree-optimization/43257
29825 * tree.c (assign_assembler_name_if_neeeded): New function.
29826 (free_lang_data_in_cgraph): Assembler name assignment moved to the
29827 above new function.
29828 * tree.h (assign_assembler_name_if_neeeded): Declare.
29829 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
29830 the function if needed.
29831
29832 2010-03-11 Chris Demetriou <cgd@google.com>
29833
29834 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
29835 include/stdint-gcc.h, and include/stdint.h world-readable.
29836
29837 2010-03-11 Richard Guenther <rguenther@suse.de>
29838
29839 PR tree-optimization/43255
29840 * tree-vrp.c (process_assert_insertions_for): Do not insert
29841 asserts for trivial conditions.
29842
29843 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29844
29845 PR tree-optimization/43280
29846 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
29847 generation. Move calculation of size out of the if branch.
29848 (find_bswap): Modify compare number generation.
29849
29850 2010-03-11 Richard Guenther <rguenther@suse.de>
29851
29852 PR lto/43200
29853 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
29854 (input_gimple_stmt): Fixup handled component types during
29855 operand read. Also fix up decls in ADDR_EXPRs.
29856
29857 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
29858
29859 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
29860 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
29861
29862 2010-03-10 Jan Hubicka <jh@suse.cz>
29863
29864 PR c/43288
29865 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
29866 * varasm.c (get_variable_section): Don't do that here...
29867 (make_decl_rtl): ... and here.
29868 (do_assemble_alias): Produce decl RTL.
29869 (assemble_alias): Likewise.
29870
29871 2010-03-10 Jakub Jelinek <jakub@redhat.com>
29872
29873 PR debug/43290
29874 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
29875 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
29876 of fde->vdrap_reg.
29877 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
29878 (based_loc_descr): Only express drap or vdrap regno based expressions
29879 using DW_OP_fbreg when not optimizing.
29880 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
29881 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
29882 REG_CFA_SET_VDRAP note.
29883
29884 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
29885
29886 PR tree-optimization/43236
29887 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
29888 error in calculation of base address in reverse iteration case.
29889 (generate_builtin): Take number of latch executions if the statement
29890 is in the latch.
29891
29892 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
29893
29894 PR middle-end/42859
29895 * tree-eh.c: Include pointer-set.h.
29896 (lower_eh_dispatch): Filter out duplicate case labels and
29897 remove the unneeded edge when the label is unused. Return
29898 true when some edges are removed.
29899 (execute_lower_eh_dispatch): When any lowering resulted in
29900 removing an edge, also delete unreachable blocks.
29901
29902 2010-03-10 Jakub Jelinek <jakub@redhat.com>
29903
29904 PR bootstrap/43287
29905 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
29906 UNSPEC_MACHOPIC_OFFSET.
29907
29908 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
29909
29910 PR target/43294
29911 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
29912 (m68k_delegitimize_address): New function.
29913
29914 2010-03-09 Jakub Jelinek <jakub@redhat.com>
29915
29916 PR debug/43299
29917 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
29918
29919 PR debug/43299
29920 * var-tracking.c (adjust_sets): New function.
29921 (count_with_sets, add_with_sets): Use it.
29922 (get_adjusted_src): New inline function.
29923 (add_stores): Use it.
29924
29925 PR debug/43304
29926 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
29927 call cselib_dummy_expand_value_rtx_cb instead of
29928 cselib_expand_value_rtx_cb.
29929
29930 PR debug/43293
29931 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
29932 * config/i386/i386.c: Include debug.h and dwarf2out.h.
29933 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
29934 and .cfi_endproc around the pic thunks.
29935 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
29936 all queued unwind info register saves are saved before the call.
29937 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
29938 considered as sp-=4 for unwind info and the pop as sp+=4 which
29939 also clobbers dest, but doesn't actually restore it.
29940
29941 PR debug/43290
29942 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
29943 RTX_FRAME_RELATED_P.
29944
29945 2010-03-09 Jie Zhang <jie@codesourcery.com>
29946
29947 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
29948 whitespaces in output template.
29949
29950 2010-03-09 Jie Zhang <jie@codesourcery.com>
29951
29952 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
29953 out array boundary.
29954
29955 2010-03-08 Jakub Jelinek <jakub@redhat.com>
29956
29957 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
29958 builtins.exp in a separate job.
29959
29960 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29961
29962 * graphite-sese-to-poly.c (add_param_constraints): Use
29963 lower_bound_in_type and upper_bound_in_type.
29964
29965 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29966
29967 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
29968 instead of unsigned_type_node.
29969
29970 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29971 Reza Yazdani <reza.yazdani@amd.com>
29972
29973 PR middle-end/43065
29974 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
29975 on pointer type parameters.
29976
29977 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
29978
29979 PR middle-end/42644
29980 PR middle-end/42130
29981 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
29982 handle conversions from pointer to integers.
29983 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
29984 induction variable, to be able to work with code generated by CLooG.
29985 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
29986 (build_poly_scop): Bail out if we cannot codegen a loop.
29987
29988 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
29989
29990 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
29991 code generation with gloog_error.
29992
29993 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29994
29995 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
29996 Call fold_convert on all the returned values.
29997 (expand_scalar_variables_expr): Pass to
29998 expand_scalar_variables_ssa_name the type of the resulting expression.
29999
30000 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30001
30002 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
30003 ppl_min_for_le_pointset.
30004 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
30005 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
30006
30007 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30008
30009 * graphite-dependences.c (map_into_dep_poly): Removed.
30010 (dependence_polyhedron_1): Use combine_context_id_scat.
30011
30012 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30013
30014 * graphite-poly.h (struct poly_scattering): Add layout documentation.
30015 (struct poly_bb): Same.
30016 (combine_context_id_scat): New.
30017
30018 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30019
30020 PR middle-end/42326
30021 * sese.c (name_defined_in_loop_p): Return false for default
30022 definitions.
30023
30024 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30025
30026 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
30027 and clean up the logic.
30028
30029 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30030
30031 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
30032 early return.
30033
30034 2010-03-08 Jakub Jelinek <jakub@redhat.com>
30035
30036 * var-tracking.c (remove_cselib_value_chains): Define only for
30037 ENABLE_CHECKING.
30038 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
30039 delete_slot_part, emit_notes_for_differences_1): Don't call
30040 remove_cselib_value_chains here.
30041 (set_slot_part, emit_notes_for_differences_2): Don't call
30042 add_cselib_value_chains here.
30043 (preserved_values): New vector.
30044 (preserve_value): New function.
30045 (add_uses, add_stores, vt_add_function_parameters): Use it
30046 instead of cselib_preserve_value.
30047 (changed_values_stack): New vector.
30048 (check_changed_vars_0): New function.
30049 (check_changed_vars_1, check_changed_vars_2): Use it.
30050 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
30051 changed_values_stack VALUEs.
30052 (vt_emit_notes): For all preserved_values call
30053 add_cselib_value_chains. If ENABLE_CHECKING call
30054 remove_cselib_value_chains before verifying value_chains is empty.
30055 Initialize and free changed_values_stack.
30056 (vt_initialize): Initialize preserved_values.
30057 (vt_finalize): Free preserved_values.
30058
30059 2010-03-08 Richard Guenther <rguenther@suse.de>
30060
30061 PR tree-optimization/43269
30062 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
30063 region detection.
30064
30065 2010-03-08 Martin Jambor <mjambor@suse.cz>
30066
30067 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
30068 (ipa_is_param_called): Removed.
30069 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
30070 (ipa_print_node_params): Do not print the called flag.
30071 (ipa_write_node_info): Do not stream the called flag.
30072 (ipa_read_node_info): Likewise.
30073
30074 2010-03-07 Jakub Jelinek <jakub@redhat.com>
30075
30076 PR debug/43176
30077 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
30078 * cselib.c (struct expand_value_data): Add dummy field.
30079 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
30080 dummy to false.
30081 (cselib_dummy_expand_value_rtx_cb): New function.
30082 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
30083 any rtl.
30084 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
30085 * var-tracking.c: Include pointer-set.h.
30086 (variable): Change n_var_parts to char from int. Add
30087 cur_loc_changed and in_changed_variables fields.
30088 (variable_canonicalize): Remove.
30089 (shared_var_p): New inline function.
30090 (unshare_variable): Maintain cur_loc_changed and
30091 in_changed_variables fields. If var was in changed_variables,
30092 replace it there with new_var. Just copy cur_loc instead of
30093 resetting it to something else.
30094 (variable_union): Don't recompute cur_loc. Use shared_var_p.
30095 (dataflow_set_union): Don't call variable_canonicalize.
30096 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
30097 of their DEBUG_EXPR_TREE_DECLs.
30098 (canonicalize_loc_order_check): Verify that cur_loc is NULL
30099 and in_changed_variables and cur_loc_changed is false.
30100 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
30101 and cur_loc_changed. Don't update cur_loc here.
30102 (variable_merge_over_src): Don't call variable_canonicalize.
30103 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
30104 removing loc that is equal to cur_loc, clear cur_loc,
30105 set cur_loc_changed and ensure variable_was_changed is called.
30106 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
30107 compare pointers in cur_loc check, if it is equal to loc,
30108 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
30109 (variable_different_p): Remove compare_current_location argument,
30110 don't compare cur_loc.
30111 (dataflow_set_different_1): Adjust variable_different_p caller.
30112 (variable_was_changed): If dv had some var in changed_variables
30113 already, reset in_changed_variables flag for it and propagate
30114 cur_loc_changed over to the new variable. On empty var
30115 always set cur_loc_changed. Set in_changed_variables on whatever
30116 var is added to changed_variables.
30117 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
30118 Use shared_var_p. When removing loc that is equal to cur_loc,
30119 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
30120 end, don't set it to something else, just call variable_was_changed.
30121 (delete_slot_part): Use shared_var_p. When cur_loc equals to
30122 loc being removed, clear cur_loc and set cur_loc_changed.
30123 Set cur_loc_changed if all locations have been removed.
30124 (struct expand_loc_callback_data): New type.
30125 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
30126 allocated. Always create SUBREGs if simplify_subreg failed.
30127 Prefer to use cur_loc, when that fails and still in
30128 changed_variables (and seen first time) recompute it. Set
30129 cur_loc_changed of variables which had to change cur_loc and
30130 compute elcd->cur_loc_changed if any of the subexpressions used
30131 had to change cur_loc.
30132 (vt_expand_loc): Adjust to pass arguments in
30133 expand_loc_callback_data structure.
30134 (vt_expand_loc_dummy): New function.
30135 (emitted_notes): New variable.
30136 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
30137 that weren't used for any other decl in current
30138 emit_notes_for_changes call call vt_expand_loc_dummy to update
30139 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
30140 first loc_chain location if NULL before. Always use just
30141 cur_loc instead of first loc_chain location. When cur_loc_changed
30142 is false, when not --enable-checking=rtl just don't emit any note.
30143 When rtl checking, compute the note and assert it is the same
30144 as previous note. Clear cur_loc_changed and in_changed_variables
30145 at the end before removing from changed_variables.
30146 (check_changed_vars_3): New function.
30147 (emit_notes_for_changes): Traverse changed_vars to call
30148 check_changed_vars_3 on each changed var.
30149 (emit_notes_for_differences_1): Clear cur_loc_changed and
30150 in_changed_variables. Recompute cur_loc of new_var.
30151 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
30152 (vt_emit_notes): Initialize and destroy emitted_notes.
30153
30154 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
30155
30156 PR rtl-optimization/42220
30157 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
30158 Use verify_reg_tracked to determine if we should use OP_OUT rather
30159 than OP_INOUT.
30160 (build_def_use): If we see an in-out operand for a register that we
30161 know nothing about, treat is an output if possible, fail the block if
30162 not.
30163
30164 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30165
30166 PR debug/42897
30167 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
30168 permanently.
30169
30170 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30171
30172 PR debug/42897
30173 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
30174 uses of relevant DEFs that are dead outside the loop too.
30175
30176 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30177
30178 * var-tracking.c (dataflow_set_merge): Swap src and src2.
30179 Reverted:
30180 2010-01-13 Jakub Jelinek <jakub@redhat.com>
30181 PR debug/41371
30182 * var-tracking.c (values_to_unmark): New variable.
30183 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
30184 values_to_unmark vector. Moved body to...
30185 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
30186 instead queue it into values_to_unmark vector.
30187 (vt_find_locations): Free values_to_unmark vector.
30188
30189 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
30190
30191 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
30192 (site.exp): Export them when plugins are enabled.
30193
30194 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
30195
30196 PR middle-end/42326
30197 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
30198 that contain scevs.
30199 (chrec_fold_multiply): Same.
30200
30201 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
30202
30203 PR c/43248
30204 * c-decl.c (build_compound_literal): Return early if init is
30205 an error_mark_node.
30206
30207 2010-03-04 Martin Jambor <mjambor@suse.cz>
30208
30209 PR tree-optimization/43164
30210 PR tree-optimization/43191
30211 * tree-sra.c (type_consists_of_records_p): Reject records with
30212 zero-size bit-fields at the end.
30213
30214 2010-03-04 Mike Stump <mikestump@comcast.net>
30215
30216 * Makefile.in (TAGS): Remove *.y.
30217
30218 2010-03-04 Richard Guenther <rguenther@suse.de>
30219
30220 PR tree-optimization/40761
30221 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
30222 in reverse order.
30223 (my_rev_post_order_compute): New function.
30224 (init_pre): Call it.
30225
30226 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
30227
30228 PR middle-end/43209
30229 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
30230 decrease the cost of an IV candidate when the cost is infinite.
30231
30232 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30233
30234 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
30235 Use '3DNow!' for the extension of that name, ensure normal space
30236 after the string.
30237 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
30238
30239 2010-03-03 Jeff Law <law@redhat.com>
30240
30241 * PR middle-end/32693
30242 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
30243 than gen_rtx_SUBREG.
30244 (extract_bit_field_1): Likewise.
30245
30246 2010-03-03 Janis Johnson <janis187@us.ibm.com>
30247
30248 * doc/sourcebuild.texi (Test directives): Document that arguments
30249 include-opts and exclude-opts are now optional for dg-skip-if,
30250 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
30251
30252 2010-03-03 Jason Merrill <jason@redhat.com>
30253
30254 PR c++/12909
30255 * cgraph.h (varpool_node): Add extra_name field.
30256 * varpool.c (varpool_extra_name_alias): New.
30257 (varpool_assemble_decl): Emit extra name aliases.
30258 (varpool_mark_needed_node): Look past an extra name alias.
30259 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
30260 * lto-streamer-in.c (lto_input_tree): Read it.
30261 * lto-streamer-out.c (output_unreferenced_globals): Write it.
30262
30263 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
30264
30265 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
30266 (sparc*-*-solaris2*): ...this.
30267
30268 2010-03-03 Jakub Jelinek <jakub@redhat.com>
30269
30270 PR debug/43229
30271 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
30272 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
30273 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
30274 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
30275
30276 PR debug/43237
30277 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
30278 fallthrough to default handling, just with want_address 0 instead of 2.
30279 For single element lists, add_AT_loc directly, otherwise create an
30280 artificial variable DIE and stick location list to it.
30281
30282 PR debug/43177
30283 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
30284 (VAL_EXPR_HAS_REVERSE): Define.
30285 (reverse_op): New function.
30286 (add_stores): For reversible operations add an extra MO_VAL_USE.
30287
30288 2010-03-02 Jason Merrill <jason@redhat.com>
30289
30290 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
30291
30292 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
30293
30294 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
30295 (sparc64-*-linux*): Likewise.
30296 (sparc64-*-solaris2*): Include assembler files before linker ones.
30297 (sparc-*-solaris2*): Simplify and reorder to match previous case.
30298 * config/sparc/gas.h: Delete.
30299 * config/sparc/sol2-64.h: Add copyright notice.
30300 * config/sparc/sol2-gas-bi.h: Likewise.
30301 * config/sparc/sol2-gld.h: Likewise.
30302 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
30303 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
30304 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
30305 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
30306 (sparc_elf_asm_named_section): Rename into...
30307 (sparc_solaris_elf_asm_named_section): ...this. Always define.
30308
30309 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
30310
30311 * config/alpha/alpha.c (override_options): Fix -mtune error message.
30312
30313 2010-03-02 Jeff Law <law@redhat.com>
30314
30315 PR middle-end/42431
30316 * reload1.c (rtx_p, substitute_stack): Declare.
30317 (substitute): Record addresses of changed rtxs.
30318 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
30319 Restore the original rtx when complete.
30320 (reload): Free subsitute_stack when complete.
30321
30322 2010-03-02 Janis Johnson <janis187@us.ibm.com>
30323
30324 * doc/gccint.texi (menu): Add Testsuites as a chapter.
30325 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
30326 new chapter.
30327 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
30328 LTO Testing, gcov Testing, profopt Testing, compat Testing,
30329 Torture Tests): Change from subsection to section.
30330
30331 2010-03-02 Jakub Jelinek <jakub@redhat.com>
30332 Steven Bosscher <steven@gcc.gnu.org>
30333
30334 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
30335 instead of bb.
30336
30337 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
30338
30339 PR middle-end/42640
30340 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
30341 the assignment from the new induction variable to the assignment
30342 of the value from the original loop PHI function.
30343
30344 2010-03-01 Janis Johnson <janis187@us.ibm.com>
30345 Daniel Jacobowitz <dan@codesourcery.com>
30346
30347 * doc/sourcebuild.texi (Test directives): Clarify options to
30348 dg-skip-if.
30349
30350 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30351
30352 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
30353 Disable cfi directives unless GCC and gas agree on using read-only
30354 .eh_frame sections for 64-bit.
30355 * configure: Regenerate.
30356
30357 2010-03-01 Richard Guenther <rguenther@suse.de>
30358
30359 PR tree-optimization/43220
30360 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
30361 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
30362
30363 2010-03-01 Richard Guenther <rguenther@suse.de>
30364 Martin Jambor <mjambor@suse.cz>
30365
30366 PR middle-end/41250
30367 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
30368 gimplified parameters.
30369
30370 2010-03-01 Christian Bruel <christian.bruel@st.com>
30371
30372 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
30373
30374 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
30375
30376 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
30377
30378 2010-03-01 Richard Guenther <rguenther@suse.de>
30379
30380 PR middle-end/43213
30381 * expr.c (expand_assignment): Use the alias-oracle to tell
30382 if the rhs aliases the result decl.
30383
30384 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30385
30386 PR pch/14940
30387 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
30388 to sol_gt_pch_get_address.
30389 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
30390 64-bit, SPARC and x86.
30391 (sol_gt_pch_get_address): New function.
30392
30393 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
30394
30395 * toplev.h (inform_n, error_n): Declare.
30396 * diagnostic.c (inform_n, error_n): New function.
30397
30398 2010-03-01 Jakub Jelinek <jakub@redhat.com>
30399
30400 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
30401 has no rtl yet when processing local_decls, queue it and recheck
30402 if deferred stack allocation hasn't assigned it rtl.
30403
30404 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
30405
30406 * config/sh/sh.c (unspec_bbr_uid): New.
30407 (gen_block_redirect): Use it instead of INSN_UID.
30408 (gen_far_branch): Likewise.
30409
30410 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
30411
30412 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
30413 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
30414
30415 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30416
30417 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
30418 (Warning Options): -Wno-conversion-null is valid for
30419 Objective-C++ as well.
30420 * doc/tm.texi (Named Address Spaces): Likewise.
30421 * doc/plugins.texi (Plugins): Replace TABs with spaces.
30422 * doc/tree-ssa.texi (Tree SSA): Likewise.
30423
30424 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30425
30426 PR bootstrap/43202
30427 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
30428 by default. Don't set the default arch for
30429 i[34567]86-*-darwin*|x86_64-*-darwin*.
30430
30431 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30432
30433 PR bootstrap/43202
30434 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
30435 default. Set the default 32bit/64bit archs with $with_arch
30436 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
30437
30438 2010-02-27 Richard Guenther <rguenther@suse.de>
30439
30440 PR tree-optimization/43186
30441 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
30442 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
30443 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
30444 unroller iterations.
30445
30446 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30447
30448 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
30449 required and i[34567]86-*-* targets don't support 64bit ISA.
30450
30451 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
30452
30453 PR ada/43096
30454 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
30455 the same alias set.
30456
30457 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
30458
30459 * config.gcc: Set the default arch at least to Prescott for
30460 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
30461 if SSE math is enabled.
30462
30463 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30464
30465 * diagnostic.c (diagnostic_initialize): Update.
30466 (diagnostic_report_diagnostic): Test inhibit_notes_p for
30467 informative notes.
30468 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
30469 (diagnostic_inhibit_notes): New.
30470 * toplev.c (process_options): inhibit notes with -fcompare-debug.
30471
30472 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30473
30474 PR c/20631
30475 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
30476 * doc/standards.texi: Likewise.
30477 * doc/extend.texi: Likewise.
30478 * doc/trouble.texi: Likewise.
30479 * doc/cppopts.texi: Likewise.
30480 * doc/install.texi: Likewise.
30481 * c.opt (std=c90,std=gnu90): New options.
30482 * c-opts.c (c_common_handle_option): Handle them.
30483
30484 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30485
30486 PR c/24577
30487 * c-decl.c (undeclared_variable): Use an informative note.
30488
30489 2010-02-26 Richard Guenther <rguenther@suse.de>
30490
30491 PR tree-optimization/43186
30492 * gimple.h (gimple_fold): Remove.
30493 * gimple.c (gimple_fold): Remove. Inline into single user ...
30494 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
30495 Try harder for conditions.
30496
30497 2010-02-26 Jakub Jelinek <jakub@redhat.com>
30498
30499 PR debug/43190
30500 * function.c (used_types_insert): Don't skip through named pointer
30501 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
30502 and it is different from the main variant's type.
30503
30504 2010-02-26 Nick Clifton <nickc@redhat.com>
30505
30506 * config/rx/rx.md (sminsi3): Remove bogus alternative.
30507
30508 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
30509
30510 * config.gcc: Support --with-fpmath=sse for x86.
30511
30512 * config/i386/ssemath.h: New.
30513
30514 * doc/install.texi (--with-fpmath=sse): Documented.
30515
30516 2010-02-26 Richard Guenther <rguenther@suse.de>
30517
30518 PR tree-optimization/43188
30519 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
30520 vector types of over-aligned element type.
30521
30522 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
30523
30524 PR target/43175
30525 * config/i386/i386.c (expand_vec_perm_blend): Use correct
30526 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
30527
30528 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
30529
30530 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
30531
30532 2010-02-26 Jakub Jelinek <jakub@redhat.com>
30533
30534 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
30535 * var-tracking.c: Include diagnostic.h.
30536 (debug_dv): New function.
30537 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
30538
30539 PR debug/43160
30540 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
30541 (add_value_chain, add_value_chains, remove_value_chain,
30542 remove_value_chains): Handle DEBUG_EXPRs.
30543 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
30544
30545 PR debug/43161
30546 * regcprop.c (struct queued_debug_insn_change): New type.
30547 (struct value_data_entry): Add debug_insn_changes field.
30548 (struct value_data): Add n_debug_insn_changes field.
30549 (debug_insn_changes_pool): New variable.
30550 (free_debug_insn_changes, apply_debug_insn_changes,
30551 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
30552 (kill_value_one_regno): Call free_debug_insn_changes if needed.
30553 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
30554 fields.
30555 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
30556 changes for them.
30557 (copyprop_hardreg_forward_1): Don't call apply_change_group for
30558 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
30559 changes, call cprop_find_used_regs via note_stores.
30560 (copyprop_hardreg_forward): When copying vd from predecessor
30561 which has any queued DEBUG_INSN changes, make sure the pointers are
30562 cleared. At the end call df_analyze and then if there are any
30563 DEBUG_INSN changes queued at the end of some basic block for still
30564 live registers, apply them.
30565 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
30566
30567 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
30568
30569 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
30570 (arm*-*-*): Ditto.
30571
30572 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
30573
30574 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
30575 targets. Set the default with_cpu/with_arch from arch/cpu.
30576 Allow x86-64 and native for with_cpu/with_arch.
30577
30578 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
30579
30580 * ebitmap.c: Change calls to verify_popcount with calls to
30581 sbitmap_verify_popcount.
30582 (ebitmap_clear_bit): Fixed map->cacheindex test and
30583 map>cache update when bit clearing results in an empty
30584 element.
30585
30586 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
30587
30588 PR target/43154
30589 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
30590 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
30591 and support both V2DF and V2DI modes.
30592 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
30593 support both V2DF and V2DI modes.
30594 (general): Delete trailing whitespace from a few patterns.
30595
30596 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30597 V2DF/V2DI interleave high/low builtins.
30598
30599 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
30600 new VSX builtins.
30601
30602 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
30603 interleave high/low functions.
30604
30605 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
30606
30607 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
30608 #pragma extern_prefix.
30609
30610 2010-02-25 Jakub Jelinek <jakub@redhat.com>
30611
30612 PR debug/43166
30613 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
30614 BLKmode, assert op0 is a MEM and just adjust its mode.
30615
30616 PR debug/43165
30617 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
30618 if bitpos isn't multiple of mode's bitsize.
30619
30620 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
30621
30622 * c.opt (-ftemplate-depth=): New.
30623 (-ftemplate-depth-): Deprecate.
30624 * optc-gen.awk: Handle -ftemplate-depth=.
30625 * opth-gen.awk: Likewise.
30626 * c-opts.c (c_common_handle_option): Likewise.
30627 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
30628
30629 2010-02-24 Jason Merrill <jason@redhat.com>
30630
30631 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
30632
30633 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30634
30635 * cfg.c (alloc_aux_for_block): Remove inline.
30636 (alloc_aux_for_edge): Likewise.
30637
30638 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30639
30640 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
30641
30642 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30643
30644 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
30645 * config/i386/sol2-gas.h: New file.
30646 * config.gcc (i[34567]86-*-solaris2*): Use it.
30647
30648 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
30649
30650 PR c/43128
30651 * c-typeck.c (ep_convert_and_check): New.
30652 (build_conditional_expr): Use it.
30653 (build_binary_op): Likewise.
30654
30655 2010-02-24 Jakub Jelinek <jakub@redhat.com>
30656
30657 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
30658
30659 PR debug/43150
30660 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
30661 bounds even for -O+.
30662 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
30663 expr needs to have DECL_NAME set.
30664
30665 2010-02-24 Nick Clifton <nickc@redhat.com>
30666
30667 * config/mep/mep.c: Include gimple.h.
30668 (mep_function_uses_sp): Delete unused function.
30669 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
30670 parameters. Use unsigned integers to count args. Return a
30671 NULL_RTX instead of an error_mark_node. Toidy up formatting.
30672
30673 2010-02-23 Jakub Jelinek <jakub@redhat.com>
30674
30675 PR target/43107
30676 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
30677 greater or equal to nelt instead of 2 * nelt.
30678 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
30679 with nelt - 1.
30680
30681 2010-02-23 Jason Merrill <jason@redhat.com>
30682
30683 PR debug/42800
30684 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
30685 in cfun->local_decls even if they have register types.
30686
30687 PR c++/42837
30688 * stor-layout.c (place_field): Don't warn about unnecessary
30689 DECL_PACKED if the type is packed.
30690
30691 2010-02-23 Jakub Jelinek <jakub@redhat.com>
30692
30693 PR target/43139
30694 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
30695 GOTOFF relocs, even when the base reg isn't pic pointer.
30696
30697 2010-02-23 Michael Matz <matz@suse.de>
30698
30699 PR debug/43077
30700 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
30701 (expand_gimple_basic_block): Generate and use debug temps if there
30702 are debug uses left after the last real use of TERed ssa names.
30703 Unlink debug immediate uses when they are expanded.
30704
30705 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
30706
30707 PR 43123
30708 * config/i386/i386.c (override_options): Reorganise to provide
30709 better error messages.
30710
30711 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30712
30713 PR middle-end/43083
30714 * graphite-scop-detection.c (create_single_exit_edge): Move
30715 the call to find_single_exit_edge to....
30716 (create_sese_edges): ...here. Don't handle multiple edges
30717 exiting the function.
30718 (build_graphite_scops): Don't handle multiple edges
30719 exiting the function.
30720
30721 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30722
30723 PR middle-end/43097
30724 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
30725 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
30726
30727 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30728
30729 PR middle-end/43026
30730 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
30731
30732 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
30733
30734 PR c++/43126
30735 * c-typeck.c (convert_arguments): Print declaration location.
30736 * c-common.c (validate_nargs): Rename as
30737 builtin_function_validate_nargs.
30738 (check_builtin_function_arguments): Update.
30739
30740 2010-02-22 Richard Guenther <rguenther@suse.de>
30741
30742 PR lto/43045
30743 * tree-inline.c (declare_return_variable): Use the type of
30744 the call stmt lhs if available.
30745
30746 2010-02-22 Duncan Sands <baldrick@free.fr>
30747
30748 * passes.c (register_pass): Always consider all pass lists when
30749 ref_pass_instance_number is zero.
30750
30751 2010-02-22 Richard Guenther <rguenther@suse.de>
30752
30753 PR tree-optimization/42749
30754 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
30755 parameter. Do arithmetic in the original type.
30756 (update_accumulator_with_ops): Likewise.
30757 (adjust_accumulator_values): Adjust.
30758
30759 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30760
30761 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
30762 (QI to BLKmode splitter): New splitter.
30763
30764 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
30765
30766 * config/i386/i386.c (initial_ix86_tune_features): Turn on
30767 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
30768
30769 2010-02-22 Richard Guenther <rguenther@suse.de>
30770
30771 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
30772
30773 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
30774
30775 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
30776 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
30777 ($(T)crti.o, $(T)crtn.o): Remove rules.
30778
30779 2010-02-21 Tobias Burnus <burnus@net-b.de>
30780
30781 PR fortran/35259
30782 * doc/invoke.texi (-fassociative-math): Document that this
30783 option is automatically enabled for Fortran.
30784
30785 2010-02-20 David S. Miller <davem@davemloft.net>
30786
30787 * configure.ac: Test if linker and assembler properly support
30788 GOTDATA_OP relocations.
30789 * configure: Rebuild.
30790 * config.in: Likewise.
30791 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
30792 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
30793 (movsi_high_pic): Likewise.
30794 (movdi_lo_sum_pic): Likewise.
30795 (movdi_high_pic): Likewise.
30796 (movsi_pic_gotdata_op): New pattern.
30797 (movdi_pic_gotdata_op): Likewise.
30798 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
30799 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
30800
30801 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
30802
30803 PR target/43067
30804 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
30805 attribute to ssemul.
30806 (xop_mulv2div2di3_high): Ditto.
30807
30808 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
30809
30810 PR c++/35669
30811 * c.opt (Wconversion-null): New option.
30812 * doc/invoke.texi (Wconversion-null): Document.
30813
30814 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
30815
30816 * common.opt (Wlarger-than-): Add Undocumented.
30817
30818 2010-02-19 Mike Stump <mikestump@comcast.net>
30819
30820 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
30821
30822 2010-02-19 Jason Merrill <jason@redhat.com>
30823
30824 PR target/40332
30825 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
30826 * configure: Likewise.
30827
30828 2010-02-20 Alan Modra <amodra@gmail.com>
30829
30830 PR middle-end/42344
30831 * cgraph.h (cgraph_make_decl_local): Declare.
30832 * cgraph.c (cgraph_make_decl_local): New function.
30833 (cgraph_make_node_local): Use it.
30834 * cgraphunit.c (cgraph_function_versioning): Likewise.
30835 * ipa.c (function_and_variable_visibility): Likewise.
30836
30837 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30838
30839 PR bootstrap/43121
30840 * except.c (sjlj_emit_function_enter): Don't call
30841 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
30842 directly.
30843 * rtl.h (add_reg_br_prob_note): Remove prototype.
30844
30845 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
30846
30847 PR 41779
30848 * c-common.c (conversion_warning): Remove widening conversions
30849 before checking the conversion of integers to reals.
30850
30851 2010-02-19 Mike Stump <mikestump@comcast.net>
30852
30853 PR middle-end/43125
30854 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
30855
30856 PR objc/43061
30857 * cgraphunit.c (process_function_and_variable_attributes): Check
30858 DECL_PRESERVE_P instead of looking up attribute "used".
30859 * ipa-pure-const.c (check_decl): Likewise.
30860 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
30861 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
30862 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
30863 instead of attribute "used".
30864 * config/sol2-c.c (solaris_pragma_init): Likewise.
30865 (solaris_pragma_fini): Likewise.
30866
30867 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30868
30869 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
30870 Use XCNEW instead of xcalloc.
30871 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
30872 XNEW instead of xmalloc.
30873 (get_fields): Use XNEWVEC instead of xmalloc.
30874
30875 PR debug/43084
30876 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
30877 populate vars array.
30878 (create_new_general_access): For debug stmts just reset value.
30879 (get_stmt_accesses): For accesses within debug stmts just record them
30880 using add_access_to_acc_sites instead of preventing the peeling or
30881 counting them as accesses.
30882
30883 PR middle-end/42233
30884 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
30885
30886 2010-02-19 Richard Guenther <rguenther@suse.de>
30887
30888 PR tree-optimization/42916
30889 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
30890 instructions.
30891
30892 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
30893
30894 * configure.ac: Replace all uses of changequote in macro arguments
30895 with proper quoting.
30896
30897 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30898
30899 PR middle-end/42233
30900 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
30901
30902 2010-02-19 Richard Guenther <rguenther@suse.de>
30903
30904 PR tree-optimization/42944
30905 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
30906 test for aliasing with errno.
30907
30908 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30909
30910 PR middle-end/42233
30911 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
30912 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
30913 * dojump.c: Include output.h.
30914 (inv): New inline function.
30915 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
30916 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
30917 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
30918 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
30919 argument, pass it down to other calls.
30920 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
30921 add REG_BR_PROB note to the conditional jump.
30922 * cfgexpand.c (add_reg_br_prob_note): Removed.
30923 (expand_gimple_cond): Don't call it, add the probability
30924 as last argument to jumpif_1/jumpifnot_1.
30925 * Makefile.in (dojump.o): Depend on output.h.
30926 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
30927 callers.
30928 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
30929 * stmt.c (do_jump_if_equal): Likewise.
30930 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
30931 * loop-unswitch.c (compare_and_jump_seq): Likewise.
30932 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
30933 Likewise.
30934 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
30935 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
30936 jumpifnot_1 callers.
30937 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
30938 callers.
30939 (store_expr): Adjust jumpifnot caller.
30940 (store_constructor): Adjust jumpif caller.
30941
30942 PR middle-end/42233
30943 * gimplify.c (gimple_boolify): For __builtin_expect call
30944 gimple_boolify also on its first argument.
30945
30946 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
30947
30948 * configure.ac (gnu-unique-object): Wrap regexps using [] in
30949 changequote block.
30950 (__stack_chk_fail): Ditto. Remove quadrigraphs.
30951 * configure: Regenerated.
30952
30953 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30954
30955 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
30956 lang_hooks.types_compatible_p instead of comptypes.
30957
30958 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
30959
30960 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
30961 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
30962 if __prefer_thumb__ is defined.
30963
30964 2010-02-18 Martin Jambor <mjambor@suse.cz>
30965
30966 PR tree-optimization/43066
30967 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
30968 array with zero-sized element type.
30969
30970 2010-02-18 Jakub Jelinek <jakub@redhat.com>
30971
30972 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
30973 rtx, allocate struct var_loc_node here and return it to the
30974 caller, and only if it is actually needed.
30975 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
30976 move it earlier and return immediately if it returns NULL.
30977
30978 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
30979
30980 * config/sparc/gas.h: New file. Restore
30981 TARGET_ASM_NAMED_SECTION to its ELF default.
30982 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
30983 check !HAVE_GNU_AS.
30984 * config/sparc/sparc.c (sparc_elf_asm_named_section):
30985 Likewise. Add ATTRIBUTE_UNUSED to prototype.
30986 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
30987 after sparc/sysv4.h.
30988
30989 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
30990
30991 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
30992
30993 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
30994
30995 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
30996 patterns from predicated pattern.
30997
30998 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
30999
31000 PR target/43103
31001 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
31002 for insn mnemonic suffix.
31003
31004 2010-02-17 Richard Guenther <rguenther@suse.de>
31005
31006 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
31007 to loop PHI nodes.
31008
31009 2010-02-17 Jakub Jelinek <jakub@redhat.com>
31010
31011 PR debug/42918
31012 * caller-save.c (save_call_clobbered_regs): If BB ends with
31013 a DEBUG_INSN, move any notes in between last real insn and the last
31014 DEBUG_INSN after the last DEBUG_INSN.
31015
31016 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
31017
31018 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
31019 Fix return type. Fix argument type. Explain meaning of return value.
31020
31021 2010-02-16 Richard Guenther <rguenther@suse.de>
31022
31023 PR tree-optimization/41043
31024 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
31025 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
31026 statements ...
31027 (vrp_visit_phi_node): ... but only for loop PHI nodes.
31028
31029 2010-02-16 Ira Rosen <irar@il.ibm.com>
31030
31031 PR tree-optimization/43074
31032 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
31033 * tree-vect-loop.c (vect_analyze_loop_operations): Add
31034 vectorizable cycles in hybrid SLP check.
31035 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
31036
31037 2010-02-16 Richard Guenther <rguenther@suse.de>
31038
31039 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
31040 (true_dependence): If memrefs_conflict_p computes must-alias
31041 trust it. Move TBAA check after offset-based disambiguation.
31042 (canon_true_dependence): Likewise.
31043
31044 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
31045
31046 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
31047 * doc/invoke.texi: Document it.
31048 * var-tracking.c: Include toplev.h and params.h.
31049 (vt_find_locations): Return bool indicating success. Compute
31050 hash sizes unconditionally. Check new parameter, report.
31051 (variable_tracking_main_1): Check vt_find_locations results and
31052 retry. Renamed from...
31053 (variable_tracking_main): ... this. New wrapper to preserve
31054 flag_var_tracking_assignments.
31055 * Makefile.in (var-tracking.o): Adjust dependencies.
31056
31057 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
31058 Jakub Jelinek <jakub@redhat.com>
31059
31060 PR target/42854
31061 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
31062 if weak_import attribute is present.
31063 * config/darwin.c (machopic_select_section): Likewise.
31064
31065 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
31066
31067 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
31068 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
31069 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
31070 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
31071
31072 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
31073 types.
31074
31075 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
31076 Fix argument types.
31077
31078 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
31079 Rewrite text to refer to the names.
31080
31081 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
31082
31083 * config/i386/i386-builtin-types.def
31084 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
31085 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
31086 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
31087 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
31088 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
31089 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
31090 IX86_BUILTIN_VPERMIL2PS256.
31091 (MULTI_ARG_4_DF2_DI_I): Defined.
31092 (MULTI_ARG_4_DF2_DI_I1): Defined.
31093 (MULTI_ARG_4_SF2_SI_I): Defined.
31094 (MULTI_ARG_4_SF2_SI_I1): Defined.
31095 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
31096 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
31097 __builtin_ia32_vpermil2ps256.
31098 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31099 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31100 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
31101 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31102 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31103 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
31104 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
31105 CODE_FOR_xop_vpermil2v8sf3.
31106 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
31107 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
31108 * config/i386/xopintrin.h (_mm_permute2_pd): New.
31109 (_mm256_permute2_pd): New.
31110 (_mm_permute2_ps): New.
31111 (_mm256_permute2_ps): New.
31112
31113 2010-02-15 Nick Clifton <nickc@redhat.com>
31114
31115 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
31116 boolean parameters. Use emit_jump_insn when emitting a pop
31117 instruction containing a return insn.
31118 (push): Use 'true' rather than '1' as second parameter to F.
31119 (h8300_expand_prologue): Likewise.
31120 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
31121 (h8300_expand_epilogue): Likewise.
31122
31123 2010-02-15 Richard Guenther <rguenther@suse.de>
31124
31125 PR middle-end/43068
31126 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
31127 if that is zero.
31128
31129 2010-02-15 Nick Clifton <nickc@redhat.com>
31130
31131 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
31132 delta.
31133
31134 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
31135
31136 * intl.c (fake_ngettext): New function.
31137 * intl.h (fake_ngettext): Declare.
31138 (ngettext): Define macro.
31139 * collect2.c (notice_translated): New function.
31140 (main): Use notice_translated and ngettext.
31141 * collect2.h (notice_translated): Declare.
31142
31143 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
31144
31145 * reorg.c (delete_computation): Comment fixes.
31146 * caller-save.c (setup_save_areas): Idem.
31147 * sel-sched-dump.c (dump_lv_set): Idem.
31148 * rtl.def: Idem.
31149
31150 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31151
31152 * config/s390/s390.c (s390_sched_init): New function.
31153 (TARGET_SCHED_INIT): Target hook defined.
31154
31155 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
31156 Jack Howarth <howarth@bromo.med.uc.edu>
31157 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
31158
31159 PR target/42982
31160 Partial revert of unintended change in fix for PR41605.
31161 * config/darwin.h: Fix typo.
31162 * config/darwin9.h: Same.
31163
31164 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31165
31166 * c-pch.c (pch_init): Clear v.
31167
31168 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31169
31170 PR middle-end/42930
31171 * graphite-scop-detection.c (graphite_can_represent_scev): Call
31172 graphite_can_represent_init for MULT_EXPR.
31173
31174 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31175
31176 PR middle-end/42914
31177 PR middle-end/42530
31178 * graphite-sese-to-poly.c (remove_phi): New.
31179 (translate_scalar_reduction_to_array): Call remove_phi.
31180
31181 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31182
31183 PR middle-end/42771
31184 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
31185 * graphite-clast-to-gimple.h (gloog): Update declaration.
31186 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
31187 * graphite-poly.h (struct poly_bb): Add missing comments.
31188 (struct scop): Add poly_scop_p field.
31189 (POLY_SCOP_P): New.
31190 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
31191 * graphite.c (graphite_transform_loops): Build the polyhedral
31192 representation for each scop before code generation.
31193 * sese.c (rename_variables_in_operand): Removed.
31194 (rename_variables_in_expr): Return the renamed expression.
31195 (rename_sese_parameters): New.
31196 * sese.h (rename_sese_parameters): Declared.
31197
31198 2010-02-11 Richard Guenther <rguenther@suse.de>
31199
31200 PR tree-optimization/42998
31201 * tree-ssa-pre.c (create_expression_by_pieces): Treat
31202 POINTER_PLUS_EXPR properly.
31203
31204 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31205 Changpeng Fang <changpeng.fang@amd.com>
31206
31207 PR middle-end/40886
31208 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
31209 the cost of an IV candidate when the IV is used in a test against zero.
31210
31211 * gcc.dg/tree-ssa/ivopts-3.c: New.
31212
31213 2010-02-11 Richard Guenther <rguenther@suse.de>
31214
31215 PR lto/41664
31216 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
31217 pointer-vs-decl case by swapping refs. Handle some cases
31218 of pointer-vs-decl disambiguations more conservatively.
31219 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
31220 to false after expanding.
31221
31222 2010-02-11 Richard Guenther <rguenther@suse.de>
31223
31224 PR driver/43021
31225 * gcc.c (process_command): Handle LTO file@offset case more
31226 appropriately.
31227
31228 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31229
31230 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
31231 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
31232 of DEBUG_INSNs.
31233 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
31234
31235 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
31236 if MEM's mode size isn't DWARF2_ADDR_SIZE.
31237 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
31238 Optimize eq/ne comparisons when both arguments are known to be
31239 zero-extended.
31240 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
31241 Don't mask operands unnecessarily if they are known to be already
31242 zero-extended.
31243
31244 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
31245
31246 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
31247 instead of loop.
31248
31249 2010-02-10 Richard Guenther <rguenther@suse.de>
31250
31251 PR tree-optimization/43017
31252 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
31253 for wrapping signed arithmetic.
31254
31255 2010-02-10 Jakub Jelinek <jakub@redhat.com>
31256
31257 PR debug/43010
31258 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
31259 if no debug info should be emitted for it.
31260
31261 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
31262
31263 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
31264 note when flag_exceptions is set.
31265
31266 2010-02-10 Duncan Sands <baldrick@free.fr>
31267
31268 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
31269
31270 2010-02-10 Richard Guenther <rguenther@suse.de>
31271
31272 PR c/43007
31273 * tree.c (get_unwidened): Handle constants.
31274 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
31275
31276 2010-02-10 Martin Jambor <mjambor@suse.cz>
31277
31278 PR lto/42985
31279 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
31280 check for variable argument counts independently.
31281
31282 2010-02-10 Christian Bruel <christian.bruel@st.com>
31283
31284 PR target/42841
31285 * config/sh/sh.c (find_barrier): Increase length for non delayed
31286 conditional branches.
31287
31288 2010-02-10 Christian Bruel <christian.bruel@st.com>
31289
31290 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
31291
31292 2010-02-10 Jakub Jelinek <jakub@redhat.com>
31293
31294 * builtins.c (set_builtin_user_assembler_name): Also handle
31295 ffs if int is smaller than word.
31296
31297 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
31298
31299 PR middle-end/42973
31300 * ira-conflicts.c (get_dup): Remove.
31301 (process_reg_shuffles): Add new parameter. Use it as an
31302 additional guard for copy generation.
31303 (add_insn_allocno_copies): Rewrite.
31304
31305 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
31306
31307 * common.opt (fsched2-use-traces): Preserved for backward
31308 compatibility.
31309 * doc/invoke.texi: Remove the documentation about option
31310 -fsched2-use-traces.
31311 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
31312 flag_sched2_use_traces.
31313 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
31314 the backward compatibility flag section.
31315
31316 2010-02-09 Richard Guenther <rguenther@suse.de>
31317
31318 PR tree-optimization/43008
31319 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
31320 make HEAP variables initialized from global memory if they
31321 are not known builtin functions.
31322 (find_func_aliases): Adjust.
31323
31324 2010-02-09 Richard Guenther <rguenther@suse.de>
31325
31326 PR tree-optimization/43000
31327 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
31328 arithmetic manually.
31329
31330 2010-02-08 Jakub Jelinek <jakub@redhat.com>
31331
31332 PR tree-optimization/42931
31333 * tree-loop-linear.c (try_interchange_loops): Don't call
31334 double_int_mul if estimated_loop_iterations failed.
31335
31336 2010-02-08 Martin Jambor <mjambor@suse.cz>
31337
31338 PR middle-end/42898
31339 * tree-sra.c (build_accesses_from_assign): Do not mark in
31340 should_scalarize_away_bitmap if stmt has volatile ops.
31341 (sra_modify_assign): Do not process assigns piecemeal if if stmt
31342 has volatile ops.
31343
31344 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
31345
31346 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
31347
31348 2010-02-07 Adam Nemet <adambnmet@gmail.com>
31349
31350 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
31351 before the pattern.
31352
31353 2010-02-07 Andrew Pinski <pinskia@gmail.com>
31354
31355 PR middle-end/42946
31356 * df-core.c (df_finish_pass): Change type of saved_flags to int.
31357
31358 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
31359
31360 PR middle-end/42988
31361 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
31362 to unknown_dependence.
31363 (graphite_legal_transform_dr): Handle the unknown_dependence.
31364 (graphite_carried_dependence_level_k): Same.
31365
31366 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
31367
31368 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
31369
31370 2010-02-07 Richard Guenther <rguenther@suse.de>
31371
31372 PR middle-end/42991
31373 * expr.c (get_inner_reference): Always initialize *pbitsize.
31374
31375 2010-02-07 Richard Guenther <rguenther@suse.de>
31376
31377 PR middle-end/42956
31378 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
31379 new ARRAY_REFs on variable size element or minimal index arrays.
31380 Complete.
31381 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
31382 gimple_fold_indirect_ref.
31383
31384 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
31385
31386 PR target/42957
31387 * arm.c (arm_override_options): Just return if the user has specified
31388 an invalid fpu name.
31389
31390 2010-02-03 Jason Merrill <jason@redhat.com>
31391
31392 PR c++/42870
31393 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
31394 i386_pe_maybe_record_exported_symbol.
31395
31396 2010-02-05 Steve Ellcey <sje@cup.hp.com>
31397
31398 PR target/42924
31399 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
31400 (pa_delegitimize_address): New function.
31401
31402 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
31403
31404 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
31405 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
31406
31407 2010-02-05 Richard Guenther <rguenther@suse.de>
31408
31409 PR lto/42762
31410 * lto-streamer-in.c (get_resolution): Deal with references
31411 to undefined functions.
31412
31413 2010-02-05 Richard Guenther <rguenther@suse.de>
31414
31415 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
31416 (fold_const_aggregate_ref): Likewise.
31417 (ccp_fold_stmt): Substitute loads.
31418 (maybe_fold_reference): Verify types before substituting.
31419 Unshare properly.
31420 (fold_gimple_assign): Unshare properly.
31421 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
31422
31423 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
31424
31425 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
31426 for rs6000_gen_cell_microcode.
31427
31428 2010-02-04 Richard Guenther <rguenther@suse.de>
31429
31430 PR rtl-optimization/42952
31431 * dse.c (const_or_frame_p): Remove MEM handling.
31432
31433 2010-02-04 Nick Clifton <nickc@redhat.com>
31434
31435 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
31436 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31437 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
31438 (mn10300_asm_output_mi_thunk): New function.
31439 (mn10300_can_output_mu_thunk): New function.
31440 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
31441 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
31442 (FUNCTION_ARG): Delete incorrect comment.
31443
31444 2010-02-03 Jason Merrill <jason@redhat.com>
31445
31446 PR c++/40138
31447 * fold-const.c (operand_equal_p): Handle erroneous types.
31448
31449 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
31450
31451 * config/h8300/h8300.md (can_delay): Fix attibute condition.
31452
31453 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
31454
31455 PR rtl-optimization/42941
31456 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
31457 of xmalloc.
31458
31459 2010-02-03 Jason Merrill <jason@redhat.com>
31460
31461 PR c++/35652
31462 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
31463
31464 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
31465
31466 PR debug/42896
31467 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
31468 (cselib_reset_table): Renamed from...
31469 (cselib_reset_table_with_next_value): ... this.
31470 (cselib_get_next_uid): Renamed from...
31471 (cselib_get_next_unknown_value): ... this.
31472 * cselib.c (next_uid): Renamed from...
31473 (next_unknown_value): ... this.
31474 (cselib_clear_table): Adjust.
31475 (cselib_reset_table): Adjust. Renamed from...
31476 (cselib_reset_table_with_next_value): ... this.
31477 (cselib_get_next_uid): Adjust. Renamed from...
31478 (cselib_get_next_unknown_value): ... this.
31479 (get_value_hash): Use hash.
31480 (cselib_hash_rtx): Likewise.
31481 (new_cselib_val): Adjust. Set and dump uid.
31482 (cselib_lookup_mem): Pass next_uid as hash.
31483 (cselib_subst_to_values): Likewise.
31484 (cselib_log_lookup): Dump uid.
31485 (cselib_lookup): Pass next_uid as hash. Adjust.
31486 (cselib_process_insn): Adjust.
31487 (cselib_init): Initialize next_uid.
31488 (cselib_finish): Adjust.
31489 (dump_cselib_table): Likewise.
31490 * dse.c (canon_address): Dump value uid.
31491 * print-rtl.c (print_rtx): Print value uid.
31492 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
31493 (dvuid): New type.
31494 (dv_uid): New function, sort of renamed from...
31495 (dv_htab_hash): ... this, reimplemented in terms of it and...
31496 (dv_uid2hash): ... this. New.
31497 (variable_htab_eq): Drop excess assertions.
31498 (tie_break_pointers): Removed.
31499 (canon_value_cmp): Compare uids.
31500 (variable_post_merge_New_vals): Print uids.
31501 (vt_add_function_parameters): Adjust.
31502 (vt_initialize): Reset table. Adjust.
31503
31504 2010-02-03 Richard Guenther <rguenther@suse.de>
31505
31506 PR tree-optimization/42944
31507 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
31508 (call_may_clobber_ref_p_1): Likewise. Properly handle
31509 malloc and calloc clobbering errno.
31510
31511 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
31512
31513 * doc/invoke.texi: Fix name of sched1 dump.
31514
31515 * opts.c (decode_options): Set flag_tree_switch_conversion
31516 only conditionally on optimize >= 2.
31517
31518 * gcse.c: Assorted comment fixes in pass description.
31519
31520 2010-02-03 Anthony Green <green@moxielogic.com>
31521
31522 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
31523 nop padding in order to maintain alignment of storage location of
31524 target function address.
31525 (moxie_trampoline_init): Store target function address at newly
31526 aligned location.
31527 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
31528 to 32.
31529 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
31530
31531 2010-02-03 Richard Guenther <rguenther@suse.de>
31532
31533 PR middle-end/42927
31534 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
31535
31536 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31537
31538 * config.gcc: Reenable check for obsolete targets.
31539 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
31540 mips-sgi-irix6.[0-4]*.
31541
31542 2010-02-02 Nick Clifton <nickc@redhat.com>
31543
31544 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
31545 constant size of 4 as being the same as 0.
31546 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
31547 can take values in the range 0..4.
31548
31549 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
31550
31551 PR java/41991
31552 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
31553 as _darwin10_Unwind_FindEnclosingFunction().
31554 * libgcc-libsystem.ver: New.
31555
31556 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
31557
31558 PR target/41399
31559 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
31560 implicitly set registers.
31561
31562 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
31563
31564 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
31565 (arm_override_options): Allow automatic selection of the thread
31566 pointer register if thumb2.
31567 (legitimize_pic_address): Improve code sequences for Thumb2.
31568 (arm_call_tls_get_addr): Likewise.
31569 (legitimize_tls_address): Likewise.
31570 * arm.md (pic_load_addr_arm): Delete. Replace with ...
31571 (pic_load_addr_32bit): ... this. New named pattern.
31572 * thumb2.md (pic_load_addr_thumb2): Delete.
31573 (pic_load_dot_plus_four): Delete.
31574 (tls_load_dot_plus_four): New named pattern.
31575
31576 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31577
31578 PR libgomp/29986
31579 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
31580 Document fix for TLS bug.
31581
31582 2010-01-31 Richard Guenther <rguenther@suse.de>
31583
31584 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
31585 conservatively correct.
31586
31587 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31588
31589 PR target/42850
31590 Revert:
31591 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31592
31593 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
31594
31595 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31596
31597 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
31598
31599 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
31600
31601 * config.gcc: Adjust order of makefile fragments for mingw targets.
31602
31603 2010-01-31 Richard Guenther <rguenther@suse.de>
31604
31605 PR middle-end/42898
31606 * gimplify.c (gimplify_init_constructor): For volatile LHS
31607 initialize a temporary.
31608
31609 2010-01-31 Matthias Klose <doko@ubuntu.com>
31610
31611 * configure.ac: Fix __stack_chk_fail check for cross builds configured
31612 --with-headers
31613 * configure: Regenerate.
31614
31615 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
31616
31617 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
31618 the same alias set and their sizes different constantness.
31619 (aliasing_component_refs_p): Revert 2009-10-24 change.
31620
31621 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31622
31623 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
31624 unused.
31625
31626 2010-01-29 Richard Guenther <rguenther@suse.de>
31627
31628 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
31629 Assert we successfully updated the call.
31630
31631 2010-01-29 Jakub Jelinek <jakub@redhat.com>
31632
31633 PR rtl-optimization/42889
31634 * df.h (df_set_bb_dirty_nonlr): New prototype.
31635 * df-core.c (df_set_bb_dirty_nonlr): New function.
31636 * df-scan.c (df_insn_rescan): Call it instead of
31637 df_set_bb_dirty for DEBUG_INSNs.
31638
31639 2010-01-29 Richard Guenther <rguenther@suse.de>
31640
31641 PR middle-end/37448
31642 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
31643 quadratic behavior in most cases.
31644
31645 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
31646
31647 PR target/42891
31648 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
31649 in the call to gen_x86_movsicc_0_m1.
31650
31651 2010-01-28 Richard Guenther <rguenther@suse.de>
31652
31653 PR tree-optimization/42871
31654 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
31655
31656 2010-01-28 Richard Guenther <rguenther@suse.de>
31657
31658 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
31659 into call arguments.
31660
31661 2010-01-28 Richard Guenther <rguenther@suse.de>
31662
31663 PR middle-end/42883
31664 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
31665 the forwarder if the destination is an EH landing pad.
31666
31667 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
31668
31669 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
31670 block list passed to gimple_duplicate_sese_tail.
31671 (parallelize_loops): Avoid parallelization when the function
31672 has_nonlocal_label.
31673 Avoid parallelization when the preheader is IRREDUCIBLE.
31674 Try to optimize when estimated_loop_iterations_int is unresolved.
31675 Add the loop's location to the dump file.
31676 * tree-cfg.c (add_phi_args_after_redirect): Remove.
31677 (gimple_duplicate_sese_tail): Remove the check for the latch.
31678 Redirect nexits to the exit block.
31679 Remove handling of the incoming edges to the latch.
31680 Redirect the backedge from the copied latch to the exit bb.
31681
31682 2010-01-28 Michael Matz <matz@suse.de>
31683
31684 PR target/42881
31685 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
31686 Wrap force_reg into a sequence, emit it before user.
31687
31688 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
31689
31690 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
31691 (arm_rev): New.
31692 (arm_legacy_rev): Likewise.
31693 (thumb_legacy_rev): Likewise.
31694
31695 2010-01-27 Jakub Jelinek <jakub@redhat.com>
31696
31697 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
31698 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
31699 on MEM's address failed, try avoid_constant_pool_reference and
31700 recurse if it returned something different.
31701 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
31702 address, try avoid_constant_pool_reference and recurse if it
31703 returned something different.
31704 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
31705 address and avoid_constant_pool_reference returned something
31706 different, don't set have_address.
31707
31708 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
31709
31710 PR debug/42861
31711 * var-tracking.c (val_store): Add modified argument, obey it.
31712 Adjust callers.
31713 (count_uses): Move down logging of main.
31714 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
31715 don't need resolution.
31716 (emit_notes_in_bb): Likewise.
31717
31718 2010-01-27 Richard Guenther <rguenther@suse.de>
31719
31720 PR middle-end/42878
31721 * tree-inline.c (remap_decl): Delay remapping of SSA name
31722 default definitions until we need them.
31723
31724 2010-01-27 Jakub Jelinek <jakub@redhat.com>
31725
31726 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
31727 (rs6000_delegitimize_address): New function.
31728
31729 * config/s390/s390.c (s390_delegitimize_address): Call
31730 delegitimize_mem_from_attrs.
31731
31732 PR middle-end/42874
31733 * tree-inline.c (cannot_copy_type_1): Removed.
31734 (copy_forbidden): Don't forbid copying of functions containing
31735 records/unions with variable length fields.
31736
31737 2010-01-27 Christian Bruel <christian.bruel@st.com>
31738
31739 Revert:
31740 PR target/42841
31741 * config/sh/sh.c (find_barrier): Increase length for non delayed
31742 conditional branches.
31743
31744 2010-01-27 Matthias Klose <doko@ubuntu.com>
31745
31746 * configure.ac (gnu-unique-object): Fix ldd version check.
31747 * configure: Regenerate.
31748
31749 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31750
31751 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
31752 HAVE_GNU_AS value.
31753 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
31754 Test for HAVE_GNU_AS value.
31755
31756 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31757
31758 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
31759 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
31760 INT64_TYPE): Define.
31761 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
31762 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
31763 INT_LEAST64_TYPE): Define.
31764 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
31765 UINT_LEAST64_TYPE): Define.
31766 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
31767 INT_FAST64_TYPE): Define.
31768 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
31769 UINT_FAST64_TYPE): Define.
31770 (INTMAX_TYPE, UINTMAX_TYPE): Define.
31771 (INTPTR_TYPE, UINTPTR_TYPE): Define.
31772 (SIG_ATOMIC_TYPE): Define.
31773
31774 2010-01-26 Richard Guenther <rguenther@suse.de>
31775
31776 * df-scan.c (df_scan_set_bb_info): Remove assert.
31777 (df_insn_rescan_debug_internal): Merge asserts.
31778 (df_install_ref): Likewise.
31779 (df_mark_reg): Use bitmap_set_range.
31780 (df_hard_reg_used_p): Remove assert.
31781 (df_hard_reg_used_count): Likewise.
31782
31783 2010-01-26 Richard Guenther <rguenther@suse.de>
31784
31785 PR rtl-optimization/42685
31786 * web.c (web_main): Ignore DEBUG_INSNs.
31787
31788 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
31789
31790 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
31791
31792 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
31793 Fix types of fndecl and arglist parameters.
31794
31795 2010-01-26 Richard Guenther <rguenther@suse.de>
31796
31797 PR middle-end/42806
31798 * tree-eh.c (unsplit_eh): Skip debug insns.
31799
31800 2010-01-26 Richard Guenther <rguenther@suse.de>
31801
31802 PR tree-optimization/42250
31803 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
31804
31805 2010-01-26 Jakub Jelinek <jakub@redhat.com>
31806
31807 PR fortran/42866
31808 * omp-low.c (expand_omp_sections): Only use single_pred if
31809 l2_bb is single_pred_p.
31810
31811 2010-01-25 Christian Bruel <christian.bruel@st.com>
31812
31813 PR target/42841
31814 * config/sh/sh.c (find_barrier): Increase length for non delayed
31815 conditional branches.
31816 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
31817
31818 2010-01-24 David S. Miller <davem@davemloft.net>
31819
31820 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
31821 define if not using GAS.
31822 * config/sparc/sparc.c (sparc_elf_asm_named_section):
31823 Likewise. Delete SECTION_MERGE code, which is only applicable
31824 when using GAS.
31825
31826 2010-01-24 Mark Mitchell <mark@codesourcery.com>
31827
31828 PR c++/42748
31829 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
31830 mangling of va_list in system headers.
31831
31832 2010-01-23 Toon Moene <toon@moene.org>
31833
31834 * tree-predcom.c (combine_chains): Return NULL, not false.
31835
31836 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
31837
31838 * tree-loop-distribution.c (distribute_loop): Fix declaration and
31839 initialization of variable res to agree with return type.
31840
31841 2010-01-22 Steve Ellcey <sje@cup.hp.com>
31842
31843 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
31844 * tree-sra.c: Add include of expr.h.
31845
31846 2010-01-22 Jakub Jelinek <jakub@redhat.com>
31847
31848 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
31849 insert the debug stmt on the single non-EH edge from the stmt.
31850
31851 2010-01-22 Richard Henderson <rth@redhat.com>
31852
31853 PR tree-opt/42833
31854 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
31855 the RHS until after generate_subtree_copies has insertted its
31856 code before the current statement.
31857
31858 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
31859
31860 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
31861
31862 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
31863
31864 2010-01-21 Martin Jambor <mjambor@suse.cz>
31865
31866 PR tree-optimization/42585
31867 * tree-sra.c (struct access): New field grp_total_scalarization.
31868 (dump_access): Dump the new field.
31869 (should_scalarize_away_bitmap): New variable.
31870 (cannot_scalarize_away_bitmap): Likewise.
31871 (sra_initialize): Allocate new bitmaps.
31872 (sra_deinitialize): Free new bitmaps.
31873 (create_access_1): New function.
31874 (create_access): Parts moved to create_access_1.
31875 (type_consists_of_records_p): New function.
31876 (completely_scalarize_record): Likewise.
31877 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
31878 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
31879 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
31880 access.
31881 (analyze_all_variable_accesses): Completely scalarize small eligible
31882 records.
31883
31884 2010-01-21 Martin Jambor <mjambor@suse.cz>
31885
31886 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
31887
31888 2010-01-21 Andrew Haley <aph@redhat.com>
31889
31890 * gcc.c (process_command): Move lang_specific_driver before
31891 setting cc_libexec_prefix.
31892
31893 2010-01-21 Richard Guenther <rguenther@suse.de>
31894
31895 PR middle-end/19988
31896 * fold-const.c (negate_expr_p): Pretend only negative
31897 real constants are easily negatable.
31898
31899 2010-01-20 Janis Johnson <janis187@us.ibm.com>
31900 Jason Merrill <jason@redhat.com>
31901
31902 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
31903 (TYPE_TRANSPARENT_AGGR): this, for union and record.
31904 * calls.c (initialize argument_information): Handle it.
31905 * c-common.c (handle_transparent_union_attribute): Use new name.
31906 * c-decl.c (finish_struct): Ditto.
31907 * c-typeck.c (type_lists_compatible_p): Ditto.
31908 (convert_for_assignment): Use new name and also handle record.
31909 * function.c (aggregate_value_p): Handle it.
31910 (pass_by_reference): Ditto.
31911 (assign_parm_data_types): Ditto.
31912 * print-tree.c (print_node): Ditto.
31913 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
31914 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
31915 * tree.c (first_field): New fn.
31916
31917 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
31918
31919 PR target/42818
31920 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
31921 even when linking statically, for now.
31922
31923 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
31924
31925 PR debug/42715
31926 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
31927 without a cselib val.
31928 (count_uses): Accept MO_VAL_SET with no val on stores.
31929 (add_stores): Likewise.
31930
31931 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31932
31933 * var-tracking.c (check_value_val): Add a compile time assertion.
31934 (dv_is_decl_p): Simplify.
31935 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
31936 gcc_assert if ENABLE_CHECKING.
31937
31938 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
31939
31940 PR debug/42782
31941 * var-tracking.c: Include tree-flow.h.
31942 (mem_dies_at_call): New.
31943 (dataflow_set_preserve_mem_locs): Use it.
31944 (dataflow_set_remove_mem_locs): Likewise.
31945 (dump_var): Renamed from dump_variable. Adjust all callers.
31946 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
31947 * Makefile.in (var-tracking.o): Adjust deps.
31948
31949 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
31950
31951 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
31952
31953 2010-01-20 Richard Guenther <rguenther@suse.de>
31954
31955 PR tree-optimization/42717
31956 * tree-ssa-dce.c (get_live_post_dom): Remove.
31957 (forward_edge_to_pdom): Take an arbitrary edge to copy
31958 degenerate PHI args from.
31959 (remove_dead_stmt): Use the first post-dominator even if it
31960 does not contain live statements as redirection destination.
31961
31962 2010-01-20 Richard Guenther <rguenther@suse.de>
31963
31964 * tree-inline.c (estimate_num_insns): Handle EH builtins.
31965
31966 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31967
31968 * sel-sched.c (create_speculation_check): Remove set but not used
31969 variable twin.
31970 (try_transformation_cache): Remove set but not used variable ds.
31971 (calculate_privileged_insns): Remove set but not used variables
31972 cur_insn and min_spec_insn.
31973 (find_best_expr): Remove set but not used variable avail_n.
31974 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
31975 variable e.
31976 * cgraphunit.c (assemble_thunk): Remove set but not used variable
31977 false_label.
31978 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
31979 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
31980 new_scop_exit_edge.
31981
31982 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
31983
31984 PR bootstrap/42786
31985 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
31986 cpu types. Add support for *-sse3 cpu types.
31987 (x86_64-*-*): Ditto.
31988
31989 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31990
31991 PR middle-end/42803
31992 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
31993 argument, call initializer_constant_valid_p_1 instead of
31994 initializer_constant_valid_p, pass CACHE to it, return NULL
31995 immediately if first call returns NULL.
31996 (initializer_constant_valid_p_1): New function.
31997 (initializer_constant_valid_p): Use it.
31998
31999 2010-01-20 Thomas Quinot <quinot@adacore.com>
32000
32001 * tree.def (PLACEHOLDER_EXPR): Fix comment.
32002
32003 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32004
32005 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
32006 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
32007 (loc_list_from_tree): Don't handle unsigned division. Handle
32008 signed modulo using DW_OP_{over,over,div,mul,minus}.
32009 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
32010 modulo instead of signed.
32011
32012 2010-01-20 DJ Delorie <dj@redhat.com>
32013
32014 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
32015 (Fpa): Pass it
32016 (h8300_emit_stack_adjustment): Propogate it.
32017 (push): Pass it.
32018 (h8300_expand_prologue): Likewise.
32019 (h8300_expand_epilogue): Likewise.
32020
32021 2010-01-19 Michael Matz <matz@suse.de>
32022
32023 PR tree-optimization/41783
32024 * tree-data-ref.c (toplevel): Include flags.h.
32025 (dump_data_dependence_relation): Also dump the inputs if the
32026 result will be unknown.
32027 (split_constant_offset_1): Look through some conversions.
32028 * tree-predcom.c (determine_roots_comp): Restart a new chain if
32029 the offset from last element is too large.
32030 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
32031 (reassociate_to_the_same_stmt): Handle vector registers.
32032 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
32033 (e.g. conversions).
32034 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
32035 wide_prolog_niters argument, emit widening instructions.
32036 (vect_do_peeling_for_alignment): Adjust caller, use widened
32037 variant of the iteration cound.
32038 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
32039
32040 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32041
32042 PR target/38697
32043 * config/arm/neon-testgen.m (emit_automatics): New parameter
32044 features. Adjust for Fixed_return_reg feature.
32045 (test_intrinsic): Call emit_automatics with new feature.
32046 * config/arm/neon.ml: Update copyright years.
32047 (features): New Fixed_return_reg feature.
32048 (ops): Update feature for Vget_low.
32049
32050 2010-01-19 Jakub Jelinek <jakub@redhat.com>
32051
32052 PR tree-optimization/42719
32053 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
32054 stmt uses.
32055
32056 PR debug/42728
32057 * fwprop.c (all_uses_available_at): Return false if def_set dest
32058 is a REG that is used in def_insn.
32059
32060 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
32061
32062 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
32063
32064 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
32065 Add argument names.
32066
32067 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
32068
32069 * target.h (struct gcc_target) <secondary_reload>: Change type
32070 of last argument to secondary_reload_info *.
32071
32072 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
32073
32074 PR target/42774
32075 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
32076 memory references with unaligned offsets. Remove CQImode handling.
32077 (unaligned_memory_operand): Return 1 for memory references with
32078 unaligned offsets. Remove CQImode handling.
32079
32080 2010-01-18 Richard Guenther <rguenther@suse.de>
32081
32082 PR middle-end/39954
32083 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
32084 builtin calls.
32085
32086 2010-01-18 Richard Guenther <rguenther@suse.de>
32087
32088 PR tree-optimization/42781
32089 * tree-ssa-structalias.c (find_what_var_points_to): Skip
32090 restrict processing only if the original variable was artificial.
32091
32092 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
32093
32094 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
32095 find number of popped argument bytes.
32096
32097 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
32098 Fix the text that describes the return value for invalid insns.
32099
32100 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
32101
32102 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
32103 Clarify what 'cost of the -dependence' is. Fix quoting.
32104
32105 * toplev.c (default_get_pch_validity): Rename argument to "sz".
32106 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
32107
32108 2010-01-17 Jakub Jelinek <jakub@redhat.com>
32109
32110 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
32111 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
32112
32113 2010-01-17 Richard Guenther <rguenther@suse.de>
32114
32115 PR middle-end/42248
32116 * function.c (split_complex_args): Take a VEC to modify.
32117 (assign_parms_augmented_arg_list): Build a VEC instead of
32118 a chain of PARM_DECLs.
32119 (assign_parms_unsplit_complex): Take a VEC of arguments.
32120 Do not fixup unmodified parms.
32121 (assign_parms): Deal with the VEC.
32122 (gimplify_parameters): Likewise.
32123
32124 2010-01-17 Richard Guenther <rguenther@suse.de>
32125
32126 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
32127 node existence check.
32128 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
32129 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
32130 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
32131 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
32132 (gimple_execute_on_growing_pred): Likewise.
32133
32134 2010-01-17 Richard Guenther <rguenther@suse.de>
32135
32136 PR tree-optimization/42773
32137 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
32138 (compute_antic_aux): Likewise.
32139 (compute_partial_antic_aux): Likewise.
32140
32141 2010-01-17 Jie Zhang <jie.zhang@analog.com>
32142
32143 PR debug/42767
32144 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
32145 and US_TRUNCATE.
32146
32147 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
32148
32149 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
32150 appearance.
32151
32152 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
32153 Fix markup for strict argument.
32154
32155 (TARGET_SCHED_REORDER2): Fix argument types.
32156
32157 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
32158 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
32159
32160 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
32161 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
32162
32163 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
32164 Add argument name.
32165
32166 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
32167 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
32168 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
32169 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
32170 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
32171
32172 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
32173
32174 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
32175
32176 (TARGET_ASM_RELOC_RW_MASK): Add return type.
32177 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
32178
32179 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
32180
32181 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
32182 Use prototype.
32183
32184 (TARGET_ASM_NAMED_SECTION): Fix argument list.
32185
32186 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
32187 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
32188
32189 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
32190
32191 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
32192
32193 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
32194 referring to it. Fix language.
32195
32196 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
32197
32198 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
32199
32200 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
32201
32202 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
32203
32204 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
32205 '@var{stream}. Remove stray 'and'.
32206
32207 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
32208
32209 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
32210
32211 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
32212
32213 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
32214 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
32215
32216 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
32217 Fix description of return value.
32218 Rename argument "sz" to "len."
32219
32220 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
32221 Clarify meaning of 'true' return value.
32222
32223 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
32224
32225 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
32226 rep_mode versus mode_rep.
32227
32228 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
32229
32230 (TARGET_BUILTIN_DECL): Fix name.
32231
32232 (TARGET_COMMUTATIVE_P): Fix type of first argument.
32233
32234 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
32235
32236 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
32237
32238 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
32239
32240 (TARGET_RELAXED_ORDERING): Use @deftypevr.
32241
32242 (TARGET_GET_DRAP_RTX): Note that this is a hook.
32243 Clarify language.
32244
32245 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
32246 Rename argument tm_fn to md_fn.
32247
32248 (TARGET_OPTION_PRINT): Fix argument list.
32249
32250 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
32251
32252 PR target/42664
32253 * config/i386/i386.c (ix86_fixup_binary_operands):
32254 Revert FMA4 fixup of operands.
32255
32256 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32257
32258 PR gcc/42525
32259 * Makefile.in (write_entries_to_file, install-plugin):
32260 Use \012 instead of \n with tr.
32261
32262 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
32263
32264 * configure.ac (HAVE_AS_REF): New C macro.
32265 * configure: Regenerate.
32266 * config.in: Likewise.
32267 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
32268 if HAVE_AS_REF.
32269 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
32270 if HAVE_AS_REF.
32271
32272 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
32273
32274 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
32275
32276 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
32277
32278 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
32279
32280 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
32281
32282 (TARGET_IN_SMALL_DATA_P): Fix argument type.
32283
32284 (TARGET_BINDS_LOCAL_P): Fix argument type.
32285
32286 (TARGET_ASM_FILE_END): Use prototype.
32287
32288 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
32289
32290 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
32291
32292 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
32293
32294 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
32295
32296 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
32297 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
32298
32299 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
32300 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
32301
32302 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
32303 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
32304 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
32305 (TARGET_ADDR_SPACE_CONVERT): Likewise.
32306
32307 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
32308
32309 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
32310
32311 (TARGET_INIT_BUILTINS): Use prototype.
32312
32313 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
32314 Put 'const char *' in braces. Fix parameter types.
32315 (TARGET_INVALID_CONVERSION): Fix parameter types.
32316 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
32317 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
32318
32319 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
32320 Fix argument type.
32321
32322 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
32323
32324 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
32325
32326 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
32327
32328 * doc/tm.texi (TARGET_HELP): Fix return type.
32329
32330 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
32331 in braces. Fix argument types.
32332
32333 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
32334
32335 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
32336
32337 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
32338
32339 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
32340 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
32341
32342 (TARGET_MANGLE_TYPE): Fix argument types.
32343
32344 (TARGET_IRA_COVER_CLASSES): Use prototype.
32345
32346 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
32347
32348 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
32349
32350 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
32351
32352 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
32353
32354 (TARGET_CALLEE_COPIES): Fix argument types.
32355
32356 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
32357
32358 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
32359
32360 (TARGET_FUNCTION_VALUE): Fix argument types.
32361
32362 (TARGET_RETURN_IN_MSB): Fix argument type.
32363
32364 (TARGET_RETURN_IN_MEMORY): Fix argument types.
32365
32366 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
32367
32368 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
32369
32370 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
32371 agree with return type.
32372
32373 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
32374
32375 2010-01-15 Jing Yu <jingyu@google.com>
32376
32377 PR rtl-optimization/42691
32378 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
32379 a pseudo to a constant and are merged, and adjust comments.
32380
32381 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
32382
32383 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
32384
32385 2010-01-15 Richard Guenther <rguenther@suse.de>
32386
32387 PR middle-end/42739
32388 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
32389 labels of computed or non-local gotos to the destination.
32390 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
32391 landing pad label is the first label.
32392
32393 2010-01-15 Richard Guenther <rguenther@suse.de>
32394
32395 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
32396
32397 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
32398
32399 PR target/42747
32400 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
32401 to allow generation of the xssqrtdp instruction on power7.
32402 (sqrtdf2_fpr): Ditto.
32403
32404 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32405
32406 PR middle-end/42674
32407 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
32408 functions with noreturn attribute.
32409
32410 PR c++/42608
32411 * varasm.c (declare_weak): Add weak attribute to decl if it
32412 doesn't have one already.
32413 (assemble_external): Only add decls to weak_decls if they also
32414 have weak attribute.
32415
32416 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
32417
32418 * var-tracking.c (var_reg_delete): Don't delete the association
32419 between REGs and values or one-part variables if the register
32420 isn't clobbered.
32421
32422 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32423
32424 PR debug/42657
32425 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
32426 because its first operand is a non-localized variable.
32427
32428 2010-01-14 Martin Jambor <mjambor@suse.cz>
32429
32430 PR tree-optimization/42706
32431 * tree-sra.c (encountered_recursive_call): New variable.
32432 (encountered_unchangable_recursive_call): Likewise.
32433 (sra_initialize): Initialize both new variables.
32434 (callsite_has_enough_arguments_p): New function.
32435 (scan_function): Call decl and flags check only for IPA-SRA, check
32436 whether there is a recursive call and whether it has enough arguments.
32437 (all_callers_have_enough_arguments_p): New function.
32438 (convert_callers): Look for recursive calls only when
32439 encountered_recursive_call is set.
32440 (ipa_early_sra): Bail out either if
32441 !all_callers_have_enough_arguments_p or
32442 encountered_unchangable_recursive_call.
32443
32444 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32445
32446 * sel-sched.c: Add 2010 to copyright years.
32447 * sel-sched-ir.c: Likewise.
32448 * sel-sched-ir.h: Likewise.
32449
32450 2010-01-14 Martin Jambor <mjambor@suse.cz>
32451
32452 PR tree-optimization/42714
32453 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
32454 constructors specially.
32455
32456 2010-01-14 Andi Kleen <ak@linux.intel.com>
32457
32458 * config/i386/drivers-i386.c (detect_caches_intel):
32459 Add l2sizekb parameter and fill in.
32460 (host_detect_local_cpu): Add l2sizekb, fill in.
32461 Add Atom small cache heuristic.
32462
32463 2010-01-14 Andi Kleen <ak@linux.intel.com>
32464
32465 * config/i386/drivers-i386.c (detect_caches_cpuid4):
32466 Add level3 parameter and fill in.
32467 (detect_caches_intel): Handle level3 cache.
32468
32469 2010-01-14 Andi Kleen <ak@linux.intel.com>
32470
32471 * config/i386/drivers-i386.c (host_detect_local_cpu):
32472 Fix core duo detection.
32473
32474 2010-01-14 Andi Kleen <ak@linux.intel.com>
32475
32476 * config/i386/drivers-i386.c (host_detect_local_cpu):
32477 Fix Atom detection.
32478
32479 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32480
32481 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
32482 (rs6000_variable_issue_1): this. Use...
32483 (rs6000_variable_issue): here. Reimplement. Print debug info.
32484
32485 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32486
32487 * sel-sched-ir.c (sel_restore_other_notes): Rename to
32488 sel_restore_notes. Update all callers. Call reemit_notes
32489 for all insns.
32490
32491 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32492
32493 PR rtl-optimization/42246
32494 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
32495 loops.
32496
32497 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32498
32499 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
32500 all successors is the same as number of successors in current region.
32501
32502 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32503
32504 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
32505 to rename is not separable. Otherwise check that its LHS is not NULL.
32506
32507 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32508
32509 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
32510
32511 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32512
32513 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
32514 available registers when failed to discover LHS register class.
32515 Fix indentation. Update comment.
32516
32517 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32518 Alexander Monakov <amonakov@ispras.ru>
32519
32520 PR rtl-optimization/42389
32521 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
32522 to can_issue_more.
32523 (advance_state_on_fence): Likewise.
32524 (sel_target_adjust_priority): Print debug output only when
32525 sched_verbose >= 4, not 2.
32526 (get_expr_cost): Do not issue all unique insns on the next cycle.
32527 (fill_insns): Initialize can_issue_more from the value saved
32528 with the fence.
32529 * sel-sched-ir.c (flist_add): New parameter issue_more.
32530 Init FENCE_ISSUE_MORE with it.
32531 (merge_fences): Likewise.
32532 (init_fences): Update call to flist_add.
32533 (add_to_fences, add_clean_fence_to_fences)
32534 (add_dirty_fence_to_fences): Likewise.
32535 (move_fence_to_fences): Update call to merge_fences.
32536 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
32537 sched groups.
32538 * sel-sched-ir.h (struct _fence): New field issue_more.
32539 (FENCE_ISSUE_MORE): New accessor macro.
32540
32541 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32542
32543 PR rtl-optimization/42388
32544 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
32545 that have no predecessors nor successors. Do not call move_bb_info
32546 for empty blocks outside of current region.
32547
32548 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32549
32550 PR rtl-optimization/42294
32551 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
32552 * sel-sched.c (move_exprs_to_boundary): Transitively add all
32553 originators' originators.
32554
32555 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32556
32557 PR rtl-optimization/39453
32558 PR rtl-optimization/42246
32559 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
32560 for pipelining_p.
32561 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
32562
32563 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32564 Alexander Monakov <amonakov@ispras.ru>
32565
32566 PR middle-end/42245
32567 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
32568 (maybe_tidy_empty_bb): ... here. Make static. Add new
32569 argument. Update all callers.
32570 (tidy_control_flow): ... and here. Recompute topological order
32571 of basic blocks in region if necessary.
32572 (sel_redirect_edge_and_branch): Change return type. Return true
32573 if topological order might have been invalidated.
32574 (purge_empty_blocks): Export and move from...
32575 * sel-sched.c (purge_empty_blocks): ... here.
32576 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
32577 (maybe_tidy_empty_bb): Delete prototype.
32578 (purge_empty_blocks): Declare.
32579
32580 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32581
32582 PR rtl-optimization/42249
32583 * sel-sched.c (try_replace_dest_reg): When chosen register
32584 and original register is the same, do not bail out early, but
32585 still check all original insns for validity of replacing destination
32586 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
32587 in this case.
32588
32589 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32590
32591 PR c/42721
32592 Port from no-undefined-overflow branch:
32593 2009-03-09 Richard Guenther <rguenther@suse.de>
32594
32595 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
32596
32597 2010-01-14 Richard Guenther <rguenther@suse.de>
32598
32599 PR lto/42665
32600 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
32601
32602 2010-01-14 Ira Rosen <irar@il.ibm.com>
32603
32604 PR tree-optimization/42709
32605 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
32606 as scalar type in creation of constant vector operand.
32607
32608 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32609
32610 PR testsuite/42414
32611 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
32612 (check-parallel-%): Match `testsuite' directory component only
32613 at the end.
32614
32615 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
32616
32617 PR translation/39521
32618 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
32619 strings with _().
32620
32621 2010-01-13 Richard Guenther <rguenther@suse.de>
32622
32623 PR tree-optimization/42730
32624 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
32625 offset zero.
32626
32627 2010-01-13 Steve Ellcey <sje@cup.hp.com>
32628
32629 PR target/pr42542
32630 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
32631 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
32632 them signed.
32633
32634 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
32635
32636 * config/bfin/libgcc-bfin.ver: Regenerate based on current
32637 libgcc-std.ver. Add entries for ___smulsi3_highpart and
32638 ___umulsi3_highpart.
32639
32640 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
32641 rather than schedule_insns if the pass is enabled.
32642
32643 2010-01-13 Martin Jambor <mjambor@suse.cz>
32644
32645 PR tree-optimization/42704
32646 * tree-sra.c (sra_modify_assign): Do not delete assignments to
32647 SSA_NAMEs.
32648
32649 2010-01-13 Martin Jambor <mjambor@suse.cz>
32650
32651 PR tree-optimization/42703
32652 * tree-sra.c (analyze_access_subtree): Check that we can build a
32653 reference to the original data within the aggregate.
32654
32655 2010-01-13 Richard Guenther <rguenther@suse.de>
32656
32657 PR tree-optimization/42705
32658 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
32659
32660 2010-01-13 Richard Guenther <rguenther@suse.de>
32661
32662 PR middle-end/42716
32663 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
32664
32665 2010-01-13 Jakub Jelinek <jakub@redhat.com>
32666
32667 PR debug/41371
32668 * var-tracking.c (values_to_unmark): New variable.
32669 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
32670 values_to_unmark vector. Moved body to...
32671 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
32672 instead queue it into values_to_unmark vector.
32673 (vt_find_locations): Free values_to_unmark vector.
32674
32675 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
32676
32677 * config/s390/s390.c (override_options): Set
32678 default of max-pending-list-length to 256
32679
32680 2010-01-13 Richard Guenther <rguenther@suse.de>
32681
32682 PR lto/42678
32683 * tree-pass.h (PROP_gimple_lcx): New.
32684 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
32685 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
32686 before the final cleanup_eh.
32687 (dump_properties): Dump PROP_gimple_lcx.
32688 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
32689 (tree_lower_complex_O0): Remove.
32690 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
32691 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
32692 tree_lower_complex, schedule TODO_update_ssa.
32693 * lto-streamer-out.c (output_function): Stream the functions
32694 properties.
32695 * lto-streamer-in.c (input_function): Likewise.
32696 (lto_read_body): Do not override them here.
32697
32698 2010-01-12 Joseph Myers <joseph@codesourcery.com>
32699
32700 PR c/42708
32701 * c-typeck.c (build_c_cast): Fold value cast to union type before
32702 wrapping it in a CONSTRUCTOR.
32703
32704 2010-01-12 Jakub Jelinek <jakub@redhat.com>
32705
32706 PR rtl-optimization/42699
32707 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
32708 involved.
32709
32710 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32711
32712 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
32713 SUBTARGET_WARN_UNUSED_SPEC): Move ...
32714 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
32715 SUBTARGET_WARN_UNUSED_SPEC): ... here
32716 * config/mips/iris5.h (LIBGCC_SPEC): Define.
32717
32718 2010-01-12 Julian Brown <julian@codesourcery.com>
32719
32720 * config/arm/neon-schedgen.ml (Utils): Don't try to
32721 open missing module.
32722 (find_with_result): New.
32723
32724 2010-01-12 Jakub Jelinek <jakub@redhat.com>
32725
32726 PR debug/42662
32727 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
32728 sharing when canonicalizing ({lt,ge}u (plus a b) b).
32729
32730 PR tree-optimization/42645
32731 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
32732 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
32733 decl_map, set processing_debug_stmt to -1 and return name without
32734 any remapping.
32735
32736 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
32737
32738 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
32739 binutils version, and reword target configuration description.
32740
32741 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
32742
32743 * config/avr/avr.h (LINKER_NAME): Remove.
32744
32745 2010-01-11 Janis Johnson <janis187@us.ibm.com>
32746
32747 PR target/42416
32748 * config/rs6000/rs6000.c (rs6000_override_options): On targets
32749 that support VSX, warn for -mno-altivec if vsx is not disabled,
32750 and disable vsx.
32751
32752 2010-01-11 Joseph Myers <joseph@codesourcery.com>
32753 Shujing Zhao <pearly.zhao@oracle.com>
32754
32755 PR translation/42469
32756 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
32757 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
32758 character between option name and help text.
32759 * c.opt (imultilib): Likewise.
32760
32761 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
32762
32763 * lto-streamer-out.c (output_unreferenced_globals): Output static
32764 variables.
32765
32766 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
32767
32768 PR rtl-optimization/42621
32769 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
32770 optimizing for size.
32771 (duplicate_computed_gotos): Remove now-redundant check.
32772
32773 2010-01-10 Steve Ellcey <sje@cup.hp.com>
32774
32775 PR target/37454
32776 * configure.ac: Save and restore LDFLAGS and LIBS
32777 * configure: Regenerate.
32778
32779 2010-01-10 Richard Guenther <rguenther@suse.de>
32780
32781 PR middle-end/42667
32782 * builtins.c (fold_builtin_strlen): Add type argument and
32783 convert the resulting length to it.
32784 (fold_builtin_1): Adjust.
32785
32786 2010-01-09 Jakub Jelinek <jakub@redhat.com>
32787
32788 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
32789 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
32790 1 insn.
32791 (num_insns_constant_wide): Adjust for that change.
32792
32793 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32794
32795 PR debug/42631
32796 * web.c (union_defs): Add used argument, to combine uses of
32797 uninitialized regs.
32798 (entry_register): Adjust type and tests of used argument.
32799 (web_main): Widen used for new use. Pass it to union_defs.
32800 * df.h (union_defs): Adjust prototype.
32801
32802 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32803
32804 PR debug/42630
32805 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
32806 uses in new incoming argument. Free body.
32807 (reset_debug_uses_in_loop): New.
32808 (analyze_insn_to_expand_var): Call the latter if the former found
32809 anything. Fix whitespace. Reject invalid dest overlaps before
32810 going through all insns in the loop.
32811
32812 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32813
32814 PR debug/42629
32815 * haifa-sched.c (dying_use_p): Debug insns don't count.
32816
32817 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32818
32819 PR middle-end/42363
32820 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
32821 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
32822 (verify_gimple_call): Reject LHS in noreturn calls.
32823
32824 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32825
32826 PR debug/42604
32827 PR debug/42395
32828 * tree-vect-loop-manip.c (adjust_info): New type.
32829 (adjust_vec): New pointer to vector.
32830 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
32831 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
32832 (slpeel_update_phis_for_duplicate_loop): Use them.
32833 (slpeel_update_phi_nodes_for_guard1): Likewise.
32834 (slpeel_update_phi_nodes_for_guard2): Likewise.
32835 (slpeel_tree_peel_loop_to_edge): Likewise.
32836 (vect_update_ivs_after_vectorizer): Likewise.
32837
32838 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32839
32840 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
32841 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
32842
32843 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32844
32845 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
32846 bogus uninitialized warning.
32847
32848 2010-01-09 Richard Guenther <rguenther@suse.de>
32849
32850 PR middle-end/42512
32851 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
32852 the evolution is compatible with the initial condition.
32853
32854 2010-01-09 Jakub Jelinek <jakub@redhat.com>
32855
32856 * gcc.c (process_command): Update copyright notice dates.
32857 * gcov.c (print_version): Likewise.
32858 * gcov-dump.c (print_version): Likewise.
32859 * mips-tfile.c (main): Likewise.
32860 * mips-tdump.c (main): Likewise.
32861
32862 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
32863
32864 PR target/41885
32865 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
32866 (rotlhi3): Delete.
32867 (rotlhi3_8): Delete.
32868 (rotlsi3): Delete.
32869 (rotlsi3_8): Delete.
32870 (rotlsi3_16): Delete.
32871 (rotlsi3_24): Delete.
32872 (rotl<mode>3): New.
32873 (*rotw<mode>3): New.
32874 (*rotb<mode>3): New.
32875 * config/avr/avr.c (avr_rotate_bytes): New function.
32876 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
32877
32878 2010-01-08 Steve Ellcey <sje@cup.hp.com>
32879
32880 PR target/37454
32881 * configure.ac: Modify -rdynamic check.
32882 * configure: Regenerate.
32883
32884 2010-01-08 DJ Delorie <dj@redhat.com>
32885
32886 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
32887 register popping order.
32888
32889 2010-01-08 Richard Guenther <rguenther@suse.de>
32890
32891 PR lto/42528
32892 * c.opt (fsigned-char): Also let LTO handle this option.
32893 (funsigned-char): Likewise.
32894
32895 2010-01-07 Richard Guenther <rguenther@suse.de>
32896
32897 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
32898 (gimple_op): Likewise.
32899 (gimple_op_ptr): Likewise.
32900 (gimple_assign_set_lhs): Remove gcc_assert.
32901 (gimple_assign_set_rhs1): Likewise.
32902 (gimple_assign_set_rhs2): Likewise.
32903 (gimple_call_set_lhs): Likewise.
32904 (gimple_call_set_fn): Likewise.
32905 (gimple_call_set_fndecl): Likewise.
32906 (gimple_call_fndecl): Likewise.
32907 (gimple_call_return_type): Likewise.
32908 (gimple_call_set_chain): Likewise.
32909 (gimple_call_num_args): Likewise.
32910 (gimple_call_set_arg): Likewise.
32911 (gimple_cond_set_code): Likewise.
32912 (gimple_cond_set_lhs): Likewise.
32913 (gimple_cond_set_rhs): Likewise.
32914 (gimple_cond_set_true_label): Likewise.
32915 (gimple_cond_set_false_label): Likewise.
32916 (gimple_label_set_label): Likewise.
32917 (gimple_goto_set_dest): Likewise.
32918 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
32919 (gimple_debug_bind_get_value): Likewise.
32920 (gimple_debug_bind_get_value_ptr): Likewise.
32921 (gimple_debug_bind_set_var): Likewise.
32922 (gimple_debug_bind_set_value): Likewise.
32923 (gimple_debug_bind_reset_value): Likewise.
32924 (gimple_debug_bind_has_value_p): Likewise.
32925 (gimple_return_retval_ptr): Remove gcc_assert.
32926 (gimple_return_retval): Likewise.
32927 (gimple_return_set_retval): Likewise.
32928 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
32929 (safe_referenced_var_iterator): Remove.
32930 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
32931 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
32932 (fill_referenced_var_vec): Remove.
32933 (first_readonly_imm_use): Remove redundant gcc_assert.
32934 (phi_arg_index_from_use): Combine gcc_asserts.
32935 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
32936 (first_imm_use_stmt): Remove redundant gcc_assert.
32937 * tree-cfg.c (verify_gimple_call): Verify function and chain
32938 operands. Verify arguments.
32939 (verify_types_in_gimple_stmt): Verify condition code and labels.
32940
32941 2010-01-07 Richard Guenther <rguenther@suse.de>
32942
32943 PR tree-optimization/42641
32944 * sese.c (rename_map_elt_info): Use the SSA name version, do
32945 not hash pointers.
32946
32947 2010-01-07 Jakub Jelinek <jakub@redhat.com>
32948
32949 PR tree-optimization/42625
32950 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
32951 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
32952
32953 2010-01-07 Duncan Sands <baldrick@free.fr>
32954
32955 * Makefile.in (PLUGIN_HEADERS): Add version.h.
32956
32957 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
32958
32959 PR target/42511
32960 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
32961 note itself is not function_invariant_p.
32962
32963 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
32964
32965 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
32966 Do not add the DF_NOTE problem.
32967 * store-motion.c (execute_rtl_store_motion): Likewise.
32968
32969 2010-01-07 Martin Jambor <mjambor@suse.cz>
32970
32971 PR tree-optimization/42157
32972 * tree-sra.c (compare_access_positions): Stabilize sort if both
32973 accesses have integer types, return zero immediately if they are the
32974 same.
32975
32976 2010-01-06 Richard Henderson <rth@redhat.com>
32977
32978 PR middle-end/41883
32979 * haifa-sched.c (add_to_note_list): Merge into ...
32980 (concat_note_lists): ... here, and ...
32981 (unlink_other_notes, rm_other_notes): Merge into...
32982 (remove_notes): ... here. Create REG_SAVE_NOTEs for
32983 NOTE_INSN_EPILOGUE_BEG.
32984
32985 2010-01-06 Richard Guenther <rguenther@suse.de>
32986
32987 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
32988 not inline regular functions into always-inline functions.
32989
32990 2010-01-06 Nick Clifton <nickc@redhat.com>
32991
32992 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
32993 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
32994 used together.
32995 (OVERRIDE_OPTIONS): Delete.
32996 (OPTIMIZATION_OPTIONS): Define.
32997 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
32998 * config/rx/rx.c (rx_handle_option): Issue an error message if
32999 -mcpu=rx200 and -fpu are used together.
33000 (rx_set_optimization_options): New function. Issue an error
33001 message if an optimization attribute attempts to reset the FPU/
33002 math optimization pairing.
33003 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
33004 * config/rx/rx.opt: Set the default to 32-bit doubles.
33005 * config/rx/t-rx: Add multilibs for -nofpu option.
33006 * doc/invoke.texi: Update documentation of RX options.
33007
33008 2010-01-06 Richard Guenther <rguenther@suse.de>
33009
33010 * tree-ssa-pre.c (name_to_id): New global.
33011 (alloc_expression_id): Simplify SSA name handling.
33012 (lookup_expression_id): Likewise.
33013 (init_pre): Zero name_to_id.
33014 (fini_pre): Free it.
33015
33016 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
33017
33018 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
33019
33020 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
33021
33022 PR target/42542
33023 * config/i386/sse.md (smaxv2di3): New.
33024 (umaxv2di3): Likewise.
33025 (sminv2di3): Likewise.
33026 (uminv2di3): Likewise.
33027
33028 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
33029
33030 PR target/42564
33031 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
33032 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
33033 (legitimize_tls_address): Likewise.
33034 (sparc_tls_referenced_p): Likewise.
33035 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
33036 and adjust calls to legitimize_pic_address.
33037 (legitimate_constant_p) Use sparc_tls_referenced_p.
33038 (legitimate_pic_operand_p): Likewise.
33039 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
33040 (sparc_tls_symbol_ref_1): Delete.
33041 (sparc_tls_referenced_p): Make static, recognize specific patterns.
33042 (legitimize_tls_address): Make static, handle CONST patterns.
33043 (legitimize_pic_address): Make static, remove unused parameter and
33044 adjust recursive calls.
33045 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
33046 and adjust call to legitimize_pic_address.
33047 (sparc_output_mi_thunk): Likewise.
33048
33049 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
33050 H.J. Lu <hongjiu.lu@intel.com>
33051
33052 PR target/42542
33053 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
33054 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
33055 operands to make them signed.
33056
33057 Revert:
33058 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33059
33060 PR target/42542
33061 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33062 GTU to GT for V4SI and V2DI.
33063
33064 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33065 (umin<mode>3): Removed.
33066 (uminv8hi3): New.
33067 (uminv4si3): Likewise.
33068
33069 2010-01-05 Martin Jambor <mjambor@suse.cz>
33070
33071 PR tree-optimization/42462
33072 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
33073 current_function_decl to helper functions and macros.
33074
33075 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33076
33077 PR bootstrap/41771
33078 * flags.h: Don't include real.h.
33079 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
33080 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
33081 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
33082 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
33083 * dominance.c: Update copyright.
33084 * gimple.c (walk_gimple_op): Remove inline.
33085 * tree-ssa-reassoc.c: Include real.h.
33086 * Makefile.in (FLAGS_H): Remove $(REAL_H).
33087 (tree-ssa-reassoc.o): Depend on $(REAL_H).
33088
33089 2010-01-05 Nick Clifton <nickc@redhat.com>
33090
33091 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
33092 register to push into the stack frame when the accumulator has to
33093 be saved during interrupts.
33094
33095 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
33096
33097 * doc/invoke.texi: Remove the documentation about option
33098 -Wunreachable-code.
33099 * common.opt (Wunreachable-code): Preserved for backward
33100 compatibility.
33101 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
33102 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
33103 the backward compatibility flag section.
33104
33105 2010-01-05 Richard Guenther <rguenther@suse.de>
33106
33107 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
33108
33109 2010-01-05 Jakub Jelinek <jakub@redhat.com>
33110
33111 PR other/42611
33112 * cfgexpand.c (expand_one_var): Diagnose too large variables.
33113
33114 PR tree-optimization/42508
33115 * tree-sra.c (convert_callers): Check for recursive call
33116 by comparing cgraph nodes instead of decls.
33117 (modify_function): Call ipa_modify_formal_parameters also
33118 on all same_body aliases.
33119
33120 * cgraphunit.c (cgraph_materialize_all_clones): Compare
33121 cgraph nodes when checking for same_body aliases.
33122
33123 2010-01-05 Richard Guenther <rguenther@suse.de>
33124
33125 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
33126 allocation and lookup.
33127 (get_or_alloc_expr_for_constant): Likewise.
33128 (phi_translate): Sink allocation.
33129
33130 2010-01-04 Richard Guenther <rguenther@suse.de>
33131
33132 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
33133 a new entry only if needed.
33134 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
33135 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
33136 hashtable lookup.
33137 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
33138 the result array.
33139 (phi_translate): Handle CONSTANTs early.
33140
33141 2010-01-04 Martin Jambor <mjambor@suse.cz>
33142
33143 PR tree-optimization/42398
33144 * tree-sra.c (struct access): Removed flag grp_different_types.
33145 (dump_access): Do not dump the removed flag.
33146 (sort_and_splice_var_accesses): Do not set the removed flag.
33147 (sra_modify_expr): Check for type compatibility directly.
33148
33149 2010-01-04 Martin Jambor <mjambor@suse.cz>
33150
33151 PR tree-optimization/42366
33152 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
33153 edges with variable number of parameters.
33154 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
33155 flag instead of asserting it.
33156 (ipa_read_node_info): Read uses_analysis_done flag.
33157
33158 2010-01-04 Richard Guenther <rguenther@suse.de>
33159
33160 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
33161 iterative_hash_* as intended.
33162 (vn_reference_compute_hash): Likewise. Simplify hashing
33163 SSA names.
33164 (vn_reference_lookup_2): Likewise.
33165 (vn_nary_op_compute_hash): Likewise.
33166 (vn_phi_compute_hash): Likewise.
33167 (expressions_equal_p): Remove strange code.
33168 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
33169 (pre_expr_hash): Likewise. Simplify hashing SSA names.
33170 (bitmap_insert_into_set_1): Take value-id as parameter.
33171 (add_to_value): Pass it.
33172 (bitmap_insert_into_set): Likewise.
33173 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
33174
33175 2010-01-04 Jakub Jelinek <jakub@redhat.com>
33176
33177 PR driver/42442
33178 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
33179 (do_self_spec): For switches with SWITCH_IGNORE set set also
33180 SWITCH_IGNORE_PERMANENTLY.
33181 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
33182 of SWITCH_IGNORE.
33183
33184 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
33185
33186 * lto-streamer-out.c (output_unreferenced_globals): Output the full
33187 tree of an unreferenced global var.
33188
33189 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33190
33191 PR target/42542
33192 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33193 GTU to GT for V4SI and V2DI.
33194
33195 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33196 (umin<mode>3): Removed.
33197 (uminv8hi3): New.
33198 (uminv4si3): Likewise.
33199
33200 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33201
33202 PR lto/42581
33203 * collect2.c (main): Turn on trace in collect2 if -v is passed
33204 to gcc with LTO.
33205
33206 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
33207
33208 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
33209 description of expression operand.
33210
33211 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
33212
33213 * configure.ac: Add install-html to target_list for Make-hooks.
33214 * configure: Regenerate.
33215 * fortran/Make-lang.in (F95_HTMLFILES): New.
33216 (fortran.html): Use it.
33217 (fortran.install-html): New.
33218 * Makefile.in (install-html): Add lang.install-html.
33219 * java/Make-lang.in (JAVA_HTMLFILES): New.
33220 (java.html): Use it.
33221 (java.install-html): New.
33222 * objc/Make-lang.in (objc.install-html): New.
33223 * objcp/Make-lang.in (obj-c++.install-html): New.
33224 * cp/Make-lang.in (c++.install-html): New.
33225 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
33226 * lto/Make-lang.in (lto.install-html): New.
33227
33228 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
33229
33230 PR lto/42520
33231 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
33232
33233 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
33234
33235 PR rtl-optimization/41862
33236 * store-motion.c (store_killed_in_insn, compute_store_table,
33237 remove_reachable_equiv_notes, replace_store_insn,
33238 build_store_vectors): Ignore all DEBUG_INSNs.
33239
33240 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
33241
33242 PR lto/41564
33243 * common.opt: Add dumpdir.
33244
33245 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
33246 isn't specified.
33247 (option_map): Add --dumpdir.
33248
33249 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
33250
33251 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
33252
33253 * opts.c (decode_options): Try dump_dir_name first if
33254 dump_base_name isn't an absolute path.
33255 (common_handle_option): Handle OPT_dumpdir.
33256
33257 * toplev.c (dump_dir_name): New.
33258 (print_switch_values): Also ignore -dumpdir.
33259
33260 * toplev.h (dump_dir_name): New.
33261
33262 2010-01-03 Richard Guenther <rguenther@suse.de>
33263
33264 PR tree-optimization/42589
33265 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
33266 double-word expansion of bswap32.
33267
33268 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
33269
33270 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
33271 with BLOCK_FOR_INSN.
33272 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
33273 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
33274 noce_process_if_block): Likewise.
33275 * gcse.c (compute_local_properties, insert_expr_in_table,
33276 insert_set_in_table, canon_list_insert, find_avail_set,
33277 pre_insert_copy_insn): Likewise.
33278
33279 * basic-block.h (BLOCK_NUM): Move from here...
33280 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
33281
33282 2010-01-03 Richard Guenther <rguenther@suse.de>
33283
33284 PR tree-optimization/42438
33285 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
33286 contains_may_not_return_call flag.
33287 (BB_MAY_NOTRETURN): New.
33288 (valid_in_sets): Trapping nary operations are not valid
33289 in blocks that may not return.
33290 (insert_into_preds_of_block): Remove check for trapping expressions.
33291 (compute_avail): Compute also BB_MAY_NOTRETURN.
33292
33293 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
33294
33295 * doc/invoke.texi: Add 2010 to copyright years.
33296
33297 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
33298
33299 * config/sparc/sparc.c: Fix formatting nits.
33300
33301 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
33302 Alexander Monakov <amonakov@ispras.ru>
33303
33304 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
33305
33306 2010-01-02 Richard Guenther <rguenther@suse.de>
33307
33308 PR middle-end/42577
33309 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
33310 (simplify_switch_using_ranges): Mark to be removed edges
33311 as non-executable.
33312
33313 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33314
33315 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
33316
33317 * collect2.c (scan_libraries): Add missing argument in call to
33318 scan_prog_file.
33319
33320 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
33321
33322 PR target/42448
33323 * config/alpha/predicates.md (aligned_memory_operand): Return false
33324 for CQImode.
33325 (unaligned_memory_operand): Return true for CQImode.
33326 * config/alpha/alpha.c (get_aligned_mem): Assert that location
33327 doesn not cross aligned SImode word boundary.
33328
33329 2010-01-02 Anatoly Sokolov <aesok@post.ru>
33330
33331 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
33332 Remove.
33333 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
33334 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
33335
33336 2010-01-02 Richard Guenther <rguenther@suse.de>
33337
33338 PR lto/41597
33339 * toplev.c (compile_file): Emit LTO marker properly. Change
33340 it to __gnu_lto_v1.
33341 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
33342
33343 2010-01-01 Richard Guenther <rguenther@suse.de>
33344
33345 PR debug/42455
33346 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
33347
33348 2010-01-01 Richard Guenther <rguenther@suse.de>
33349
33350 PR c/42570
33351 * c-decl.c (grokdeclarator): For zero-size arrays force
33352 structural equality checks as layout_type does.
33353
33354 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
33355
33356 * builtins.c: Update copyright to 2010.
33357
33358 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
33359
33360 PR lto/42531
33361 * lto-streamer-out.c (produce_asm): Revert the last change.
33362 (copy_function): Likewise.
33363
33364 * lto-streamer.c (lto_get_section_name): Skip any leading
33365 asterisk in name.
33366
33367 2010-01-01 Richard Guenther <rguenther@suse.de>
33368
33369 PR middle-end/42559
33370 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
33371 for LABEL_DECLs.
33372
33373 \f
33374 Copyright (C) 2010 Free Software Foundation, Inc.
33375
33376 Copying and distribution of this file, with or without modification,
33377 are permitted in any medium without royalty provided the copyright
33378 notice and this notice are preserved.