1 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
3 PR tree-optimization/46259
7 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
9 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
10 build_vector_from_val.
12 2010-11-01 DJ Delorie <dj@redhat.com>
14 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
15 as well as an assertion.
17 2010-11-01 Paul Koning <ni1d@arrl.net>
19 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
20 complex modes in memory.
22 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
24 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
26 2010-11-01 Jakub Jelinek <jakub@redhat.com>
29 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
30 (cfa_base_offset): New variable.
31 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
32 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
34 (vt_init_cfa_base): Initialize cfa_base_offset.
36 2010-11-01 Alan Modra <amodra@gmail.com>
39 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
41 (stack_info): New file scope var.
42 (rs6000_init_machine_status): Init stack_info.
43 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
44 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
45 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
46 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
47 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
48 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
49 (rs6000_savres_strategy): Rewrite.
50 (rs6000_stack_info): Use "stack_info" in place of local "info".
51 Return cached stack info when reload_completed unless ENABLE_CHECKING
52 in which case confirm newly calculated stack info matches old info.
53 Delay calculation of lr_save_p, set it for out of line gp save/restore
54 as well as fp. Call rs6000_savres_strategy from here..
55 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
56 (rs6000_output_function_prologue): Use info->savres_strategy to
57 determine whether fp save/restore externs need to be emitted.
59 2010-10-31 Jason Merrill <jason@redhat.com>
61 * tree.h (EXPR_LOC_OR_HERE): New macro.
62 * builtins.c (c_strlen): Use it.
63 * c-decl.c (build_enumerator): Likewise.
64 * gimplify.c (internal_get_tmp_var): Likewise.
65 (shortcut_cond_expr): Likewise.
66 (gimplify_one_sizepos): Likewise.
68 2010-10-31 Richard Henderson <rth@redhat.com>
70 * config/i386/cygming.h (TARGET_SEH): New.
71 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
72 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
73 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
74 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
75 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
76 (ASM_DECLARE_FUNCTION_SIZE): New.
77 * config/i386/i386-protos.h: Update.
78 * config/i386/i386.c (ix86_option_override_internal): Enable
79 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
80 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
81 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
82 (ix86_compute_frame_layout): For SEH, disable
83 use_fast_prologue_epilogue, move frame pointer to the end of
84 the frame. Initialize hfp_save_offset.
85 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
86 at end of prologue for SEH.
87 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
88 emit blockage at beginning of epilogue.
89 (ix86_expand_binary_operator): After reload, emit LEA if needed.
90 (ix86_output_call_insn): New.
91 * config/i386/i386.h (TARGET_SEH): New.
92 (struct machine_function): Add member seh.
93 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
94 * config/i386/winnt.c (struct seh_frame_state): New.
95 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
96 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
97 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
98 i386_pe_start_function, i386_pe_end_function): New.
100 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
101 as CFA_STORE in rules 12 and 13.
103 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
105 PR tree-optimization/46142
106 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
107 accommodate third function argument.
109 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
111 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
113 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
115 * fold-const.c (build_zero_vector): Use build_vector_from_val.
116 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
117 (get_initial_def_for_reduction): Likewise.
118 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
119 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
120 * tree.c (build_one_cst): Likewise.
121 (build_vector_from_val): Use types_compatible_p for assert.
123 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
125 * emit-rtl.c (mark_used_flags): New function.
126 (set_used_flags, reset_used_flags): Call it.
128 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
131 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
132 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
134 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
137 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
138 (ix86_compat_aligned_value_p): This.
139 (ix86_old_function_arg_boundary): Renamed to ...
140 (ix86_compat_function_arg_boundary): This. Updated.
141 (ix86_contains_aligned_value_p): New.
142 (ix86_function_arg_boundary): Align long double parameters on
143 stack to 4byte in 32bit.
145 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
147 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
148 * c-parser.c (c_parser_objc_at_property_declaration): Removed
149 parsing of RID_COPIES and RID_IVAR. Updated call to
150 objc_add_property_declaration.
151 * c-typecheck.c (build_component_ref): Call
152 objc_maybe_build_component_ref instead of objc_build_setter_call.
153 Use objc_is_property_ref to improve Objective-C checks.
154 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
155 of objc_build_getter_call.
157 2010-10-29 Paul Koning <ni1d@arrl.net>
159 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
160 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
161 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
162 (REG_OK_STRICT): Move description.
164 2010-10-29 Paul Koning <ni1d@arrl.net>
166 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
168 2010-10-29 Paul Koning <ni1d@arrl.net>
170 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
172 2010-10-29 Paul Koning <ni1d@arrl.net>
175 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
177 2010-10-29 Richard Henderson <rth@redhat.com>
180 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
183 2010-10-29 Paul Koning <ni1d@arrl.net>
185 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
186 register to register move.
188 2010-10-29 Paul Koning <ni1d@arrl.net>
190 * config/pdp11/pdp11.c (print_operand_address): Correct handling
191 of integer constant addresses, delete vax-only logic.
193 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
195 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
196 a conditional expression.
198 2010-10-29 Paul Koning <ni1d@arrl.net>
200 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
201 instruction encoding.
203 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
204 Andrew Pinski <pinskia@gmail.com>
206 * tree.h (build_vector_from_val): Declare.
207 * tree.c (build_vector_from_val): New function.
208 * c-typeck.c (build_binary_op): Handle vector shifting.
209 * doc/extend.texi: Description of the vector shifting operation.
211 2010-10-29 Paul Koning <pkoning@equallogic.com>
213 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
214 pdp11_secondary_memory_needed): Declare.
215 * config/pdp11/predicates.md (float_operand): New predicate.
216 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
217 (cbranchdf4, movdf): Change predicate.
218 (movsf): Handle FPU register case.
219 (truncdfsf2, extendsfdf2): Add FPU register case.
220 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
221 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
222 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
223 (pdp11_register_move_cost): Update cost matrix.
224 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
225 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
226 pdp11_secondary_memory_needed): New function.
227 (pdp11_return_in_memory): Add other float types.
228 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
229 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
230 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
231 REGISTER_MOVE_COST): Delete.
232 (BASE_RETURN_VALUE_REG): Add other float types.
234 2010-10-29 Nick Clifton<nickc@redhat.com>
236 * doc/invoke.texi: Document -mam34 and -mtune options.
237 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
238 (mn10300_tune_cpu): New variable.
239 (mn10300_handle_option): Handle -mam34 and -mtune options.
240 (mn10300_option_override): Convert tune string into tune cpu variable.
241 (mn10300_legitimate_constant_p): Delete unused local variable.
242 (is_load_insn): New function.
243 (is_store_insn): New function.
244 (mn10300_adjust_schedule_cost): New function.
245 (TARGET_SCHED_ADJUST_COST): Define.
246 * config/mn10300/mn10300.opt (mam34): New option.
248 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
249 (enum processor_type): Add AM34.
250 (TARGET_AM34): Define.
251 * config/mn10300/mn10300.md (attr cpu): Add am34.
252 Add pipeline description.
253 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
254 Remove unneeded alternatives. Add timing attribute.
255 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
256 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
257 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
258 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
259 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
260 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
261 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
262 float_conditional_branch, jump, indirect_jump, tablejump,
263 call_internal, call_value_internal, zero_extendqisi2_am33,
264 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
265 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
266 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
267 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
268 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
269 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
270 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
271 return_internal_regs, store_movm, return, call_next_insn):
272 Add timing attribute.
273 (am33_subsi3): Add missing clobber of CC_REG.
274 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
275 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
276 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
277 extendqisi2): Fix predicates.
278 (call_internal, call_internal_value): Separate alternatives.
279 * config/mn10300/t-mn10300: Add AM34 multilib.
281 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
283 * config/sh/sh.c (sh_promote_function_mode): Use
284 default_promote_function_mode if !sh_promote_prototypes.
286 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
288 * recog.c (split_all_insns): Remove dead code.
290 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
292 * config/microblaze/microblaze-protos.h (function_arg): Delete.
293 (function_arg_advance): Delete.
294 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
295 (FUNCTION_ARG): Delete.
296 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
297 (microblaze_function_arg_advance): ...this. Make static. Take a
298 const_tree and a bool.
299 (function-arg): Rename to...
300 (microblaze_function_arg): ...this. Make static. Take a const_tree
302 (microblaze_expand_prologue): Call targetm.calls.function_arg and
303 targetm.calls.function_arg_advance.
304 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
306 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
308 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
310 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
312 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
313 (FUNCTION_ARG_ADVANCE): Delete.
314 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
316 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
317 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
318 (TARGET_FUNCTION_ARG_ADVANCE): Define.
320 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
322 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
323 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
324 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
325 Take a const_tree and a bool.
326 (mcore_function_arg_advance): New function.
327 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
329 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
331 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
332 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
333 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
334 Take a const_tree and a bool.
335 (mcore_function_arg_advance): New function.
336 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
338 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
340 * config/h8300/h8300-protos.h (function_arg): Delete.
341 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
342 * config/h8300/h8300.c (function_arg): Rename to...
343 (h8300_function_arg): ...this. Make static. Take a const_tree and
345 (h8300_function_arg_advance): New function.
346 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
348 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
350 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
352 * config/arc/arc.c (arc_function_arg): ...here and...
353 (arc_function_arg_advance): ...here. New functions.
354 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
356 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
358 * config/crx/crx-protos.h (crx_function_arg): Delete.
359 (crx_function_arg_advance): Delete.
360 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
361 * config/crx/crx.c (crx_function_arg): Make static. Take a
362 const_tree and a bool.
363 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
364 (enough_regs_for_param): Take a const_tree.
365 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
367 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
369 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
370 (m68hc11_function_arg_advance): Delete.
371 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
372 (FUNCTION_ARG_ADVANCE): Delete.
373 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
374 Take a const_tree and a bool.
375 (m68hc11_function_arg_advance): Likewise.
376 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
378 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
380 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
381 (xstormy16_function_arg_advance): Delete.
382 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
383 (FUNCTION_ARG_ADVANCE): Delete.
384 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
385 Take a const_tree and a bool.
386 (xstormy16_function_arg_advance): Likewise. Return void, updating
387 the CUM parameter instead.
388 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
390 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
392 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
393 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
394 (MOXIE_FUNCTION_ARG_SIZE): Move to...
395 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
396 (moxie_function_arg): Make static. Take a const_tree and a bool.
397 (moxie_function_arg_advance): New function.
398 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
400 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
402 * config/mn10300/mn10300-protos.h (function_arg): Delete.
403 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
404 (FUNCTION_ARG_ADVANCE): Delete.
405 * config/mn10300/mn10300.c (function_arg): Rename to...
406 (mn10300_function_arg): ...this. Make static. Take a const_tree
408 (mn10300_function_arg_advance): New function.
409 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
411 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
413 * config/iq2000/iq2000-protos.h (function_arg): Delete.
414 (function_arg_advance): Delete.
415 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
416 * config/iq2000/iq2000.c (function_arg): Rename to...
417 (iq2000_function_arg): ...this. Make static. Take a const_tree and
419 (function_arg_advance): Rename to...
420 (iq2000_function_arg_advance): ...this. Make static. Take a
421 const_tree and a bool.
422 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
424 (iq2000_pass_by_reference): Call iq2000_function_arg).
425 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
427 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
429 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
430 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
431 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
433 (fr30_function_arg): New function.
434 (fr30_function_arg_advance): New function.
435 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
437 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
439 * config/frv/frv-protos.h (frv_function_arg): Delete.
440 (frv_function_arg_advance): Delete.
441 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
442 * config/frv/frv.c (frv_function_arg): Rename to...
443 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
444 (frv_function_arg, frv_function_incoming_arg): New functions.
445 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
446 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
447 (TARGET_FUNCTION_ARG_ADVANCE): Define.
449 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
452 * config/i386/sse.md (sse_movhlps_exp): Use destination
453 returned from ix86_fixup_binary_operands to expand insn.
454 (sse_movlhps_exp): Ditto.
455 (sse_loadhps_exp): Ditto.
456 (sse_loadlps_exp): Ditto.
457 (sse2_loadhpd_exp): Ditto.
458 (sse2_loadlpd_exp): Ditto.
460 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
462 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
465 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
467 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
468 arithmetics in masking operations.
469 (contains_muldiv): Likewise.
470 (try_combine): Likewise.
471 (find_split_point): Likewise.
472 (combine_simplify_rtx): Likewise.
473 (simplify_if_then_else): Likewise.
474 (simplify_set): Likewise.
475 (expand_compound_operation): Likewise.
476 (expand_field_assignment): Likewise.
477 (make_extraction): Likewise.
478 (extract_left_shift): Likewise.
479 (make_compound_operation): Likewise.
480 (force_to_mode): Likewise.
481 (make_field_assignment): Likewise.
482 (reg_nonzero_bits_for_combine): Likewise.
483 (simplify_shift_const_1): Likewise.
484 (simplify_comparison): Likewise.
486 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
488 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
489 (ia64_function_arg_advance): Delete.
490 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
491 (FUNCTION_ARG_ADVANCE): Delete.
492 * config/ia64/ia64.c (ia64_function_arg): Rename to...
493 (ia64_function_arg_1): ...this. Make static. Take const_tree and
495 (ia64_function_arg, ia64_function_incoming_arg): New functions.
496 (ia64_function_arg_advance): Make static. Take a const_tree and
498 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
499 (TARGET_FUNCTION_ARG_ADVANCE): Define.
501 2010-10-27 Steve Ellcey <sje@cup.hp.com>
503 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
504 (TARGET_GET_RAW_ARG_MODE): New.
505 * doc/tm.texi: Regenerate.
506 * target.def (get_raw_result_mode): New.
507 (get_raw_arg_mode): New.
508 * targhooks.c (default_get_reg_raw_mode): New.
509 * targhooks.h (default_get_reg_raw_mode): New.
510 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
511 (apply_result_size): Ditto.
512 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
513 (TARGET_GET_RAW_RESULT_MODE): Define.
514 (TARGET_GET_RAW_ARG_MODE): Ditto.
516 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
518 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
519 for newer Solaris 10 release.
520 (sparc_fallback_frame_state): Likewise.
522 2010-10-27 Jason Merrill <jason@redhat.com>
524 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
527 2010-10-27 Jie Zhang <jie@codesourcery.com>
528 Maxim Kuvyrkov <maxim@codesourcery.com>
530 * haifa-sched.c (ISSUE_POINTS): Remove.
531 (max_issue): Don't issue more than issue_rate instructions.
533 2010-10-27 Ian Lance Taylor <iant@google.com>
536 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
537 (split_stack_return): Replace UNSPEC_STACK_CHECK with
538 UNSPECV_SPLIT_STACK_RETURN.
540 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
542 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
544 * config/i386/i386.c (block_info): New.
545 (BLOCK_INFO): Likewise.
546 (call_avx256_state): Likewise.
547 (check_avx256_stores): Likewise.
548 (move_or_delete_vzeroupper_2): Likewise.
549 (move_or_delete_vzeroupper_1): Likewise.
550 (move_or_delete_vzeroupper): Likewise.
551 (use_avx256_p): Likewise.
552 (function_pass_avx256_p): Likewise.
553 (flag_opts): Add -mvzeroupper.
554 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
555 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
557 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
559 (init_cumulative_args): Add an int to indicate caller. Set
560 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
561 based on return type.
562 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
563 caller_pass_avx256_p based on argument type.
564 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
565 is used, but not returned by caller.
566 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
567 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
569 (ix86_minimum_alignment): Likewise.
570 (ix86_expand_special_args_builtin): Set target to
571 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
572 (ix86_reorg): Run the vzeroupper optimization if needed.
574 * config/i386/i386.h (ix86_args): Add caller.
575 (INIT_CUMULATIVE_ARGS): Updated.
576 (machine_function): Add use_vzeroupper_p, use_avx256_p,
577 caller_pass_avx256_p, caller_return_avx256_p,
578 callee_pass_avx256_p and callee_return_avx256_p.
580 * config/i386/i386.opt (-mvzeroupper): New.
582 * config/i386/predicates.md (vzeroupper_operation): Removed.
584 * config/i386/sse.md (avx_vzeroupper): Removed.
585 (*avx_vzeroupper): Removed.
586 (avx_vzeroupper): New.
588 * doc/invoke.texi: Document -mvzeroupper.
590 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
592 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
593 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
594 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
596 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
597 Olivier Hainque <hainque@adacore.com>
599 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
600 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
601 fs->signal_frame instead.
603 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
605 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
606 parsing of RID_COPIES and RID_IVAR.
608 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
610 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
611 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
612 Do not use objc_set_property_attr, but use local variables
613 instead. Detect repeated usage of setter, getter and ivar
614 attributes. Improved error processing when a setter name does not
615 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
616 that the token is a keyword. Updated call to
617 objc_add_property_declaration.
619 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
621 * c-parser.c (c_parser_objc_at_property): Renamed to
622 c_parser_objc_at_property_declaration. Updated calls to
623 objc_add_property_variable, now objc_add_property_declaration.
624 Code rewritten to be much more robust in recovering from syntax
625 errors. Added comments.
626 (c_parser_objc_property_attrlist): Removed.
627 (c_parser_external_declaration): Updated calls to
628 c_parser_objc_at_property, now
629 c_parser_objc_at_property_declaration.
630 (c_parser_objc_methodprotolist): Same change.
632 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
634 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
636 2010-10-26 Jan Hubicka <jh@suse.cz>
638 * ipa.c (process_references): Enqueue all referenced nodes;
639 mark as reachable only non-external nodes.
640 (cgraph_remove_unreachable_nodes): All referenced nodes should
641 be enqueued; remove bogues node->needed check.
643 2010-10-26 Jan Hubicka <jh@suse.cz>
645 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
648 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
650 * config/i386/i386.md (split_stack_return): Replace
651 unspec_volatile with unspec.
653 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
655 * doc/install.texi: Fix typo in --with-sysroot description.
657 2010-10-26 Jan Hubicka <jh@suse.cz>
659 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
660 Use info provided by linker plugin.
662 2010-10-26 Jason Merrill <jason@redhat.com>
664 * varasm.c (constructor_static_from_elts_p): Don't require a
665 CONSTRUCTOR to have elements to be suitable for static
666 initialization. Allow ARRAY_TYPE as well.
668 2010-10-26 Jan Hubicka <jh@suse.cz>
671 * cgraph.c (cgraph_set_readonly_flag): Rename to...
672 (cgraph_set_const_flags) ... this one; get also looping argument;
673 clear constructor/destructor flags.
674 (cgraph_set_pure_flag): Likewise.
675 (cgraph_set_looping_const_or_pure_flag): Remove.
676 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
677 to optimize away static ctors/dtors; it does not work on inline clones;
678 external functions can always be rmeoved.
679 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
680 inline clones; in LTO external functions always can go.
681 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
682 (cgraph_mark_address_taken_node): Assert that we are not taking
683 address of inline clone.
684 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
686 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
688 (ipcp_initialize_node_lattices): Only local functions can be
689 handled without cloning.
690 * cgraph.h (cgraph_set_readonly_flag,
691 cgraph_set_looping_const_or_pure_flag): Remove.
692 (cgraph_set_const_flag): Declare.
693 (cgraph_set_pure_flag): Update.
694 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
696 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
697 look at inline clones; fix handling of external definitions.
698 (cgraph_postorder): Do not look at inline clones in the first pass.
699 (function_and_variable_visibility): Drop constructors/destructor
700 flags at pure and const functions.
701 * tree-profile.c (tree_profiling): Update.
702 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
703 address taken; external functions do not account to whole program size.
704 (cgraph_decide_inlining): Likewise; do not try to inline
705 functions already inlined.
707 2010-10-26 Jie Zhang <jie@codesourcery.com>
709 * doc/invoke.texi: Improve documentation of
710 -fstrict-volatile-bitfields.
712 2010-10-26 Ira Rosen <irar@il.ibm.com>
714 PR tree-optimization/46167
715 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
716 is basic block for the statement.
718 2010-10-26 Paul Koning <ni1d@arrl.net>
720 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
721 current definition of struct_real_format.
723 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
726 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
727 (ix86_function_arg_boundary): Always align parameters on stack
728 in 64bit and align parameters with alignment >= 16byte on stack
729 in 32bit. Warn alignment change.
731 2010-10-26 Ian Lance Taylor <iant@google.com>
734 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
737 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
739 Implement opaque-enum-specifiesr for C++0x
740 * tree.h (ENUM_IS_OPAQUE): New.
741 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
743 2010-10-26 Jie Zhang <jie@codesourcery.com>
745 * stor-layout.c (layout_decl): Use the field's type to
746 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
747 * config/arm/arm.c (arm_override_options): Default to
748 -fstrict-volatile-bitfields.
750 2010-10-25 Paul Koning <ni1d@arrl.net>
752 * config/pdp11/pdp11.md: Add define_constants for register
753 numbers, branch offset limits.
754 * config/pdp11/pdp11.c: Use named constants instead of numbers.
755 * config/pdp11.pdp11.h: Ditto.
757 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
759 * configure.ac: Use $cpu_type instead of $target to define the nop.
760 * configure: Regenerate.
762 2010-10-25 Jie Zhang <jie@codesourcery.com>
764 * combine.c (try_combine): If insns need to be kept around, check that
765 they can be copied in the merged instruction.
767 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
769 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
771 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
772 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
773 it has been modified.
775 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
777 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
779 2010-10-24 Paul Koning <ni1d@arrl.net>
781 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
782 * config/pdp11/pdp11.c (output_jump): Ditto.
784 2010-10-24 Ian Lance Taylor <iant@google.com>
786 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
788 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
790 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
791 least one insn with a locus corresponding to an edge's goto_locus,
792 disregard non-fallthru edges to the exit block and merge the blocks
793 created for the same goto_locus.
795 2010-10-23 Joseph Myers <joseph@codesourcery.com>
797 * gcc.c (n_switches_alloc_debug_check): New.
798 (set_option_handlers): New.
799 (process_command): Use set_option_handlers.
800 (do_self_spec): Pass spec-generated options through option handlers.
801 (main): Also save and restore n_switches_alloc when swapping
804 2010-10-23 Richard Henderson <rth@redhat.com>
807 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
808 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
809 Honor matching operands when splitting to XOR.
811 2010-10-23 Ian Lance Taylor <iant@google.com>
813 * tree-vrp.c (extract_range_from_binary_expr): If
814 flag_non_call_exceptions don't eliminate division by zero.
815 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
817 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
819 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
820 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
821 __ORDER_PDP_ENDIAN__.
822 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
823 (struct DWstruct): Define based on __BYTE_ORDER__.
824 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
825 (struct INTstruct): Define based on __BYTE_ORDER__.
826 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
827 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
828 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
829 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
830 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
831 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
832 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
833 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
834 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
835 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
836 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
837 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
838 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
839 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
840 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
841 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
842 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
843 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
844 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
845 * doc/tm.texi: Regenerate.
846 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
847 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
849 2010-10-23 Jie Zhang <jie@codesourcery.com>
851 PR rtl-optimization/37360
852 * config/mips/mips.c (cached_can_issue_more): New local variable.
853 (mips_sched_reorder_1): New.
854 (mips_sched_reorder): Use mips_sched_reorder_1.
855 (mips_sched_reorder2): New.
856 (mips_variable_issue): Set cached_can_issue_more.
857 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
858 instead of mips_sched_reorder.
861 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
862 PR rtl-optimization/37360
863 * haifa-sched.c (max_issue): Do not assert that we never issue more
864 insns than issue_rate. Add comment.
866 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
868 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
869 location info of the expression.
871 2010-10-22 DJ Delorie <dj@redhat.com>
873 * doc/extend.texi (Named Address Spaces): Document the M32C named
876 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
878 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
879 "__far" address space for R8C and M16C processor variants.
880 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
881 (far_addr_space_p): New.
882 (encode_pattern_1): Add sign and zero extend support.
883 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
884 (m32c_extra_constraint_p2): Add SF constraint.
885 (m32c_legitimate_address_p): Support __far addresses.
886 (m32c_addr_space_pointer_mode): New.
887 (m32c_addr_space_address_mode): New.
888 (m32c_addr_space_legitimate_address_p): New.
889 (m32c_addr_space_legitimize_address): New.
890 (m32c_addr_space_subset_p): New.
891 (m32c_addr_space_convert): New.
892 (conversions): Add __far operand patterns.
893 (m32c_prepare_move): Force constants into registers for __far moves.
894 (m32c_split_move): __far moves are always split.
895 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
896 * config/m32c/mov.md (mov<mode>_far_op1): New.
897 (mov<mode>_far_op2): New.
898 (movqi_op): Add __far (SF) support.
899 (movhi_op): Likewise.
900 (movsi_splittable): Split A1A0 also.
902 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
903 Andrew Pinski <pinskia@gmail.com>
905 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
906 * doc/extend.texi: New paragraph
908 2010-10-22 Paul Koning <ni1d@arrl.net>
910 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
912 2010-10-22 DJ Delorie <dj@redhat.com>
914 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
916 2010-10-22 Paul Koning <ni1d@arrl.net>
918 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
920 2010-10-22 Richard Henderson <rth@redhat.com>
922 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
923 cases for __builtin_fma and __builtin_fmaf.
925 2010-10-22 Richard Henderson <rth@redhat.com>
927 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
928 NEG+USE for vectors as well.
929 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
932 2010-10-22 Joseph Myers <joseph@codesourcery.com>
934 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
935 SWITCH_CURTAILS_COMPILATION): Remove.
936 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
937 * doc/tm.texi: Regenerate.
938 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
940 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
942 * config/i386/bdver1.md: New file.
943 * config/i386/i386.md (include "bdver1.md"): Invoke the
944 pipeline description for bdver1.
945 (x86_sahf_1): Add "bdver1_decode" attribute.
946 (*cmpfp_i_mixed): Likewise.
947 (*cmpfp_i_sse): Likewise.
948 (*cmpfp_i_i387): Likewise.
949 (*cmpfp_iu_mixed): Likewise.
950 (*cmpfp_iu_sse): Likewise.
951 (*cmpfp_iu_387): Likewise.
952 (*swap<mode>,*swap<mode>_1): Likewise.
953 (fixuns_trunc<mode>hi2): Likewise.
954 (fix_trunc<mode>si_sse): Likewise.
955 (x86_fnstcw_1): Likewise.
956 (x86_fldcw_1): Likewise.
957 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
958 (*floatsi<mode>2_vector_mixed): Likewise.
959 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
960 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
961 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
962 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
963 (*floatsi<mode>2_vector_sse): Likewise.
964 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
965 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
966 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
967 (*mul<mode>3_1): Likewise.
968 (*mulsi3_1_zext): Likewise.
969 (*mulhi3_1): Likewise.
970 (*mulqi3_1): Likewise.
971 (*<u>mul<mode><dwi>3_1): Likewise.
972 (*<u>mulqihi3_1): Likewise.
973 (*<s>muldi3_highpart_1): Likewise.
974 (*<s>mulsi3_highpart_1): Likewise.
975 (*<s>mulsi3_highpart_zext): Likewise.
976 (x86_64_shld): Likewise.
977 (x86_shld): Likewise.
978 (x86_64_shrd): Likewise.
979 (x86_shrd): Likewise.
981 (sqrt_extend<mode>xf2_i387): Likewise.
982 (*sqrt<mode>2_sse): Likewise.
983 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
984 (sse_cvtsi2ssq): Likewise.
985 (sse_cvtss2si): Likewise.
986 (sse_cvtss2si_2): Likewise.
987 (sse_cvtss2siq): Likewise.
988 (sse_cvtss2siq_2): Likewise.
989 (sse_cvttss2si): Likewise.
990 (sse_cvttss2siq): Likewise.
991 (sse2_cvtpi2pd): Likewise.
992 (sse2_cvttpd2pi): Likewise.
993 (sse2_cvtsi2sd): Likewise.
994 (sse2_cvtsi2sdq): Likewise.
995 (sse2_cvtsd2si): Likewise.
996 (sse2_cvtsd2si_2): Likewise.
997 (sse2_cvtsd2siq): Likewise.
998 (sse2_cvtsd2siq_2): Likewise.
999 (sse2_cvttsd2si): Likewise.
1000 (sse2_cvttsd2siq): Likewise.
1001 (*sse2_cvtpd2dq): Likewise.
1002 (*sse2_cvttpd2dq): Likewise.
1003 (sse2_cvtsd2ss): Likewise.
1004 (sse2_cvtss2sd): Likewise.
1005 (*sse2_cvtpd2ps): Likewise.
1006 (sse2_cvtps2pd): Likewise.
1008 2010-10-22 Richard Guenther <rguenther@suse.de>
1011 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
1012 remove the virtual operands if they are not needed.
1014 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1016 * config/i386/i386.c (processor_costs bdver1_cost): Update
1017 insn costs and architectural parameters for bdver1.
1019 2010-10-22 Richard Guenther <rguenther@suse.de>
1021 * gimple.h (gimple_register_canonical_type): Declare.
1022 * gimple.c (gimple_canonical_types): New global hashtable.
1023 (struct gimple_type_leader_entry_s): New type.
1024 (gimple_type_leader): New global cache.
1025 (gimple_lookup_type_leader): New function.
1026 (gtc_visit): Query the proper cache.
1027 (gimple_types_compatible_p): Likewise.
1028 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
1029 (gimple_canonical_type_eq): New function.
1030 (gimple_register_canonical_type): Likewise.
1031 (print_gimple_types_stats): Adjust for gimple_canonical_types.
1032 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
1033 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
1034 gimple_types_compatible_p for LTO.
1036 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
1039 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
1040 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
1041 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
1042 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
1043 (<sse>_movu<ssemodesuffix>): New expander.
1044 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
1045 (avx_movdqu<avxmodesuffix>): New expander.
1046 (*sse2_movdqu): Rename from sse2_movdqu.
1047 (sse2_movdqu): New expander.
1049 2010-10-22 Richard Guenther <rguenther@suse.de>
1051 PR tree-optimization/45720
1052 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
1053 Handle negative step.
1054 (vect_enhance_data_refs_alignment): Likewise.
1055 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
1056 (vect_create_cond_for_align_checks): Likewise.
1057 (vect_create_cond_for_alias_checks): Likewise.
1059 2010-10-22 Ira Rosen <irar@il.ibm.com>
1061 PR tree-optimization/46126
1062 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
1063 vectorizable_shift in case of basic block vectorization.
1065 2010-10-22 Joseph Myers <joseph@codesourcery.com>
1067 * target.h (enum opt_levels, struct default_options): New.
1068 * target.def (handle_ofast): Remove hook.
1069 (target_option.optimization): Change to
1070 target_option.optimization_table.
1071 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
1072 TARGET_OPTION_OPTIMIZATION_TABLE.
1073 (CAN_DEBUG_WITHOUT_FP): Remove.
1074 * doc/tm.texi: Regenerate.
1075 * opts.c (maybe_default_option, maybe_default_options,
1076 default_options_table): New.
1077 (default_options_optimization): Take extra parameters. Don't
1078 assert that global_options and global_options_set are in use. Use
1079 maybe_default_options.
1080 (decode_options): Pass extra parameters to
1081 default_options_optimization.
1082 * common.opt (falign-loops): Use value 0 with Var.
1083 (frerun-cse-after-loop, ftree-ter): Remove Init.
1084 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
1085 TARGET_OPTION_OPTIMIZATION): Remove.
1086 * targhooks.c (empty_optimization_table): New.
1087 * targhooks.h (empty_optimization_table): Declare.
1088 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
1089 * config/alpha/alpha.c (alpha_option_optimization_table,
1090 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1091 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
1092 * config/arm/arm.c (arm_option_optimization: Change to
1093 arm_option_optimization_table.
1094 (TARGET_OPTION_OPTIMIZATION): Change to
1095 TARGET_OPTION_OPTIMIZATION_TABLE.
1096 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
1097 * config/avr/avr.c (avr_option_optimization_table,
1098 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1099 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
1100 * config/cris/cris.c (cris_option_optimization): Change to
1101 cris_option_optimization_table.
1102 (TARGET_OPTION_OPTIMIZATION): Change to
1103 TARGET_OPTION_OPTIMIZATION_TABLE.
1104 * config/crx/crx.c (crx_option_optimization): Change to
1105 crx_option_optimization_table.
1106 (TARGET_OPTION_OPTIMIZATION): Change to
1107 TARGET_OPTION_OPTIMIZATION_TABLE.
1108 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
1109 * config/fr30/fr30.c (fr30_option_optimization_table,
1110 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1111 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
1112 * config/frv/frv.c (frv_option_optimization_table,
1113 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1114 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
1115 * config/h8300/h8300.c (h8300_option_optimization): Change to
1116 h8300_option_optimization_table.
1117 (TARGET_OPTION_OPTIMIZATION): Change to
1118 TARGET_OPTION_OPTIMIZATION_TABLE.
1119 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
1120 * config/i386/i386.c (ix86_option_optimization): Change to
1121 ix86_option_optimization_table.
1122 (TARGET_OPTION_OPTIMIZATION): Change to
1123 TARGET_OPTION_OPTIMIZATION_TABLE.
1124 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
1126 * config/ia64/ia64.c (ia64_option_optimization): Change to
1127 ia64_option_optimization_table.
1128 (TARGET_OPTION_OPTIMIZATION): Change to
1129 TARGET_OPTION_OPTIMIZATION_TABLE.
1130 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
1131 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
1133 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1134 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1135 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
1136 * config/lm32/lm32.c (lm32_option_optimization_table,
1137 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1138 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
1139 * config/m32r/m32r.c (m32r_option_optimization): Change to
1140 m32r_option_optimization_table.
1141 (TARGET_OPTION_OPTIMIZATION): Change to
1142 TARGET_OPTION_OPTIMIZATION_TABLE.
1143 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
1144 CAN_DEBUG_WITHOUT_FP): Remove.
1145 * config/mcore/mcore.c (mcore_option_optimization): Change to
1146 mcore_option_optimization_table.
1147 (TARGET_OPTION_OPTIMIZATION): Change to
1148 TARGET_OPTION_OPTIMIZATION_TABLE.
1149 * config/mep/mep.c (mep_option_optimization): Change to
1150 mep_option_optimization_table.
1151 (TARGET_OPTION_OPTIMIZATION): Change to
1152 TARGET_OPTION_OPTIMIZATION_TABLE.
1153 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
1154 * config/microblaze/microblaze.c
1155 (microblaze_option_optimization_table,
1156 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1157 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
1158 * config/mips/mips.c (mips_option_optimization_table,
1159 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1160 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
1161 * config/mmix/mmix.c (mmix_option_optimization): Change to
1162 mmix_option_optimization_table.
1163 (TARGET_OPTION_OPTIMIZATION): Change to
1164 TARGET_OPTION_OPTIMIZATION_TABLE.
1165 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
1166 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1167 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1168 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
1169 * config/pa/pa.c (pa_option_optimization_table,
1170 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1171 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
1172 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
1173 pdp11_option_optimization_table.
1174 (TARGET_OPTION_OPTIMIZATION): Change to
1175 TARGET_OPTION_OPTIMIZATION_TABLE.
1176 * config/picochip/picochip.c (picochip_option_optimization_table,
1177 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1178 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
1179 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
1180 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1181 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
1182 * config/rx/rx.c (rx_option_optimization_table,
1183 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1184 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
1185 * config/s390/s390.c (s390_option_optimization): Change to
1186 s390_option_optimization_table.
1187 (s390_option_override): Update comment.
1188 (TARGET_OPTION_OPTIMIZATION): Change to
1189 TARGET_OPTION_OPTIMIZATION_TABLE.
1190 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
1191 * config/score/score.c (score_option_optimization_table,
1192 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1193 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
1194 * config/sh/sh.c (sh_option_optimization): Change to
1195 sh_option_optimization_table.
1196 (TARGET_OPTION_OPTIMIZATION): Change to
1197 TARGET_OPTION_OPTIMIZATION_TABLE.
1198 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
1199 (sh_option_override, expand_block_move, multcosts, find_barrier,
1200 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
1201 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
1202 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
1203 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
1204 instead of TARGET_SMALLCODE.
1205 * config/sh/sh.opt (mspace): Make into an alias for -Os.
1206 * config/sparc/sparc.c (sparc_option_optimization_table,
1207 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1208 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
1209 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1210 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1211 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
1212 * config/v850/v850.c (v850_option_optimization): Change to
1213 v850_option_optimization_table.
1214 (TARGET_OPTION_OPTIMIZATION): Change to
1215 TARGET_OPTION_OPTIMIZATION_TABLE.
1216 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
1217 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
1218 xtensa_option_optimization_table.
1219 (TARGET_OPTION_OPTIMIZATION): Change to
1220 TARGET_OPTION_OPTIMIZATION_TABLE.
1221 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
1223 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
1225 Based on the CFString implementation in FSF apple/trunk branch.
1227 * target.def (objc_construct_string): New Hook.
1228 * doc/tm.texi (objc_construct_string): Document.
1229 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
1230 * config/t-darwin: Amend build rules for darwin.o.
1231 * config/darwin.opt: Add cfstrings flags.
1232 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
1233 (darwin_objc_construct_string): New.
1234 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
1235 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
1236 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
1237 (darwin_fold_builtin): Likewise.
1238 (darwin_build_constant_cfstring): Likewise.
1239 (darwin_objc_construct_string): Likewise.
1240 (darwin_cfstring_p): Likewise.
1241 (darwin_enter_string_into_cfstring_table): Likewise.
1242 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
1243 * config/darwin.c (darwin_running_cxx): New var.
1244 (machopic_select_section): Return cfstring_constant_object_section.
1245 (darwin_override_options): Set darwin_running_cxx.
1246 (add_builtin_field_decl): New.
1247 (darwin_init_cfstring_builtins): New.
1248 (darwin_build_constant_cfstring): New.
1249 (darwin_fold_builtin): New.
1250 (cfstring_hash): New.
1252 (darwin_enter_string_into_cfstring_table): New.
1253 * config/darwin-sections.def (cfstring_constant_object_section): New.
1254 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
1255 (TARGET_OBJC_CONSTRUCT_STRING): Define.
1257 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1259 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
1260 TYPE_STUB_DECL instead of TREE_CHAIN.
1261 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
1262 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
1263 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
1264 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
1265 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
1266 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
1268 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
1270 2010-10-22 Jie Zhang <jie@codesourcery.com>
1272 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
1273 (copy_blkmode_from_reg): Likewise.
1274 (read_complex_part): Likewise.
1275 (expand_expr_real_1): Calculate packedp and pass it to
1277 * expr.h (extract_bit_field): Update declaration.
1278 * calls.c (store_unaligned_arguments_into_pseudos): Update call
1279 to extract_bit_field.
1280 * expmed.c (extract_fixed_bit_field): Update calls to
1281 extract_fixed_bit_field.
1282 (store_split_bit_field): Likewise.
1283 (extract_bit_field_1): Add new argument packedp.
1284 (extract_bit_field): Add new argument packedp.
1285 (extract_fixed_bit_field): Add new argument packedp and let
1286 packed attribute override volatile.
1287 * stmt.c (expand_return): Update call to extract_bit_field.
1289 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1291 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
1293 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1295 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
1296 of gcc_checking_assert.
1297 * sel-sched.c (code_motion_process_successors): Likewise.
1299 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
1301 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
1302 when stopping because of a different locus on edge or insn.
1303 (try_optimize_cfg): Add comment.
1304 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
1305 block is a forwarder block, propagate locus on the edge.
1306 (cfg_layout_merge_blocks): Likewise.
1308 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
1311 * config/i386/i386.md (*pushti2): New insn pattern.
1312 (pushti2 splitter): New insn splitter.
1313 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
1316 2010-10-21 Paul Koning <ni1d@arrl.net>
1318 * config/pdp11/pdp11-protos.md (arith_operand,
1319 const_immediate_operand, expand_shift_operand,
1320 immediate15_operand): Delete
1321 * config/pdp11/pdp11.c: Ditto.
1322 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
1323 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
1324 EXTRA_CONSTRAINT): Delete.
1325 * config/pdp11/pdp11.md (various): Use standard constraints
1326 instead of removed ones.
1327 * config/pdp11/constraints.md: New file.
1328 * config/pdp11/predicates.md: New file.
1330 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
1333 * alias.c (true_dependence_1): Remove obsolete check for QImode.
1334 (may_alias_p): Ditto.
1336 2010-10-21 Martin Jambor <mjambor@suse.cz>
1338 PR tree-optimization/45875
1339 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
1341 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1343 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
1345 (create_new_def_for): Likewise.
1347 2010-10-21 Nick Clifton <nickc@redhat.com>
1349 * config/mn10300/mn10300.c: Fold code to 80-character width.
1350 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1351 MEM, CONST_INT and CONST_DOUBLE.
1352 (targetm): Move initialization to end of file.
1353 (print_operand): Rename to mn10300_print_operand.
1354 (print_operand_address): Rename to mn10300_print_operand_address.
1355 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
1356 (expand_prologue): Rename to mn10300_expand_prologue.
1357 (expand_epilogue): Rename to mn10300_expand_epilogue.
1358 (initial_offset): Rename to mn10300_initial_offset.
1359 (function_arg): Rename to mn10300_function_arg.
1360 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
1361 (symbolic_operand): Rename to mn10300_symbolic_operand.
1362 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
1363 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
1364 * config/mn10300/mn10300-protos.h: Update prototypes.
1365 * config/mn10300/mn10300.h: Fold code to 80-character width.
1366 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1367 MEM, CONST_INT and CONST_DOUBLE.
1368 (CPP_SPEC): Move to...
1369 (TARGET_CPU_CPP_BUILTINS): ... here.
1370 * config/mn10300/mn10300.md: Fold code to 80-character width.
1371 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1372 MEM, CONST_INT and CONST_DOUBLE.
1374 2010-10-21 Ira Rosen <irar@il.ibm.com>
1376 PR tree-optimization/46049
1377 PR tree-optimization/46052
1378 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
1379 (vect_get_slp_defs): Add arguments.
1380 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
1381 operands to vect_get_slp_defs.
1382 (vectorizable_reduction): Fix comment, pass scalar operands to
1384 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
1385 type to determine number of units in the created vector.
1386 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
1387 (vectorizable_conversion): Fix comment.
1388 (vectorizable_shift): New function.
1389 (vectorizable_operation): Move code that handles shifts to
1391 (vectorizable_type_demotion): Fix comment, pass scalar operands to
1393 (vectorizable_type_promotion, vectorizable_store): Likewise.
1394 (vectorizable_condition): Fix comment.
1395 (vect_analyze_stmt): Call vectorizable_shift.
1396 (vect_transform_stmt): Likewise.
1397 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
1398 Use it as the operand to create vectors for, except reduction
1399 initial definition and store. Use operands type.
1400 (vect_get_slp_defs): Add new arguments. Pass them to
1401 vect_get_constant_vectors.
1403 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1405 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
1406 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
1407 * cfghooks.c (fixup_reorder_chain): Likewise.
1408 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
1409 * cgraph.c (cgraph_add_thunk): Likewise.
1410 (cgraph_create_edge_1): Likewise.
1411 (cgraph_create_virtual_clone): Likewise.
1412 * ddg.c (add_cross_iteration_register_deps): Likewise.
1413 * dwarf2out.c (modified_type_die): Likewise.
1414 * emit-rtl.c (set_mem_alias_set): Likewise.
1415 * ggc-zone.c (zone_allocate_marks): Likewise.
1416 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
1417 * gimple.c (iterative_hash_gimple_type): Likewise.
1418 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
1419 (create_single_exit_edge): Likewise.
1420 * haifa-sched.c (choose_ready): Likewise.
1421 * lto-streamer-in.c (input_gimple_stmt): Likewise.
1422 * passes.c (execute_todo): Likewise.
1423 * sched-ebb.c (begin_schedule_ready): Likewise.
1424 * sel-sched.c (code_motion_process_successors): Likewise.
1425 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
1426 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
1427 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
1428 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
1429 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
1430 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
1431 (ssa_conflicts_add): Likewise.
1432 * tree-ssa-copy.c (replace_exp): Likewise.
1433 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
1434 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
1435 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1436 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
1437 (compute_antic): Likewise.
1438 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
1439 (add_dependence): Likewise.
1440 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
1441 * tree-vrp.c (supports_overflow_infinity): Likewise.
1442 (make_overflow_infinity, negative_overflow_infinity): Likewise.
1443 (avoid_overflow_infinity, register_new_assert_for): Likewise.
1444 (process_assert_insertions_for): Likewise.
1445 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
1446 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
1447 (intersect_loc_chains, variable_merge_over_cur): Likewise.
1449 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1451 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
1452 * reload1.c (has_nonexceptional_receiver): Likewise.
1453 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
1454 (create_new_def_for): Likewise.
1455 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
1456 (merge_phi_nodes): Likewise.
1457 (has_abnormal_incoming_edge_p): Delete.
1459 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
1461 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
1463 2010-10-21 Richard Guenther <rguenther@suse.de>
1464 Michael Matz <matz@suse.de>
1466 PR tree-optimization/45764
1467 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1468 Adjust initial misalignment for negative DR_STEP.
1469 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
1470 do not have the same alignment over the whole iteration domain.
1472 2010-10-21 Richard Guenther <rguenther@suse.de>
1474 PR tree-optimization/46111
1475 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
1477 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1479 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
1481 2010-10-21 Tristan Gingold <gingold@adacore.com>
1483 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
1484 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
1486 2010-10-21 Tristan Gingold <gingold@adacore.com>
1488 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
1490 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
1492 2010-10-21 Tristan Gingold <gingold@adacore.com>
1494 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
1495 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
1497 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
1499 * basic-block.h (find_fallthru_edge): Define.
1500 * cfgcleanup.c (merge_blocks_move): Use it.
1501 (try_crossjump_bb): Likewise.
1502 * cfglayout.c (fixup_reorder_chains): Likewise.
1503 (fixup_fallthru_exit_predecessor): Likewise.
1504 * cfgrtl.c (rtl_split_edge): Likewise.
1505 (rtl_verify_flow_info): Likewise.
1506 * function.c (thread_prologue_and_epilogue_insns): Likewise.
1507 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
1508 * ifcvt.c (block_fallthru): Likewise.
1509 * reload1.c (fixup_abnormal_edges): Likewise.
1510 * sched-ebb.c (being_schedule_ready): Likewise.
1511 (schedule_ebb): Likwise.
1512 * sched-rgn.c (find_single_block_region): Likewise.
1513 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
1514 * tree-complex.c (expand_complex_move): Likewise.
1515 * sched-int.h (find_fallthru_edge): Rename to...
1516 (find_fallthru_edge_from): ...this.
1517 * haifa-sched.c (find_fallthru_edge): Rename to...
1518 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
1519 (init_before_recovery): Call find_fallthru_edge_from.
1520 * sel-sched-ir.c (merge_fences): Likewise.
1521 * sel-sched.c (in_fallthru_bb_p): Likewise.
1522 (move_cond_jump): Likewise.
1524 2010-10-20 Paul Koning <ni1d@arrl.net>
1526 * config/pdp11/pdp11.md (various): Fix conditions on a number of
1527 insn to check for target 11/40 or higher.
1529 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1531 * parser.c (c_parser_objc_method_type): Mark inline. Return a
1532 bool instead of a tree.
1533 (c_parser_objc_method_decl): Added bool argument. Updated call to
1534 objc_build_method_signature.
1535 (c_parser_objc_method_definition): Do not call
1536 objc_set_method_type. Updated calls to c_parser_objc_method_type,
1537 c_parser_objc_method_decl and objc_start_method_definition.
1538 (c_parser_objc_methodproto): Do not call objc_set_method_type.
1539 Updated calls to c_parser_objc_method_type,
1540 c_parser_objc_method_decl and objc_add_method_declaration.
1542 2010-10-20 Jakub Jelinek <jakub@redhat.com>
1544 PR tree-optimization/45919
1545 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
1548 PR tree-optimization/46066
1549 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
1550 instead of gsi_last_bb.
1552 2010-10-20 DJ Delorie <dj@redhat.com>
1554 * config/m32c/m32c.c (m32c_option_override): Always disable
1555 function-cse in 16-bit mode. Indirect calls are always worse than
1556 direct calls as there is no 16-bit indirect call opcode.
1557 (m32c_override_options_after_change): New, likewise.
1559 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
1561 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
1562 emitting the conditional move in the inner mode of the SUBREG.
1564 2010-10-20 Anatoly Sokolov <aesok@post.ru>
1566 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
1567 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
1568 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1569 (ia64_preferred_reload_class): Make static. Change rclass argument
1570 and result types from enum reg_class to reg_class_t.
1572 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
1574 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
1575 call for single operand expression.
1577 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
1579 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
1580 if there is a call statement to pure or const function in the block.
1582 2010-10-20 Paul Koning <pkoning@equallogic.com>
1584 Fix several build errors for pdp11 target.
1585 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
1586 (cbranchdf4): Conditional on TARGET_FPU.
1587 (movdf): Ditto; correct alternatives check.
1588 (movmemhi): Fix predicate and constraint.
1589 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
1591 2010-10-20 Richard Guenther <rguenther@suse.de>
1594 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
1595 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
1596 (verify_gimple_assign_single): Disable ADDR_EXPR type check
1599 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
1602 * ira-emit.c (store_can_be_removed_p): Return false instead of
1605 2010-10-20 Dmitry Melnik <dm@ispras.ru>
1607 * fold-const.c (fold_binary_loc): New transformation.
1609 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
1612 * config/i386/sse.md (reduc_splus_v8sf): Updated.
1613 (reduc_splus_v4df): Likewise.
1615 2010-10-20 Richard Guenther <rguenther@suse.de>
1617 PR tree-optimization/45860
1618 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
1619 conditional store replacement for non-register type stores.
1621 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
1623 * stor-layout.c (skip_simple_constant_arithmetic): New function.
1624 (self_referential_size): Use it instead of skip_simple_arithmetic.
1626 2010-10-20 Olivier Hainque <hainque@adacore.com>
1628 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
1629 If the current function calls eh_return, claim live all registers
1630 that we need to check for liveness otherwise.
1632 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1634 * c-decl.c (c_write_global_declarations): Call
1635 objc_write_global_declarations when compiling Objective-C.
1636 * c-lang.c (finish_file): Removed.
1638 2010-10-19 DJ Delorie <dj@redhat.com>
1640 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
1641 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
1642 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
1643 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
1644 * doc/tm.texi: Regenerate.
1645 * targhooks.h (default_label_align_after_barrier_max_skip,
1646 default_loop_align_max_skip, default_label_align_max_skip,
1647 default_jump_align_max_skip): Declare.
1648 * target.def (label_align_after_barrier_max_skip): New.
1649 (loop_align_max_skip): New.
1650 (label_align_max_skip): New.
1651 (jump_align_max_skip): New.
1652 * system.h (poison): Add those macros to the list.
1653 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
1654 (LOOP_ALIGN_MAX_SKIP): Remove.
1655 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
1656 (JUMP_ALIGN_MAX_SKIP): Remove.
1657 (default_label_align_after_barrier_max_skip): New.
1658 (default_loop_align_max_skip): New.
1659 (default_label_align_max_skip): New.
1660 (default_jump_align_max_skip): New.
1661 (compute_alignments): Use the new hooks.
1662 (shorten_branches): Likewise.
1664 2010-10-19 Richard Henderson <rth@redhat.com>
1666 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
1667 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
1668 (fma4i_fmadd_<mode>): New.
1669 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
1670 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
1671 standard fma patterns.
1672 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
1674 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
1675 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
1676 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
1678 2010-10-19 Paul Koning <pkoning@equallogic.com>
1680 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
1681 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
1683 2010-10-19 Richard Henderson <rth@redhat.com>
1685 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
1686 (fmadf4, *fmsdf4, *nfmadf4): New.
1687 (fmaxf4, *fmsxf4, *nfmaxf4): New.
1689 2010-10-19 Michael Eager <eager@eagercon.com>
1691 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
1692 Use sjlj unwind info for exceptions.
1694 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
1697 * dwarf2out.c (add_calling_convention_attribute): Flag main
1698 Fortran subroutine with DW_AT_main_subprogram.
1700 2010-10-19 Nick Clifton <nickc@redhat.com>
1702 * config/rx/rx.c (rx_function_value): Small integer types are
1704 (rx_promote_function_mode): New function.
1705 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1707 2010-10-19 Nick Clifton <nickc@redhat.com>
1709 * config/mep/mep.c (mep_print_operand): Use
1710 targetm.strip_name_encoding.
1711 (mep_output_aligned_common): Likewise.
1713 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
1715 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
1717 2010-10-18 Richard Henderson <rth@redhat.com>
1719 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
1720 (fma (neg a) (neg b) c) and (fma a (neg b) c).
1722 2010-10-18 Richard Henderson <rth@redhat.com>
1724 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
1725 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
1726 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
1727 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
1728 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
1729 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
1730 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
1731 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
1732 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
1733 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
1734 (bdesc_multi_arg): Remove the corresponding builtins.
1735 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
1736 (UNSPEC_FMA4_FMSUBADD): Remove.
1737 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
1738 * config/i386/sse.md (FMA4MODEF4): Remove.
1740 (fma<mode>4): New expander.
1741 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
1742 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
1743 (*fma4i_fmsub_<mode>): Similarly.
1744 (*fma4i_fnmadd_<mode>): Similarly.
1745 (*fma4i_fnmsub_<mode>): Similarly.
1746 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
1747 with the first operand.
1748 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
1749 of explicit arithmetic. Macroize with AVXMODEF2P.
1750 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
1751 (xop_frcz<mode>2): Macroize with FMAMODE.
1752 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
1754 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
1756 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
1757 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
1758 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
1759 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
1760 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
1761 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
1762 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
1763 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
1765 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
1767 PR rtl-optimization/45966
1768 * combine.c (try_combine): If added_sets_2, deal with the case
1769 where i0 feeds i1 and i1 feeds i2.
1771 2010-10-18 Jan Hubicka <jh@suse.cz>
1773 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
1774 preserve flags before trying to guess on visibility.
1775 (varpool_externally_visible_p): New function.
1776 (function_and_variable_visibility): Use it.
1778 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1780 Implemented parsing @synthesize and @dynamic for Objective-C.
1781 * c-parser.c (c_parser_external_declaration): Recognize
1782 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1783 (c_parser_objc_at_synthesize_declaration): New.
1784 (c_parser_objc_at_dynamic_declaration): New.
1786 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1788 * c-parser.c (c_parser_objc_class_declaration): After finding an
1789 error, parse the whole declaration then reset parser->error.
1791 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1794 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
1795 * builtins.c (mode_has_fma): Ditto.
1797 2010-10-18 Steve Ellcey <sje@cup.hp.com>
1801 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
1803 2010-10-18 Joseph Myers <joseph@codesourcery.com>
1805 * config/i386/i386.c (ix86_option_override_internal): Define and
1806 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
1808 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1809 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
1811 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1813 Merge from 'apple/trunk' branch on FSF servers.
1814 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
1815 following Objective-C change:
1817 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
1820 * c-parse.in (objc_quals): Build objc qualifier list same way
1823 2010-10-18 Jan Hubicka <jh@suse.cz>
1825 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
1826 function_and_variable_visibility): Revert accidental commit.
1828 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1830 Merge from 'apple/trunk' branch on FSF servers.
1831 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
1832 the following Objective-C change:
1834 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
1837 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
1838 'volatilized' type used in a typeof operator.
1840 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1842 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
1843 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
1844 rewrite modelled on gimple_purge_dead_eh_edges.
1845 (gimple_purge_all_dead_abnormal_call_edges): New function.
1846 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
1847 directly instead of through gimple_purge_dead_abnormal_call_edges.
1848 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
1849 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
1850 removed AB side-effects from one of its statements.
1851 (init_pre): Initialize need_ab_cleanup.
1852 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
1853 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
1855 2010-10-18 Jakub Jelinek <jakub@redhat.com>
1858 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
1859 on computed goto argument.
1861 2010-10-18 Richard Guenther <rguenther@suse.de>
1863 PR tree-optimization/45967
1864 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
1865 (could_have_pointers): Likewise.
1866 (handle_rhs_call, handle_const_call, handle_pure_call,
1867 find_func_aliases, intra_create_variable_infos): Remove calls to them.
1868 (struct fieldoff): Add must_have_pointers field.
1869 (type_must_have_pointers): New function.
1870 (field_must_have_pointers): Likewise.
1871 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
1872 Adjust field merging.
1873 (create_function_info_for): May-have-pointers of varinfo is
1875 (create_variable_info_for_1): Likewise.
1877 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
1879 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
1880 of operands to vec_concat.
1882 2010-10-18 Richard Guenther <rguenther@suse.de>
1885 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
1886 also clear references to entries of it.
1888 2010-10-18 Andi Kleen <ak@linux.intel.com>
1891 * gccbug.in: Remove.
1892 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
1893 (doc, distclean, install-common): Remove reference to gccbug.
1894 * configure: Regenerate.
1895 * configure.ac (all_outputs): Remove gccbug.
1896 * doc/configfiles.texi: Remove references to gccbug.
1897 * doc/sourcebuild.texi: Dito.
1899 2010-10-18 Jakub Jelinek <jakub@redhat.com>
1902 * fold-const.c (fold_binary_loc): If integer_pow2p has
1903 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
1905 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
1906 Jeremie Salvucci <jeremie.salvucci@free.fr>
1908 * gengtype.c (verbosity_level): Add variable.
1909 (set_gc_used): Count variables for verbosity.
1910 (close_output_files): Backing up files, counting written ones
1912 (write_types): Count emitted functions for verbosity. Added
1914 (write_enum_defn): Count structures for verbosity. Added debug
1916 (gengtype_long_options): Add "verbose" & "backupdir".
1917 (print_usage): Ditto.
1918 (main): Verbose display of parsed files.
1920 * gengtype.h (verbosity_level): Add declaration.
1922 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
1924 * gengtype.c (parse_program_options): Add allocation of
1925 plugin_files, and correct test on nb_plugin_files.
1927 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1929 Merge from 'apple/trunk' branch on FSF servers.
1931 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1934 * c-decl.c (undeclared_variable): Issue diagnostic on
1935 private 'ivar' access.
1937 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
1940 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
1941 generated sequence to match *avx_vperm2f128<mode>_nozero.
1942 (vec_interleave_lowv4df): Ditto.
1943 (vec_interleave_highv8sf): Ditto.
1944 (vec_interleave_lowv8sf): Ditto.
1946 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
1948 * libgcov.c (create_file_directory): Enable it for win32 case.
1949 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
1950 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
1951 (GCOV_PREFIX_SKIP): Likewise.
1953 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1955 * doc/objc.texi (GNU Objective-C runtime API): New section.
1956 (Modern GNU Objective-C runtime API): New section.
1957 (Traditional GNU Objective-C runtime API): New section.
1958 (Executing code before main): Mention that this section is
1959 specific to the GNU Objective-C runtime.
1960 (Garbage Collection): Same.
1962 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
1964 * c-parser.c (c_parser_for_statement): Move initialization of
1965 cond and incr before if.
1967 2010-10-17 Anatoly Sokolov <aesok@post.ru>
1969 * target.def (preferred_output_reload_class): New hook.
1970 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
1971 * doc/tm.texi: Regenerate.
1972 * targhooks.c (default_preferred_output_reload_class): New function.
1973 * targhooks.h (default_preferred_output_reload_class): Declare.
1974 * reload.c (find_dummy_reload): Change rclass argument type from
1975 enum reg_class to reg_class_t. Change this_alternative array type
1976 from enum reg_class to reg_class_t.
1977 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
1978 (push_reload): Change preferred_class variable type to reg_class_t.
1979 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
1980 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
1981 argument type from enum reg_class to reg_class_t. Use
1982 HARD_REGISTER_NUM_P predicate.
1983 * recog.h (reg_fits_class_p): Update prototype.
1985 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1986 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
1988 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
1989 static. Change regclass argument and result types from enum reg_class
1991 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1993 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1995 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
1996 visibility enum, and handle @package.
1998 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2000 * doc/objc.texi (What you can and what you cannot do in +load):
2001 Document that sending messages to constant string objects in +load
2002 is not guaranteed to work.
2004 2010-10-16 Jan Hubicka <jh@suse.cz>
2007 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
2008 existence of refrences before removing the function.
2010 2010-10-16 Jan Hubicka <jh@suse.cz>
2012 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
2013 only_called_at_startup and only_called_at_exit.
2014 (cgraph_propagate_frequency): Compute only_called_at_startup and
2015 only_called_at_exit.
2016 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
2017 only_called_at_exit.
2018 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
2020 * predict.c (compute_function_frequency): Initialize the new flags.
2022 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
2024 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
2025 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
2026 on the bounds of its domain.
2027 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
2029 2010-10-16 Anatoly Sokolov <aesok@post.ru>
2031 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
2032 * config/avr/avr-protos.h (preferred_reload_class): Remove.
2033 * config/avr/avr.c (preferred_reload_class): Remove.
2034 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
2035 * config/pa/pa.c (emit_move_sequence): Update comment
2036 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
2037 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
2038 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
2039 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
2040 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
2041 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
2042 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
2043 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
2044 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
2045 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
2046 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
2047 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
2048 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
2050 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2052 * opts.c (set_fast_math_flags,
2053 set_unsafe_math_optimizations_flags): Make static.
2054 * toplev.h (set_fast_math_flags,
2055 set_unsafe_math_optimizations_flags): Remove prototypes.
2057 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2059 * config/arm/arm.c (arm_option_optimization): Set
2060 flag_section_anchors to 1 not 2.
2061 * config/i386/i386.c (ix86_option_override_internal): Check
2062 global_options_set.x_flag_zee and
2063 global_options_set.x_flag_omit_frame_pointer.
2064 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
2066 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
2067 global_options_set.x_flag_omit_frame_pointer.
2068 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
2069 opts->x_flag_section_anchors to 1 not 2.
2070 * config/sh/sh.c (sh_option_optimization): Don't set
2071 flag_schedule_insns to 2.
2072 (sh_option_override): Check
2073 global_options_set.x_flag_schedule_insns.
2074 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
2076 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
2078 * configure.ac: Make sure inhibit_libc remains false for mingw targets
2080 * configure: Regenerated.
2082 2010-10-15 Xinliang David Li <davidxl@google.com>
2084 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
2086 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
2087 into a recursive function.
2089 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
2091 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
2092 (*movdfcc_1): ditto.
2094 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2096 * target.def (target_option.init_struct): New hook.
2097 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
2098 * doc/tm.texi: Regenerate.
2099 * hooks.c (hook_void_gcc_optionsp): New.
2100 * hooks.h (hook_void_gcc_optionsp): Declare.
2101 * langhooks-def.h (lhd_init_options_struct): Remove.
2102 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
2103 * langhooks.c (lhd_init_options_struct): Remove.
2104 * opts.c (init_options_struct): Also call
2105 targetm.target_option.init_struct.
2106 * config/i386/i386.c (ix86_option_init_struct,
2107 TARGET_OPTION_INIT_STRUCT): New.
2108 (ix86_option_optimization): Move some settings to
2109 ix86_option_init_struct.
2110 * config/pdp11/pdp11.c (pdp11_option_init_struct,
2111 TARGET_OPTION_INIT_STRUCT): New.
2112 (pdp11_option_optimization): Move some settings to
2113 pdp11_option_init_struct.
2114 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
2115 rs6000_option_init_struct. Use options structure pointer.
2116 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
2117 * config/s390/s390.c (s390_option_init_struct,
2118 TARGET_OPTION_INIT_STRUCT): New.
2119 (s390_option_optimization): Don't set
2120 flag_asynchronous_unwind_tables here.
2121 * config/sh/sh.c (sh_option_init_struct,
2122 TARGET_OPTION_INIT_STRUCT): New.
2123 (sh_option_optimization): Don't set flag_finite_math_only here.
2124 * config/spu/spu.c (spu_option_optimization): Replace by
2125 spu_option_optimization. Use options structure pointer.
2126 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
2128 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2130 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
2132 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
2133 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
2134 (Standard names): Document fma.
2136 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
2137 __FP_FAST_FMAF, __FP_FAST_FMAL.
2139 * builitns.c (expand_builtin_mathfn_ternary): New function for
2140 expanding ternary math functions, like fma.
2141 (expand_builtin): Call it for the fma builtins.
2143 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
2146 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
2147 vectorizable functions to support vectorizing fma.
2149 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
2150 Handle fma builtins.
2152 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
2153 (UNSPEC_VSX_MSUB): Ditto.
2154 (UNSPEC_VSX_NMADD): Ditto.
2155 (UNSPEC_VSX_NMSUB): Ditto.
2156 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
2157 of UNSPEC. Renumber combiner patterns.
2158 (vsx_fmsub<mode>4*): Ditto.
2159 (vsx_fnmadd<mode>4*): Ditto.
2160 (vsx_fnmsub<mode>4*): Ditto.
2162 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
2163 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
2164 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
2165 (altivec_vmaddfp_1): Ditto.
2166 (altivec_vmaddfp_2): Ditto.
2167 (atlivec_mulv4sf3): Ditto.
2168 (altivec_vnmsubfp): Ditto.
2169 (altivec_vnmsubfp_1): Ditto.
2170 (altivec_vnmsubfp_2): Ditto.
2171 (altivec_vnmsubfp_3): Delete.
2173 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
2174 (fmasf4_fpr): Ditto.
2175 (fmssf4_fpr): Ditto.
2176 (fnmasf4_fpr): Ditto.
2177 (fnmssf4_fpr): Ditto.
2179 (fmadf4_fpr): Ditto.
2180 (fmsdf4_fpr): Ditto.
2181 (fnmadf4_fpr): Ditto.
2182 (fnmsdf4_fpr): Ditto.
2184 * optabs.h (OTI_fma): Add fma optab.
2187 * genopinit.c (optabs): Set fma optab.
2189 * rtl.def (FMA): Add FMA rtl.
2191 * tree.h (mode_has_fma): New function to return if MODE supports a
2192 fast multiply and add instruction.
2193 * builtins.c (mode_has_fma): Ditto.
2195 2010-10-15 Jan Hubicka <jh@suse.cz>
2197 * lto-streamer-out.c (write_symbol): Use pointer set of seen
2198 objects instead of bitmap.
2199 (produce_symtab): Likewise; output defined symbols first.
2201 2010-10-15 Jie Zhang <jie@codesourcery.com>
2203 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
2204 Option Summary and Index.
2206 2010-10-15 Richard Guenther <rguenther@suse.de>
2208 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
2209 for automatic variables again.
2211 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2213 * doc/extend.texi (Variable Length): Don't refer to VLAs not
2216 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2218 * config/rx/rx.c (rx_option_optimization): Change to
2219 rx_override_options_after_change. Don't change
2220 flag_lto_compression_level. Don't check for changes to whether
2221 FPU instructions can be used. Check and set only
2222 flag_finite_math_only, not other fast-math flags.
2223 (rx_option_override): Call rx_override_options_after_change.
2224 (TARGET_OPTION_OPTIMIZATION): Remove.
2225 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2227 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2229 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
2230 disable section anchors for lang_hooks.name[4] != 'O'.
2232 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2234 * config/frv/frv.c (frv_option_optimization,
2235 TARGET_OPTION_OPTIMIZATION): Remove.
2236 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
2238 2010-10-15 Michael Matz <matz@suse.de>
2240 * cgraphunit.c (clone_of_p): Define unconditionally.
2242 2010-10-15 Richard Guenther <rguenther@suse.de>
2245 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
2247 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
2249 * ifcvt.c (find_active_insn_before): New function.
2250 (find_active_insn_after): New function.
2251 (cond_exec_process_if_block): Use new functions to replace
2252 prev_active_insn() and next_active_insn().
2254 2010-10-14 Yao Qi <yao@codesourcery.com>
2257 * config/arm/arm.c (arm_build_builtin_va_list): Assign
2258 va_list_name to TYPE_STUB_DECL (va_list_type).
2260 2010-10-14 Jan Hubicka <jh@suse.cz>
2263 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
2264 redirected to clone, be happy.
2265 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
2266 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
2267 former_clone_of unconditionally.
2269 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2271 Merge from FSF apple 'trunk' branch.
2272 2006 Fariborz Jahanian <fjahanian@apple.com>
2274 Radars 4436866, 4505126, 4506903, 4517826
2275 * c-parser.c (c_parser, objc_property_attr_context) New flag.
2276 (c_lex_one_token): Handle property attributes.
2277 (c_parser_external_declaration): Handle @property.
2278 (c_parser_declaration_or_fndef): Warn on invalid attributes before
2279 @alias, @class, @end and @property objc keywords.
2280 (c_parser_objc_methodprotolist): Handle @property.
2281 (c_parser_objc_property_attrlist): New.
2282 (c_parser_objc_at_property): New.
2283 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
2284 (build_modify_expr): Likewise.
2286 2010-10-14 Jakub Jelinek <jakub@redhat.com>
2288 PR tree-optimization/46008
2289 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
2291 2010-10-14 Richard Guenther <rguenther@suse.de>
2293 PR tree-optimization/44913
2294 * tree-data-ref.c (disjoint_objects_p): Remove.
2295 (dr_may_alias_p): Simplify. Only hand the base object to
2297 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2298 some more trees, bail out instead of asserting.
2299 (ptr_derefs_may_alias_p): Likewise. Export.
2300 (refs_may_alias_p_1): Handle STRING_CSTs.
2301 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
2303 2010-10-14 Joseph Myers <joseph@codesourcery.com>
2306 * c-typeck.c (build_binary_op): Don't try to compute a semantic
2307 type with excess precision for boolean operations.
2309 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
2310 Basile Starynkevitch <basile@starynkevitch.net>
2312 * gengtype.c: Include getopt.h and version.h.
2314 (lang_bitmap, struct outf, outf_p)
2315 (get_output_file_with_visibility, oprintf): Definitions moved to
2317 (output_files, header_file, srcdir, srcdir_len, this_file)
2318 (do_dump): No more static variables.
2320 (dbgprint_count_type_at): Added new function.
2321 (gengtype_long_options): New.
2322 (print_usage, print_version, parse_program_options): New.
2323 (main): Call parse_program_options, and removed old option
2324 handling code. Added some debug output.
2326 * gengtype.h: Updated copyright year.
2327 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
2328 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
2329 Moved from gengtype.c to here.
2330 (do_debug, read_state_filename, write_state_filename): New variables.
2331 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
2334 (REVISION): Always defined.
2335 (version.o): Removed ifdef REVISION_c.
2336 (s-gtype): Pass arguments to build/gengtype program.
2337 (build/version.o): Added building rule.
2338 (build/gengtype$(build_exeext)): Added build/version.o.
2340 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2342 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
2343 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
2346 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
2348 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
2349 may_trap_or_fault_p instead of may_trap_p predicate.
2350 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
2351 (substitute_placeholder_in_expr): Likewise.
2352 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
2353 flag on MEM_REF nodes.
2354 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
2355 flags on INDIRECT_REF nodes.
2357 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
2359 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
2360 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
2361 (arm*-*-eabi*) <tm_file>: Likewise.
2362 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
2363 (frv-*-*linux*) <tm_file>: Likewise.
2364 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
2365 and associated helper macros.
2366 * config/frv/frv-abi.h: Delete.
2368 2010-10-14 Richard Guenther <rguenther@suse.de>
2371 * tree.def (NULLPTR_TYPE): New tree code.
2372 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
2373 * dwarf2out.c (is_base_type): Likewise.
2374 (gen_type_die_with_usage): Likewise.
2375 * sdbout.c (plain_type_1): Likewise.
2376 * tree.c (build_int_cst_wide): Likewise.
2377 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
2379 2010-10-14 Joseph Myers <joseph@codesourcery.com>
2381 * params.c (params_finished): New.
2382 (add_params): Assert !params_finished.
2383 (finish_params): New.
2384 (set_param_value_internal): Take params and params_set
2385 parameters. Assert params_finished.
2386 (set_param_value, maybe_set_param_value): Take params and
2387 params_set parameters. Update calls to set_param_value_internal.
2388 (set_default_param_value): Assert !params_finished. Don't use
2389 set_param_value_internal.
2390 (default_param_value, init_param_values): New.
2391 * params.h (struct param_info): Change value to default_value.
2393 (set_param_value, maybe_set_param_value): Add params and
2394 params_set parameters.
2395 (PARAM_VALUE): Get parameters from global_options.
2396 (PARAM_SET_P): Remove.
2397 (finish_params, default_param_value, init_param_values): New.
2398 * common.opt (param_values): New Variable.
2399 * config/arm/arm.c (arm_option_override): Pass extra arguments to
2400 maybe_set_param_value.
2401 * config/i386/i386.c (ix86_option_override_internal): Pass extra
2402 arguments to maybe_set_param_value.
2403 * config/picochip/picochip.c (picochip_option_override): Pass
2404 extra arguments to maybe_set_param_value.
2405 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
2406 extra arguments to maybe_set_param_value.
2407 * config/s390/s390.c (s390_option_override): Use
2408 maybe_set_param_value instead of set_param_value. Pass extra
2409 arguments to maybe_set_param_value.
2410 * config/sparc/sparc.c (sparc_option_override): Pass extra
2411 arguments to maybe_set_param_value.
2412 * config/spu/spu.c (spu_option_override): Pass extra arguments to
2413 maybe_set_param_value.
2414 * opts.c (handle_param): Take opts and opts_set parameters.
2415 Update call to set_param_value.
2416 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
2417 initial_loop_invariant_max_bbs_in_loop): Remove.
2418 (init_options_once): Don't set them.
2419 (init_options_struct): Initialize parameters structures.
2420 (default_options_optimization): Use default_param_value when
2421 restoring defaults. Update calls to maybe_set_param_value.
2422 (finish_options): Update calls to maybe_set_param_value.
2423 (common_handle_option): Update calls to handle_param and
2425 * toplev.c (DEFPARAM): Update definition for changes to param_info.
2426 (general_init): Call finish_params.
2428 2010-10-14 Nick Clifton <nickc@redhat.com>
2430 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
2431 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
2432 (FIRST_PSEUDO_REGISTER): Increase by one.
2433 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
2434 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
2435 (MODES_TIEABLE): Call mn10300_modes_tieable.
2436 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
2437 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
2438 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
2439 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
2440 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
2441 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
2442 (mn10300_cc_status_mdep): Delete.
2443 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
2444 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
2445 the combine-stack-adjust pass.
2446 (print_operand): Use the mode of the comparison operation to
2447 select the comparison suffix.
2448 (notice_update_cc): Delete.
2449 (mn10300_secondary_reload_class): Remove test for stack pointer
2451 (output_tst): Rename to mn10300_output_cmp.
2452 (impossible_plus_operand): Move into predicates.md.
2453 (mn10300_legitimize_address): Make static.
2454 (mn10300_legitimate_address_p): Make static. Only allow SI sized
2455 constant pic operands.
2456 (mn10300_legitimate_constant_p): New function.
2457 (mn10300_case_values_threshold): Make static.
2458 (mn10300_hard_regno_mode_ok): New function.
2459 (mn10300_modes_tieable): New function.
2460 (mn10300_select_cc_mode): New function.
2461 * config/mn10300/predicates.md (impossible_plus_operand): Define.
2462 * config/mn10300/mn10300-protos.h: Tidy.
2463 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
2464 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
2465 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
2466 with clobbers or sets of CC_REG.
2468 (mov*): Remove use of CLR instruction.
2469 (cbranch_si4_<code>): New pattern/split.
2470 (integer_conditional_branch): New pattern.
2471 (cbranch_sf4_<code>): New pattern/split.
2472 (float_conditional_branch): New pattern.
2473 (casesi): Use addsi3 pattern instead of movsi pattern to add and
2474 move a value at the same time.
2475 (cc0 peepholes): Remove.
2477 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2479 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
2480 on RTX_FRAME_RELATED_P insns and the insn to which
2481 NOTE_INSN_EPILOGUE_BEG is attached.
2482 * sched-vis.c (print_value): Allow NULL value.
2484 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2486 PR rtl-optimization/45570
2487 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
2488 assert that we are pipelining outer loops. Allow returning
2491 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
2493 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
2494 (tidy_control_flow): Tidy vertical space.
2495 (sel_remove_bb): New variable idx. Use it to remember the basic
2496 block index before deleting the block.
2497 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
2498 (sel_merge_blocks): ... here.
2499 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
2501 2010-10-14 Jakub Jelinek <jakub@redhat.com>
2503 * cse.c (is_dead_reg): Change into inline function that is not
2504 called through for_each_rtx.
2505 (set_live_p): Adjust caller.
2506 (insn_live_p): Don't reset DEBUG_INSNs here.
2507 (struct dead_debug_insn_data): New data.
2508 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
2509 (delete_trivially_dead_insns): If there is just one setter for the
2510 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
2511 and add DEBUG_INSN for it right before the removed setter and
2512 use the DEBUG_EXPR instead of the dead pseudo.
2514 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
2516 * et-forest.c (et_nca): Return NULL immediately when
2517 the dominance forest has disjoint components.
2519 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
2521 * ira.c (setup_class_hard_regs): Fix typo in indexing
2522 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
2524 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
2526 * graph.c (inbb): New variable.
2527 (start_bb): Set inbb to 1 if output is inside of a building block.
2528 (end_bb): Check if output is inside of a building block.
2530 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
2532 PR rtl-optimization/45912
2533 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
2534 regno of registers instead of their index to compute the alignment.
2536 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
2538 * config/i386/i386.c (ix86_build_const_vector): Check vector
2539 mode instead of scalar mode.
2540 (ix86_build_signbit_mask): Likewise.
2541 (ix86_expand_fp_absneg_operator): Updated.
2542 (ix86_expand_copysign): Likewise.
2543 (ix86_expand_int_vcond): Likewise.
2544 (ix86_emit_swdivsf): Likewise.
2545 (ix86_sse_copysign_to_positive): Likewise.
2546 (ix86_expand_sse_fabs): Likewise.
2547 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
2548 * config/i386/sse.md (copysign<mode>3): Likewise.
2549 (sse2_cvtudq2ps): Likewise.
2550 (vec_unpacku_float_hi_v4si): Likewise.
2551 (vec_unpacku_float_lo_v4si): Likewise.
2553 * config/i386/i386.c (ix86_builtins): Add
2554 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
2555 (bdesc_args): Likewise.
2556 (ix86_builtin_vectorized_function): Support
2557 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
2558 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
2559 and IX86_BUILTIN_CVTPS2DQ256.
2560 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
2562 * config/i386/sse.md (STORENT_MODE): New.
2563 (VEC_FLOAT_MODE): Likewise.
2564 (VEC_EXTRACT_MODE): Likewise.
2565 (*avx_cvtdq2pd256_2): Likewise.
2566 (vec_pack_trunc_v4df): Likewise.
2567 (vec_interleave_highv8sf): Likewise.
2568 (vec_interleave_lowv8sf): Likewise.
2569 (storent<mode>): Macroized.
2570 (<code><mode>2: absneg): Likewise.
2571 (copysign<mode>3): Likewise.
2572 (vec_extract<mode>): Likewise.
2575 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
2578 2010-10-13 Richard Guenther <rguenther@suse.de>
2579 H.J. Lu <hongjiu.lu@intel.com>
2581 * config/i386/sse.md (reduc_splus_v8sf): Add.
2582 (reduc_splus_v4df): Likewise.
2583 (vec_unpacks_hi_v8sf): Likewise.
2584 (vec_unpacks_lo_v8sf): Likewise.
2585 (*avx_cvtps2pd256_2): Likewise.
2586 (vec_unpacks_float_hi_v8si): Likewise.
2587 (vec_unpacks_float_lo_v8si): Likewise.
2588 (vec_interleave_highv4df): Likewise.
2589 (vec_interleave_lowv4df): Likewise.
2591 2010-10-13 Richard Guenther <rguenther@suse.de>
2594 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
2595 alone if there are no virtual methods.
2597 2010-10-13 Richard Henderson <rth@redhat.com>
2599 * expr.c (build_personality_function): Take parameter LANG instead
2600 of parameter NAME. Build the name based on the lang prefix and the
2601 unwind method in use.
2602 * tree.c (lhd_gcc_personality): Update call to
2603 build_personality_function.
2605 2010-10-13 Richard Guenther <rguenther@suse.de>
2608 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
2610 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
2612 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
2613 Canonicalize input operands of ASM_OPERANDS insns.
2615 2010-10-13 Richard Guenther <rguenther@suse.de>
2617 PR tree-optimization/45788
2618 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
2619 EH update until fixup-cfg.
2621 2010-10-13 Julian Brown <julian@codesourcery.com>
2623 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
2624 from CORE_REGS and GENERAL_REGS classes.
2625 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
2626 final constraint for register preferencing.
2628 2010-10-13 Richard Guenther <rguenther@suse.de>
2630 PR tree-optimization/45970
2631 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
2632 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
2633 (stmt_kills_ref_p): Likewise.
2634 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
2636 2010-10-13 Richard Guenther <rguenther@suse.de>
2638 PR tree-optimization/45982
2639 * tree-ssa-structalias.c (make_constraints_to): New function.
2640 (make_constraint_to): Implement in terms of make_constraints_to.
2641 (find_func_aliases): Properly make return values of pure/const
2642 functions escape if they assign to sth that is not a pointer.
2644 2010-10-13 Richard Guenther <rguenther@suse.de>
2647 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
2648 Fixup the CFG when EH was fixed up.
2650 2010-10-13 Ira Rosen <irar@il.ibm.com>
2652 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
2653 Use operand's type for POINTER_PLUS_EXPR.
2655 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
2657 * c-parser.c (c_parser_for_statement): Initialize incr.
2659 2010-10-12 Xinliang David Li <davidxl@google.com>
2661 PR tree-optimization/45972
2662 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
2663 with too many arguments.
2665 2010-10-12 Jakub Jelinek <jakub@redhat.com>
2668 * tree-ssa-forwprop.c: Include expr.h.
2669 (constant_pointer_difference, simplify_builtin_call): New functions.
2670 (tree_ssa_forward_propagate_single_use_vars): Call
2671 simplify_builtin_call on builtin calls.
2673 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
2675 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
2676 (*adddi3_extend_sp32): Likewise.
2677 (*subdi3_insn_sp32): Likewise.
2678 (*subdi3_extend_sp32): Likewise.
2679 (*negdi2_sp32): Use negative test for consistency.
2681 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
2683 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
2684 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
2685 * config/fixed-bit.h: Likewise.
2686 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
2687 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
2688 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
2689 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
2690 (DF_SIZE): Likewise.
2691 * doc/tm.texi: Regenerate.
2693 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
2695 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
2696 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
2697 (*isel_reversed_unsigned_<mode>): New.
2698 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
2699 as valid comparisons and adjust operands and output appropriately.
2700 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
2702 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
2704 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
2705 DATA_ALIGNMENT and add COND parameter. Update comments above.
2706 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
2707 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
2709 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
2712 * exec-tool.in: Support '-plugin' as the second option to the linker.
2714 2010-10-12 Richard Henderson <rth@redhat.com>
2717 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
2718 (expand_stack_vars): Assert large base allocated when used.
2720 2010-10-12 Richard Guenther <rguenther@suse.de>
2722 * tree-ssa-structalias.c (get_constraint_for_1): Constants
2723 only point to nonlocal, not anything.
2725 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
2727 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
2728 unwind info for exceptions.
2730 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2733 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
2734 Document optional target selector.
2736 2010-10-12 Joseph Myers <joseph@codesourcery.com>
2738 * flag-types.h: New.
2739 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
2740 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
2742 (OPTIONS_H): Define.
2743 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
2745 * configure.ac (tm_include_list): Include options.h not flags.h.
2746 * configure: Regenerate.
2747 * flags.h: Include flag-types.h. Include options.h at top of file
2749 (enum debug_info_type, enum debug_info_level, enum
2750 debug_info_usage, enum symbol_visibility, struct visibility_flags,
2751 enum ira_algorithm, enum ira_region, enum excess_precision, enum
2752 graph_dump_types, enum stack_check_type,
2753 enum warn_strict_overflow_code): Move to flag-types.h
2754 * opth-gen.awk: Include flag-types.h in options.h.
2756 2010-10-12 Jakub Jelinek <jakub@redhat.com>
2758 * expr.c (store_expr): Share code for STRING_CST and
2759 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
2760 check if target is a MEM.
2762 * rtl.h: Include hashtab.h.
2763 (iterative_hash_rtx): New prototype.
2764 * rtl.c (iterative_hash_rtx): New function.
2765 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
2766 (output_loc_list): Return immediately if emitted is set, set it.
2767 (hash_loc_operands, hash_locs, hash_loc_list,
2768 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
2769 optimize_location_lists_1, optimize_location_lists): New function.
2770 (dwarf2out_finish): Call optimize_location_lists.
2771 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
2773 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2777 * Makefile.in ($(lang_checks_parallel))
2778 ($(lang_checks_parallelized)): Use single quotes for
2779 $(RUNTESTFLAGS), to allow passing quoted content.
2781 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2783 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
2784 actual_oldval. Use __builtin_expect.
2785 (SUBWORD_VAL_CAS): Likewise.
2787 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
2789 * recog.c (nonmemory_operand): Call immediate_operand for
2790 CONSTANT_P operands.
2792 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
2794 * config/i386/i386.md (movmem<mode>): Macroize expander from
2795 movmem{si,di} using SWI48 mode iterator.
2796 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
2797 *strmovsi_rex_1 using P mode iterator.
2798 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
2799 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
2800 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
2801 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
2802 (setmem<mode>): Macroize expander from setmem{si,di} using
2803 SWI48 mode iterator.
2804 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
2805 *strsetsi_rex_1 using P mode iterator.
2806 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
2807 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
2808 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
2809 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
2810 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
2811 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
2812 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
2814 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
2815 *strlenqi_rex_1 using P mode iterator.
2817 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
2820 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
2822 (mark_ref_live, mark_ref_dead): Use them.
2823 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
2824 Save the original reg, and use the new functions.
2825 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
2827 (check_and_make_def_conflict): Save the original reg.
2829 2010-10-11 Martin Jambor <mjambor@suse.cz>
2832 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
2835 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2837 * Makefile.in ($(lang_checks_parallel))
2838 ($(lang_checks_parallelized)): Use single quotes for
2839 $(RUNTESTFLAGS), to allow passing quoted content.
2842 * opt-functions.awk (BEGIN): New section.
2843 (lower, upper, digit, alnum): New variables.
2844 (static_var, opt_sanitized_name): Use alnum instead of character
2845 classes, for non-C locale.
2846 * optc-gen.awk: Likewise.
2847 * opth-gen.awk: Likewise.
2849 2010-10-11 Anatoly Sokolov <aesok@post.ru>
2851 * target.def (preferred_reload_class): New hook.
2852 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
2853 * doc/tm.texi: Regenerate.
2854 * targhooks.c (default_preferred_reload_class): New function.
2855 * targhooks.h (default_preferred_reload_class): Declare.
2856 * reload.c (find_dummy_reload): Change preferred_class variable type
2857 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
2859 (find_reloads): Change goal_alternative array type from int to
2860 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
2861 (push_reload, find_reloads_address_part): Use
2862 TARGET_PREFERRED_RELOAD_CLASS target hook.
2863 * reload1.c (emit_input_reload_insns): Ditto.
2864 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
2865 hook. Change rclass argument and secondary_class variable types from
2866 'enum reg_class' to reg_class_t.
2868 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
2869 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
2870 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
2871 Change regclass argument and result types from enum reg_class to
2873 (TARGET_PREFERRED_RELOAD_CLASS): Define.
2875 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
2877 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
2878 in masking operations.
2879 (simplify_const_unary_operation): Likewise.
2880 (simplify_binary_operation_1): Likewise.
2881 (simplify_const_binary_operation): Likewise.
2882 (simplify_const_relational_operation): Likewise.
2883 (simplify_ternary_operation): Likewise.
2884 (simplify_immed_subreg): Likewise.
2886 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2889 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
2890 (TARGET_SUPPORTS_WEAK): New.
2891 * doc/tm.texi: Regenerate.
2892 * defaults.h (SUPPORTS_WEAK): Update comment.
2893 (TARGET_SUPPORTS_WEAK): New.
2894 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
2895 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
2897 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
2898 make_decl_one_only): Likewise.
2899 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
2900 TARGET_SUPPORTS_WEAK.
2901 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
2902 instead of SUPPORTS_WEAK.
2904 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2906 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
2908 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
2910 * vec.h (VEC_qsort): Define.
2911 * dbxout.c (output_used_types): Use it.
2912 * df-scan.c (df_sort_and_compress_refs): Likewise.
2913 (df_sort_and_compress_mws): Likewise.
2914 * genautomata.c (uniq_sort_alt_states): Likewise.
2915 (evaluate_equiv_classes): Likewise.
2916 (output_trans_table): Likewise.
2917 (output_state): Likewise.
2918 * gimplify.c (compare_case_labels): Likewise.
2919 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
2920 * ipa.c (build_cdtor_fns): Likewise.
2921 * lto.c (lto_wpa_write_files): Likewise.
2922 * sel-sched.c (fill_vec_av_set): Likewise.
2923 * tree-predcom.c (determine_roots_comp): Likewise.
2924 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
2925 (splice_param_accesses): Likewise.
2926 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
2927 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
2928 (reassociate_bb): Likewise.
2929 * tree-ssa-sccvn.c (sort_scc): Likewise.
2930 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
2932 2010-10-11 Ian Lance Taylor <iant@google.com>
2934 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
2935 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
2936 TREE_THIS_NOTRAP when appropriate.
2937 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
2938 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
2939 newly created MEM_REF.
2941 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
2943 Nathan Froyds patch to hooks FUNCTION_ARG etc.
2944 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
2945 (picochip_incoming_function_arg): Delete.
2946 (picochip_arg_advance): Delete.
2947 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
2948 (FUNCTION_INCOMING_ARG): Delete.
2949 (FUNCTION_ARG_ADVANCE): Delete.
2950 * config/picochip/picochip.c (picochip_function_arg): Take a
2951 const_tree and a bool.
2952 (picochip_incoming_function_arg): Likewise.
2953 (picochip_arg_advance): Likewise.
2954 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
2955 (TARGET_FUNCTION_ARG_ADVANCE): Define.
2957 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2960 * ipa.c (build_cdtor): Delete endless loop.
2962 2010-10-07 Andi Kleen <ak@linux.intel.com>
2964 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
2966 (checksum-options): Add.
2967 (cc1-dummy): Remove.
2968 (cc1-checksum): Change to run checksum over object files
2970 * dummy-checksum.c: Remove.
2971 * genchecksum.c: Update copyright.
2972 (usage): Allow multiple arguments.
2974 (dosum): Change for incremental checksum. Remove C output.
2975 (main): Iterate over all argument files. Add C output.
2977 2010-10-11 Joseph Myers <joseph@codesourcery.com>
2979 * params.c (set_param_value_internal): New.
2980 (set_param_value): Use set_param_value_internal.
2981 (maybe_set_param_value, set_default_param_value): New.
2982 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
2983 (maybe_set_param_value, set_default_param_value): Declare.
2984 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
2985 * config/i386/i386.c (ix86_option_override_internal): Use
2986 maybe_set_param_value.
2987 * config/ia64/ia64.c (ia64_option_default_params,
2988 TARGET_OPTION_DEFAULT_PARAMS): New.
2989 (ia64_option_optimization): Move some code to
2990 ia64_option_default_params.
2991 * config/picochip/picochip.c (picochip_option_override): Use
2992 maybe_set_param_value.
2993 * config/rs6000/rs6000.c (rs6000_option_default_params,
2994 TARGET_OPTION_DEFAULT_PARAMS): New.
2995 (rs6000_option_override_internal): Use maybe_set_param_value.
2996 (rs6000_option_optimization): Move some code to
2997 rs6000_option_default_params.
2998 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
2999 * config/sh/sh.c (sh_option_default_params,
3000 TARGET_OPTION_DEFAULT_PARAMS): New.
3001 (sh_option_optimization): Move some code to sh_option_default_params.
3002 * config/sparc/sparc.c (sparc_option_override): Use
3003 maybe_set_param_value.
3004 * config/spu/spu.c (spu_option_default_params,
3005 TARGET_OPTION_DEFAULT_PARAMS): New.
3006 (spu_option_optimization): Move some code to spu_option_default_params.
3007 (spu_option_override): Use maybe_set_param_value.
3008 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
3009 * doc/tm.texi: Regenerate.
3010 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
3011 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
3013 (default_options_optimization): Use maybe_set_param_value.
3014 (finish_options): Use maybe_set_param_value.
3015 * target.def (target_option.default_params): New hook.
3016 * toplev.c (general_init): Call targetm.target_option.default_params.
3018 2010-10-11 Ira Rosen <irar@il.ibm.com>
3020 PR tree-optimization/45902
3021 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
3022 vector type for constants, unless it's a pointer.
3024 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3026 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
3028 2010-10-11 Jakub Jelinek <jakub@redhat.com>
3031 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
3032 (ix86_delegitimize_address): Use it.
3034 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
3036 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
3038 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
3040 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
3041 to cum struct in the call to function_arg_advance.
3042 (alpha_function_arg_advance): Mark named as unused.
3044 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
3046 * config/mips/mips.c (mips_handle_option): Make "value" with
3049 2010-10-09 Richard Henderson <rth@redhat.com>
3052 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
3053 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
3054 required_align, tidy the code a bit. Emit split_stack code in the
3055 right place. Mark the return value with the alignment properly.
3056 * expr.h (allocate_dynamic_stack_space): Update decl.
3057 * builtins.c (expand_builtin_apply): Update call to
3058 allocate_dynamic_stack_space.
3059 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
3060 * calls.c (initialize_argument_information): Update call to
3061 allocate_dynamic_stack_space.
3062 (expand_call): Likewise.
3064 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
3065 Don't update_stack_alignment here.
3066 (alloc_stack_frame_space): Make ALIGN unsigned.
3067 (stack_var_cmp): Sort by alignment too.
3068 (partition_stack_vars): Don't merge large and small alignment vars.
3069 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
3070 Take care when BASE is not virtual_stack_vars_rtx.
3071 (expand_stack_vars): Allocate dynamic stack space for large
3072 alignment variables.
3073 (expand_one_stack_var): Update all to expand_one_stack_var_at.
3074 (defer_stack_allocation): True for large alignment vars.
3075 (update_stack_alignment): Merge into ...
3076 (expand_one_var): ... here.
3077 (gimple_expand_cfg): Place code from expand_stack_vars.
3079 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3081 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3082 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
3083 (pdp11_function_arg_advance): New function.
3084 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3086 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3088 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
3089 * libgcc2.c: Likewise.
3091 2010-10-09 Richard Guenther <rguenther@suse.de>
3094 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
3095 Properly check if a decl is an automatic var.
3097 2010-10-09 Richard Guenther <rguenther@suse.de>
3100 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
3102 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3104 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
3105 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3106 * config/mmix/mmix.c (mmix_function_arg): Rename to...
3107 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
3109 (mmix_function_arg): New function.
3110 (mmix_function_incoming_arg): New function.
3111 (mmix_function_arg_advance): New function.
3112 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3113 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3115 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3117 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3118 * config/vax/vax.c (vax_function_arg): New function.
3119 (vax_function_arg_advance): New function.
3120 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3122 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3124 * config/pa/pa-protos.h (function_arg): Delete.
3125 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3126 * config/pa/pa.c (function_arg): Rename to...
3127 (pa_function_arg): ...this. Make static. Take a const_tree and
3129 (pa_function_arg_advance): New function.
3130 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3132 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3134 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3135 * config/m68k/m68k.c (m68k_function_arg): New function.
3136 (m68k_function_arg_advance): New function.
3137 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3139 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3141 * config/avr/avr-protos.h (function_arg): Delete.
3142 (function_arg_advance): Delete.
3143 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3144 * config/avr/avr.c (function_arg): Rename to...
3145 (avr_function_arg): ...this. Make static. Take a const_tree and
3147 (function_arg_advance): Rename to...
3148 (avr_function_arg_advance): ...this. Make static. Take a
3149 const_tree and a bool.
3150 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3152 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3154 * config/alpha/alpha-protos.h (function_arg): Delete.
3155 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3156 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
3157 * config/alpha/alpha.c (function_arg): Rename to...
3158 (alpha_function_arg): ...this. Make static. Take a const_tree and
3159 a bool. Delete TARGET_ABI_UNICOSMK code.
3160 (alpha_function_arg_advance): New function.
3161 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3163 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3165 * config/mep/mep-protos.h (mep_function_arg): Delete.
3166 (mep_function_arg_advance): Delete.
3167 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3168 * config/mep/mep.c (mep_function_arg): Make static. Take a
3169 const_tree and a bool.
3170 (mep_function_arg_advance): Likewise.
3171 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3173 2010-10-09 Richard Guenther <rguenther@suse.de>
3175 PR tree-optimization/45945
3176 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
3178 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
3180 PR tree-optimization/45612
3181 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
3182 Test LABEL_DECLs as well. Fix formatting issues.
3183 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
3184 whose label is present in NON_SSA_VARS.
3185 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
3186 as well. Fix formatting issues.
3187 (visit_bb): Fix typos and formatting issue.
3189 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3191 PR tree-optimization/45950
3192 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
3193 before initializing vno->op.
3195 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
3197 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
3198 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
3200 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
3203 * config/i386/i386.c (ix86_binary_operator_ok): Support
3204 "andhi/andsi/anddi" as a zero-extending move.
3206 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3208 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
3209 into a temporary array.
3211 2010-10-08 Jakub Jelinek <jakub@redhat.com>
3213 PR tree-optimization/45903
3214 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
3215 of {A,L}SHIFTRT of MEM.
3217 2010-10-08 Richard Guenther <rguenther@suse.de>
3219 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
3220 Re-construct BLOCK_VARS.
3221 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
3222 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
3223 * tree.c (free_lang_data_in_block): Remove.
3224 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
3225 Do not touch the BLOCK tree.
3226 * expr.c (expand_expr_real_1): Allow externals.
3228 2010-10-08 Richard Guenther <rguenther@suse.de>
3230 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
3231 Do not output BLOCK_SUBBLOCKS.
3232 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
3233 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
3234 Re-construct BLOCK_SUBBLOCKS of parent block.
3235 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
3236 for BINFO_BASE_ACCESSES.
3238 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3240 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
3241 (TREE_H): Include $(FLAGS_H) instead of options.h.
3242 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
3243 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3244 * common.opt (flag_complex_method, flag_evaluation_order,
3245 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
3246 Variable declarations.
3247 * configure.ac (tm_include_list): Include flags.h instead of options.h.
3248 * configure: Regenerate.
3249 * flags.h: Condition out contents for target libraries. Include
3250 options.h at end of file.
3251 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
3252 flag_evaluation_order, flag_warn_unused_result): Remove.
3253 * gcc.c (main): Intialize global_options with global_options_init.
3254 * langhooks-def.h (lhd_init_options_struct): Declare.
3255 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3256 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
3257 * langhooks.c (lhd_init_options_struct): New.
3258 * langhooks.h (struct lang_hooks): Add init_options_struct.
3259 Update comment on init_options.
3260 * optc-gen.awk: Generate initializer for global_options_init, not
3262 * opth-gen.awk: Condition out structure declarations for target
3263 libraries. Declare global_options_init.
3264 * opts-common.c: Include flags.h instead of options.h.
3265 * opts.c (flag_warn_unused_result): Remove.
3266 (read_cmdline_options): Take gcc_options parameters. Pass them to
3267 read_cmdline_option.
3268 (initial_lang_mask, initial_min_crossjump_insns,
3269 initial_max_fields_for_field_sensitive,
3270 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
3271 (init_options_once): New. Split out of decode_options.
3272 (init_options_struct): New. Split out of decode_options.
3273 (decode_cmdline_options_to_array_default_mask): New.
3274 (default_options_optimization): New. Split out of decode_options.
3275 (decode_options): Move most code to other functions. Update call
3276 to read_cmdline_options.
3277 (finish_options): New. Split out of decode_options.
3278 * opts.h (decode_options): Add gcc_options parameters.
3279 (init_options_once, init_options_struct,
3280 decode_cmdline_options_to_array_default_mask): New.
3281 * toplev.c (flag_complex_method, flag_ira_algorithm,
3282 flag_ira_region, flag_evaluation_order): Remove.
3283 (general_init): Use global_options_init for initial flag values
3285 (toplev_main): Call init_options_once, init_options_struct,
3286 lang_hooks.init_options_struct,
3287 decode_cmdline_options_to_array_default_mask and
3288 lang_hooks.init_option before decode_options. Update arguments to
3290 * tree.h: Include flags.h instead of options.h.
3292 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3294 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3296 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3298 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
3300 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
3301 (FUNCTION_INCOMING_ARG): Delete.
3302 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
3303 (function_arg_slotno): Likewise. Take bool arguments.
3304 (sparc_arg_partial_bytes): Update call to it.
3305 (function_arg): Rename to...
3306 (sparc_function_arg_1): ...this. Take bool arguments.
3307 (sparc_function_arg, sparc_function_incoming_arg): New functions.
3308 (function_arg_advance): Rename to...
3309 (sparc_function_arg_advance): ...this. Take bool argument.
3310 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
3311 (TARGET_FUNCTION_INCOMING_ARG): Define.
3313 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3315 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
3317 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3318 * config/bfin/bfin.c (function_arg_advance): Rename to...
3319 (bfin_function_arg_advance): ...this. Make static. Take const_tree
3321 (function_arg): Rename to...
3322 (bfin_function_arg): ...this. Make static. Take const_tree and bool
3324 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3326 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3328 * config/score/score-protos.h (score_function_arg): Delete.
3329 (score_function_arg_advance): Delete.
3330 * config/score/score3.h (score3_function_arg_advance): Take a
3331 const_tree and a bool.
3332 (score3_function_arg): Likewise.
3333 * config/score/score7.h (score7_function_arg_advance): Likewise.
3334 (score7_function_arg): Likewise.
3335 * config/score/score3.c (score3_classify_arg): Likewise.
3336 (score3_function_arg_advance, score3_function_arg): Likewise.
3337 * config/score/score7.c (score7_classify_arg): Likewise.
3338 (score7_function_arg_advance, score7_function_arg): Likewise.
3339 * config/score/score.c (score_function_arg_advance): Likewise.
3340 (score_function_arg): Likewise. De-const-ify `cum' argument.
3341 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3343 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3345 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
3346 (s390_function_arg): Delete.
3347 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3348 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
3349 (s390_function_arg_integer): Likewise.
3350 (s390_function_arg_advance): Make static. Take a const_tree and
3352 (s390_function_arg): Likewise.
3353 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3355 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3357 * config/spu/spu-protos.h (spu_function_arg): Delete.
3358 * config/spu/spu.h (FUNCTION_ARG): Delete.
3359 (FUNCTION_ARG_ADVANCE): Move code to ...
3360 * config/spu/spu.c (spu_function_arg_advance): New function.
3361 (spu_function_arg): Make static. Take a const_tree and a bool.
3362 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
3363 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3365 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3367 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3369 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3371 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
3372 (init_vn_nary_op_from_op): New function.
3373 (init_vn_nary_op_from_stmt): New function.
3374 (vn_nary_op_lookup_1): New function.
3375 (sizeof_vn_nary_op): New function.
3376 (alloc_vn_nary_op_noinit): New function.
3377 (alloc_vn_nary_op): New function.
3378 (vn_nary_op_insert_into): New function.
3379 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
3380 (vn_nary_op_lookup): Likewise.
3381 (vn_nary_op_lookup_stmt): Likewise.
3382 (vn_nary_op_insert_pieces): Likewise.
3383 (vn_nary_op_insert): Likewise.
3384 (vn_nary_op_insert_stmt): Likewise.
3385 (copy_nary): Likewise.
3386 (set_value_id_for_result): New function.
3387 (set_hashtable_value_ids): Call it.
3389 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3391 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3392 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
3394 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3396 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
3397 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3399 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
3402 * cse.c (cse_extended_basic_block): Preserve cc0 info across
3403 debug isnsn. Skip them when searching for cc0 setter.
3404 (set_live_p): Skip debug insns when searching for cc0 user.
3406 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
3412 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
3413 type of MEM_REFs to INTEGER_CSTs.
3415 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
3417 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
3418 m68hc11_print_operand_address.
3420 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
3422 * builtins.c (rewrite_call_expr): Move code to...
3423 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
3424 (rewrite_call_expr_array): New function.
3425 (fold_builtin_sprintf_chk_1): New function.
3426 (fold_builtin_sprintf_chk): Call it.
3427 (gimple_fold_builtin_sprintf_chk): Likewise.
3428 (fold_builtin_snprintf_chk_1): New function.
3429 (fold_builtin_snprintf_chk): Call it.
3430 (gimple_fold_builtin_snprintf_chk): Likewise.
3431 (gimple_rewrite_call_expr): Delete.
3433 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3435 * config.host: Update copyright year.
3437 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3439 * config.host (host_lto_plugin_soname): New shell variable.
3440 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
3441 * config.in: Regenerate.
3442 * configure: Regenerate.
3443 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
3444 LTO plugin shared library.
3446 2010-10-07 Richard Henderson <rth@redhat.com>
3448 * target.h (enum unwind_info_type): Move ...
3449 * coretypes.h: ... here.
3451 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
3453 * doc/objc.texi (Fast enumeration protocol): Mention that
3454 'unsigned int' can also be used instead of 'unsigned long' in
3455 countByEnumeratingWithState:objects:count:.
3457 2010-10-07 Martin Jambor <mjambor@suse.cz>
3459 * tree-sra.c (struct access): New field grp_assignment_write.
3460 (dump_access): Dump grp_assignment_write.
3461 (build_accesses_from_assign): Set grp_assignment_write.
3462 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
3463 (mark_read_status): Renamed to mark_rw_status, individual values
3465 (analyze_access_subtree): Changed type of mark_write to
3466 mark_read_status. Fixed propagating of mark_read and
3467 mark_write. Changed benefit estimate. Updated comment.
3469 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
3472 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
3473 check for vectype_out returned by get_vectype_for_scalar_type().
3475 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
3478 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
3479 constraint, add register specifier in instruction template.
3480 (neon_vec_pack_trunc_<mode>): Likewise.
3481 (neon_vec_<US>mult_<mode>): Add register specifier to
3482 instruction template.
3484 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
3486 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
3488 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
3489 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
3490 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
3491 (cygwin2.o): Likewise.
3492 * config/i386/cygwin1.c: Delete file.
3493 * config/i386/cygwin2.c: Likewise.
3494 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
3495 make all {%!mno-cygwin} ones unconditional.
3496 (STARTFILE_SPEC): Likewise.
3497 (REAL_LIBGCC_SPEC): Likewise.
3498 (LIB_SPEC): Likewise.
3499 (CXX_WRAP_SPEC): Likewise.
3500 (LINK_SPEC): Likewise.
3501 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
3502 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
3503 (cygwin_gplusplus_include_dir): Delete now-unused array.
3504 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
3505 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
3506 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
3507 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
3508 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
3509 (cygwin_local_include_dir): Delete now-unused array.
3510 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
3511 (cygwin_cross_include_dir): Delete now-unused array.
3512 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
3513 (cygwin_tool_include_dir): Delete now-unused array.
3514 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
3515 (cygwin_standard_include_dir): Delete now-unused array.
3516 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
3517 (GEN_CVT_ARRAY): Delete now-unused macro definition.
3518 (cvt_to_mingw): Delete now-unused array.
3519 (mingw_scan): Remove prototype of deleted function.
3520 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
3521 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
3522 * doc/invoke.texi (-mcygwin): Don't document removed option.
3523 (-mno-cygwin): Likewise.
3525 2010-10-07 Richard Guenther <rguenther@suse.de>
3527 * machmode.h (mode_for_vector): Declare.
3528 * stor-layout.c (mode_for_vector): New function, split out from ...
3529 (layout_type): ... here.
3530 * tree-vectorizer.h (current_vector_size): Declare.
3531 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
3532 mask vector type is available.
3533 (get_vectype_for_scalar_type): Rename to ...
3534 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
3536 (get_vectype_for_scalar_type): New wrapper around
3537 get_vectype_for_scalar_type_and_size using current_vector_size.
3538 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
3539 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
3540 of vect_analyze_loop here.
3541 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
3542 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
3544 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
3545 V8SF to V8SI conversion builtin.
3547 2010-10-07 Richard Guenther <rguenther@suse.de>
3549 * target.def (autovectorize_vector_sizes): New target hook.
3550 * targhooks.c (default_autovectorize_vector_sizes): New function.
3551 * targhooks.h (default_autovectorize_vector_sizes): Declare.
3552 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3554 * doc/tm.texi: Update.
3555 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
3556 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
3558 2010-10-07 Richard Guenther <rguenther@suse.de>
3560 * target.def (units_per_simd_word): Rename to ...
3561 (preferred_simd_mode): ... this. Return mode instead of size.
3562 * targhooks.c (default_units_per_simd_word): Rename to ...
3563 (default_preferred_simd_mode): ... this. Return word_mode.
3564 * targhooks.h (default_preferred_simd_mode): Declare.
3565 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
3566 (arm_preferred_simd_mode): ... this. Re-implement.
3567 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
3568 (ix86_preferred_simd_mode): ... this. Re-implement.
3569 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
3570 (sparc_preferred_simd_mode): ... this. Re-implement.
3571 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
3572 (mips_preferred_simd_mode): ... this. Re-implement.
3573 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
3574 (rs6000_preferred_simd_mode): ... this. Re-implement.
3575 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
3576 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
3577 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
3578 * doc/tm.texi: Update.
3580 2010-10-07 Richard Guenther <rguenther@suse.de>
3583 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
3586 2010-10-07 Alan Modra <amodra@gmail.com>
3588 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
3589 rather than sign extension by hand.
3591 2010-10-07 Jan Hubicka <jh@suse.cz>
3594 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
3596 2010-10-07 Richard Guenther <rguenther@suse.de>
3599 * configure.ac: Fix typo.
3600 * configure: Regenerated.
3602 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3604 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
3605 define_builtin_std where it's unnecessary.
3606 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
3608 2010-10-06 Anatoly Sokolov <aesok@post.ru>
3610 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
3611 * doc/tm.texi.in: Regenerate.
3612 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
3613 * targhooks.c (default_class_likely_spilled_p): Don't use the
3614 CLASS_LIKELY_SPILLED_P macro.
3616 * config/arm/arm.md: Update comment.
3618 2010-10-06 Jan Hubicka <jh@suse.cz>
3620 * ipa.c (cgraph_remove_unreachable_nodes): External references can
3622 (cgraph_externally_visible_p): We can not bring local comdats that
3623 are known to linker; fix handling of internal visibility.
3624 (function_and_variable_visibility): Likewise.
3626 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
3628 PR rtl-optimization/45394
3629 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
3630 (struct rtx_subst_pair): Remove AFTER field.
3631 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
3632 (propagate_for_debug): Remove MOVE parameter and adjust.
3633 (try_combine): In the special case where I2 is a PARALLEL, combine only
3634 destinations of SETs and set I2SRC to the I2 source.
3635 Adjust calls to propagate_for_debug throughout.
3636 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
3639 2010-10-06 Olivier Hainque <hainque@adacore.com>
3641 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
3642 switch on insn codes as sequence of ifs.
3644 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
3646 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
3647 be UI_NONE for picochip.
3648 (picochip_option_override): Do not disable exception flags.
3649 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
3652 2010-10-06 Richard Guenther <rguenther@suse.de>
3654 * Makefile.in (regmove.o): Depend on $(TARGET_H).
3656 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3658 Implemented fast enumeration for Objective-C.
3659 * c-parser.c (objc_could_be_foreach_context): New.
3660 (c_lex_one_token): Recognize RID_IN keyword in a potential
3661 Objective-C foreach context.
3662 (c_parser_declaration_or_fndef): Added parameter. Accept
3663 Objective-C RID_IN keyword as terminating a declaration; in that
3664 case, return the declaration in the new parameter.
3665 (c_parser_extenral_declaration): Updated calls to
3666 c_parser_declaration_or_fndef.
3667 (c_parser_declaration_or_fndef): Same change.
3668 (c_parser_compound_statement_nostart): Same change.
3669 (c_parser_label): Same change.
3670 (c_parser_objc_methodprotolist): Same change.
3671 (c_parser_omp_for_loop): Same change.
3672 (c_parser_for_statement): Detect and parse Objective-C foreach
3674 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
3675 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
3676 fast enumeration parsing code to turn off the c99 error but still
3677 perform checks on the loop declarations.
3678 * c-tree.h (check_for_loop_decls): Updated declaration.
3679 * doc/objc.texi: Document fast enumeration.
3681 2010-10-06 Nick Clifton <nickc@redhat.com>
3683 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
3684 (MDR_REGNUM): Define.
3685 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
3686 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
3687 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
3688 (REGISTER_NAMES): Add MDR.
3689 (DWARF2_DEBUGGING_INFO): Define to 1.
3690 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3691 (F): New function. Sets RTX_FRAME_RELATED_P.
3692 (mn10300_gen_multiple_store): Use F.
3693 (expand_prologue): Use F. Use gen_movsf() to push floating
3695 (expand_epilogue): Use gen_movsf() to pop floating point registers.
3696 (mn10300_option_override): Disable combine stack adjust pass.
3698 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
3701 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
3702 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
3704 2010-10-06 Jakub Jelinek <jakub@redhat.com>
3706 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
3707 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
3708 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
3709 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
3710 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
3711 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
3712 BUILT_IN_TOUPPER): Mark as leaf.
3715 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
3716 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
3717 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
3718 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
3719 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
3720 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
3721 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
3723 2010-10-05 Anatoly Sokolov <aesok@post.ru>
3725 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
3726 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3727 (m68hc11_class_likely_spilled_p): New function.
3729 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
3731 * c-parser.c (c_parser_objc_method_definition): Updated comment.
3733 2010-10-05 Jan Hubicka <jh@suse.cz>
3735 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
3737 * opts.c (decode_options): Handle lto partitions.
3738 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
3739 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
3741 2010-10-05 Jan Hubicka <jh@suse.cz>
3743 * cgraphunit.c (assemble_function): Output thunks and aliases before
3744 the function itself.
3746 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
3748 * config/picochip/picochip.c (picochip_option_override): Disable
3749 exception flags for picochip.
3751 2010-10-05 Joseph Myers <joseph@codesourcery.com>
3753 * opts-common.c (handle_option, handle_generated_option,
3754 read_cmdline_option, set_option): Add diagnostic_context
3755 parameter. Update calls among these functions.
3756 (set_option): Don't use global_dc.
3757 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
3758 (decode_options): Pass global_dc to enable_warning_as_error.
3759 (common_handle_option): Pass global_dc to enable_warning_as_error.
3760 (enable_warning_as_error): Add diagnostic_context parameter.
3761 Document parameters. Don't use global_dc. Pass
3762 diagnostic_context parameter to handle_generated_option.
3763 * opts.h (set_option, handle_option, handle_generated_option,
3764 read_cmdline_option, enable_warning_as_error): Add
3765 diagnostic_context parameter.
3766 * Makefile.in (lto-opts.o): Update dependencies.
3767 * coretypes.h (struct diagnostic_context, diagnostic_context):
3769 * diagnostic.h (diagnostic_context): Don't declare typedef here.
3770 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
3771 * langhooks-def.h (struct diagnostic_context): Don't declare here.
3772 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
3773 using diagnostic_context typedef.
3774 * langhooks.c (lhd_initialize_diagnostics): Declare using
3775 diagnostic_context typedef.
3776 * langhooks.h (struct diagnostic_context): Don't declare here.
3777 (initialize_diagnostics, print_error_function): Declare using
3778 diagnostic_context typedef.
3779 * lto-opts.c: Include diagnostic.h.
3780 (lto_reissue_options): Pass global_dc to set_option. Pass
3781 DK_UNSPECIFIED not 0.
3782 * plugin.c (plugins_internal_error_function): Declare using
3783 diagnostic_context typedef.
3784 * plugin.h (struct diagnostic_context): Don't declare here.
3785 (plugins_internal_error_function): Declare using
3786 diagnostic_context typedef.
3788 2010-10-05 Olivier Hainque <hainque@adacore.com>
3789 Nicolas Roche <roche@adacore.com>
3791 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
3792 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
3794 2010-10-05 Ira Rosen <irar@il.ibm.com>
3796 PR tree-optimization/45752
3797 * tree-vect-slp.c (vect_get_mask_element): Remove static
3798 variables, make them function arguments.
3799 (vect_transform_slp_perm_load): Pass new arguments to
3800 vect_get_mask_element.
3802 2010-10-05 Richard Guenther <rguenther@suse.de>
3804 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
3805 (gimple_mod_pow2): Likewise.
3806 (gimple_mod_subtract): Likewise.
3807 (gimple_ic): Likewise.
3808 (gimple_stringop_fixed_value): Likewise.
3809 * tree-profile.c (tree_init_edge_profiler): Mark profile
3810 functions nothrow and leaf.
3811 (add_abnormal_goto_call_edges): Remove.
3812 (tree_gen_edge_profiler): Work on SSA form.
3813 (tree_gen_ic_profiler): Likewise. Simplify.
3814 (do_tree_profiling): Update SSA form.
3815 (pass_tree_profile): Remove.
3816 (do_tree_profiling): Likewise.
3817 (gate_tree_profile_ipa): New function.
3818 (pass_ipa_tree_profile): New.
3819 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
3820 state of instrumented functions.
3821 * passes.c (init_optimization_passes): Remove early non-SSA
3822 inlining. Move profiling after early optimizations.
3823 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
3824 (pass_ipa_early_inline): Likewise.
3825 * tree-pass.h (pass_ipa_early_inline): Remove.
3826 (pass_tree_profile): Likewise.
3827 (pass_ipa_tree_profile): Declare.
3829 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3830 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
3832 * gcc/config/s390/s390.c (z196_cost): New.
3833 (s390_handle_arch_option): Add -march=z196.
3834 (s390_option_override): Use the new cost function and use the z10
3835 defaults also for z196.
3836 (legitimate_reload_constant_p): Adjust comment.
3837 (legitimate_reload_fp_constant_p): New function.
3838 (s390_preferred_reload_class): Distingiush between FP and Int constants.
3839 (preferred_la_operand_p): Avoid la with index on z196.
3840 (s390_adjust_priority): Trigger also for z196.
3841 (s390_issue_rate): Issue rate for z196 is 3.
3842 (s390_z10_fix_long_loop_prediction): Rename to ...
3843 (s390_fix_long_loop_prediction): ... this.
3844 (s390_reorg): Apply the z10 adjustments also for z196.
3845 (s390_loop_unroll_adjust): Do this also for z196.
3846 * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
3847 (enum processor_flags): Add PF_Z196.
3848 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
3849 (TARGET_CPU_Z196, TARGET_Z196): New macros.
3850 * gcc/config.gcc: Enable z196 for --with-arch.
3851 * gcc/config/s390/2817.md: New file.
3852 * gcc/config/s390/2084.md: New type for multiply and add.
3853 * gcc/config/s390/2097.md: Likewise.
3854 * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
3855 (UNSPECV_ATOMIC_OP): New constants.
3856 (fmadddf, fmaddsf): New values for type attribute.
3857 (z196prop): New insn attribute.
3858 (cpu, cpu_facility): Add z196.
3859 (ATOMIC_Z196): New code iterator.
3860 (noxa): New code attribute.
3861 (gk): New mode attribute.
3862 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
3863 Support load zero for fp constants.
3864 (fixuns_truncdddi2, fixuns_trunctddi2)
3865 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
3867 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
3868 (popcounthi2, popcountqi2): New expander.
3869 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
3870 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
3871 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
3873 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
3874 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
3875 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
3876 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
3877 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
3878 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
3879 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
3880 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
3881 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
3882 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
3883 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
3884 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
3885 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
3886 Support new z196 instructions.
3888 2010-10-05 Richard Guenther <rguenther@suse.de>
3891 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
3892 case where gimplification optimizes away the stmt.
3894 2010-10-04 Jakub Jelinek <jakub@redhat.com>
3897 * var-tracking.c (strip_pointer_flags): New function.
3898 (emit_note_insn_var_location): If rtx_equal_p check failed,
3899 retry on locations simplified with simplify_replace_fn_rtx
3900 and strip_pointer_flags as its callback.
3902 2010-10-04 Jan Hubicka <jh@suse.cz>
3904 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
3905 (can_refer_decl_in_current_unit_p): ... this one; reverse return
3906 value; handle comdats too.
3907 (canonicalize_constructor_val): Use it; handle function_decls
3909 (gimple_fold_obj_type_ref_known_binfo): Likewise.
3910 * gimple.c (get_base_address): Accept all kinds of decls.
3912 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3914 * flags.h (g_switch_value, g_switch_set): Remove.
3915 * opts.c (g_switch_value, g_switch_set): Remove.
3916 * config/g.opt (G): Add Var(g_switch_value).
3917 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
3918 (alpha_option_override): Check global_options_set.x_g_switch_value
3919 instead of g_switch_set.
3920 (alpha_in_small_data_p): Remove cast in comparison with
3922 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
3923 g_switch_value to unsigned HOST_WIDE_INT.
3924 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
3925 with g_switch_value.
3926 (frv_handle_option): Don't handle -G here.
3927 (frv_option_override): Check global_options_set.x_g_switch_value
3928 instead of g_switch_set. Don't modify g_switch_set.
3929 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
3930 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
3931 g_switch_value to unsigned HOST_WIDE_INT.
3932 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
3933 (ia64_option_override): Check global_options_set.x_g_switch_value
3934 instead of g_switch_set.
3935 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
3937 (lm32_in_small_data_p): Remove cast in comparison with
3939 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
3940 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
3942 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
3943 (m32r_init): Check global_options_set.x_g_switch_value instead of
3945 (m32r_in_small_data_p): Remove cast in comparison with
3947 (m32r_file_start): Format g_switch_value with %d.
3948 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
3949 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
3950 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
3952 (microblaze_option_override): Check
3953 global_options_set.x_g_switch_value instead of g_switch_set.
3954 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
3955 (mips_option_override): Check global_options_set.x_g_switch_value
3956 instead of g_switch_set.
3957 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
3958 (rs6000_file_start): Format g_switch_value with %d.
3959 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
3960 comparisons with g_switch_value.
3961 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
3962 global_options_set.x_g_switch_value instead of g_switch_set.
3963 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3964 global_options_set.x_g_switch_value instead of g_switch_set.
3965 * config/score/score.c (score_handle_option): Don't handle -G here.
3966 * config/score/score3.c (score3_option_override): Check
3967 global_options_set.x_g_switch_value instead of g_switch_set.
3968 * config/score/score7.c (score7_option_override): Check
3969 global_options_set.x_g_switch_value instead of g_switch_set.
3971 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
3973 * common.opt (fira-coalesce): Remove.
3975 * doc/invoke.texi (flag_ira_coalesce): Remove.
3977 * ira-color.c (allocno_coalesced_p): Move before
3978 copy_freq_compare_func.
3979 processed_coalesced_allocno_bitmap): Ditto.
3980 (update_conflict_hard_regno_costs): Don't use
3981 ALLOCNO_FIRST_COALESCED_ALLOCNO.
3982 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
3983 (assign_hard_reg): Assume no coalesced allocnos.
3984 (get_coalesced_allocnos_attributes): Remove.
3985 (bucket_allocno_compare_func): Assume no coalesced allocnos.
3986 (push_allocno_to_stack): Ditto.
3987 (remove_allocno_from_bucket_and_push): Use
3988 ira_print_expanded_allocno instead of print_coalesced_allocno.
3989 (push_allocnos_to_stack): Assume uncoalesced allocnos.
3990 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
3991 all_conflicting_hard_regs.
3992 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
3993 (setup_allocno_left_conflicts_size): Ditto.
3994 (put_allocno_into_bucket): Ditto.
3995 (copy_freq_compare_func): Remove.
3996 (copy_freq_compare_func, merge_allocnos): Move before
3997 coalesced_pseudo_reg_freq_compare.
3998 coalesced_allocno_conflict_p): Ditto.
3999 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
4000 parameter. Assume it true.
4001 (color_allocnos): Assume uncoalesced allocnos. Use
4002 ira_print_expanded_allocno instead of print_coalesced_allocno.
4003 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
4006 * ira.c: Remove comment about coalescing.
4008 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4010 * config/mips/mips.h (target_flags_explicit): Declare for
4013 2010-10-04 Andi Kleen <ak@linux.intel.com>
4015 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
4016 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
4018 2010-10-04 Matthias Klose <doko@ubuntu.com>
4020 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
4021 multilib osdirname if it exists.
4022 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
4024 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4027 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
4028 arg0's type or its unsigned counterpart as utype. Convert
4029 arg1 to utype unconditionally.
4031 2010-10-04 Julian Brown <julian@codesourcery.com>
4033 * expr.c (expand_assignment): Add assertion to prevent emitting
4034 null rtx for movmisalign pattern.
4035 (expand_expr_real_1): Likewise.
4036 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
4037 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
4038 (arm_vector_alignment_reachable): New.
4039 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
4040 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
4041 (arm_print_operand): Include alignment qualifier in %A.
4042 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
4043 (movmisalign<mode>): New expander.
4044 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
4047 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4049 * optc-gen.awk: Define global_options_set. Don't define
4050 target_flags_explicit.
4051 * opth-gen.awk: Declare global_options_set. Define
4052 target_flags_explicit as macro.
4053 * opts-common.c (handle_option): Take opts_set and generated_p
4055 (handle_generated_option, read_cmdline_option, set_option): Take
4057 (set_option): Use opts_set instead of hardcoding target_flags and
4058 target_flags_explicit.
4059 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
4060 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
4061 flag_value_profile_transformations_set, flag_peel_loops_set,
4062 flag_branch_probabilities_set, flag_inline_functions_set,
4063 flag_ipa_cp_set, flag_ipa_cp_clone_set,
4064 flag_predictive_commoning_set, flag_unswitch_loops_set,
4065 flag_gcse_after_reload_set): Remove.
4066 (common_handle_option, lang_handle_option, target_handle_option):
4067 Take opts_set parameter. Assert that it is &global_options_set.
4068 (common_handle_option): Don't set _set variables. Check opts_set
4069 instead of such variables.
4070 (enable_warning_as_error): Pass &global_options_set to
4071 handle_generated_option.
4072 * opts.h (cl_option_handler_func.handler, set_option,
4073 handle_option, handle_generated_option, read_cmdline_option): Add
4074 opts_set parameters.
4075 (handle_option): Add generated_p parameter.
4076 * config/i386/i386.c (ix86_function_specific_save,
4077 ix86_function_specific_restore): Updat for renaming of
4078 target_flags_explicit field.
4079 * config/i386/i386.opt (target_flags_explicit): Rename to
4080 ix86_target_flags_explicit.
4081 * config/ia64/ia64.c (ia64_override_options_after_change): Check
4082 global_options_set.x_flag_selective_scheduling and
4083 global_options_set.x_flag_selective_scheduling2, not
4084 sel_sched_switch_set.
4085 * flags.h (sel_sched_switch_set,
4086 flag_speculative_prefetching_set): Remove.
4087 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
4088 that it is &global_options_set.
4089 (process_command): Pass &global_options_set to read_cmdline_option.
4090 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
4092 * toplev.c (target_flags_explicit): Remove.
4094 2010-10-04 Jan Hubicka <jh@suse.cz>
4097 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
4098 use get_ref_base_and_offset to handle references.
4099 (fold_const_aggregate_ref): Update.
4101 2010-10-04 Martin Jambor <mjambor@suse.cz>
4103 PR tree-optimization/45572
4104 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
4105 ipa_check_create_node_params.
4106 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
4108 2010-10-04 Yao Qi <yao@codesourcery.com>
4110 * doc/passes.texi: Clean up.
4112 2010-10-03 Ian Lance Taylor <iant@google.com>
4114 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
4115 referring to a field using a typedef name.
4116 (find_anonymous_field_with_type): New static function.
4117 (convert_to_anonymous_field): New static function.
4118 (convert_for_assignment): If -fplan9-extensions, permit converting
4119 pointer to struct to pointer to anonymous field.
4120 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
4121 (is_duplicate_field): New static function.
4122 (detect_field_duplicates_hash): If -fplan9-extensions, check for
4123 typedef names duplicating field names.
4124 (detect_field_duplicates): Likewise.
4125 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
4126 (C Dialect Options): Document -fplan9-extensions.
4127 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
4129 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
4131 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
4133 (vect_create_data_ref_ptr): Likewise.
4134 * tree-vect-stmts.c (vectorizable_store): Likewise.
4135 (perm_mask_for_reverse): Likewise.
4136 (reverse_vec_elements): Likewise.
4137 (vectorizable_load): Likewise.
4139 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4141 * cppbuiltin.c: New file.
4142 * cppbuiltin.h: New file.
4143 * Makefile.in: Take into account cppbuiltin.{h,c}.
4145 2010-10-03 Andi Kleen <ak@linux.intel.com>
4147 * lto-cgraph.c (input_cgraph): Check for missing sections.
4149 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
4151 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
4152 to nonimmediate_operand. Force operand 2 to register when allowed.
4153 (*<shiftrt_insn><mode>3_mask): Ditto.
4154 (*<rotate_insn><mode>3_mask): Ditto.
4156 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
4158 PR tree-optimization/45720
4159 PR tree-optimization/45764
4160 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
4161 Don't accept backwards consecutive accesses.
4162 (vect_create_data_ref_ptr): Disallow negative steps.
4164 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
4165 (perm_mask_for_reverse): Removed.
4166 (reverse_vec_elements): Likewise.
4167 (vectorizable_load): Don't handle negative steps.
4169 2010-10-02 Jan Hubicka <jh@suse.cz>
4171 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
4172 call destination is known.
4174 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4177 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
4180 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4182 * doc/install.texi (Configuration): Document build_configargs,
4183 host_configargs, target_configargs.
4185 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
4187 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
4188 (*<shiftrt_insn><mode>3_mask): Ditto.
4189 (*<rotate_insn><mode>3_mask): Ditto.
4191 2010-10-01 Steve Ellcey <sje@cup.hp.com>
4193 PR tree-optimization/44716
4194 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4195 (HOT_TEXT_SECTION_NAME): Define.
4197 2010-10-01 Nick Clifton <nickc@redhat.com>
4199 * common.opt: Add -fcombine-stack-adjustments.
4200 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
4201 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
4202 flag_combine_stack_adjustments.
4203 * doc/invoke.texi: Document the new option.
4205 2010-10-01 Richard Guenther <rguenther@suse.de>
4207 PR tree-optimization/45854
4208 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
4210 2010-10-01 Anthony Green <green@moxielogic.com>
4212 * config.gcc: Fix moxie-*-rtems* configuration.
4214 2010-10-01 Richard Guenther <rguenther@suse.de>
4216 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
4217 (gen_decl_die): Likewise.
4219 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4221 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
4222 to the function code for SPU MD builtins.
4223 (spu_expand_builtin): Update.
4224 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
4226 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4228 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
4229 sjlj_except_unwind_info.
4231 2010-10-01 Tristan Gingold <gingold@adacore.com>
4233 * configure.ac: Define the nop insn for avr*-*-*
4234 * configure: Regenerate.
4236 2010-10-01 Alan Modra <amodra@gmail.com>
4239 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
4240 extend toc_restore_insn.
4242 2010-09-30 Richard Guenther <rguenther@suse.de>
4244 PR tree-optimization/43959
4245 * function.c (gimplify_parameters): Use create_tmp_reg instead of
4248 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
4250 * config/sh/sh.c (sh_expand_prologue): Set
4251 current_function_static_stack_size.
4253 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4255 * configure.ac: Check for Solaris 8 ld with .hidden support.
4256 * configure: Regenerate.
4258 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4261 * graphite.c (graphite_initialize): Call scev_reset.
4263 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4265 * sese.h (scev_analyzable_p): Return false for real or floating
4266 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
4268 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4270 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
4272 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
4274 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
4275 Do not allocate ub_expr, it is passed in initialized.
4277 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4279 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
4280 (build_cloog_prog): Dump CLooG input file when
4281 flag_graphite_dump_cloog is set. This is disabled on trunk.
4282 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
4284 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4286 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
4287 verify_dominators for CDI_POST_DOMINATORS.
4288 * sese.h: Remove comment about CDI_POST_DOMINATORS.
4289 (recompute_all_dominators): Remove call to free_dominance_info
4290 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
4291 for CDI_POST_DOMINATORS.
4293 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4295 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
4296 over pbb_dim_iter_domain.
4298 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4300 * graphite-flattening.c: Fix comments.
4302 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4304 * Makefile.in (OBJS-common): Add graphite-flattening.o.
4305 (graphite-flattening.o): New rule.
4306 * common.opt (floop-flatten): New flag.
4307 * doc/invoke.texi (-floop-flatten): Documented.
4308 * graphite-flattening.c: New.
4309 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
4310 * graphite-poly.h (flatten_all_loops): Declared.
4311 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
4312 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
4313 is set, also set flag_graphite.
4315 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4317 * graphite-poly.c (cloog_checksum): New.
4318 * graphite-poly.h (cloog_checksum): Declared.
4320 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4322 * graphite-poly.c (pbb_number_of_iterations): Removed.
4323 (pbb_number_of_iterations_at_time): Correctly compute the number
4324 of iterations in the transformed loop.
4325 * graphite-poly.h (pbb_number_of_iterations): Removed.
4327 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4329 * graphite-poly.h (lst_update_scattering_seq): Removed.
4330 (lst_update_scattering): Correctly handle outermost loop dewey
4333 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4335 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
4336 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
4337 * graphite-poly.h (lst_niter_for_loop): New.
4339 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4341 * graphite-poly.c (apply_poly_transforms): Do not abort when the
4342 transform read from disk is not legal. Call fatal_error instead.
4344 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4346 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
4347 (print_scop_header): Removed. Inlined in the only call place...
4348 (print_scop): ... here.
4350 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4352 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
4354 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4356 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
4358 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4360 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
4361 (dot_deps_stmt): Same.
4362 * graphite-poly.c (dot_lst): Same.
4364 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4366 * graphite-blocking.c (scop_do_strip_mine): Do not call
4367 graphite_legal_transform.
4368 (scop_do_block): Same.
4370 2010-09-30 Vladimir Kargov <kargov@gmail.com>
4372 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
4375 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4377 * tree-scalar-evolution.c (instantiate_array_ref): New.
4378 (instantiate_scev_r): Also handle ARRAY_REFs.
4380 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4382 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4383 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
4384 RESULT_DECL, and FIELD_DECL. Return false for an
4385 SSA_NAME_IS_DEFAULT_DEF.
4386 (compute_scalar_evolution_in_loop): Do not further analyze the
4387 scalar evolution when no_evolution_in_loop_p returns true.
4389 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4391 * tree-chrec.h (evolution_function_is_affine_p): Do not check
4392 whether CHREC_LEFT is invariant. A function is affine when
4393 CHREC_RIGHT is invariant.
4395 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4397 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
4399 (rewrite_degenerate_phi): Same.
4400 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
4402 2010-09-30 Vladimir Kargov <kargov@gmail.com>
4404 * graphite-scop-detection.c (graphite_can_represent_scev,
4405 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
4406 graphite_can_represent_loop): Remove outermost_loop.
4408 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4411 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
4412 handle GIMPLE_CALLs with no LHS.
4414 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4416 * graphite-poly.c (init_graphite_out_file): New.
4417 (init_graphite_in_file): New.
4418 (apply_poly_transforms): Updated to enable reading and writing of
4419 multiple scop files.
4421 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
4423 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
4426 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4428 * graphite-clast-to-gimple.c (precision_for_value): Adjust
4429 computation of precision by 1.
4431 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4433 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
4434 (openscop_read_polyhedron_matrix): New.
4435 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
4436 (openscop_read_N_int): Same.
4437 * graphite-poly.c (openscop_read_N_int): New.
4438 (openscop_read_one_int): New.
4439 (openscop_read_N_string): New.
4440 (openscop_read_one_string): New.
4441 (openscop_read_powerset_matrix): New.
4442 (graphite_read_transforms): Remove.
4443 (graphite_read_scatt): New.
4444 (graphite_read_scop_file): New.
4445 (apply_poly_transforms): Updated to call graphite_read_scop_file.
4447 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4449 * graphite-poly.c: Change include order.
4451 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4453 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
4454 (cloog_matrix_nrows): New.
4456 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4458 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
4460 * graphite-poly.c (openscop_print_scattering_function_1): Same.
4461 (print_scattering_function_1): Same.
4462 (openscop_print_pbb_domain): Same.
4463 (openscop_print_scop_context): Same.
4464 (print_scop_context): Same.
4466 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4468 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
4469 (openscop_print_pdr_polyhedron): Print pph.
4471 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4473 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
4474 priority signed types.
4476 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4478 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
4479 the call to lang_hooks.types.type_for_size. Call
4480 build_nonstandard_integer_type.
4482 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4484 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
4485 (openscop_print_polyhedron_matrix): New.
4486 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
4487 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
4488 (openscop_print_pdr_powerset): New.
4489 (openscop_print_powerset_matrix): New.
4490 (openscop_print_scattering_function_1): New.
4491 (print_scattering_function): Add support for scattering names and
4493 (graphite_write_transforms): Remove.
4494 (print_pdr_access_layout): Updated to support OpenScop format.
4496 (openscop_print_pbb_domain): New.
4497 (print_pbb_body): Added a parameter to allow indicating that pbb_body
4499 (print_pbb): Updated to call the new print_pbb_body.
4500 (openscop_print_scop_context): New.
4501 (print_scop_header): New.
4502 (print_scop): Updated to call print_scop_header.
4503 * graphite-poly.h: Document OpenScop format.
4505 2010-09-30 Anatoly Sokolov <aesok@post.ru>
4507 * config/cris/m32c.c (cris_memory_move_cost): New.
4508 (cris_register_move_cost): Make static. Change arguments type from
4509 enum reg_class to reg_class_t.
4510 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4511 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4512 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
4514 2010-09-30 Jakub Jelinek <jakub@redhat.com>
4517 * config/i386/i386.c (ix86_gimplify_va_arg): Use
4518 INTVAL (XEXP (slot, 1)) as prev_size.
4520 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
4523 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
4524 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
4526 * config/rs6000/option-defaults.h (toplevel): Change #if
4527 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
4528 global option changes.
4530 2010-09-30 Jakub Jelinek <jakub@redhat.com>
4532 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
4534 PR tree-optimization/31261
4535 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
4536 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
4538 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4541 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
4542 special-casing for generators and turn into ...
4543 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
4544 rule, for better error messages in case of toplevel dependency errors.
4545 (genprog): Add hooks, rename to ...
4546 (genprogerr): ... this, and let genprog also contain check,
4548 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
4549 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
4550 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
4552 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
4553 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4555 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
4556 for GMP, MPFR and MPC.
4558 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4560 * config/sparc/sparc.opt (mimpure-text): Move ...
4561 * config/sol2.opt: ... here. Correct description.
4562 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
4563 * doc/invoke.texi (Option Summary, SPARC Options): Move
4564 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
4565 (Option Summary, Solaris 2 Options): ... here.
4566 (Submodel Options, Solaris 2 Options): New menu entry.
4567 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
4568 (Solaris 2 Options): ... here.
4570 2010-09-30 Michael Eager <eager@eagercon.com>
4572 * extend.texi (interrupt_handler): Add MicroBlaze to list.
4573 (save_volatiles): Describe option for MicroBlaze.
4574 * invoke.texi: Add MicroBlaze Options.
4575 * contrib.texi: Add acknowledgment.
4576 * md.texi: Add MicroBlaze d and z constraints.
4577 * install.texi: Add microblaze-*-elf.
4578 * configure.ac: Add microblaze-*-* to target list.
4579 * configure: Regenerate.
4580 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
4581 * config/microblaze/microblaze-protos.h: New.
4582 * config/microblaze/crti.s: New.
4583 * config/microblaze/predicates.md: New.
4584 * config/microblaze/linux.h: New.
4585 * config/microblaze/microblaze.md: New.
4586 * config/microblaze/constraints.md: New.
4587 * config/microblaze/crtn.s: New.
4588 * config/microblaze/microblaze.opt: New.
4589 * config/microblaze/microblaze-c.c: New.
4590 * config/microblaze/t-microblaze: New.
4591 * config/microblaze/microblaze.c: New.
4592 * config/microblaze/microblaze.h: New.
4594 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4596 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
4597 parse @optional/@required and set the flags as appropriate.
4599 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
4601 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
4603 2010-09-30 Joseph Myers <joseph@codesourcery.com>
4605 * opt-functions.awk (static_var): Update comment.
4606 (var_ref): Return offsetof expression or -1, not variable address.
4607 * optc-gen.awk: Generate structure field initializers instead of
4608 static variables. Expect -1 for missing variables instead of null
4609 pointer. Add gcc_options parameters to generated functions.
4610 * opth-gen.awk: Generate structure fields for static variables.
4611 Add gcc_options parameters to generated functions.
4612 * common.opt (optimize, optimize_size): Add variables.
4613 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
4614 &global_options to cl_target_option_restore.
4615 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
4616 &global_options to cl_optimization_restore, cl_target_option_save
4617 and cl_target_option_restore.
4618 (ix86_set_current_function): Pass &global_options to
4619 cl_target_option_restore.
4620 * config/pdp11/pdp11.h (optimize): Remove.
4621 * config/rs6000/rs6000.h (optimize): Remove.
4622 * config/sh/sh.h (optimize): Remove.
4623 * config/xtensa/xtensa.h (optimize): Remove.
4624 * coretypes.h (struct gcc_options): Declare.
4625 * diagnostic.c (diagnostic_initialize): Initialize
4626 context->option_state.
4627 (diagnostic_report_diagnostic): Pass option_state to
4628 option_enabled hook.
4629 * diagnostic.h (diagnostic_context.option_enabled): Add void *
4631 (diagnostic_context.option_state): New field.
4632 * final.c (final_start_function, final, final_scan_insn): Rename
4633 optimize parameter to optimize_p.
4634 * flags.h (optimize, optimize_size): Remove.
4635 * function.c (invoke_set_current_function_hook): Pass
4636 &global_options to cl_optimization_restore.
4637 * gcc.c (driver_handle_option): Take gcc_options parameter.
4638 Assert that it is &global_options.
4639 (process_command): Pass &global_options to read_cmdline_option.
4640 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
4642 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
4643 &global_options to set_option.
4644 * opts-common.c (handle_option, handle_generated_option,
4645 read_cmdline_option, set_option): Take explicit gcc_options
4646 parameters. Use option_flag_var.
4647 (option_flag_var): New.
4648 * opts.c (common_handle_option, lang_handle_option,
4649 target_handle_option): Take gcc_options parameter. Assert that it
4651 (read_cmdline_options): Pass &global_options to read_cmdline_option.
4652 (print_filtered_help): Use option_flag_var. Pass &global_options
4654 (common_handle_option): Use option_flag_var.
4655 (option_enabled): Take opts parameter. Use option_flag_var.
4656 (get_option_state): Take gcc_options parameter. Use
4657 option_flag_var. Pass gcc_options parameter to option_enabled.
4658 (enable_warning_as_error): Pass &global_options to
4659 handle_generated_option.
4660 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
4661 (cl_option_handler_func.handler): Take gcc_options parameter.
4662 (option_enabled, get_option_state, set_option, handle_option,
4663 handle_generated_option, read_cmdline_option): Take gcc_options
4665 * toplev.c (optimize, optimize_size): Remove.
4666 (print_switch_values): Pass &global_options to option_enabled.
4667 (option_affects_pch_p): Use option_flag_var. Pass &global_options
4668 to get_option_state.
4669 (general_init): Initialize global_dc->option_state.
4670 * tree.c (build_optimization_node): Pass &global_options to
4671 cl_optimization_save.
4672 (build_target_option_node): Pass &global_options to
4673 cl_target_option_save.
4675 2010-09-30 Martin Jambor <mjambor@suse.cz>
4677 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
4678 zero sized bit-fields.
4680 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4682 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
4683 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
4684 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
4685 (c_parser_objc_class_declaration): Same change.
4686 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
4687 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
4688 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
4689 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
4690 and RID_AT_PUBLIC instead of RID_PUBLIC.
4691 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
4692 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
4694 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
4696 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
4697 Add links to current providers of packages for Solaris and IRIX.
4699 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4701 Merge from 'apple/trunk' branch on FSF servers.
4702 * c-parser.c: Applied change originally in c-parse.in.
4704 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4707 * c-decl.c (start_decl): Check for redeclaration of class name.
4708 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
4710 2010-09-29 Steve Ellcey <sje@cup.hp.com>
4712 * config/ia64/ia64.c (ia64_builtin_decl): New.
4713 (TARGET_BUILTIN_DECL): Define.
4714 (ia64_builtins): New.
4715 (ia64_init_builtins): Save decls in ia64_builtins.
4717 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
4720 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
4721 (move2add_use_add3_insn): Likewise.
4722 (reload_cse_move2add): Likewise.
4723 * rtlanal.c (get_full_rtx_cost): New function.
4724 * rtl.h (struct full_rtx_costs): New.
4725 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
4726 costs_add_n_insns): New inline functions.
4727 (get_full_rtx_cost): Declare.
4730 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
4731 invariants. Check for reg_equiv_invariant.
4732 (reload): Assert that spilled_pseudos is empty when returning.
4734 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
4736 * config/i386/mingw32.h (TARGET_64BIT): replaced by
4737 TARGET_64BIT_DEFAULT in #if check.
4739 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
4741 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
4743 2010-09-29 Mike Stump <mikestump@comcast.net>
4745 * config/darwin.h (flag_mkernel): Remove.
4746 (flag_apple_kext): Likewise.
4748 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4749 Jack Howarth <howarth@bromo.med.uc.edu>
4751 * config/darwin.opt (undefined): Add.
4753 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
4756 * configure.ac: Add --enable-indirect-function option.
4757 * config.gcc: Add default_gnu_indirect_function.
4758 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
4759 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
4760 * varasm.c (do_assemble_alias): Adjust for macro name change.
4761 * configure: Rebuilt.
4762 * doc/install.texi: Document --enable-indirect-function.
4764 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4766 * doc/options.texi (Variable, Var, Init): Update documentation
4767 without reference to VarExists.
4768 (VarExists): Remove.
4769 * common.opt, config/i386/i386.opt, config/linux.opt,
4770 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
4771 Don't use VarExists.
4773 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4775 * optc-gen.awk: Generate global_options initializer instead of
4776 individual variables. Add x_ prefix to names of structure members.
4777 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
4778 names of structure members.
4779 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4780 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
4781 * doc/tm.texi: Regenerate.
4782 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4783 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
4784 * c-parser.c (disable_extension_diagnostics,
4785 restore_extension_diagnostics): Update names of cpp_options members.
4786 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4787 * common.opt (fcompare-debug-second): Don't use Var.
4788 * config/alpha/alpha.h (target_flags): Remove.
4789 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4790 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
4791 * config/bfin/bfin.h (target_flags): Remove.
4792 * config/cris/cris.h (target_flags): Remove.
4793 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
4794 cl_target_option members.
4795 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
4796 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
4797 ix86_can_inline_p): Update names of cl_target_option members.
4798 * config/i386/i386.h (ix86_isa_flags): Remove.
4799 * config/lm32/lm32.h (target_flags): Remove.
4800 * config/mcore/mcore.h (mcore_stack_increment): Remove.
4801 * config/mcore/mcore.md (addsi3): Remove extern declaration of
4802 flag_omit_frame_pointer.
4803 * config/mep/mep.h (target_flags): Remove.
4804 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4805 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
4806 * config/mmix/mmix.h (target_flags): Remove.
4807 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
4808 flag_expensive_optimizations): Remove.
4809 * config/s390/s390.h (flag_pic): Remove.
4810 * config/score/score-conv.h (target_flags): Remove.
4811 * config/sh/sh.h (sh_fixed_range_str): Remove.
4812 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
4813 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
4814 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4815 * diagnostic.c (diagnostic_initialize): Update names of
4816 diagnostic_context members.
4817 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
4818 warn_system_headers.
4819 (diagnostic_report_warnings_p): Update for new names.
4820 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
4821 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
4822 HARD_FRAME_POINTER_IS_ARG_POINTER.
4823 * flags.h (flag_compare_debug): Declare.
4824 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4825 * opts.c (flag_compare_debug): Define.
4826 (common_handle_option): Update names of diagnostic_context
4827 members. Handle -fcompare-debug-second.
4828 (fast_math_flags_struct_set_p): Update names of cl_optimization
4830 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4831 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4832 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4833 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4834 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4835 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4836 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
4837 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4838 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
4840 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
4842 * config/picochip/picochip.c (picochip_output_internal_label):
4843 This function can now be called for debug CFI labels, which can come
4844 in the middle of a vliw instruction. Postpone until end of vliw.
4846 2010-09-29 Richard Guenther <rguenther@suse.de>
4848 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
4849 (DECL_FILE_SCOPE_P): Use it.
4850 (TYPE_FILE_SCOPE_P): New macro.
4852 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4854 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
4855 a CPP_NAME which is a reserved word, clearly separate cases for
4856 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
4858 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4860 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
4861 token->value with the canonical spelling. Do exactly like C and
4862 C++ and leave it as it is.
4864 2010-09-28 Richard Henderson <rth@redhat.com>
4866 * config/alpha/alpha.c (alpha_builtins): New.
4867 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
4868 (alpha_builtin_function): New.
4869 (alpha_add_builtins, alpha_init_builtins): Use it.
4871 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
4873 * doc/standards.texi (Standards): Expanded the section on
4874 Objective-C and Objective-C++.
4876 2010-09-28 DJ Delorie <dj@redhat.com>
4879 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
4882 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4884 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
4885 attributes on methods.
4886 (c_parser_objc_method_definition): Handle attributes.
4887 (c_parser_objc_methodproto): Likewise.
4888 (c_parser_objc_maybe_method_attributes): New.
4889 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
4890 missing definition, similar to that in ObjC++.
4892 2010-09-28 Richard Henderson <rth@redhat.com>
4894 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
4895 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
4896 (CONFIG_SJLJ_EXCEPTIONS): Remove.
4897 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
4898 (STACK_CHECK_PROTECT): Likewise.
4899 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
4900 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
4901 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
4902 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
4903 (dwarf2out_assembly_start): Likewise.
4904 * except.c (init_eh): Use targetm.except_unwind_info.
4905 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
4906 (output_one_function_exception_table): Likewise.
4907 * final.c: Unconditionally include dwarf2out.h.
4908 (final_start_function): Unconditionally call dwarf2out routines.
4909 (final_end_function, final_scan_insn): Likewise.
4910 * function.c (expand_function_end): Use targetm.except_unwind_info.
4911 * opts.c (decode_options): Use targetm.except_unwind_info.
4912 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
4913 * target.def (debug_unwind_info, except_unwind_info): New.
4914 * target.h (enum unwind_info_type): New.
4915 * targhooks.c (default_debug_unwind_info): New.
4916 (default_except_unwind_info): New.
4917 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
4918 * targhooks.h: Declare them.
4919 * tree-tailcall.c: Include "target.h"
4920 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
4921 * Makefile.in (tree-tailcall.o): Update.
4922 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
4923 (lhd_gcc_personality): Likewise.
4925 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
4926 (TARGET_EXCEPT_UNWIND_INFO): New.
4927 (DWARF2_UNWIND_INFO): Update.
4928 (TARGET_DEBUG_UNWIND_INFO): New.
4929 * doc/tm.texi: Rebuild.
4931 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
4932 targetm.except_unwind_info.
4934 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
4935 (arm_except_unwind_info): New.
4936 (arm_compute_func_type): Use it.
4937 (arm_expand_prologue, thumb_pushpop): Likewise.
4938 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
4939 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
4940 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
4941 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
4942 (DWARF2_UNWIND_INFO): Remove.
4943 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
4944 (ARM_EABI_UNWIND_TABLES): Remove.
4946 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
4947 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
4948 (ia64_except_unwind_info): New.
4949 (ia64_output_function_prologue): Use it.
4950 (ia64_add_bundle_selector_before): Likewise.
4951 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
4952 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
4953 (TARGET_UNWIND_INFO): Remove.
4955 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
4957 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4959 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
4960 (c_parser_objc_protocol_definition): Likewise.
4961 (c_parser_external_declaration): Provide dummy attribute arguments.
4962 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
4963 (c_parser_objc_class_definition): Handle attributes.
4964 (c_parser_objc_protocol_definition): Likewise.
4966 2010-09-28 Tobias Burnus <burnus@net-b.de>
4970 * toplev.h (save_decoded_options, save_decoded_options_count):
4971 New global variables.
4972 * toplev.c (save_decoded_options, save_decoded_options_count):
4975 2010-09-28 Ian Lance Taylor <iant@google.com>
4977 * config/i386/i386.c (ix86_supports_split_stack): Test
4978 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
4980 2010-09-28 Ian Lance Taylor <iant@google.com>
4983 * opts.c (decode_options): Don't test whether the target supports
4984 split stack if flag_split_stack == 0.
4986 2010-09-28 Jan Hubicka <jh@suse.cz>
4988 * builtin-attrs.def (ATTR_LEAF): New attribute.
4989 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
4990 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
4991 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
4992 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
4993 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
4994 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
4995 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
4996 * sync-builtins.def: Annotate all builtins by leaf.
4997 * omp-builtins.def: Annotate all builtins by leaf.
4998 * builtins.def: Annotate relevant builtins with leaf attribute.
4999 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
5000 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
5003 2010-09-28 Jan Hubicka <jh@suse.cz>
5005 * tree-ssa-ccp.c (fold_ctor_reference): New function.
5006 (fold_const_aggregate_ref): Use it.
5007 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
5008 into external static.
5010 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5013 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
5014 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
5015 (ix86_solaris_return_in_memory): Remove.
5016 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
5017 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5018 (TARGET_SUBTARGET_DEFAULT): Redefine.
5019 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
5020 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5021 (TARGET_SUBTARGET_DEFAULT): Redefine.
5022 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
5024 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
5026 2010-09-29 Alan Modra <amodra@gmail.com>
5029 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
5030 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
5031 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
5033 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
5034 (rs6000_emit_prologue): Don't just create frame save info for r2,
5037 2010-09-28 Richard Henderson <rth@redhat.com>
5039 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
5040 when 8 bytes are requested.
5042 2010-09-28 Tristan Gingold <gingold@adacore.com>
5044 * config/avr/avr.c (expand_prologue): Set
5045 current_function_static_stack_size.
5047 2010-09-28 Tristan Gingold <gingold@adacore.com>
5049 * config/alpha/alpha.md: Change the initial condition of the
5052 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
5054 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
5055 Split from *avx_<maxmin:code><mode>3.
5056 (*avx_<smaxmin:code><mode>3): Ditto.
5057 * config/i386/i386.md (maxmin): Remove code iterator.
5059 2010-09-27 Ian Lance Taylor <iant@google.com>
5061 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
5062 requires assembler support for CFI directives.
5064 2010-09-27 Richard Henderson <rth@redhat.com>
5066 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
5068 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
5070 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
5071 that AFTER is not in the range FROM..TO, inclusive.
5073 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
5074 Bernd Schmidt <bernds@codesourcery.com>
5076 PR rtl-optimization/45792
5077 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
5078 If not all insns are to be merged, for each edge, stash the
5079 next candidate after the to-be-merged insns before doing the
5080 merge, and use them for the retry at the new insertion point.
5081 Handle CC0 targets when retrying.
5083 2010-09-27 Ian Lance Taylor <iant@google.com>
5085 * common.opt (fsplit-stack): New option.
5086 * opts.c (decode_options): Set flag_split_stack to final value.
5087 * target.def (supports_split_stack): New hook.
5088 * gcc.c (STACK_SPLIT_SPEC): Define.
5089 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
5090 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
5091 (Code Gen Options): Document -fsplit-stack.
5092 * doc/extend.texi (Function Attributes): Mention no_split_stack.
5093 (Function Attributes): Document no_split_stack.
5094 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
5095 TARGET_SUPPORTS_SPLIT_STACK.
5096 * doc/tm.texi: Rebuild.
5097 * function.c (thread_prologue_and_epilogue_insns): If
5098 flag_split_stack, add split stack prologue.
5099 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
5100 * varasm.c (saw_no_split_stack): New static variable.
5101 (assemble_start_function): Set saw_no_split_stack if the function
5102 has the no_split_stack attribute.
5103 (file_end_indicate_split_stack): New function.
5104 * output.h (file_end_indicate_split_stack): Declare.
5105 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
5107 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
5109 * config/i386/i386.c (ix86_option_override_internal): Don't set
5110 expand_builtin_va_start to NULL if -fsplit-stack.
5111 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
5113 (ix86_va_start): If -fsplit-stack, get overflow pointer from
5114 scratch register set by prologue.
5115 (ix86_code_end): If -fsplit-stack, call
5116 file_end_indicate_split_stack.
5117 (ix86_supports_split_stack): New static function.
5118 (SPLIT_STACK_AVAILABLE): Define.
5119 (split_stack_prologue_scratch_regno): New static function.
5120 (split_stack_fn): New static variable.
5121 (ix86_expand_split_stack_prologue): New function.
5122 (ix86_live_on_entry): New static function.
5123 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
5124 (output_pic_addr_const): Likewise.
5125 (i386_asm_output_addr_const_extra): Likewise.
5126 (ix86_expand_call): Change return type to rtx. Return the new
5128 (TARGET_SUPPORTS_SPLIT_STACK): Define.
5129 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5130 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
5131 (split_stack_prologue, split_stack_return): New insns.
5132 (split_stack_space_check): New insn.
5133 * config/i386/i386.h (struct machine_function): Add
5134 split_stack_varargs_pointer field.
5135 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
5136 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5137 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5138 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5139 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
5141 (ix86_expand_call): Update declaration.
5143 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5145 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
5146 code. Added byref, which was missing in the list of codes.
5147 Explain that enumeration values are encoded as the integer type
5148 that the compiler uses to store them. Explain and make examples
5149 of how 'const' interacts with pointers, and the complication of
5150 the encoding of 'const char *'.
5151 (Legacy type encoding): New subsection, explaining that GCC emits
5152 incorrect type encodings for the NeXT runtime for compatibility
5154 (@@encode): New subsection, explaining @encode and particularly
5155 that protocol qualifiers are not recognized inside an @encode()
5157 (Method signatures): New subsection, explaining how method
5158 signatures are encoded.
5160 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5162 Merge from 'apple/trunk' branch on FSF servers. Removed small
5163 change in build_conditional_expr that had been added when fixing
5164 PR objc/27377 and which did the same check in a less complete way.
5166 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5169 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
5170 looking for objective-c common pointer types.
5172 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5175 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
5176 use their ObjC common type.
5178 2010-09-27 Richard Guenther <rguenther@suse.de>
5180 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
5182 2010-09-27 Jie Zhang <jie@codesourcery.com>
5184 * print-tree.c (print_node): Print in-constant-pool.
5186 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
5188 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
5189 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
5190 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
5191 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
5193 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
5195 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
5196 from pro_epilogue_adjust_stack_<mode>_{1,2}.
5197 (pro_epilogue_adjust_stack_<mode>_add): Rename from
5198 pro_epilogue_adjust_stack_<mode>_3.
5199 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
5200 renamed pro_epilogue_adjust_stack_{si,di}_add.
5201 (ix86_expand_prologue): Use indirect functions. Update for renamed
5202 pro_epilogue_adjust_stack_{si,di}_sub.
5204 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
5206 * config/i386/i386.md (movmsk_df): New insn.
5207 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
5208 sequence for TARGET_SSE_MATH.
5210 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
5212 * config/mips/mips.c (mips_builtin_decls): Declare.
5213 (mips_init_builtins): Store function declarations in
5215 (mips_builtin_decl): New function.
5216 (TARGET_BUILTIN_DECL): Define.
5218 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
5219 Richard Henderson <rth@redhat.com>
5221 * config/i386/cygwin.asm: Include auto-host.h.
5222 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
5223 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
5224 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
5225 alignment code from the 64-bit path. Use gas local labels.
5226 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
5227 from _di_2. Remove the useless constant integer argument.
5228 (pro_epilogue_adjust_stack_<mode>_3): New.
5229 (allocate_stack_worker_probe_<mode>): Macroize from
5230 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
5231 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
5232 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
5233 (__chkstk_ms): New function.
5234 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
5235 * gcc/config/i386/t-interix: Likewise.
5236 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
5237 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
5238 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
5239 * configure, config.in: Rebuild.
5241 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
5243 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
5244 statements because of the return slot optimization.
5246 2010-09-25 Anatoly Sokolov <aesok@post.ru>
5248 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
5249 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
5250 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5251 (class_likely_spilled_p): Rename to...
5252 (avr_class_likely_spilled_p): ...this. Make static. Change argument
5253 type to reg_class_t.
5255 2010-09-24 Jan Hubicka <jh@suse.cz>
5257 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
5258 (lto_symtab_resolve_symbols): Set it.
5259 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
5260 store resolution field in cgraph/varpool.
5261 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
5262 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
5263 (cgraph_dump_node): Drop used_from_object_file.
5264 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
5265 (cgraph_function_body_availability): Use decl_replaceable_p.
5266 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
5267 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
5268 cgraph_used_from_object_file_p.
5269 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
5270 cgraph_used_from_object_file_p.
5271 (resolution_used_from_other_file_p): New functoin.
5272 (cgraph_used_from_object_file_p): New predicate.
5273 * cgraph.h: Include plugin-api.h
5274 (struct cgraph_local_info): Remove used_from_object_file.
5275 (struct cgraph_node): Add resolution field.
5276 (struct varpool_node): Likewise; remove used_from_object_file;
5277 reove const_value_known.
5278 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
5279 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
5280 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5281 varpool_used_from_object_file_p): Declare.
5282 (varpool_get_node, varpool_extra_name_alias): Update prototype.
5283 * tree.h (DECL_REPLACEABLE_P): Remove.
5284 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
5285 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
5286 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5287 input_overwrite_node, input_node, input_varpool_node): Stream
5289 * expr.c (expand_expr_real_1): Use const_value_known_p
5290 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
5292 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
5293 (function_and_variable_visibility): Set resolution for local vars
5294 and functions; use varpool_used_from_object_file_p.
5295 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
5297 (default_binds_local_p_1): Use resolutoin info.
5298 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
5299 * varpool.c (varpool_get_node): Constify.
5300 (const_value_known_p): Do not use vnode->const_value_known;
5301 use decl_replaceable_p.
5302 (varpool_finalize_decl): Do not set const_value_known.
5303 (cgraph_variable_initializer_availability): Use decl_replaceable_p
5304 (varpool_extra_name_alias): Return new node.
5305 (varpool_used_from_object_file_p): New function.
5307 2010-09-24 Richard Henderson <rth@redhat.com>
5309 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
5310 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
5311 (do_spill): Use REG_CFA_OFFSET.
5312 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
5314 (ia64_expand_epilogue): Likewise.
5315 (process_set): Split into ...
5316 (process_cfa_adjust_cfa): this,
5317 (process_cfa_register): this,
5318 (process_cfa_offset): and this new function.
5319 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
5320 instead of REG_FRAME_RELATED_EXPR.
5322 2010-09-24 Olivier Hainque <hainque@adacore.com>
5324 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
5326 2010-09-24 Jan Hubicka <jh@suse.cz>
5328 * doc/extend.texi: (attribute leaf): Document.
5329 * tree.c (local_define_builtin): Handle ECF_LEAF.
5330 (build_common_builtin_nodes): Set ECF_LEAF where needed.
5331 * tree.h (ECF_LEAF): New.
5332 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
5333 overwrittable and unavailable functions.
5334 (ipa_init): Put all_module_statics into optimization_summary_obstack.
5335 (copy_global_bitmap): Do not copy all_module_statics.
5336 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
5337 (propagate): Handle overwritable and unavailable leaf functions;
5338 initialize global info for overwritable and unavailable leaf functions;
5339 do not free all module statics.
5340 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
5342 * calls.c (flags_from_decl_or_type): Handle leaf.
5343 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
5346 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
5348 * gengtype.c: Reindented.
5349 * gengtype.h: Reindented.
5350 * gengtype-parse.c: Reindented.
5352 2010-09-24 Jan Hubicka <jh@suse.cz>
5354 PR tree-optimization/45738
5355 PR tree-optimization/45741
5356 * expr.c (string_constant): Allow CONST_DECL too;
5357 check that DECL_INITIAL is set.
5358 * varpool.c (const_value_known_p): Only look into VAR_DECL
5361 2010-09-24 Joseph Myers <joseph@codesourcery.com>
5363 * common.opt (undef): New.
5365 2010-09-24 Jakub Jelinek <jakub@redhat.com>
5368 * rtl.h (enum global_rtl_index): Add
5369 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
5370 (LAST_VIRTUAL_POINTER_REGISTER): Define.
5371 (virtual_preferred_stack_boundary_rtx,
5372 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
5373 (LAST_VIRTUAL_REGISTER): Increase by one.
5374 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
5375 instead of LAST_VIRTUAL_REGISTER.
5376 * function.c (instantiate_new_reg): Handle
5377 virtual_preferred_stack_boundary_rtx.
5378 * emit-rtl.c (init_virtual_regs): Handle
5379 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
5380 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
5381 * explow.c (round_push): If crtl->preferred_stack_boundary
5382 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
5383 virtual_preferred_stack_boundary_rtx alignment instead of
5384 crtl->preferred_stack_boundary alignment.
5385 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
5386 macros. Never decrease crtl->preferred_stack_boundary,
5387 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
5388 instead of PREFERRED_STACK_BOUNDARY. Don't modify
5389 stack_pointer_delta in dynamic allocation, even when size
5391 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
5393 * print-rtl.c (print_rtx): Handle
5394 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
5395 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
5396 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
5397 * config/frv/frv.c (frv_emit_movsi): Likewise.
5398 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
5399 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
5403 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
5406 * calls.c (expand_call): Make sure that all variable sized
5407 adjustments are multiple of preferred stack boundary after
5410 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
5411 Dominique Dhumieres <dominiq@lps.ens.fr>
5414 * gcc/config/darwin-driver.c (darwin_default_min_version):
5415 Adjust size passed to memcpy in two places.
5417 2010-09-24 Richard Guenther <rguenther@suse.de>
5419 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
5420 Make sure to not call set_type_context with error_mark_node.
5421 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
5423 2010-09-24 Richard Guenther <rguenther@suse.de>
5425 * Makefile.in (OBJS-onestep): Remove.
5426 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
5427 (libbackend.a): Remove onestep support.
5428 (libbackend.o): Remove.
5429 * configure.ac (--enable-intermodule): Remove.
5430 * configure: Regenerate.
5432 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
5434 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
5435 reaching the end of a block if it occurs at a DEBUG_INSN.
5437 2010-09-09 Tristan Gingold <gingold@adacore.com>
5440 * config/vms/vms-crt0-64.c: Removed.
5441 * config/vms/vms-crt0.c: Removed.
5442 * config/vms/vms-psxcrt0-64.c: Removed.
5443 * config/vms/vms-psxcrt0.c: Removed.
5444 * config/vms/vms-ucrt0.c: New file.
5445 * config/vms/t-vms64: Removed.
5446 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
5447 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
5448 * config.gcc (alpha-dec-vms): Use t-vms.
5450 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
5452 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
5453 underfull hbox in DVI output.
5454 (-fobjc-class-cxx-cdtors): Same change.
5455 (-fobjc-exceptions): Tidied up documentation. Explain what the
5456 option does, but moved the (lenghty) description of the exception
5457 syntax into objc.texi.
5458 (-fobjc-gc): Explain that the option is not useful with the GNU
5460 (-fzero-link): Explain that the GNU runtime always works in
5462 * doc/objc.texi: All sections: simplified @node declarations
5463 removing specification of next, previous, up node.
5464 (Objective-C): Updated introduction.
5465 (Garbage Collection): Updated. The bohem-gc library is now
5466 included in gcc itself. Mention that this section only applies to
5467 the GNU Objective-C runtime.
5468 (compatibility_alias): Small tidy up.
5469 (Exceptions): New section mostly containing text previously in the
5470 description of the -fobjc-exception command-line option.
5471 (Synchronization): Same.
5473 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
5475 * config/i386/i386.md (ix86_code_end): Move the initialization of
5476 xops array near the consumer. Use AX_REG and SP_REG instead of
5477 numerical constants.
5479 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
5481 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
5482 method [methodname]' for an Objective-C method instead of the less
5483 satisfactory 'too many arguments to function' (with no method name).
5485 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
5487 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
5488 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
5489 (execute_update_addresses_taken): Remove parameter. Execute the
5490 optimization unconditionally.
5491 * passes.c (execute_function_todo): Call execute_update_addresses_taken
5492 unconditionally if TODO_rebuild_alias is set, else only when optimizing
5493 if TODO_update_address_taken is set.
5495 2010-09-23 Anatoly Sokolov <aesok@post.ru>
5497 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
5498 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
5499 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5500 (arm_output_addr_const_extra): Make static.
5502 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
5504 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
5505 define as unspec_volatile.
5506 ("nops"): Define as unspec_volatile. Use fputs to write to
5507 asm_out_file directly. Output NOPs on separate lines using while loop.
5508 * config/i386/i386.c (ix86_code_end): Use fputs to write to
5509 asm_out_file directly. Output NOPs on separate lines using while loop.
5511 2010-09-23 Richard Guenther <rguenther@suse.de>
5513 PR tree-optimization/45565
5514 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
5515 Make sure to adjust the fndecl before replacing the stmt.
5517 2010-09-23 Richard Guenther <rguenther@suse.de>
5520 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
5521 gimplifying MEM_REF.
5523 2010-09-23 Alan Modra <amodra@gmail.com>
5525 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
5526 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
5528 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
5530 PR rtl-optimization/44374
5531 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
5532 * df-core.c (df_set_bb_dirty): Set it.
5533 * ifcvt.c (find_memory): Remove function.
5534 (dead_or_predicable): Use can_move_insns_across.
5535 * df.h (can_move_insns_across): Declare function.
5536 * cfgcleanup.c (block_was_dirty): New static variable.
5537 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
5538 than df_get_bb_dirty.
5539 (try_head_merge_bb): New static function.
5540 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
5542 * df-problems.c: Include "target.h"
5543 (df_simulate_find_uses): New static function.
5544 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
5545 (find_memory, find_memory_store): New static functions.
5546 (can_move_insns_across): New function.
5547 * Makefile.in (df-problems.o): Update dependencies.
5549 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
5552 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
5553 is specified and the suffix of the file isn't ".c".
5554 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5556 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5558 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
5559 * doc/cppopts.texi: Fix markup of index entry.
5560 * doc/extend.texi (Constructing Calls): Fix markup of
5561 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
5562 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
5563 (Vague Linkage, C++ Attributes): Fix markup of index entries and
5565 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
5567 (C Dialect Options, C++ Dialect Options, Warning Options)
5568 (Debugging Options, Spec Files, Darwin Options)
5569 (i386 and x86-64 Options, MIPS Options)
5570 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
5571 index entries, avoid abbreviations, allow URLs to wrap, avoid
5572 long lines, avoid overlong pages from long @itemx lists.
5573 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
5574 * doc/standards.texi (Standards): Likewise.
5575 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
5577 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5579 * opts-common.c (prune_options): Make static. Work with decoded
5581 (decode_cmdline_options_to_array): Call prune_options. Don't
5582 resize option array here.
5583 * opts.h (prune_options): Remove prototype.
5584 * gcc.c (process_command): Take decoded options; don't call
5585 decode_cmdline_options_to_array here. Use decoded options for argv[0].
5586 (main): Call decode_cmdline_options_to_array here instead of
5587 prune_options. Update call to process_command.
5588 * config/darwin-driver.c: Include opts.h.
5589 (darwin_default_min_version): Work with decoded options. Don't
5590 handle -b or -V here.
5591 * config/darwin.h (darwin_default_min_version): Update prototype.
5592 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
5593 darwin_default_min_version.
5594 * config/i386/cygwin.h (mingw_scan): Update prototype.
5595 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
5596 * config/i386/cygwin1.c: Include opts.h.
5597 (mingw_scan): Work with decoded options.
5598 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
5599 * config/t-darwin (darwin-driver.o): Update dependencies.
5601 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5603 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
5604 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
5605 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
5606 -force-link, -force-link=, -language, -language=,
5607 -library-directory, -library-directory=, -no-canonical-prefixes,
5608 -no-standard-libraries, -no-warnings, -optimize, -output,
5609 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
5610 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
5611 -print-file-name=, -print-libgcc-file-name,
5612 -print-multi-directory, -print-multi-lib,
5613 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
5614 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
5615 -profile, -save-temps, -shared, -specs, -specs=, -static,
5616 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
5618 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
5619 * gcc.c (A Short Introduction to Adding a Command-Line Option):
5621 (cc1_options): Correct specs for passing down --help,
5622 --target-help and --help=*. Add spec for passing down --version.
5623 (struct option_map, option_map, target_option_translations,
5624 translate_options): Remove.
5625 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
5626 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
5627 OPT_fhelp_ and OPT_ftarget_help.
5628 (process_command): Don't call translate_options. Call
5629 decode_cmdline_options_to_array before checking for
5630 -no-canonical-prefixes using decoded options.
5631 * opts-common.c (tm.h): Update comment on #include.
5632 (find_opt): Allow abbreviations of long options.
5633 (struct option_map, option_map): New.
5634 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
5636 (target_option_translations): New.
5637 (decode_cmdline_options_to_array): Handle
5638 TARGET_OPTION_TRANSLATE_TABLE in driver.
5639 * opts.c (common_handle_option): Don't handle OPT_fhelp,
5640 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
5642 2010-09-22 Richard Guenther <rguenther@suse.de>
5644 * tree-inline.c (optimize_inline_calls): Schedule cleanups
5645 only if we inlined something. Block compaction and conditional
5646 folding are done by cfg cleanup. Schedule update-address-taken.
5647 (tree_function_versioning): Remove redundant call to number_blocks.
5648 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
5649 folding is done by cfg cleanup.
5650 * passes.c (init_optimization_passes): Remove update-address-taken
5651 pass after IPA inlining.
5653 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5655 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
5656 to update conditions. Fix reg_mode[] check.
5658 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
5660 * config/picochip/picochip.md (movhicc): Use expand to check whether
5661 movhicc is available and split it after reload.
5663 2010-09-22 Richard Guenther <rguenther@suse.de>
5665 * tree-ssanames.c (release_dead_ssa_names): Do not remove
5667 * passes.c (init_optimization_passes): Remove early CFG cleanup.
5668 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
5669 (pass_cleanup_cfg): Likewise.
5670 (execute_fixup_cfg): Cleanup.
5671 * tree-pass.h (pass_cleanup_cfg): Remove.
5673 2010-09-22 Martin Jambor <mjambor@suse.cz>
5675 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
5676 builtins if it is true.
5677 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
5680 2010-09-22 Martin Jambor <mjambor@suse.cz>
5682 * tree-sra.c (struct access): New field grp_no_warning.
5683 (create_access_replacement): Set TREE_NO_WARNING according to
5685 (create_artificial_child_access): Use build_ref_for_model and set
5686 grp_no_warning if build_user_friendly_ref_for_offset fails.
5687 (propagate_subaccesses_across_link): Likewise.
5689 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
5692 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
5695 2010-09-22 Tristan Gingold <gingold@adacore.com>
5697 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
5699 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
5701 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
5702 * config/i386/i386.c (decide_alg): Update for rename.
5704 2010-09-22 Jakub Jelinek <jakub@redhat.com>
5706 PR rtl-optimization/45739
5707 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
5708 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
5710 2010-09-21 Anatoly Sokolov <aesok@post.ru>
5712 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
5713 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
5715 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
5716 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5718 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5721 * c-parser.c (c_parser_objc_method_definition): Check the return
5722 value of objc_start_method_definition and if false is returned,
5723 parse the method definition but emit no code.
5725 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5728 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
5729 call objc_get_interface_ivars ().
5731 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
5734 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
5735 static chain-register is used for 64-bit.
5737 2010-09-21 Richard Guenther <rguenther@suse.de>
5739 * dwarf2out.c (is_cu_die): New function.
5740 (add_pubtype): Use it.
5741 (gen_subprogram_die): Likewise.
5742 (gen_struct_or_union_type_die): Likewise.
5743 (dwarf2out_finish): Likewise.
5744 (comp_unit_die): Rename to ...
5745 (single_comp_unit_die): ... this.
5746 (comp_unit_die): New function lazily constructing and
5747 returning single_comp_unit_die.
5748 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
5749 base_type_die, subrange_type_die, modified_type_die,
5750 lower_bound_default, add_bound_info, add_prototyped_attribute,
5751 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
5752 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
5753 force_decl_die, gen_namespace_die, dwarf2out_decl,
5754 dwarf2out_start_source_file, dwarf2out_end_source_file,
5755 prune_unused_types, dwarf2out_finish): Use it.
5756 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
5757 the global list of translation-unit decls.
5758 (dwarf2out_init): Do not create single_comp_unit_die here.
5759 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
5761 2010-09-21 Richard Guenther <rguenther@suse.de>
5763 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
5766 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
5768 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
5769 (qhs_extenddi_cstr): Likewise.
5770 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
5771 them for the source operand.
5773 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
5775 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
5776 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
5777 (ix86_split_ashr): Ditto.
5778 (ix86_split_lshr): Ditto.
5780 2010-09-21 Richard Guenther <rguenther@suse.de>
5782 PR tree-optimization/45580
5783 * tree-ssa-propagate.c (substitute_and_fold): Always replace
5785 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
5786 virtuals fold the call into a regular indirect one.
5788 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
5790 PR rtl-optimization/42775
5791 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
5792 scheduling is enabled.
5794 2010-09-20 Jakub Jelinek <jakub@redhat.com>
5796 PR rtl-optimization/45728
5797 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
5798 gen_lowpart_common first and if that fails, force_reg first
5799 before calling gen_lowpart.
5802 * cfgexpand.c (expand_one_stack_var_at): Use
5803 crtl->max_used_stack_slot_alignment as max_align, instead
5804 of maximum of that and PREFERRED_STACK_BOUNDARY.
5805 Don't call update_stack_alignment.
5807 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
5809 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
5810 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
5811 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
5812 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
5813 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
5814 (build_nonstandard_integer_type): Likewise.
5815 (build_range_type_1): New function, built from...
5816 (build_range_type): ...this. Call build_range_type_1.
5817 (build_nonshared_range_type): New function.
5818 (build_array_type_1): New function, built from...
5819 (build_array_type: ...this. Call build_array_type_1.
5820 (build_nonshared_array_type): New function.
5821 * tree.h (build_nonshared_range_type): Declare.
5822 (build_nonshared_array_type): Likewise.
5824 2010-09-20 Anatoly Sokolov <aesok@post.ru>
5826 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
5827 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5828 (arm_class_likely_spilled_p): New function.
5830 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
5832 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
5834 (ix86_split_ashl): Ditto.
5835 (ix86_split_ashr): Ditto.
5836 (ix86_split_lshr): Ditto.
5837 (ix86_adjust_counter): Ditto.
5839 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
5841 * c-family/c-common.h (constant_string_class): Documented with
5842 comment identical to the one already in c-common.c.
5844 2010-09-20 Jakub Jelinek <jakub@redhat.com>
5846 * dwarf2out.c (any_cfis_emitted): New static variable.
5847 (add_fde_cfi): Set it.
5848 (dwarf2out_frame_debug): Clear it before processing,
5849 if it is set afterwards, flush any queued reg saves.
5852 * dwarf2out.c (add_accessibility_attribute): Assume
5853 DW_ACCESS_private as the default for dwarf_version > 2
5854 and DW_TAG_class_type parent.
5855 (gen_inheritance_die): Assume DW_ACCESS_public as the default
5856 for dwarf_version > 2 and parent other than DW_TAG_class_type.
5858 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
5861 * arm.md (arm_movt): Only enable on machines with MOVT.
5863 2010-09-20 Jie Zhang <jie@codesourcery.com>
5865 * config/arm/arm.c (arm_address_offset_is_imm): New.
5866 (arm_early_store_addr_dep): New.
5867 (arm_early_load_addr_dep): New.
5868 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
5869 (arm_early_load_addr_dep): Declare.
5870 (arm_address_offset_is_imm): Declare.
5871 * config/arm/cortex-m4.md: New file.
5872 * config/arm/cortex-m4-fpu.md: New file.
5873 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
5874 (attr generic_sched): Exclude cortexm4.
5875 (attr generic_vfp): Exclude cortexm4.
5877 2010-09-20 Richard Guenther <rguenther@suse.de>
5880 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
5882 2010-09-20 Jan Hubicka <jh@suse.cz>
5884 PR tree-optimize/45605
5885 * cgraph.h (const_value_known_p): Declare.
5886 (varpool_decide_const_value_known): Remove.
5887 * tree-ssa-ccp.c (get_base_constructor): Use it.
5888 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
5889 * expr.c (string_constant): Likewise.
5890 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
5891 * ipa.c (ipa_discover_readonly_nonaddressable_var,
5892 function_and_variable_visibility): Likewise.
5893 * gimplify.c (gimplify_call_expr): Likewise.
5894 * gimple-fold.c (get_symbol_constant_value): Likewise.
5895 * varpool.c (varpool_decide_const_value_known): Replace by...
5896 (const_value_known_p): ... this one; handle other kinds of DECLs
5897 too and work for automatic vars.
5898 (varpool_finalize_decl): Use const_value_known_p.
5900 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
5903 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
5905 2010-09-20 Richard Guenther <rguenther@suse.de>
5907 PR tree-optimization/45705
5908 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
5910 2010-09-20 Jakub Jelinek <jakub@redhat.com>
5912 PR rtl-optimization/45695
5913 * combine.c (try_combine): When splitting a two set pattern,
5914 make sure the pattern which will be put into i2 doesn't use REGs
5915 or MEMs set by insns in between i2 and i3.
5917 2010-09-19 Jan Hubicka <jh@suse.cz>
5920 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
5921 processing same node twice.
5923 2010-09-19 Anatoly Sokolov <aesok@post.ru>
5925 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
5926 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5927 (bfin_class_likely_spilled_p): New function
5929 2010-09-19 Ira Rosen <irar@il.ibm.com>
5931 PR tree-optimization/45714
5932 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
5933 created in vectorizable_call instead of the original statement in
5936 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
5938 * config/i386/i386-protos.h (split_double_mode): New prototype.
5939 (split_di, split_ti): Remove prototypes.
5940 * config/i386/i386.c (split_double_mode): New function.
5941 (split_di, split_ti): Remove.
5942 (ix86_expand_branch): Use split_double_mode.
5943 (ix86_split_to_parts): Ditto.
5944 (ix86_split_ashl): Ditto.
5945 (ix86_split_ashr): Ditto.
5946 (ix86_split_lshr): Ditto.
5947 (ix86_force_to_memory): Ditto.
5948 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
5950 2010-09-18 Jan Hubicka <jh@suse.cz>
5952 PR tree-optimization/45453
5953 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
5954 virtual functions are reachable.
5955 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
5956 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
5957 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
5958 when modifying function.
5960 2010-09-18 Jan Hubicka <jh@suse.cz>
5962 PR tree-optimization/45605
5963 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
5964 * gimple-fold.c (static_object_in_other_unit_p): New function.
5965 (canonicalize_constructor_val): Use it.
5966 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
5968 (gimple_fold_obj_type_ref_known_binfo): Use
5969 static_object_in_other_unit_p.
5971 2010-09-18 Richard Guenther <rguenther@suse.de>
5973 PR tree-optimization/45709
5974 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
5975 insertions until after all PHI nodes of the block are processed.
5977 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
5979 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
5981 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
5983 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
5985 2010-09-18 Richard Guenther <rguenther@suse.de>
5987 PR tree-optimization/45709
5988 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
5990 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
5992 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
5993 (dot_deps_stmt): Same.
5994 * graphite-poly.c (dot_lst): Same.
5995 * graphite-scop-detection.c (dot_all_scops): Same.
5998 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6001 2009-12-16 Ben Elliston <bje@au.ibm.com>
6003 * tree-data-ref.c (dot_rdg_1): Added back.
6004 (dot_rdg): Same. Added "#if 0" around system call.
6006 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6007 Richard Henderson <rth@redhat.com>
6009 * config/i386/i386.c (initial_ix86_tune_features): Add
6010 X86_TUNE_PAD_SHORT_FUNCTION.
6011 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
6012 (ix86_count_insn): New.
6013 (ix86_pad_short_function): Likewise.
6014 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
6016 * config/i386/i386.h (ix86_tune_indices): Add
6017 X86_TUNE_PAD_SHORT_FUNCTION.
6018 (TARGET_PAD_SHORT_FUNCTION): New.
6020 * config/i386/i386.md (UNSPEC_NOPS): New.
6023 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6026 * calls.c (expand_call): Make sure that all variable sized
6027 adjustments are multiple of preferred stack boundary after
6030 2010-09-17 DJ Delorie <dj@redhat.com>
6032 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
6033 passed an invalid value, print an error instead of ICEing.
6034 (valid_psw_flag): New.
6035 (rx_expand_builtin): Call it for setpsw/clrpsw.
6036 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
6038 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
6039 (bitclr_in_memory): Likewise.
6040 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
6042 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6045 * cfgexpand.c (update_stack_alignment): New.
6046 (get_decl_align_unit): Use it.
6047 (expand_one_stack_var_at): Call update_stack_alignment.
6049 2010-09-17 Richard Guenther <rguenther@suse.de>
6051 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
6052 Properly copy the read string.
6054 2010-09-17 Joseph Myers <joseph@codesourcery.com>
6056 * doc/options.texi (Variable): Document.
6057 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
6058 generate target_flags declarations explicitly. Don't define
6059 VarExists variables for the driver.
6060 * common.opt (target_flags): New Variable record.
6061 (flag_dump_unnumbered, flag_dump_unnumbered_links,
6062 flag_var_tracking, flag_var_tracking_assignments,
6063 flag_var_tracking_assignments_toggle): Don't mark variables with
6065 * config/i386/i386.c (ix86_isa_flags): Don't define here.
6066 * config/i386/i386.opt (ix86_isa_flags): Define here.
6067 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
6068 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
6070 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
6071 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
6072 Only define for generator programs.
6073 * rtlanal.c (target_flags): Remove.
6074 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
6075 flag_var_tracking_assignments_toggle): Remove.
6077 2010-09-17 Michael Matz <matz@suse.de>
6079 PR tree-optimization/43432
6080 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
6081 Accept backwards consecutive accesses.
6082 (vect_create_data_ref_ptr): If step is negative generate
6084 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
6085 (perm_mask_for_reverse, reverse_vec_elements): New functions.
6086 (vectorizable_load): Handle loads with negative steps when easily
6089 2010-09-03 Jan Hubicka <jh@suse.cz>
6091 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
6093 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
6095 * config/v850/v850.c (v850_function_value_regno_p): Make static.
6096 Adjust comments. Declare.
6097 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
6098 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
6100 2010-09-17 Richard Guenther <rguenther@suse.de>
6102 * common.opt (combine): Remove.
6103 * gcc.c (default_compilers): Remove specs testing combine.
6104 The C compilers no longer can combine.
6105 (option_map): Remove -combine.
6106 (display_help): Remove -combine.
6107 (driver_handle_option): Remove OPT_combine handling.
6108 (compile_input_file_p): Remove.
6109 (do_spec): Remove code concerning combine.
6111 * doc/invoke.texi: Remove traces of -combine.
6112 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
6114 2010-09-17 Richard Guenther <rguenther@suse.de>
6117 * builtins.c (fold_builtin_memory_op): Always properly adjust
6118 alignment of memory accesses.
6120 2010-09-16 Jan Hubicka <jh@suse.cz>
6122 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
6125 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
6127 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
6129 * config/i386/i386.c (predict_jump): Add prototype.
6130 (flag_opts): Add -m8bit-idiv.
6131 (ix86_split_idivmod): New.
6133 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
6134 Add 2 splitters for SI/DI mode divide.
6135 (divmod<mode>4_1): New pattern.
6136 (udivmod<mode>4_1): Likewise.
6137 (testdi_ccno_1): Likewise.
6139 * config/i386/i386.opt (m8bit-idiv): New.
6141 * doc/invoke.texi: Document -m8bit-idiv.
6143 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
6146 * config/i386/i386.c (min_insn_size): Moved out of the
6147 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
6149 2010-09-16 Jan Hubicka <jh@suse.cz>
6151 * lto-cgraph.c (lto_output_node): Fix handling of clones.
6152 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
6153 unreachable clones with reachable clones.
6154 * tree-inline.c (copy_bb): Fix sanity checking when producing
6157 2010-09-16 Anatoly Sokolov <aesok@post.ru>
6159 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
6160 (TARGET_MEMORY_MOVE_COST): Define.
6161 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
6163 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
6165 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
6166 maybe_tidy_empty_bb.
6169 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
6170 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
6172 2010-09-16 Joseph Myers <joseph@codesourcery.com>
6174 * target.def (target_option.optimization): New hook.
6175 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
6176 TARGET_OPTION_OPTIMIZATION hook.
6177 * doc/tm.texi: Regenerate.
6178 * hooks.c (hook_void_int_int): New.
6179 * hooks.h (hook_void_int_int): Declare.
6180 * opts.c: Don't include tm_p.h.
6181 (decode_options): Use targetm.target_option.optimization instead
6182 of OPTIMIZATION_OPTIONS.
6183 * system.h (OPTIMIZATION_OPTIONS): Poison.
6184 * config/arm/arm-protos.h (arm_optimization_options): Remove.
6185 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
6186 (arm_optimization_options): Rename to arm_option_optimization.
6188 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
6189 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
6190 (cris_option_optimization): New.
6191 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
6192 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
6193 (crx_option_optimization): New.
6194 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
6195 * config/frv/frv-protos.h (frv_optimization_options): Remove.
6196 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
6197 (frv_optimization_options): Rename to frv_option_optimization.
6199 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
6200 * config/h8300/h8300.c (h8300_option_optimization): New.
6201 (TARGET_OPTION_OPTIMIZATION): Define.
6202 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
6203 * config/i386/i386-protos.h (optimization_options): Remove.
6204 * config/i386/i386.c (optimization_options): Rename to
6205 ix86_option_optimization. Make static.
6206 (TARGET_OPTION_OPTIMIZATION): Define.
6207 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
6208 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
6209 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
6210 (ia64_optimization_options): Rename to ia64_option_optimization.
6211 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
6212 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
6213 commented-out definition.
6214 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
6215 instead of OPTIMIZATION_OPTIONS.
6216 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
6217 (m32r_option_optimization): New.
6218 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
6219 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
6221 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
6222 (mcore_option_optimization): New.
6223 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
6224 * config/mep/mep-protos.h (mep_optimization_options): Remove.
6225 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
6226 (mep_optimization_options): Rename to mep_option_optimization.
6227 Make static. Take unused level and size parameters.
6228 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
6229 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
6230 (mmix_option_optimization): New.
6231 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
6232 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
6233 (pdp11_option_optimization): New.
6234 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
6235 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
6236 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
6237 (optimization_options): Rename to rs6000_option_optimization.
6239 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
6240 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
6241 * config/rx/rx.c (rx_set_optimization_options): Rename to
6242 rx_option_optimization. Make static. Take unused level and size
6244 (TARGET_OPTION_OPTIMIZATION): Define.
6245 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
6246 * config/s390/s390-protos.h (optimization_options): Remove.
6247 * config/s390/s390.c (optimization_options): Rename to
6248 s390_option_optimization. Make static. Don't mark size parameter
6250 (TARGET_OPTION_OPTIMIZATION): Define.
6251 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
6252 * config/sh/sh-protos.h (sh_optimization_options): Remove.
6253 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
6254 (sh_optimization_options): Rename to sh_option_optimization. Make
6255 static. Don't mark parameters unused.
6256 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
6257 * config/spu/spu-protos.h (spu_optimization_options): Remove.
6258 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
6259 (spu_optimization_options): Rename to spu_option_optimization.
6261 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
6262 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
6263 (v850_option_optimization): New.
6264 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
6265 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
6266 (xtensa_option_optimization): New.
6267 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
6269 2010-09-16 Joseph Myers <joseph@codesourcery.com>
6271 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
6272 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
6273 * doc/tm.texi: Regenerate.
6274 * system.h (OVERRIDE_OPTIONS): Poison.
6275 * target.def (override): Default to hook_void_void.
6276 * targhooks.c (default_target_option_override): Remove.
6277 * genmodes.c, machmode.def: Update comments mentioning
6279 * config/alpha/alpha-modes.def: Update comment mentioning
6280 alpha_override_options.
6281 * config/alpha/alpha-protos.h (override_options): Remove.
6282 * config/alpha/alpha.c (override_options): Rename to
6283 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
6284 (TARGET_OPTION_OVERRIDE): Define.
6285 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
6286 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
6287 of OVERRIDE_OPTIONS.
6288 * config/arc/arc-protos.h (arc_init): Remove.
6289 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
6290 (arc_init): Rename to arc_option_override. Make static.
6291 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
6292 (OVERRIDE_OPTIONS): Remove.
6293 * config/arm/arm-protos.h (arm_override_options): Remove.
6294 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
6295 (arm_override_options): Rename to arm_option_override. Make
6296 static. Call SUBTARGET_OVERRIDE_OPTIONS.
6297 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
6298 * config/arm/arm.md: Update comment referring to arm_override_options.
6299 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
6300 instead of OVERRIDE_OPTIONS.
6301 * config/avr/avr-protos.h (avr_override_options): Remove.
6302 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
6303 (avr_override_options): Rename to avr_option_override. Make static.
6304 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
6305 * config/bfin/bfin-protos.h (override_options): Remove (twice).
6306 * config/bfin/bfin.c (override_options): Rename to
6307 bfin_option_override. Make static.
6308 (TARGET_OPTION_OVERRIDE): Define.
6309 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
6310 * config/cris/cris-protos.h (cris_override_options): Remove.
6311 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
6312 (cris_override_options): Rename to cris_option_override. Make static.
6313 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
6314 * config/frv/frv-protos.h (frv_override_options): Remove.
6315 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
6316 (frv_override_options): Rename to frv_option_override. Make static.
6317 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
6318 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
6319 * config/h8300/h8300.c (h8300_init_once): Rename to
6320 h8300_option_override. Make static.
6321 (TARGET_OPTION_OVERRIDE): Define.
6322 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
6323 * config/i386/i386-protos.h (override_options): Remove.
6324 * config/i386/i386.c (override_options): Rename to
6325 ix86_option_override_internal. Make static. Comments referring
6326 to this function and callers changed.
6327 (ix86_option_override): New.
6328 (TARGET_OPTION_OVERRIDE): Define.
6329 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
6330 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
6331 * config/ia64/ia64.c (ia64_file_start): Update comment referring
6332 to ia64_override_options.
6333 * config/iq2000/iq2000-protos.h (override_options): Remove.
6334 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
6335 (override_options): Rename to iq2000_option_override. Make static.
6336 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
6337 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
6338 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
6339 (lm32_override_options): Rename to lm32_option_override. Make static.
6340 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
6341 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
6342 (m32r_option_override): New.
6343 (m32r_init): Update comment.
6344 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
6345 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
6346 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
6347 (m68hc11_override_options): Rename to m68hc11_option_override.
6348 Make static. Return void.
6349 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
6350 * config/m68k/m68k-protos.h (override_options): Remove.
6351 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
6352 (override_options): Rename to m68k_option_override. Make static.
6353 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
6354 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
6355 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
6356 (mcore_override_options): Rename to mcore_option_override. Make
6358 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
6359 * config/mep/mep-protos.h (mep_override_options): Remove.
6360 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
6361 (mep_override_options): Rename to mep_option_override. Make static.
6362 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
6363 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
6364 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
6365 (mmix_override_options): Rename to mmix_option_override. Make static.
6366 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
6367 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
6368 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
6369 (mn10300_override_options): Rename to mn10300_option_override.
6371 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
6372 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
6373 * config/moxie/moxie.c (moxie_override_options): Rename to
6374 moxie_option_override. Make static.
6375 (TARGET_OPTION_OVERRIDE): Define.
6376 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
6377 * config/picochip/picochip-protos.h (picochip_override_options):
6378 Remove. Update comment referring to picochip_override_options.
6379 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
6380 (picochip_override_options): Rename to picochip_option_override.
6381 Make static. Update comment and definition of
6382 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
6383 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
6384 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6385 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6386 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6387 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6388 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6389 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
6390 instead of OVERRIDE_OPTIONS.
6391 * config/rs6000/rs6000-modes.def: Update comment referring to
6392 rs6000_override_options.
6393 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
6394 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
6395 (rs6000_override_options): Rename to
6396 rs6000_option_override_internal. Make static. Commented
6397 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
6398 (rs6000_option_override): New.
6399 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
6400 instead of OVERRIDE_OPTIONS.
6401 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6402 * config/s390/s390-protos.h (override_options): Remove.
6403 * config/s390/s390.c (override_options): Rename to
6404 s390_option_override. Make static.
6405 (TARGET_OPTION_OVERRIDE): Define.
6406 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
6407 * config/score/score-protos.h (score_override_options): Remove.
6408 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
6409 (score_override_options): Rename to score_option_override. Make
6411 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
6412 Update comment referring to override_options.
6413 * config/score/score3.c (score3_override_options): Rename to
6414 score3_option_override.
6415 * config/score/score3.h (score3_override_options): Rename to
6416 score3_option_override.
6417 * config/score/score7.c (score7_override_options): Rename to
6418 score7_option_override.
6419 * config/score/score7.h (score7_override_options): Rename to
6420 score7_option_override.
6421 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
6422 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
6423 (sparc_override_options): Rename to sparc_option_override. Make
6424 static. Call SUBTARGET_OVERRIDE_OPTIONS.
6425 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
6426 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
6427 instead of OVERRIDE_OPTIONS.
6428 * config/spu/spu-protos.h (spu_override_options): Remove.
6429 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
6430 (spu_override_options): Rename to spu_option_override. Make
6432 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
6433 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
6435 * config/vax/vax-protos.h (override_options): Remove.
6436 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
6437 (override_options): Rename to vax_option_override. Make static.
6438 Call SUBTARGET_OVERRIDE_OPTIONS.
6439 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
6440 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
6441 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
6442 * config/xtensa/xtensa-protos.h (override_options): Remove.
6443 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
6444 (override_options): Rename to xtensa_option_override. Make static.
6445 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
6447 2010-09-16 Richard Guenther <rguenther@suse.de>
6449 PR tree-optimization/45623
6450 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
6451 (get_constraint_for_component_ref): If computing a constraint
6452 for the rhs handle type punning through unions.
6453 (get_constraint_for_address_of): Adjust.
6454 (get_constraint_for_1): Likewise.
6455 (get_constraint_for): Likewise.
6456 (get_constraint_for_rhs): New function.
6457 (do_structure_copy): Adjust.
6458 (make_constraint_to): Likewise.
6459 (handle_const_call): Likewise.
6460 (find_func_aliases): Likewise.
6461 (process_ipa_clobber): Likewise.
6462 (create_variable_info_for): Likewise.
6464 2010-09-16 Ira Rosen <irar@il.ibm.com>
6466 * tree-vectorizer.c: Fix documentation.
6467 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
6468 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
6469 is_pattern_stmt_p, is_loop_header_bb_p,
6470 stmt_vinfo_set_inside_of_loop_cost,
6471 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
6472 known_alignment_for_access_p): Likewise.
6473 * tree-vect-loop.c: Fix documentation.
6474 (vect_get_cost): Start function name from new line.
6475 * tree-vect-data-refs.c: Fix documentation.
6476 * tree-vect_stmts.c: Likewise.
6477 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
6478 (vectorizable_store): Free vec_oprnds if allocated.
6479 (vectorizable_condition): Initialize several variables to avoid
6481 * tree-vect-slp.c: Fix documentation.
6483 2010-09-16 Richard Guenther <rguenther@suse.de>
6485 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
6486 is TS_TRANSLATION_UNIT_DECL.
6487 (initialize_tree_contains_struct): Adjust.
6488 (all_translation_units): New global vector.
6489 (build_translation_unit_decl): New function.
6490 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
6491 (struct tree_translation_unit_decl): New.
6492 (all_translation_units): Declare.
6493 (union tree_node): Add translation_unit_decl member.
6494 (build_translation_unit_decl): Declare.
6495 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
6496 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
6498 (pack_value_fields): Call it.
6499 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
6500 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
6501 (lto_output_tree_pointers): Call it.
6502 * lto-streamer-in.c (lto_input_tree_ref): Handle references
6503 to TRANSLATION_UNIT_DECL.
6504 (unpack_ts_translation_unit_decl_value_fields): New function.
6505 (unpack_value_fields): Call it.
6506 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
6507 (lto_input_tree_pointers): Call it.
6508 * lto-streamer.c (check_handled_ts_structures): Adjust.
6509 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
6510 * c-decl.c (all_translation_units): Remove.
6511 (pop_scope): Use build_translation_unit_decl.
6512 (collect_all_refs): Adjust.
6513 (for_each_global_decl): Likewise.
6514 (c_write_global_declarations): Likewise.
6516 2010-09-16 Jakub Jelinek <jakub@redhat.com>
6519 * fold-const.c (fold_checksum_tree): Change slot from const void **
6520 to void **, use CONST_CAST_TREE to store into *slot.
6522 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
6524 * config/i386/i386.md: Remove unneeded empty conditions and
6525 preparation statements from expanders.
6526 * config/i386/mmx.md: Ditto.
6527 * config/i386/sse.md: Ditto.
6529 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
6531 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
6533 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
6535 PR rtl-optimization/45593
6536 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
6537 insns that were in delay slots as stand-alone insns.
6539 2010-09-15 Ian Lance Taylor <iant@google.com>
6541 * incpath.c (remove_duplicates): If name is not a directory, issue
6542 a warning rather than an error.
6544 2010-09-15 Martin Jambor <mjambor@suse.cz>
6547 * tree-sra.c (create_access): Check for bit-fields directly.
6549 2010-09-15 Jakub Jelinek <jakub@redhat.com>
6551 PR tree-optimization/45633
6552 * tree-cfg.c (verify_gimple_assign_binary): Allow
6553 MINUS_EXPR with lhs and rhs1 pointer vector and
6554 rhs2 sizetype vector.
6555 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
6556 or vector pointer use TER to optimize pointer subtraction.
6558 2010-09-15 Jie Zhang <jie@codesourcery.com>
6560 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
6563 2010-09-15 Ian Lance Taylor <iant@google.com>
6565 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
6567 2010-09-15 Ian Lance Taylor <iant@google.com>
6569 * function.c (get_arg_pointer_save_area): Set
6570 arg_pointer_save_area_init to true.
6572 2010-09-15 Martin Jambor <mjambor@suse.cz>
6574 * tree-sra.c (generate_subtree_copies): Updated comment.
6575 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
6576 obtained from the statement iterator instead.
6577 (load_assign_lhs_subreplacements): Removed parameters lhs and
6578 right_offset, which is obtained from top_racc instead. Parameter lacc
6579 is now expected to be the root of the processed tree rather than root's
6580 first child. Updated all callers.
6582 2010-09-15 Joseph Myers <joseph@codesourcery.com>
6584 * config/pdp11/pdp11.c (register_move_cost): Rename to
6585 pdp11_register_move_cost.
6586 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
6587 pdp11_register_move_cost.
6588 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
6589 pdp11_register_move_cost instead of register_move_cost.
6591 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
6593 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
6594 pattern for vmovn. Expansion in case of non
6595 -mvectorize-with-neon-quad.
6596 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
6597 non- -mvectorize-with-neon-quad case.
6598 (move_lo_quad_<mode>): New expansion to vmov into low part.
6599 (move_hi_quad_<mode>): New expansion to vmov into high part.
6600 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
6601 (move_lo_quad_v4sf): Likewise.
6602 (move_lo_quad_v8hi): Likewise.
6603 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
6605 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
6607 * config/arm/iterators.md (ANY128): New mode iterator.
6608 (V_narrow_pack): New mode attribute.
6609 (V_HALF): Add attribute.
6610 (V_DOUBLE): Add attribute.
6611 (V_mode_nunits): Add attribute.
6613 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
6615 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
6616 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
6618 2010-09-15 Olivier Hainque <hainque@adacore.com>
6619 Jose Ruiz <ruiz@adacore.com>
6621 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
6622 * config/alpha/osf5-unwind.h: New file.
6624 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6627 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
6628 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
6629 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
6631 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6633 * c-lang.h (struct lang_type): Add variable_size GTY option.
6635 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6638 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
6640 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6642 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
6643 result isn't used in memory address.
6645 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6647 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
6648 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
6649 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6650 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6651 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6652 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6654 * target.def: Add units_per_simd_word to vectorize.
6656 * targhooks.c (default_units_per_simd_word): New.
6657 * targhooks.h (default_units_per_simd_word): Likewise.
6658 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
6659 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6660 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
6661 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6662 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
6663 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6664 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
6665 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6667 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
6668 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
6670 * tree-vect-stmts.c: Don't include "tm_p.h".
6671 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
6672 with targetm.vectorize.units_per_simd_word.
6674 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
6676 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
6678 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
6679 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
6681 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
6682 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
6684 * doc/tm.texi: Regenerated.
6686 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6688 * tree-vect-stmts.c: Include "tm_p.h".
6690 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
6693 2010-09-14 Martin Jambor <mjambor@suse.cz>
6695 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
6696 location of generated statement. Changed all callers.
6697 (build_ref_for_model): New parameter loc which used to set location of
6698 all generated expressions. Changed all callers.
6699 (generate_subtree_copies): Likewise.
6700 (init_subtree_with_zero): Likewise.
6701 (sra_modify_expr): Set locations of all generated statements and
6702 expressions to the location the original statement.
6703 (handle_unscalarized_data_in_subtree): Likewise.
6704 (load_assign_lhs_subreplacements): Likewise.
6705 (sra_modify_constructor_assign): Likewise.
6706 (sra_modify_assign): Likewise.
6708 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
6713 * doc/install.texi (sparc*-*-*): New section.
6714 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
6716 2010-09-14 Jakub Jelinek <jakub@redhat.com>
6719 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
6720 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
6721 (expand_builtin): Adjust caller.
6722 (expand_builtin_unop): Only use subtarget if it has the right mode.
6724 2010-09-14 Tristan Gingold <gingold@adacore.com>
6726 * configure.ac (plugins): Fix typos.
6727 * configure: Regenerate.
6729 2010-09-14 Jakub Jelinek <jakub@redhat.com>
6732 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
6733 gen_type_die for function/method return type.
6735 2010-09-14 Ira Rosen <irar@il.ibm.com>
6737 PR tree-optimization/45470
6738 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6739 can throw an exception.
6740 * tree-vect-stmts.c (vectorizable_call): Likewise.
6742 2010-09-14 DJ Delorie <dj@redhat.com>
6745 * config/mep/mep-protos.h (mep_save_register_info,
6746 mep_reinit_regs, mep_init_regs): Declare.
6748 * config/mep/mep.c: Move all target definitions to the end of the
6749 file to avoid the need for duplicate declarations.
6750 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
6751 (mep_reorg_erepeat): Remove unused variables.
6752 (mep_expand_builtin): Likewise.
6754 * config/mep/mep-pragma.c: Don't include rtl.h.
6755 (INVALID_REGNUM): New.
6756 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
6758 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
6759 Avoid enum/integer math.
6761 2010-09-13 Joseph Myers <joseph@codesourcery.com>
6764 * config/mep/t-mep (GTM_H): Add insn-constants.h.
6765 * config/mep/mep.c (mep_conditional_register_usage): Take no
6767 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
6769 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
6770 call to mep_conditional_register_usage.
6772 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
6775 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
6778 2010-09-13 Jakub Jelinek <jakub@redhat.com>
6780 PR rtl-optimization/45617
6781 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
6782 even if low N bits of X aren't known to be zero.
6784 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
6786 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
6788 * config/i386/i386.c (initial_ix86_tune_features): Add
6789 X86_TUNE_VECTORIZE_DOUBLE.
6790 (ix86_units_per_simd_word): New.
6792 * config/i386/i386.h (ix86_tune_indices): Add
6793 X86_TUNE_VECTORIZE_DOUBLE.
6794 (TARGET_VECTORIZE_DOUBLE): New.
6795 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
6797 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
6799 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
6800 (new_temp_expr_table): Allocate call_cnt vector.
6801 (free_temp_expr_table): Free it.
6802 (process_replaceable): Add call_cnt parm and set in vector.
6803 (find_replaceable_in_bb): Skip replacement if def/use span a call.
6804 (debug_ter): Dump call_cnt value, remove stderr uses.
6806 2010-09-13 Jan Hubicka <jh@suse.cz>
6808 * tree.c (build_zero_cst): New.
6809 * tree.h (build_zero_cst): Declare.
6810 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
6811 (get_base_constructor): Break out from ...
6812 (fold_const_aggregate_ref): Here; handle empty constructors.
6814 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6816 * config/arm/arm.md: (define_attr "conds"): Update comment.
6817 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
6818 conds attribute to clob.
6819 (arm_sync_compare_and_swapsi): Likewise.
6820 (arm_sync_compare_and_swap<mode>): Likewise.
6821 (arm_sync_lock_test_and_setsi): Likewise.
6822 (arm_sync_lock_test_and_set<mode>): Likewise.
6823 (arm_sync_new_<sync_optab>si): Likewise.
6824 (arm_sync_new_nandsi): Likewise.
6825 (arm_sync_new_<sync_optab><mode>): Likewise.
6826 (arm_sync_new_nand<mode>): Likewise.
6827 (arm_sync_old_<sync_optab>si): Likewise.
6828 (arm_sync_old_nandsi): Likewise.
6829 (arm_sync_old_<sync_optab><mode>): Likewise.
6830 (arm_sync_old_nand<mode>): Likewise.
6832 2010-09-13 Olivier Hainque <hainque@adacore.com>
6834 * fwprop.c (forward_propagate_and_simplify): Only attach a
6835 REG_EQUAL note to an insn if the destination is a register.
6836 * gcse.c (try_replace_reg): Likewise.
6838 2010-09-13 Richard Guenther <rguenther@suse.de>
6840 PR tree-optimization/45611
6841 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
6842 (copy_ref_info): Likewise.
6844 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
6849 * tree-pretty-print.c (dump_generic_node): Disregard top-level
6850 types of MEM_REF pointer types to the same type.
6852 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
6854 PR rtl-optimization/41087
6855 * ifcvt.c (noce_get_condition): Don't allow conditions with
6858 2010-09-12 Anatoly Sokolov <aesok@post.ru>
6860 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6861 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
6862 * config/frv/frv.c (frv_register_move_cost): Make static. Change
6863 arguments type to reg_class_t. Add mode argument.
6864 (frv_memory_move_cost): New.
6865 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
6867 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
6869 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
6870 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
6872 2010-09-10 Jan Hubicka <jh@suse.cz>
6874 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
6876 2010-09-10 Richard Guenther <rguenther@suse.de>
6878 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
6879 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
6880 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
6881 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
6882 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
6884 2010-09-10 Richard Guenther <rguenther@suse.de>
6886 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
6887 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
6888 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
6889 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
6891 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
6894 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
6895 of string folding is of integral type.
6897 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
6899 * doc/invoke.texi (-x): Fix typo.
6901 2010-09-10 Richard Guenther <rguenther@suse.de>
6904 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
6905 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6906 Output DECL_DEBUG_EXPR.
6907 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6908 Input DECL_DEBUG_EXPR.
6910 2010-09-10 Richard Guenther <rguenther@suse.de>
6912 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
6913 (build_index_type): Implement in terms of build_range_type.
6914 (build_range_type): Do not allow NULL_TREE type, improve
6915 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
6917 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
6918 create a distinct copy of the type.
6920 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
6922 * configure: Regenerated.
6923 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
6925 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6927 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
6928 * config/arm/cortex-a9-neon.md: New and partially generated.
6929 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
6931 2010-09-10 Richard Guenther <rguenther@suse.de>
6933 * tree.h (build_index_2_type): Remove.
6934 * tree.c (build_index_2_type): Remove.
6936 2010-09-10 Jakub Jelinek <jakub@redhat.com>
6939 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
6940 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
6941 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
6943 2010-09-10 Martin Jambor <mjambor@suse.cz>
6945 PR tree-optimization/44972
6946 * tree-sra.c: Include toplev.h.
6947 (build_ref_for_offset): Entirely reimplemented.
6948 (build_ref_for_model): New function.
6949 (build_user_friendly_ref_for_offset): New function.
6950 (analyze_access_subtree): Removed build_ref_for_offset check.
6951 (propagate_subaccesses_across_link): Likewise.
6952 (create_artificial_child_access): Use
6953 build_user_friendly_ref_for_offset.
6954 (propagate_subaccesses_across_link): Likewise.
6955 (ref_expr_for_all_replacements_p): Removed.
6956 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
6957 (sra_modify_expr): Use build_ref_for_model.
6958 (load_assign_lhs_subreplacements): Likewise.
6959 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
6960 checks for return values of build_ref_for_offset.
6961 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
6962 build_ref_for_offset.
6963 * ipa-prop.h: Include gimple.h
6964 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
6965 (ipa_analyze_indirect_call_uses): Update comment.
6966 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
6967 (IPA_PROP_H): Likewise.
6969 2010-09-10 Martin Jambor <mjambor@suse.cz>
6971 PR tree-optimization/44972
6972 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
6973 calling build_ref_for_offset.
6975 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6977 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
6978 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
6979 * config/arm/arm-tune.md: Regenerate.
6980 * doc/invoke.texi (ARM Options): Document it.
6982 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
6984 * config/i386/i386.c: Include sched-int.h.
6985 (TARGET_SCHED_DISPATCH): Defined.
6986 (TARGET_SCHED_DISPATCH_DO): Defined.
6987 (DISPATCH_WINDOW_SIZE): Defined.
6988 (MAX_DISPATCH_WINDOWS): Defined.
6989 (MAX_INSN): Defined.
6991 (MAX_IMM_SIZE): Defined.
6992 (MAX_IMM_32): Defined.
6993 (MAX_IMM_64): Defined.
6994 (MAX_LOAD): Defined.
6995 (MAX_STORE): Defined.
6997 (dispatch_group): New.
6998 (num_allowable_groups): New.
7000 (sched_insn_info_s): New.
7001 (dispatch_windows_s): New.
7003 (dispatch_window_list): New.
7004 (dispatch_window_list1): New.
7005 (get_mem_group): New.
7007 (dispatch_violation): New.
7011 (allocate_window): New.
7012 (init_dispatch_sched): New.
7013 (is_end_basic_block): New.
7014 (process_end_window): New.
7015 (allocate_next_window): New.
7016 (find_constant_1): New.
7017 (find_constant): New.
7018 (get_num_immediates): New.
7019 (has_immediate): New.
7020 (get_insn_path): New.
7021 (get_insn_group): New.
7022 (count_num_restricted): New.
7023 (fits_dispatch_window): New.
7024 (add_insn_window): New.
7025 (add_to_dispatch_window): New.
7026 (debug_dispatch_window_file): New.
7027 (debug_dispatch_window): New.
7028 (debug_insn_dispatch_info_file): New.
7029 (debug_ready_dispatch): New.
7031 (has_dispatch): New.
7032 * config/i386/i386.h (debug_ready_dispatch): Declared.
7033 (debug_dispatch_window): Declared.
7034 * config/i386/i386.opt (mdispatch-scheduler): New flag.
7035 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
7036 (TARGET_SCHED_DISPATCH_DO): New.
7037 * doc/tm.texi: Regererated.
7038 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
7039 ready_remove_first_dispatch
7040 (schedule_block): Call targetm.sched.dispatch and
7041 targetm.sched.dispatch_do.
7042 (sched_init): Call targetm.sched.dispatch and
7043 targetm.sched.dispatch_do.
7044 (ready_remove_first_dispatch): New.
7045 (number_in_ready): New.
7046 (get_ready_element): New.
7047 * hooks.c (hook_bool_rtx_int_false): New.
7048 (hook_void_rtx_int): New.
7049 * hooks.h (hook_bool_rtx_int_false): Declared.
7050 (hook_void_rtx_int): Declared.
7051 * sched-int.h (IS_DISPATCH_ON): Defined.
7053 (DISPATCH_VIOLATION): Defined.
7054 (FITS_DISPATCH_WINDOW): Defined.
7055 (DISPATCH_INIT): Defined.
7056 (ADD_TO_DISPATCH_WINDOW): Defined.
7057 (get_ready_element): Declared.
7058 (number_in_ready): Declared.
7059 * target.def (dispatch): Defined.
7060 (dispatch_do): Defined.
7062 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7065 * reload1.c (merge_assigned_reloads): Remove.
7066 (reload_as_needed): Don't call it.
7068 2010-09-09 Anatoly Sokolov <aesok@post.ru>
7070 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
7071 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7072 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7074 2010-09-09 Matthias Klose <doko@ubuntu.com>
7077 * configure.ac (--enable-plugin): Enhance for cross builds.
7078 * configure: Regenerate.
7080 2010-09-09 Jan Hubicka <jh@suse.cz>
7082 PR tree-optimization/45598
7083 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
7084 string folding is of integral type.
7086 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
7088 * configure.ac (gnu_indirect_function): New test.
7089 * configure: Rebuilt.
7090 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
7091 * defaults.h (IFUNC_ASM_TYPE): Provide default.
7093 * doc/extend.texi (Function Attributes): Document ifunc.
7094 * varasm.c (do_assemble_alias): Deal with ifuncs too.
7096 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
7098 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
7099 epilogue instruction move.
7101 2010-09-09 Jan Hubicka <jh@suse.cz>
7103 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
7104 command line to allow more partitions than input files.
7106 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7109 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
7111 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7114 * ira.c (pseudo_for_reload_consideration_p): Don't use
7115 flag_ira_share_spill_slots.
7117 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7119 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
7120 point zero operands that fit into a single GPR.
7121 (s390_preferred_reload_class): Ensure we only return general-purpose
7123 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
7124 floating-point zero operands into GPRs.
7125 ("*mov<mode>_64"): Likewise.
7126 ("mov<mode>"): Likewise using lhi.
7128 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7130 * config/s390/s390.c (s390_symref_operand_p): Return false for
7131 literal pool references.
7132 (s390_check_qrst_address): Update caller.
7134 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
7136 * config/i386/predicates.md (ext_register_operand): Check that
7137 SUBREG_REG is really a register before looking for REGNO.
7138 (reg_not_xmm0_operand): Handle SUBREGs correctly.
7139 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
7141 2010-09-09 Jakub Jelinek <jakub@redhat.com>
7143 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
7144 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
7145 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
7146 * print-rtl.c (print_rtx): Likewise.
7147 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7148 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
7149 for ADDR_EXPR with non-addressable object.
7150 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
7151 (struct dw_val_struct): Add v.val_decl_ref.
7152 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
7153 Handle DW_OP_GNU_implicit_pointer.
7154 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
7155 (get_ref_die_offset_label): New function.
7156 (implicit_ptr_descriptor): New function.
7157 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
7158 (loc_descriptor): Likewise.
7159 (gen_variable_die): Put even definitions into decl_die_table.
7160 (resolve_addr_in_expr): Resolve still unresolved
7161 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
7163 (dwarf2out_finish): Call output_location_lists after outputting
7164 .debug_info and .debug_abbrev instead of before.
7166 2010-09-09 Roland McGrath <roland@redhat.com>
7168 * dwarf2out.c (DWARF_REF_SIZE): Define.
7169 (size_of_loc_descr): Use it for DW_OP_call_ref.
7171 2010-09-09 Alan Modra <amodra@gmail.com>
7173 * doc/invoke.text: Reinstate mcmodel=medium.
7174 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7175 CMODEL_MEDIUM as default.
7176 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
7177 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
7178 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
7179 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
7181 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7184 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
7185 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
7186 (builtin_longjmp): Likewise.
7187 (allocate_stack): Use hard_frame_pointer_rtx instead of
7189 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
7190 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
7191 (pa_can_eliminate): Likewise.
7192 (TARGET_INTERNAL_ARG_POINTER): Define.
7193 (TARGET_CAN_ELIMINATE): Define.
7194 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
7196 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
7197 (pa_internal_arg_pointer, pa_can_eliminate,
7198 pa_initial_elimination_offset): New.
7199 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
7200 (HARD_FRAME_POINTER_REGNUM): Set to register three.
7201 (INITIAL_FRAME_POINTER_OFFSET): Delete.
7202 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
7204 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
7205 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
7206 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
7207 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
7208 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
7209 new soft frame pointer.
7210 * config/pa/pa64-regs.h: Likewise.
7212 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
7214 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
7216 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
7218 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
7221 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
7223 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
7227 * tree-pretty-print.c (dump_generic_node): Disregard top-level
7228 qualifiers in otherwise equal MEM_REF pointer types.
7229 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
7230 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
7232 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7235 * config/arm/arm.md (bswapsi2): Handle condition correctly
7236 for armv6 and optimize_size.
7238 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7241 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
7243 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
7245 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
7246 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
7247 ix86_expand_strlen, legitimate_pic_address_disp_p,
7248 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
7249 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
7250 ix86_check_movabs, ix86_secondary_memory_needed): Change function
7252 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
7253 return_in_memory_ms_64, ix86_check_movabs,
7254 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
7255 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
7256 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
7257 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
7258 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
7259 ix86_secondary_memory_needed): Change to bool. Return
7260 "true" and "false" values.
7261 * config/i386/i386.md: Return "true" and "false" values.
7263 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7265 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7266 run_expensive_tests.
7268 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7270 * toplev.c (output_stack_usage): Use lbasename instead of basename.
7272 2010-09-08 Martin Jambor <mjambor@suse.cz>
7275 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
7278 2010-09-08 Richard Guenther <rguenther@suse.de>
7280 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
7282 (iterative_hash_gimple_type): Likewise.
7283 (gimple_type_hash): Likewise.
7284 (gimple_register_type): Likewise.
7285 (print_gimple_types_stats): Likewise.
7286 (free_gimple_type_tables): Likewise.
7288 2010-09-08 Michael Matz <matz@suse.de>
7290 PR tree-optimization/43430
7291 * tree-vect-stmts.c (vectorizable_condition): Support multiple
7292 copies for conditional statements if it's not part of a reduction.
7294 2010-09-08 Michael Matz <matz@suse.de>
7296 PR tree-optimization/33244
7297 * tree-ssa-sink.c (statement_sink_location): Don't sink into
7300 2010-09-08 Richard Guenther <rguenther@suse.de>
7302 PR tree-optimization/45578
7303 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
7304 Be more careful when transfering alignment information to
7305 the new induction variable.
7306 (copy_ref_info): Likewise.
7308 2010-09-08 Richard Guenther <rguenther@suse.de>
7310 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
7311 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
7313 2010-09-08 Arnaud Charlet <charlet@adacore.com>
7315 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
7316 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
7318 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7321 * doc/md.texi: Fixed modes on several standard pattern names.
7323 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
7325 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
7326 (ashl<mode>3): ...this.
7327 (loongson_psra<V_suffix>): Rename to...
7328 (ashr<mode>3): ...this.
7329 (loongson_psrl<V_suffix>): Rename to...
7330 (lshr<mode>3): ...this.
7331 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
7332 (CODE_FOR_loongson_psllw): Define.
7333 (CODE_FOR_loongson_psrlh): Define.
7334 (CODE_FOR_loongson_psrlw): Define.
7335 (CODE_FOR_loongson_psrah): Define.
7336 (CODE_FOR_loongson_psraw): Define.
7338 2010-09-07 Richard Henderson <rth@redhat.com>
7340 * tree-vect-data-refs.c: Include tm_p.h.
7341 * Makefile.in (tree-vect-data-refs.o): Update deps.
7342 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
7343 Move delarations outside #ifdef RTX_CODE.
7345 2010-09-07 Richard Henderson <rth@redhat.com>
7347 * final.c (rest_of_handle_final): Unconditionally do
7348 output_function_exception_table before assemble_end_function.
7350 2010-09-07 Jan Hubicka <jh@suse.cz>
7352 * tree-inline.c (tree_inlinable_function_p): Do not test
7354 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
7355 update_callee_keys, cgraph_decide_inlining): Test function availability.
7356 * cif-code.def (OVERWRITABLE): New code.
7358 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
7359 Jack Howarth <howarth@bromo.med.uc.edu>
7364 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
7365 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
7366 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
7369 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7371 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
7372 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
7374 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7376 * config.gcc: Don't append t-android for Android targets.
7378 * config/t-android: Removed.
7380 2010-09-07 Richard Henderson <rth@redhat.com>
7382 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
7383 * doc/tm.texi.in: Add doc marker.
7384 * doc/tm.texi: Rebuild.
7385 * except.c (switch_to_exception_section): Always build.
7386 (output_one_function_exception_table): Move section switch,
7387 personality output, and label output ...
7388 (output_function_exception_table): ... here. Use the new
7391 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
7392 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
7393 TARGET_ASM_INIT_SECTIONS): New.
7394 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
7396 (TARGET_ASM_UNWIND_EMIT): Update to match.
7397 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
7399 * config/arm/arm.c (arm_asm_emit_except_personality): New.
7400 (arm_asm_init_sections): New.
7401 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
7403 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7405 * config/arm/arm.md: Remove unused variable.
7407 2010-09-07 Anatoly Sokolov <aesok@post.ru>
7409 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7410 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
7411 (m32r_memory_move_cost): New function.
7413 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7415 * config.gcc: Append t-android for Android targets.
7417 * config/t-android: New.
7419 2010-09-07 Richard Henderson <rth@redhat.com>
7421 * target.def (unwind_emit_before_insn): New hook.
7422 * doc/tm.texi.in: Add @hook marker for it.
7423 * doc/tm.texi: Rebuild.
7424 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
7426 2010-09-07 Martin Jambor <mjambor@suse.cz>
7429 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
7430 are any type attributes.
7432 2010-09-07 Jan Hubicka <jh@suse.cz>
7434 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
7435 array_ref_low_bound in string access folding.
7437 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
7440 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
7441 eh_return fixup sequence.
7443 2010-09-07 Jan Hubicka <jh@suse.cz>
7445 * gimple-fold.c (maybe_fold_reference): Verify that operand is
7446 gimple_min_invariant.
7448 2010-09-07 Richard Guenther <rguenther@suse.de>
7451 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
7452 nor CONSTRUCTOR can trap.
7453 * tree-complex.c (update_complex_assignment): Update EH info.
7455 2010-09-07 Richard Guenther <rguenther@suse.de>
7458 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
7459 * passes.c (execute_function_todo): Do not verify anything if
7462 2010-09-07 Richard Guenther <rguenther@suse.de>
7464 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
7466 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
7469 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
7470 New define_mode_attrs.
7471 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
7472 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
7473 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
7474 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
7475 Remove pool_range attribute.
7476 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
7477 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
7478 pool_range and neg_pool_range attributes.
7479 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
7480 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
7481 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
7483 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
7485 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
7488 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
7491 * config/i386/mmx.md (*mov<mode>_internal_rex64,
7492 *mov<mode>_internal_avx, *mov<mode>_internal,
7493 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
7494 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
7496 2010-09-06 Mark Mitchell <mark@codesourcery.com>
7498 * c-typeck.c (do_warn_double_promotion): Remove.
7499 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
7502 2010-09-06 Anatoly Sokolov <aesok@post.ru>
7504 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
7505 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
7506 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
7507 argument type to reg_class_t. Change result type to bool.
7508 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7510 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
7513 * gthr-posix.h (__gthread_objc_thread_detach): Use
7514 _objc_thread_attribs when detaching a thread.
7515 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
7517 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
7520 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
7521 * configure: Regenerated.
7523 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7525 * combine.c (try_combine): Set subst_low_luid to i0.
7527 2010-09-06 Richard Guenther <rguenther@suse.de>
7529 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
7530 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
7531 (build_aligned_type): Declare.
7532 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
7533 (check_aligned_type): New function.
7534 (build_aligned_type): Likewise.
7535 * expr.c (expand_assignment): Handle misaligned stores via
7536 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
7537 (expand_expr_real_1): Likewise.
7538 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
7539 * tree-vect-stmts.c (vectorizable_store): Do not build
7540 MISALIGNED_INDIRECT_REF but initialize alignment information.
7541 (vectorizable_load): Likewise.
7542 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
7544 * cfgexpand.c (expand_debug_expr): Likewise.
7545 * dwarf2out.c (loc_list_from_tree): Likewise.
7546 * fold-const.c (maybe_lvalue_p): Likewise.
7547 (operand_equal_p): Likewise.
7548 (build_fold_addr_expr_with_type_loc): Likewise.
7549 * gimplify.c (gimplify_addr_expr): Likewise.
7550 (gimplify_expr): Likewise.
7551 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
7552 (verify_gimple_assign_single): Likewise.
7553 * tree-dump.c (dequeue_and_dump): Likewise.
7554 (tree_could_trap_p): Likewise.
7555 * tree-predcom.c (ref_at_iteration): Likewise.
7556 * tree-pretty-print.c (dump_generic_node): Likewise.
7557 (op_code_prio): Likewise.
7558 (op_symbol_code): Likewise.
7559 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
7560 * tree-ssa-loop-im.c (for_each_index): Likewise.
7561 (gen_lsm_tmp_name): Likewise.
7562 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
7563 (find_interesting_uses_address): Likewise.
7564 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
7565 * tree-ssa-operands.c (get_expr_operands): Likewise.
7566 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7567 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7568 (ao_ref_init_from_vn_reference): Likewise.
7569 * tree.c (staticp): Likewise.
7570 (build1_stat): Likewise.
7571 (reference_alias_ptr_type): Likewise.
7572 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7573 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
7574 MISALIGNED_INDIRECT_REF handling.
7576 2010-09-06 Richard Guenther <rguenther@suse.de>
7578 PR tree-optimization/45534
7579 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
7580 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
7582 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
7583 valid on the target.
7585 2010-09-06 Andreas Schwab <schwab@redhat.com>
7587 * configure.ac: Quote argument of AC_MSG_WARN.
7588 * configure: Regenerate.
7590 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
7592 * sel-sched.c (move_cond_jump): Correct arguments to
7593 maybe_tidy_empty_bb.
7594 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
7596 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
7598 PR rtl-optimization/44919
7599 * sel-sched.c (move_cond_jump): Remove assert, check that
7600 the several blocks case can only happen with mutually exclusive
7601 insns instead. Rewrite the movement code to support moving through
7602 several basic blocks.
7604 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
7606 * config/i386/i386.md (iptrsize): New mode attribute.
7608 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
7610 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
7611 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
7612 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
7613 (stack_tls_protect_set_<mode>): Ditto from
7614 stack_tls_protect_set_{si,di}. Use %@ to output segment register
7615 of thread base pointer load.
7616 (stack_tls_protect_test_<mode>): Ditto from
7617 stack_tls_protect_test_{si,di}. Use %@ to output segment register
7618 of thread base pointer load.
7619 (stack_protect_set): Rewrite using indirect functions.
7620 (stack_protect_test): Ditto.
7621 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
7622 (ix86_print_operand): Handle '@'.
7624 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
7626 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
7629 2010-09-05 Mark Mitchell <mark@codesourcery.com>
7631 * doc/invoke.texi: Document -Wdouble-promotion.
7632 * c-typeck.c (convert_arguments): Check for implicit conversions
7633 from float to double.
7634 (do_warn_double_promotion): New function.
7635 (build_conditional_expr): Use it.
7636 (build_binary_op): Likewise.
7638 2010-09-05 Richard Guenther <rguenther@suse.de>
7640 PR tree-optimization/45535
7641 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
7642 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
7644 (indirect_refs_may_alias_p): Likewise.
7646 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
7648 * config/sh/sh.c (sh_option_override): Make static.
7649 Adjust comments. Declare.
7650 (sh_function_value_regno_p): Likewise.
7651 (sh_register_move_cost): Modify the arguments, make static.
7652 Adjust comments. Declare.
7653 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
7654 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7655 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
7656 REGISTER_MOVE_COST): Delete.
7657 * config/sh/sh-protos.h (sh_override_options): Delete.
7658 (sh_register_move_cost): Delete.
7659 (sh_function_value_regno_p): Delete.
7661 2010-09-04 Anatoly Sokolov <aesok@post.ru>
7663 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
7664 m32r_function_value_regno_p): New functions.
7665 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7666 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
7667 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
7668 FUNCTION_VALUE_REGNO_P): Remove.
7670 2010-09-04 Jan Hubicka <jh@suse.cz>
7672 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
7673 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
7674 fold_read_from_constant_string.
7676 * gimple.h (canonicalize_constructor_val): Declare.
7677 * gimple-fold.c (canonicalize_constructor_val): New function.
7678 (get_symbol_constant_value):Use it.
7679 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
7681 2010-09-04 Jan Hubicka <jh@suse.cz>
7683 * tree-switch-conversion.c (build_one_array): Set constructor to be
7685 * varpool.c (varpool_finalize_decl): Compute const_value_known.
7687 2010-09-04 Richard Guenther <rguenther@suse.de>
7690 * tree-flow.h (force_gimple_operand_1): Declare.
7691 (force_gimple_operand_gsi_1): Likewise.
7692 * gimplify.c (force_gimple_operand_1): New worker taking a
7693 gimple predicate for ...
7694 (force_gimple_operand): ... which now wraps it.
7695 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
7696 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
7698 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
7699 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
7700 (create_mem_ref): Likewise.
7702 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
7704 * config/i386/predicates.md (sse_reg_operand): New predicate.
7705 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
7706 predicate for operand 1.
7707 (XFmode push splitter): Use fp_register_operand predicate
7709 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
7710 (SF-DF float_extend push splitter): Add reload_completed insn
7712 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
7713 MODEF mode macro. Add reload_completed insn predicate.
7715 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
7717 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
7718 (struct df_extract_ref): Remove.
7719 (union df_ref_d): Remove extract_ref member.
7720 (df_ref_create): Remove last three arguments.
7721 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
7722 * df-scan.c (df_ref_record): Remove last three arguments, do not
7723 pass them to df_ref_create_structure.
7724 (df_uses_record): Remove first and last three arguments. Replace
7725 first argument with DF_REF_REGULAR, adjust calls to remove the
7726 width, offset and mode. Always call recursively on the second
7727 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
7728 (df_ref_create_structure): Remove first argument.
7729 (struct df_scan_problem_data): Remove ref_extract_pool.
7730 (df_scan_free_internal): Do not free it.
7731 (df_scan_alloc): Do not allocate it.
7732 (df_ref_create): Remove last three arguments, do not pass them to
7733 df_ref_create_structure.
7734 (df_free_ref): Remove DF_REF_EXTRACT case.
7735 (df_notes_rescan): Adjust call to df_uses_record.
7736 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
7737 Remove DF_REF_EXTRACT case.
7738 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
7739 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
7740 and SUBREG definitions.
7741 (df_get_conditional_uses): Remove references to width/offset/mode,
7742 adjust call to df_ref_create_structure.
7743 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
7744 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
7745 calls to df_uses_record and df_ref_record.
7746 * fwprop.c (update_df): Remove references to width/offset/mode,
7747 adjust call to df_ref_create.
7749 2010-09-03 Jan Hubicka <jh@suse.cz>
7751 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
7752 (build_cdtor_fns): Update use of build_cdtor.
7754 2010-09-03 Joseph Myers <joseph@codesourcery.com>
7756 * doc/options.texi (SeparateAlias): Document.
7757 * opt-functions.awk (switch_flags): Handle SeparateAlias.
7758 * opth-gen.awk: Generate enumeration names for options marked
7759 SeparateAlias, but not for those marked Ignore.
7760 * opts-common.c (generate_canonical_option): Don't output separate
7761 argument for options marked CL_SEPARATE_ALIAS.
7762 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
7763 * opts.h (CL_SEPARATE_ALIAS): New.
7764 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
7765 CL_COMMON): Adjust definitions.
7766 * config/i386/darwin.opt, config/mips/sde.opt: New.
7767 * common.opt (fdump-final-insns): New.
7768 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7770 (mips*-sde-elf*): Add mips/sde.opt.
7771 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
7772 -mno-data-in-code and -mcode-xonly here.
7773 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
7774 * gcc.c (option_map): Add "j" to --dump entry.
7775 (translate_options): Don't translate -d to -foutput-class-dir= here.
7777 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
7779 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
7781 (compute_all_dependences): Same.
7782 (create_rdg_edge_for_ddr): Same.
7783 * tree-data-ref.h (DR_IS_WRITE): New.
7784 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
7785 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
7786 (write_memrefs_written_at_least_once): Same.
7787 * tree-predcom.c (suitable_component_p): Same.
7788 (determine_roots_comp): Same.
7789 (execute_load_motion): Same.
7790 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
7791 (vect_enhance_data_refs_alignment): Same.
7792 (vect_analyze_group_access): Same.
7794 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
7797 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
7798 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
7800 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
7802 * dwarf2out.c (file scope): Remove #if0'd code.
7803 (gen_subprogram_die): Same.
7805 2010-09-03 Jakub Jelinek <jakub@redhat.com>
7808 * dwarf2out.c (flush_queued_reg_saves): Rename to...
7809 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
7810 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
7811 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
7812 * config/i386/i386.c (output_set_got): Call it.
7814 2010-09-03 Michael Matz <matz@suse.de>
7817 * tree-sra.c (sra_modify_assign): If we modify the statement,
7820 * tree-ssa.c (verify_ssa): Check number of operands and links
7821 per statement to agree.
7823 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
7824 Iain Sandoe <iains@gcc.gnu.org>
7827 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
7828 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
7829 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
7831 2010-09-03 Richard Guenther <rguenther@suse.de>
7833 * lto-streamer-out.c (output_function): Output function
7835 * lto-streamer-in.c (input_function): Input function start
7838 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7840 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
7841 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
7842 * configure: Regenerate.
7843 * aclocal.m4: Regenerate.
7845 2010-09-03 Jan Hubicka <jh@suse.cz>
7848 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
7849 on functions/variables in other partition.
7851 2010-09-03 Jan Hubicka <jh@suse.cz>
7853 * cgraph.h (struct varpool_node): Add const_value_known.
7854 (varpool_decide_const_value_known): Declare.
7855 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
7856 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
7857 (input_varpool_node): Restore const_value_known.
7858 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
7859 initializer folding.
7860 * ipa.c (ipa_discover_readonly_nonaddressable_var,
7861 function_and_variable_visibility): Compute const_value_known.
7862 * gimple-fold.c (get_symbol_constant_value): Use varpool for
7863 initializer folding.
7864 * varpool.c (varpool_decide_const_value_known): New function.
7866 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
7868 * config/i386/i386.md: Remove empty preparation statements
7871 2010-09-03 Jan Hubicka <jh@suse.cz>
7873 * passes.c (rest_of_decl_compilation): Do not add local vars into
7875 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
7876 static or extern vars are in varpool.
7877 (varpool_finalize_decl): Sanity check that only static vars are
7880 2010-09-03 Jakub Jelinek <jakub@redhat.com>
7883 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
7884 not just generic vectors with BLKmode.
7886 2010-09-03 Richard Guenther <rguenther@suse.de>
7888 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
7889 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
7890 * tree.h (TMR_SYMBOL): Remove.
7891 (TMR_BASE, TMR_OFFSET): Adjust.
7893 * alias.c (ao_ref_from_mem): Use TMR_BASE.
7894 * builtins.c (get_object_alignment): Merge TMR_BASE and
7895 TMR_SYMBOL handling.
7896 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
7897 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
7898 handling. Also allow TARGET_MEM_REF as base address.
7899 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
7900 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
7901 base. Gimplify TMR_INDEX2.
7902 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
7903 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7904 (get_addr_base_and_unit_offset): Likewise.
7905 * tree-eh.c (tree_could_trap_p): Likewise.
7906 * tree-pretty-print.c (dump_generic_node): Likewise.
7907 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
7908 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
7910 (get_address_description): Reconstruct addres description
7911 from merged TMR_BASE and TMR_INDEX2.
7912 (maybe_fold_tmr): Fold propagated addresses.
7913 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
7914 MEM_REF and TARGET_MEM_REF paths.
7915 (indirect_refs_may_alias_p): Likewise.
7916 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
7917 instead of TMR_SYMBOL.
7918 * tree-ssa-operands.c (get_tmr_operands): Simplify.
7919 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
7920 according to changes ...
7921 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
7922 Split TARGET_MEM_REF into two fields plus the base.
7923 * tree.c (mem_ref_offset): Simplify.
7924 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
7925 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
7926 Strip NOPs when folding MEM_REF addresses.
7927 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
7928 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
7929 (fold_gimple_assign): ... not here.
7931 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
7933 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
7934 * config/mips/mips.c (mips_shift_truncation_mask): New function.
7935 (TARGET_SHIFT_TRUNCATION_MASK): Define.
7937 2010-09-02 Richard Henderson <rth@redhat.com>
7939 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
7940 instead of readelf in the test.
7941 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
7942 in the .debug_frame section for coff targets.
7943 * configure: Rebuild.
7945 2010-09-02 Anatoly Sokolov <aesok@post.ru>
7947 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
7948 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
7949 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7950 (m32c_class_likely_spilled_p): Make static. Change argument type to
7951 reg_class_t. Change result type to bool.
7953 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7955 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
7956 to convert (double)(long) into a single FRIZ instruction or not
7957 when -ffast-math is used.
7959 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
7960 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
7961 or FRIZ instruction if -ffast-math.
7962 * config/rs6000/rs6000.md (friz): Ditto.
7964 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
7966 2010-09-02 Joseph Myers <joseph@codesourcery.com>
7968 * opth-gen.awk (quote, comma): Remove unused variables.
7970 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
7972 * arm.c (arm_override_options): Correct fall-back code to use
7973 SUBTARGET_CPU_DEFAULT.
7975 2010-09-02 Julian Brown <julian@codesourcery.com>
7977 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
7979 (vcond<mode>, vcondu<mode>): New expanders.
7980 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
7981 comparisons with zero.
7982 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
7983 * config/arm/constraints.md (Dz): New constraint.
7985 2010-09-02 Anatoly Sokolov <aesok@post.ru>
7987 * target.def (class_likely_spilled_p): New hook.
7988 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
7989 * doc/tm.texi: Regenerate.
7990 * targhooks.c (default_class_likely_spilled_p): New function.
7991 * targhooks.h (default_class_likely_spilled_p): Declare.
7992 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
7993 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
7994 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
7995 Use fixed_reg_set instead of fixed_regs.
7996 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
7997 * calls.c (avoid_likely_spilled_reg): Ditto.
7998 * ira-conflicts.c (ira_build_conflicts): Ditto.
7999 * ira.c (update_equiv_regs): Ditto.
8000 * mode-switching.c (create_pre_exit): Ditto.
8001 * regmove.c (find_matches): Ditto.
8002 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8003 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
8004 (small_register_class_p): New inline function.
8005 (push_secondary_reload, find_reusable_reload, find_reloads): Use
8006 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
8008 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
8009 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
8010 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8012 2010-09-02 Richard Guenther <rguenther@suse.de>
8014 PR tree-optimization/44937
8015 PR tree-optimization/45412
8016 * ipa-split.c (split_function): Properly remove PHI nodes.
8018 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8020 * opts.h (struct cl_option): Add warn_message field.
8021 (struct cl_decoded_option): Add warn_message field.
8022 * doc/options.texi (Ignore, Warn): Document.
8023 * opt-functions.awk (needs_state_p): Don't consider aliases or
8024 ignored options to need state saved.
8025 * optc-gen.awk: Handle Warn and Ignore.
8026 * opth-gen.awk: Output OPT_SPECIAL_ignore.
8027 * opts-common.c (decode_cmdline_option): Set warn_message field.
8028 Handle ignored options.
8029 (decode_cmdline_options_to_array, generate_option,
8030 generate_option_input_file): Set warn_message field.
8031 (read_cmdline_option): Generate warnings from warn_message field.
8032 Handle ignored options.
8033 * common.opt (Wunreachable-code, fargument-alias,
8034 fargument-noalias, fargument-noalias-global,
8035 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
8036 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
8037 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
8038 ftree-salias): Mark Ignore.
8039 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
8040 -mintel-syntax and -mno-intel-syntax here.
8041 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
8043 * opts.c (common_handle_option): Don't handle options marked as
8045 (enable_warning_as_error): Handle ignored options.
8047 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8050 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
8051 alias_target fields.
8052 * opt-functions.awk (opt_sanitized_name): Don't handle
8053 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
8054 * optc-gen.awk: Generate alias fields.
8055 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
8056 Don't generate such constants for aliases.
8057 * opts-common.c (generate_canonical_option): New.
8058 (decode_cmdline_option): Handle aliases. Use
8059 generate_canonical_option for known options instead of copying the
8061 * doc/options.texi (Alias): Document.
8062 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
8063 fstack-check, specs): Mark as aliases.
8064 * gcc.c (driver_handle_option): Canonicalize -L options to joined
8066 (driver_handle_option): Don't handle OPT_specs.
8067 * opts.c (common_handle_option): Don't handle options marked as
8069 (enable_warning_as_error): Handle aliases.
8070 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
8071 OPT_Wlarger_than_eq.
8072 * tree-optimize.c (tree_rest_of_compilation): Use
8073 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
8075 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
8077 * config/i386/i386.md (nonmemory_operand): New mode attribute.
8078 (push memory peephole2): Macroize peepholes using SWI mode iterator.
8079 (move immediate to memory peephole2): Macroize peepholes using
8080 SWI124 mode iterator.
8081 (non-pairable NOT peephole2): Macroize peepholes using SWI124
8083 (simple lea add peephole2): Macroize peepholes using SWI48
8085 (simple lea mult peephole2): Ditto.
8086 (imul by 3,5,9 to lea peephole2): Ditto.
8087 (mov $-1, reg peephole2): Macroize peepholes using SWI248
8089 (imul $32bit_imm,mem,reg peephole2): Ditto.
8090 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
8092 2010-09-02 Ian Bolton <ian.bolton@arm.com>
8094 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
8096 2010-09-02 Olivier Hainque <hainque@adacore.com>
8099 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
8100 (allocno_priority_compare_func): Use it instead of a straight
8101 difference computation over priorities.
8103 2010-09-02 Andi Kleen <ak@linux.intel.com>
8105 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
8107 2010-09-02 Ira Rosen <irar@il.ibm.com>
8109 * tree-vectorizer.h (get_later_stmt): New function.
8110 (vect_analyze_data_ref_dependences): Add argument.
8111 * tree-vect-loop.c (vect_analyze_loop): Update call to
8112 vect_analyze_data_ref_dependences.
8113 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
8115 (vect_analyze_data_ref_dependence): Add argument for basic block
8116 dependencies. Check dependencies in basic block vectorization.
8117 (vect_analyze_data_ref_dependences): Add argument and update call to
8118 vect_analyze_data_ref_dependences.
8119 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
8120 (vect_bb_vectorizable_with_dependencies): New.
8121 (vect_slp_analyze_bb): Check dependencies in basic block.
8122 (vect_schedule_slp_instance): Insert stores before the last store in
8125 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
8128 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
8129 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8131 2010-09-01 Jakub Jelinek <jakub@redhat.com>
8134 * bb-reorder.c (add_labels_and_missing_jumps): Treat
8135 bbs ending with throwing insns like blocks ending with a call.
8136 (fix_up_fall_thru_edges): Likewise.
8138 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
8140 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
8141 (m32c_function_arg_advance): Delete.
8142 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8143 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
8144 comments. Take a const_tree and a bool. Declare.
8145 (m32c_function_arg_advance): Likewise.
8146 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8148 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8151 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
8152 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
8153 * config/i386/mingw32.h: ... here.
8155 2010-09-01 Andi Kleen <ak@linux.intel.com>
8158 * lto-streamer-in.c (lto_input_ts_target_option): Add.
8159 (lto_input_tree_pointers): Call lto_input_ts_target_option.
8160 * lto-streamer-out (lto_output_ts_target_option): Add.
8161 (lto_output_tree_pointers): Call lto_output_ts_target_option.
8163 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
8166 * config/i386/cygwin.h: Change order of specified import libraries.
8167 * config/i386/mingw32.h: Likewise.
8168 * config/i386/t-cygwin: Likewise.
8169 * config/i386/t-mingw32: Likewise.
8170 * config/i386/t-mingw-w32: Likewise.
8171 * config/i386/t-mingw-w64: Likewise.
8173 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8175 * config/arm/neon-schedgen.ml (core): New type.
8176 (allCores): List of supported cores.
8177 (availability_table): Add supported cores.
8178 (collate_bypasses): Accept core as a parameter.
8179 (worst_case_latencies_and_bypasses): Accept core as a parameter.
8180 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
8181 and coreStr to get tune attribute and prefix for functional units.
8182 (emit_bypasses): Accept core name and use it.
8183 (calculate_per_core_availability_table): New.
8185 (calculate_core_availability_table): New.
8186 (main): Use calculate_core_availablity_table.
8187 * config/arm/cortex-a8-neon.md: Update copyright year.
8188 Regenerated from ml file and merged in.
8189 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
8192 2010-09-01 Ian Bolton <ian.bolton@arm.com>
8194 * Makefile.in (tree-switch-conversion.o): Update dependencies.
8196 2010-09-01 Richard Guenther <rguenther@suse.de>
8198 * alias.c (ao_ref_from_mem): Adjust.
8199 * builtins.c (get_object_alignment): Likewise.
8200 * cfgexpand.c (expand_debug_expr): Likewise.
8201 * gimple.c (get_base_address): Likewise.
8202 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8203 (get_addr_base_and_unit_offset): Likewise. Fix for
8204 both TMR_SYMBOL and TMR_BASE being set.
8205 * tree-eh.c (tree_could_trap_p): Likewise.
8206 * gimplify.c (gimplify_expr): Do not attempt to gimplify
8207 TMR_SYMBOL. Always gimplify TMR_BASE.
8208 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8209 TMR_BASE if there is a TMR_SYMBOL.
8210 * tree-pretty-print.c (dump_generic_node): Adjust.
8211 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
8212 (tree_mem_ref_addr): Likewise.
8213 (create_mem_ref_raw): Likewise.
8214 (move_fixed_address_to_symbol): Likewise.
8215 (create_mem_ref): Likewise.
8216 (dump_mem_address): Likewise.
8217 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
8218 Fix for both TMR_SYMBOL and TMR_BASE being set.
8219 (indirect_refs_may_alias_p): Likewise.
8220 * tree-ssa-operands.c (get_tmr_operands): Adjust.
8221 * tree.def (TARGET_MEM_REF): Adjust documentation.
8223 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8225 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
8226 Rename from X86_TUNE_ADD_ESP_4.
8227 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
8228 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
8229 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
8230 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
8231 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
8232 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
8233 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
8234 * config/i386/i386.c (initial_ix86_tune_features)
8235 <X86_TUNE_SINGLE_POP>: Invert members.
8236 <X86_TUNE_DOUBLE_POP>: Ditto.
8237 <X86_TUNE_SINGLE_PUSH>: Ditto.
8238 <X86_TUNE_DOUBLE_PUSH>: Ditto.
8239 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
8241 (push peephole2 patterns): Macroize peepholes using P mode iterator.
8242 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
8243 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
8244 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
8246 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
8248 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
8249 a volatile LHS if the constructor has only one element.
8251 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
8254 * tree.c (stdarg_p): Make fntype parameter const.
8255 * tree.h (stdarg_p): Likewise.
8256 (function_args_iterator): Remove unused fntype field.
8257 (function_args_iter_init): Do not initialize fntype
8258 field. Make fntype parameter const.
8260 2010-09-01 Richard Guenther <rguenther@suse.de>
8262 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
8264 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
8265 (execute_vrp): Compute number of iteration estimates.
8266 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
8267 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
8268 * tree-data-ref.c (estimated_loop_iterations): Adjust.
8269 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
8270 Infer loop bounds from undefined behavior based on a new parameter.
8271 (estimate_numbers_of_iterations): Likewise.
8272 (scev_probably_wraps_p): Adjust.
8273 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
8275 2010-09-01 Nick Clifton <nickc@redhat.com>
8277 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
8279 (xstormy16_legitimate_address_p): Use true and false instead of 1
8281 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
8282 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
8284 (xstormy16_expand_call): Fix comment at start of function.
8286 2010-09-01 Nick Clifton <nickc@redhat.com>
8288 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
8289 when pushing accumulator register.
8290 (rx_get_stack_layout): Always save call clobbered registers inside
8292 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
8294 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8296 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
8297 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
8299 * libgcc-std.ver (GCC_4.6.0): Define version.
8301 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
8303 * tree-nested.c (convert_all_function_calls): Iterate until after the
8304 sum of static chains in the nest doesn't change.
8306 2010-08-31 Anatoly Sokolov <aesok@post.ru>
8308 * config/m32c/m32c.c (classes_intersect): Remove.
8309 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
8310 reg_classes_intersect_p instead of classes_intersect.
8311 (class_can_hold_mode): Change arguments type from enum reg_class to
8312 reg_class_t. Use reg_class_contents instead of class_contents.
8313 (m32c_register_move_cost): Make static. Change arguments type from
8314 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
8315 classes_intersect. Use reg_class_contents instead of class_contents.
8316 (m32c_memory_move_cost): Make static. Change arguments type from
8317 enum reg_class to reg_class_t.
8318 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8319 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8320 * config/m32c/m32c-protos.h (m32c_register_move_cost,
8321 m32c_memory_move_cost): Remove.
8323 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8325 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
8326 (arm_function_arg): Delete.
8327 (arm_needs_doubleword_align): Take a const_tree.
8328 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8329 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
8330 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
8331 (arm_function_arg): Make static. Take a const_tree and a bool.
8332 (arm_function_arg_advance): Likewise.
8333 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8335 2010-08-31 Andi Kleen <ak@linux.intel.com>
8337 * common.opt (fwhopr=): Update for -fwhopr=jobserver
8338 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
8339 * lto-wrapper.c (run_gcc): Add jobserver mode.
8340 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
8343 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
8345 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
8347 (*popdi1_epilogue): Ditto.
8348 (*popsi1_epilogue): Ditto.
8349 (popsi, popdi peephole2 patterns): Update peepholes for changed
8350 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
8352 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
8353 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
8355 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
8356 (override_options): Do not initialize removed ix86_gen_pop1.
8357 (gen_pop): New static function.
8358 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
8359 (release_scratch_register_on_entry): Ditto.
8360 (ix86_restore_reg_using_pop): Ditto.
8361 (ix86_expand_epilogue): Ditto.
8363 2010-08-31 Jakub Jelinek <jakub@redhat.com>
8366 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
8368 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8370 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
8373 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8375 * doc/extend.texi: Fix documentation of the return value of
8376 __builtin_choose_expr.
8378 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8380 * config/v850/v850-protos.h (function_arg): Delete.
8381 * config/v850/v850.h (FUNCTION_ARG): Delete.
8382 (FUNCTION_ARG_ADVANCE): Move code to...
8383 * config/v850/v850.c (v850_function_arg_advance): ...here.
8384 (v850_function_arg): Make static. Take a const_tree and a bool.
8385 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8387 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8389 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
8391 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
8393 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
8395 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
8397 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8399 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8401 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
8403 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8404 * config/rx/rx.c (rx_function_arg_size): Make static.
8405 (rx_function_arg): Likewise.
8406 (rx_function_arg_advance): New function.
8407 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8409 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
8411 * config/arm/arm.c (arm_override_options): Remove superfluous test.
8414 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
8416 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
8417 (dwarf2out_decl) <CONST_DECL>: Likewise.
8419 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
8422 * common.opt (-fstack-usage): New option.
8423 * doc/invoke.texi (Debugging options): Document it.
8424 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
8425 allocate_dynamic_stack_space.
8426 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
8427 and propagate it to allocate_dynamic_stack_space.
8428 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
8429 * calls.c (initialize_argument_information): Pass TRUE as 4th
8430 argument to allocate_dynamic_stack_space.
8431 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
8432 to 1 when pushing a variable-sized argument onto the stack. Pass
8433 TRUE as 4th argument to allocate_dynamic_stack_space.
8434 Update current_function_pushed_stack_size.
8435 (emit_library_call_value_1): Likewise.
8436 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
8437 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
8438 attempt to find an upper bound. Remove redundant code for the
8439 SETJMP_VIA_SAVE_AREA case.
8440 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
8441 * function.h (struct stack_usage): New structure.
8442 (current_function_static_stack_size): New macro.
8443 (current_function_dynamic_stack_size): Likewise.
8444 (current_function_pushed_stack_size): Likewise.
8445 (current_function_dynamic_alloc_count): Likewise.
8446 (current_function_has_unbounded_dynamic_stack_size): Likewise.
8447 (current_function_allocates_dynamic_stack_space): Likewise.
8448 (struct function): Add new field 'su'.
8449 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
8450 add the value of the dynamic offset to the dynamic stack usage.
8451 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
8452 for variable-sized objects.
8453 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
8454 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
8455 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
8456 BUILT_IN_ALLOCA for variable-sized objects.
8457 * output.h (output_stack_usage): Declare.
8458 * toplev.c (stack_usage_file): New file pointer.
8459 (output_stack_usage): New function.
8460 (open_auxiliary_file): Likewise.
8461 (lang_dependent_init): Open file if flag_stack_usage is set.
8462 (finalize): Close file if stack_usage_file is not null.
8463 * tree.h (ALLOCA_FOR_VAR_P): New macro.
8464 * config/alpha/alpha.c (compute_frame_size): New function.
8465 (alpha_expand_prologue): Use it.
8466 (alpha_start_function): Likewise.
8467 (alpha_expand_epilogue): Likewise. Set stack usage info.
8468 * config/i386/i386.c (ix86_expand_prologue): Likewise.
8469 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
8470 * config/mips/mips.c (mips_expand_prologue): Likewise.
8471 * config/pa/pa.c (hppa_expand_prologue): Likewise.
8472 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8473 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8475 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
8477 PR tree-optimization/45427
8478 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
8479 Handle the case that the exit is never taken correctly.
8480 (number_of_iterations_ne): Pass exit_must_be_taken to
8481 number_of_iterations_ne_max.
8483 2010-08-30 Catherine Moore <clm@codesourcery.com>
8485 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
8486 Infer -mdspr2 for the the 74K.
8488 2010-08-30 Jakub Jelinek <jakub@redhat.com>
8491 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
8494 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
8495 and TRUTH_{AND,OR,XOR}_EXPR.
8496 * c-parser.c (c_parser_omp_atomic): Handle boolean
8497 {PRE,POST}_{INC,DEC}REMENT.
8499 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
8501 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
8502 (function_arg): Delete.
8503 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8504 (FUNCTION_INCOMING_ARG): Delete.
8505 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
8506 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
8508 (function_arg): Rename to...
8509 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
8511 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
8512 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8513 (TARGET_FUNCTION_INCOMING_ARG): Define.
8515 2010-08-30 Richard Guenther <rguenther@suse.de>
8517 PR tree-optimization/21602
8518 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
8519 using points-to information.
8521 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
8523 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
8525 2010-08-30 Richard Guenther <rguenther@suse.de>
8527 PR tree-optimization/45449
8528 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
8531 2010-08-30 Joseph Myers <joseph@codesourcery.com>
8533 * opts.h (CL_ERR_NEGATIVE): Define.
8534 * opts.c (unknown_option_callback): Don't postpone warnings for
8535 options marked with CL_ERR_NEGATIVE.
8536 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
8537 for negative versions of CL_REJECT_NEGATIVE options.
8539 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
8541 * config/i386/i386.md (zero_extendsidi2_1): Rename from
8542 zero_extendsidi2_32.
8543 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
8544 using SWI12 mode iterator.
8545 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
8546 to define_insn_and_split pattern.
8547 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
8548 using SWI24 mode iterator.
8549 (*zero_extendqi<mode>2_and): Macroize insn from
8550 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
8551 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
8552 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
8553 SWI24 mode iterator.
8554 (*zero_extendqi<mode>2_movzbl): Ditto from
8555 *zero_extendqi{hi,si}2_movzbl.
8556 (extendsidi2_1): Rename from extendsidi2_32.
8557 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
8558 SWI12 mode iterator.
8560 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
8562 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
8563 general purpose registers.
8564 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
8565 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
8566 with general purpose registers and memory operands. Add associated
8567 CCImode post-reload splitter.
8568 * config/ia64/div.md: Change BImode to CCImode throughout.
8570 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
8572 * config/ia64/ia64.md (cstorebi4): Fix thinko.
8574 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
8576 * config/picochip/picochip.c (reorder_var_tracking_notes): This
8577 function was dropping debug insns which caused PR45299.
8579 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
8581 * config/i386/sse.md (extsuffix): New code attribute.
8582 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
8583 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
8584 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
8585 and sse4_1_zero_extendv4qiv4si2.
8586 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
8587 and sse4_1_zero_extendv2qiv2di2.
8588 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
8589 and sse4_1_zero_extendv4hiv4si2.
8590 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
8591 and sse4_1_zero_extendv2hiv2di2.
8592 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
8593 and sse4_1_zero_extendv2siv2di2
8595 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
8596 using any_extend code iterator.
8597 (*avx_<s>mulv8hi3_highpart): Macroize insn from
8598 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
8599 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
8601 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
8602 gen_sse4_1_sign_extend* functions.
8603 (struct builtin_description bdesc_args): Ditto.
8605 2010-08-27 Xinliang David Li <davidxl@google.com>
8608 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
8609 (iv_ca_set_no_cp): Update used inv expr count.
8610 (iv_ca_set_cp): Ditto.
8611 (iv_ca_new): Initialize new member.
8612 (iv_ca_free): Free memory.
8614 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8616 * config/sh/sh-protos.h (sh_function_arg): Delete.
8617 (sh_function_arg_advance): Delete.
8618 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8619 (PASS_IN_REG_P): Eliminate cast.
8620 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
8621 const_tree and a bool.
8622 (sh_function_arg): Likewise.
8623 (sh_output_mi_thunk): Call sh_function_arg_advance) and
8625 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8627 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
8628 Kaz Kojima <kkojima@gcc.gnu.org>
8630 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
8632 (sh_expand_epilogue): Likewise.
8633 * config/sh/sh.md (movml_push_banked): New insn.
8634 (movml_pop_banked): Likewise.
8636 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
8638 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
8639 gen_regexp_oneof, gen_regexp_sequence): Use the string found
8640 in vector element 0 rather than the original string when there's
8642 (gen_regexp): Remove extra semicolon.
8644 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
8645 thumb2_movsf_vfp): Set attribute "insn".
8646 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
8647 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
8648 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
8649 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
8650 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
8651 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
8652 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
8653 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
8654 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
8655 if_not_arith, if_arith_not, cond_move_not): Likewise.
8657 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8659 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
8661 (rs6000_allocate_stack_temp): Ditto.
8662 (rs6000_expand_convert_si_to_sfdf): Ditto.
8664 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
8665 line. Update the options set if power6 or power7 server/embedded
8666 type options are used. If we give a warning for no vsx under
8667 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
8668 (rs6000_allocate_stack_temp): New function to allocate a stack
8669 tempoary and adjust the address so it meets either REG+OFFSET or
8670 REG+REG addressing requirements.
8671 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
8672 that they can be used with the LFIWAX/LFIWZX instrucitons.
8673 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
8674 converting signed/unsigned SImode to either SFmode/DFmode.
8676 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
8677 whether certain instructions can be generated.
8678 (TARGET_FCTIDZ): Ditto.
8679 (TARGET_STFIWX): Ditto.
8680 (TARGET_LFIWAX): Ditto.
8681 (TARGET_LFIWZX): Ditto.
8682 (TARGET_FCFIDS): Ditto.
8683 (TARGET_FCFIDU): Ditto.
8684 (TARGET_FCFIDUS): Ditto.
8685 (TARGET_FCTIDUZ): Ditto.
8686 (TARGET_FCTIWUZ): Ditto.
8688 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
8689 (UNSPEC_FCTID): Ditto.
8690 (UNSPEC_LFIWAX): Ditto.
8691 (UNSPEC_LFIWZX): Ditto.
8692 (UNSPEC_FCTIWUZ): Ditto.
8693 (rreg): Use correct constraints.
8694 (SI_CONVERT_FP): New mode attribute for floating point conversion
8696 (E500_CONVERT): Ditto.
8697 (lfiwax): New insns for converting from integer to floating point
8698 utilizing newer instructions. Attempt to optimize conversions
8699 that come from memory so that we don't load the value into a GPR,
8700 spill it to the stack and reload it into a FPR.
8701 (floatsi<mode>2_lfiwax): Ditto.
8702 (floatsi<mode>2_lfiwax_mem): Ditto.
8703 (floatsi<mode>2_lfiwax_mem2): Ditto.
8705 (floatunssi<mode>2_lfiwzx): Ditto.
8706 (floatunssi<mode>2_lfiwzx_mem): Ditto.
8707 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
8708 (floatdidf2_mem): Ditto.
8709 (floatunsdidf2_fcfidu): Ditto.
8710 (floatunsdidf2_mem): Ditto.
8711 (floatunsdisf2): Ditto.
8712 (floatunsdisf2_fcfidus): Ditto.
8713 (floatunsdisf2_mem): Ditto.
8714 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
8715 Use FCFID on 32-bit hosts that support it.
8716 (floatsidf2_internal): Ditto.
8717 (floatunssisf2): Ditto.
8718 (floatunssidf2): Ditto.
8719 (floatunssidf2_internal): Ditto.
8720 (floatsisf2): Ditto.
8721 (floatdidf2): Ditto.
8722 (floatdidf2_fpr): Ditto.
8723 (floatunsdidf2): Ditto.
8724 (floatdisf2): Ditto.
8725 (floatdisf2_fcfids): Ditto.
8726 (floatdisf2_internal1): Ditto.
8727 (fixuns_truncsfsi2): Delete, merge into common pattern for both
8728 SF/DF. Add power7 support.
8729 (fix_truncsfsi2): Ditto.
8730 (fixuns_truncdfsi2): Ditto.
8731 (fixuns_truncdfdi2): Ditto.
8732 (fix_truncdfsi2): Ditto.
8733 (fix_truncdfsi2_internal): Ditto.
8734 (fix_truncdfsi2_internal_gfxopt): Ditto.
8735 (fix_truncdfsi2_mfpgpr): Ditto.
8738 (btruncdf2_fpr): Ditto.
8741 (ceildf2_fpr): Ditto.
8744 (floordf2_fpr): Ditto.
8747 (rounddf2_fpr): Ditto.
8749 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
8750 (fix_trunc<mode>di2): Ditto.
8751 (fixuns_trunc<mode>si2): Ditto.
8752 (fixuns_trunc<mode>di2): Ditto.
8753 (fctiwz_<mode>): Ditto.
8754 (btrunc<mode>2): Ditto.
8755 (btrunc<mode>2_fpr): Ditto.
8756 (ceil<mode>2): Ditto.
8757 (ceil<mode>2_fpr): Ditto.
8758 (floor<mode>2): Ditto.
8759 (float<mode>2_fpr): Ditto.
8760 (round<mode>2): Ditto.
8761 (round<mode>2_fpr): Ditto.
8762 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
8763 (fixuns_trunc<mode>si2_stfiwx): Ditto.
8764 (fix_truncdfsi2_internal): Ditto.
8765 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
8766 converted value on stack, loaded into GPR, and then stored into
8767 the final destination.
8768 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
8770 (lrint<mode>di2): New insn, provide the lrint builtin functions.
8771 (ftruncdf2): Delete, unused.
8772 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
8774 * config/rs6000/vsx.md (toplevel): Update copyright year.
8775 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
8778 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
8779 Jeremie Salvucci <jeremie.salvucci@free.fr>
8781 * gengtype.c (output_type_enum): Test the right union member.
8783 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
8786 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
8787 operands for operand 1.
8788 (sse4_1_extendv4qiv4si2): Ditto.
8789 (sse4_1_extendv2qiv2di2): Ditto.
8790 (sse4_1_extendv4hiv4si2): Ditto.
8791 (sse4_1_extendv2hiv2di2): Ditto.
8792 (sse4_1_extendv2siv2di2): Ditto.
8793 (sse4_1_zero_extendv8qiv8hi2): Ditto.
8794 (sse4_1_zero_extendv4qiv4si2): Ditto.
8795 (sse4_1_zero_extendv2qiv2di2): Ditto.
8796 (sse4_1_zero_extendv4hiv4si2): Ditto.
8797 (sse4_1_zero_extendv2hiv2di2): Ditto.
8798 (sse4_1_zero_extendv2siv2di2): Ditto.
8799 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
8800 (*sse4_1_extendv4qiv4si2): Ditto.
8801 (*sse4_1_extendv2qiv2di2): Ditto.
8802 (*sse4_1_extendv4hiv4si2): Ditto.
8803 (*sse4_1_extendv2hiv2di2): Ditto.
8804 (*sse4_1_extendv2siv2di2): Ditto.
8805 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
8806 (*sse4_1_zero_extendv4qiv4si2): Ditto.
8807 (*sse4_1_zero_extendv2qiv2di2): Ditto.
8808 (*sse4_1_zero_extendv4hiv4si2): Ditto.
8809 (*sse4_1_zero_extendv2hiv2di2): Ditto.
8810 (*sse4_1_zero_extendv2siv2di2): Ditto.
8812 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8814 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
8815 (mips_function_arg): Delete.
8816 (mips_function_arg_boundary): Take a const_tree.
8817 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
8818 (mips_arg_info): Likewise.
8819 (mips_setup_incoming_varargs): Call mips_function_arg_advance
8820 instead of FUNCTION_ARG_ADVANCE.
8821 (mips_function_arg_advance): Adjust prototype. Make static.
8822 (mips_function_arg): Likewise.
8823 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8824 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
8826 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8828 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8829 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
8830 (function_arg): Delete.
8831 (function_arg_boundary): Take a const_tree.
8832 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
8833 (rs6000_spe_function_arg): Likewise.
8834 (rs6000_parm_start): Likewise.
8835 (rs6000_arg_size): Likewise.
8836 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
8837 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
8838 (rs6000_mixed_function_arg): Likewise.
8839 (function_arg): Rename to...
8840 (rs6000_function_arg): ...this.
8841 (function_arg_advance): Rename to...
8842 (rs6000_function_arg_advance_1): ...this
8843 (rs6000_function_arg_advance): New function. Call it.
8844 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
8845 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
8846 (rs6000_function_value): Likewise.
8847 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8849 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8851 * config/arm/arm.md (enabled): Test the value of arch_enabled
8852 rather than just using it.
8854 2010-08-27 Olivier Hainque <hainque@adacore.com>
8855 Eric Botcazou <ebotcazou@adacore.com>
8857 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
8858 cover all the possible offsets from this base.
8859 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
8861 2010-08-26 Jakub Jelinek <jakub@redhat.com>
8863 PR tree-optimization/44485
8864 * calls.c (flags_from_decl_or_type): For const or pure
8865 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
8866 together with ECF_CONST resp. ECF_PURE.
8867 * builtins.c (expand_builtin): Use flags_from_decl_or_type
8868 instead of querying flags directly.
8869 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
8870 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
8872 2010-08-26 Richard Guenther <rguenther@suse.de>
8874 PR tree-optimization/45255
8875 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
8876 and externals are also invariant.
8878 2010-08-25 Jakub Jelinek <jakub@redhat.com>
8880 PR rtl-optimization/44858
8881 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
8882 newi2pat, make sure they don't affect newpat.
8884 PR rtl-optimization/45400
8885 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
8886 SUBREG_REG if both modes are of MODE_INT class.
8888 2010-08-25 Julian Brown <julian@codesourcery.com>
8890 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
8891 * config/arm/arm.md (generic_sched): No for Cortex-A5.
8892 (generic_vfp): Likewise.
8893 (cortex-a5.md): Include.
8894 * config/arm/cortex-a5.md: New.
8896 2010-08-25 Richard Guenther <rguenther@suse.de>
8898 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
8899 * gimple.c (gimple_get_alias_set): Remove special handling
8902 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
8905 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
8906 dead_or_set_p when computing i0_feeds_i2_n.
8908 * combine.c (find_split_point): Undo canonicalization of multiply-add
8909 to (minus x (mult)) when it seems likely that this will increase the
8912 2010-08-25 Richard Guenther <rguenther@suse.de>
8915 * lto-streamer.c (lto_record_common_node): Do not mess with
8916 TYPE_CANONICAL when not in lto.
8917 * gimple.c (gimple_register_type): Likewise.
8919 2010-08-25 Richard Guenther <rguenther@suse.de>
8921 PR tree-optimization/45316
8922 * tree-ssa-pre.c (eliminate): Properly clean EH info.
8924 2010-08-25 Richard Guenther <rguenther@suse.de>
8926 PR tree-optimization/45393
8927 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
8928 and clean EH info. Avoid SSA update.
8929 (execute_cse_sincos): Cleanup the CFG if it has changed.
8931 2010-08-25 Richard Guenther <rguenther@suse.de>
8934 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
8935 TARGET_MEM_REF in alignment computation.
8937 2010-08-25 Jakub Jelinek <jakub@redhat.com>
8939 PR tree-optimization/45059
8940 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
8941 type conversions from newop{1,2}. Assert t is a comparison and
8942 newop{1,2} after the stripping are gimple vals.
8944 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
8946 * config/arm/iterators.md (VU, SE, V_widen_l): New.
8947 (V_unpack, US): New.
8948 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
8949 (vec_unpack<US>_lo_<mode>): Likewise.
8950 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
8951 (neon_vec_unpack<US>_lo_<mode>): Likewise.
8952 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
8953 (vec_widen_<US>mult_hi_<mode>): Likewise.
8954 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
8955 (neon_vec_<US>mult_hi_<mode>"): Likewise.
8956 (neon_unpack<US>_<mode>): Widening move intermediate step for
8957 vectorizing without -mvectorize-with-neon-quad.
8958 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
8959 for vectorizing without -mvectorize-with-neon-quad.
8960 * config/arm/predicates.md (vect_par_constant_high): Check for
8961 high-half lanes of a vector.
8962 (vect_par_constant_low): Check for low-half lanes of a vector.
8964 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
8966 * tree-if-conv.c (struct ifc_dr): New.
8968 (DR_WRITTEN_AT_LEAST_ONCE): New.
8969 (DR_RW_UNCONDITIONALLY): New.
8970 (memref_read_or_written_unconditionally): Use the cached values
8972 (write_memref_written_at_least_once): Same.
8973 (if_convertible_loop_p): Initialize and free DR->aux fields.
8975 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
8977 * gimple.c (gimple_could_trap_p_1): Not static anymore.
8978 Pass an extra bool parameter include_mem.
8979 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
8980 (gimple_assign_rhs_could_trap_p): Same.
8981 * gimple.h (gimple_could_trap_p_1): Declared.
8982 * tree-data-ref.h (same_data_refs_base_objects): New.
8983 (same_data_refs): New.
8984 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
8985 (write_memrefs_written_at_least_once): New.
8986 (ifcvt_memrefs_wont_trap): New.
8987 (operations_could_trap): New.
8988 (ifcvt_could_trap_p): New.
8989 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
8990 Gets a vector of data refs.
8991 (if_convertible_stmt_p): Same.
8992 (if_convertible_loop_p_1): New.
8993 (if_convertible_loop_p): Call if_convertible_loop_p_1.
8995 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
8997 * common.opt (ftree-loop-if-convert-stores): New flag.
8998 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
8999 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
9000 the created statement before GSI.
9001 (if_convertible_phi_p): Allow virtual phi nodes when
9002 flag_loop_if_convert_stores is set.
9003 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
9004 Do not handle types that do not match is_gimple_reg_type.
9005 Remove loop and bb parameters. Call gimple_could_trap_p instead of
9006 when flag_loop_if_convert_stores is set, as LHS can contain
9008 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
9009 to if_convertible_gimple_assign_stmt_p.
9010 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
9011 (replace_phi_with_cond_gimple_assign_stmt): Renamed
9012 predicate_scalar_phi. Do not handle virtual phi nodes.
9013 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
9014 Call predicate_scalar_phi.
9015 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
9016 just after the labels for flag_loop_if_convert_stores, otherwise
9017 insert the predicate in the end of the BB.
9018 (predicate_mem_writes): New.
9019 (combine_blocks): Call predicate_all_scalar_phis. When
9020 flag_loop_if_convert_stores is set, call predicate_mem_writes.
9021 (tree_if_conversion): Call mark_sym_for_renaming when
9022 flag_loop_if_convert_stores is set.
9023 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
9024 flag_loop_if_convert_stores is set.
9026 2010-08-24 Anatoly Sokolov <aesok@post.ru>
9028 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
9029 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
9030 (pa_function_value): Make static.
9031 (override_options): Rename to...
9032 (pa_option_override): ...this. Make static.
9033 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
9034 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
9035 TARGET_OPTION_OVERRIDE): Define.
9036 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
9037 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
9039 * config/pa/pa-protos.h (override_options): Remove.
9041 2010-08-24 Richard Guenther <rguenther@suse.de>
9044 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
9045 if addr->index is NULL or zero.
9046 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
9047 TARGET_MEM_REF more properly.
9048 (indirect_ref_may_alias_decl_p): Likewise.
9049 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
9050 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
9052 2010-08-23 Anatoly Sokolov <aesok@post.ru>
9054 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
9055 (m32c_override_options): Rename to...
9056 (m32c_option_override): ...this. Make static.
9057 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
9058 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
9060 * config/m32c/m32c-protos.h (m32c_override_options,
9061 m32c_function_value_regno_p): Remove.
9063 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
9065 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
9066 Fix a typo in a previous commit.
9068 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
9070 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
9071 Pre-initialize innerloop_iters to one.
9073 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
9075 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
9076 existing static function global.
9078 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
9079 is changed to global.
9081 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
9082 may_be_nonaddressable_p on base, and don't collect this reference
9083 if the address of the base could not be taken.
9085 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9087 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
9088 enable the compiler to autovectorize mathmetical functions for
9089 power7 using the Mathematical Acceleration Subsystem library.
9091 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
9092 handle which vector math library we have.
9093 (rs6000_override_options): Add -mveclibabi=mass support.
9094 (rs6000_builtin_vectorized_libmass): New function to handle auto
9095 vectorizing math functions that are in the MASS library.
9096 (rs6000_builtin_vectorized_function): Call it.
9098 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9101 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9104 * gthr-posix.h (__gthread_active_init): Delete.
9105 (__gthread_active_p): Do activity check here.
9106 Don't include errno.h on hppa-hpux. Update comment.
9107 * gthr-posix95.h (__gthread_active_init): Delete.
9108 (__gthread_active_p): Do activity check here.
9109 Don't include errno.h on hppa-hpux. Update comment.
9110 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
9111 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
9112 add -lpthread when -mt or -pthread is specified.
9113 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
9114 (LINK_GCC_C_SEQUENCE_SPEC): Define.
9115 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
9116 (stublib.c, pthread_default_stacksize_np-stub.o,
9117 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
9118 $(T)libgcc_stub.a): Add methods.
9119 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
9120 (stublib.c, pthread_default_stacksize_np-stub.o,
9121 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
9122 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9123 pthread_mutex_unlock): New stubs.
9125 2010-08-22 Joseph Myers <joseph@codesourcery.com>
9127 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
9128 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
9130 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
9131 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
9132 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
9133 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
9134 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
9136 * cppspec.c: Include opts.h.
9137 (lang_specific_driver): Use cl_decoded_option structures.
9138 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
9139 * doc/tm.texi: Regenerate.
9140 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
9141 (driver_handle_option): Allow driver options needing no special
9143 (process_command): Decode options before call to
9144 lang_specific_driver. Pass decoded options to
9145 lang_specific_driver.
9146 * gcc.h (lang_specific_driver): Update prototype.
9147 * gccspec.c: Include opts.h.
9148 (lang_specific_driver): Use cl_decoded_option structures.
9149 * opts-common.c (option_ok_for_language, generate_option,
9150 generate_option_input_file): New.
9151 (decode_cmdline_option): Use option_ok_for_language.
9152 (decode_cmdline_options_to_array): Use generate_option_input_file.
9153 (handle_generated_option): Use generate_option.
9154 * opts.h (generate_option, generate_option_input_file): Declare.
9156 2010-08-22 Anatoly Sokolov <aesok@post.ru>
9158 * config/mips/mips.c (mips_override_options): Rename to...
9159 (mips_option_override): ...this. Make static.
9160 (TARGET_OPTION_OVERRIDE): Define.
9161 (mips_in_small_data_p): Update comment.
9162 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
9163 (FIXED_REGISTERS): Update comment.
9164 * config/mips/mips-protos.h (mips_override_options): Remove.
9166 2010-08-21 Olivier Hainque <hainque@adacore.com>
9168 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
9170 2010-08-21 Olivier Hainque <hainque@adacore.com>
9172 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
9173 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
9175 2010-08-20 Jan Hubicka <jh@suse.cz>
9177 * tree-pass.h (pass_ipa_cdtor_merge): New function.
9178 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
9180 (record_cdtor_fn): Move to ipa.c; do not test for
9182 (build_cdtor): Move to ipa.c; add code avoiding construction
9183 when target have ctors/dtors and there is only one ctor/dtor at given
9185 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
9186 sort; reverse order of constructors.
9187 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
9188 (cgraph_finalize_function): Do not call record_cdtor_fn.
9189 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
9190 (cgraph_build_static_cdtor): Move to ipa.c.
9191 * ipa.c: Include target.h and tree-iterator.h.
9192 (cgraph_build_static_cdtor, static_ctors, static_dtors,
9193 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
9194 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
9195 pass_ipa_cdtor_merge): New.
9196 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
9197 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
9200 2010-08-20 Jan Hubicka <jh@suse.cz>
9204 * cgraph.h (cgraph_only_called_directly_p,
9205 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
9207 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
9209 (cgraph_finalize_function): Static cdtors are reachable.
9210 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
9212 2010-08-20 Jan Hubicka <jh@suse.cz>
9214 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
9216 * lto-streamer-out.c (lto_output): Likewise.
9217 * passes.c (ipa_write_optimization_summaries): Initialize statement
9220 2010-08-20 Olivier Hainque <hainque@adacore.com>
9222 * tree.h (alias_diag_flags): New enum.
9223 (alias_pair): Add an 'emitted_diags' field.
9224 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
9225 (assemble_alias): Initialize emitted_diags of new pairs.
9227 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
9229 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
9230 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9231 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9232 (STACK_CHECK_PROTECT): Define.
9233 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
9234 (output_probe_stack_range): Likewise.
9235 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
9236 builtin stack checking is enabled.
9237 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
9238 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
9239 (probe_stack_range): New insn.
9241 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
9244 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
9247 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
9250 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9253 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
9254 to cover zero extension into 64-bit register.
9255 (*sse2_pextrw): Likewise.
9256 (*sse4_1_pextrd_zext): New insn.
9258 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
9260 revert r163410, partially revert r163267.
9261 * config/rs6000/darwin.h (LIB_SPEC): Remove.
9262 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
9265 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9268 * builtins.c (expand_builtin): Don't optimize away
9269 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
9271 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
9273 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
9274 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
9275 alternative 1 of operand 2.
9277 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9278 Paolo Bonzini <bonzini@gnu.org>
9280 * simplify-rtx.c (simplify_unary_operation_1): Optimize
9281 (sign_extend (zero_extend (...)) and
9282 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
9284 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9286 PR rtl-optimization/45353
9287 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
9288 after bb_note is a BARRIER.
9290 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
9292 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
9295 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9296 Michael Matz <matz@suse.de>
9298 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
9300 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9302 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
9303 (ggc_mark_roots): ...here.
9305 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9307 * vec.h (FOR_EACH_VEC_ELT): Define.
9309 * cfgloop.c: Likewise.
9310 * cfgloopmanip.c: Likewise.
9311 * cgraph.c: Likewise.
9312 * cgraphunit.c: Likewise.
9313 * combine.c: Likewise.
9314 * config/bfin/bfin.c: Likewise.
9315 * config/mips/mips.c: Likewise.
9316 * config/rs6000/rs6000.c: Likewise.
9317 * dbxout.c: Likewise.
9318 * df-scan.c: Likewise.
9319 * dominance.c: Likewise.
9321 * dwarf2out.c: Likewise.
9322 * except.c: Likewise.
9324 * function.c: Likewise.
9326 * genattr.c: Likewise.
9327 * ggc-common.c: Likewise.
9328 * gimplify.c: Likewise.
9329 * graphite-blocking.c: Likewise.
9330 * graphite-clast-to-gimple.c: Likewise.
9331 * graphite-dependences.c: Likewise.
9332 * graphite-interchange.c: Likewise.
9333 * graphite-poly.c: Likewise.
9334 * graphite-scop-detection.c: Likewise.
9335 * graphite-sese-to-poly.c: Likewise.
9336 * graphite.c: Likewise.
9337 * haifa-sched.c: Likewise.
9338 * ifcvt.c: Likewise.
9339 * implicit-zee.c: Likewise.
9340 * ipa-prop.c: Likewise.
9341 * ipa-struct-reorg.c: Likewise.
9343 * ira-build.c: Likewise.
9344 * ira-color.c: Likewise.
9345 * ira-emit.c: Likewise.
9346 * lambda-code.c: Likewise.
9347 * loop-invariant.c: Likewise.
9348 * loop-unroll.c: Likewise.
9349 * lower-subreg.c: Likewise.
9350 * lto-cgraph.c: Likewise.
9351 * lto-opts.c: Likewise.
9352 * lto-streamer-in.c: Likewise.
9353 * lto-streamer-out.c: Likewise.
9354 * lto-streamer.c: Likewise.
9355 * lto-symtab.c: Likewise.
9356 * matrix-reorg.c: Likewise.
9358 * predict.c: Likewise.
9359 * print-tree.c: Likewise.
9360 * sdbout.c: Likewise.
9361 * sel-sched-dump.c: Likewise.
9362 * sel-sched-ir.c: Likewise.
9363 * sel-sched.c: Likewise.
9365 * stor-layout.c: Likewise.
9366 * tree-cfg.c: Likewise.
9367 * tree-cfgcleanup.c: Likewise.
9368 * tree-chrec.c: Likewise.
9369 * tree-data-ref.c: Likewise.
9370 * tree-emutls.c: Likewise.
9371 * tree-inline.c: Likewise.
9372 * tree-into-ssa.c: Likewise.
9373 * tree-loop-distribution.c: Likewise.
9374 * tree-loop-linear.c: Likewise.
9375 * tree-mudflap.c: Likewise.
9376 * tree-outof-ssa.c: Likewise.
9377 * tree-parloops.c: Likewise.
9378 * tree-predcom.c: Likewise.
9379 * tree-pretty-print.c: Likewise.
9380 * tree-scalar-evolution.c: Likewise.
9381 * tree-ssa-live.c: Likewise.
9382 * tree-ssa-loop-im.c: Likewise.
9383 * tree-ssa-loop-ivcanon.c: Likewise.
9384 * tree-ssa-loop-ivopts.c: Likewise.
9385 * tree-ssa-loop-manip.c: Likewise.
9386 * tree-ssa-loop-niter.c: Likewise.
9387 * tree-ssa-loop-prefetch.c: Likewise.
9388 * tree-ssa-phiprop.c: Likewise.
9389 * tree-ssa-pre.c: Likewise.
9390 * tree-ssa-reassoc.c: Likewise.
9391 * tree-ssa-sccvn.c: Likewise.
9392 * tree-ssa-structalias.c: Likewise.
9393 * tree-ssa.c: Likewise.
9394 * tree-vect-data-refs.c: Likewise.
9395 * tree-vect-loop-manip.c: Likewise.
9396 * tree-vect-loop.c: Likewise.
9397 * tree-vect-patterns.c: Likewise.
9398 * tree-vect-slp.c: Likewise.
9399 * tree-vect-stmts.c: Likewise.
9400 * tree-vrp.c: Likewise.
9402 * value-prof.c: Likewise.
9403 * var-tracking.c: Likewise.
9404 * varasm.c: Likewise.
9405 * vmsdbgout.c: Likewise.
9407 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
9408 Richard Guenther <richard.guenther@gmail.com>
9410 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
9411 copy the src value and return a copy.
9412 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
9413 (C++ Volatiles): Adjust to describe C++ semantics only.
9415 2010-08-20 Joseph Myers <joseph@codesourcery.com>
9417 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
9419 * doc/tm.texi: Regenerate.
9420 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
9421 * df-scan.c (df_get_exit_block_use_set), reginfo.c
9422 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
9423 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
9424 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
9427 2010-08-20 Olivier Hainque <hainque@adacore.com>
9429 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
9430 an extra nop past a sibling call at the very end.
9432 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
9435 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
9438 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
9440 * target.def (function_arg, function_incoming_arg): Remove const
9441 qualifier on CUMULATIVE_ARGS parameter.
9442 * targhooks.h (default_function_arg, default_function_incoming_arg):
9444 * targhooks.c (default_function_arg, default_function_incoming_arg):
9446 * config/i386/i386.c (ix86_function_arg): Likewise.
9448 2010-08-19 Jakub Jelinek <jakub@redhat.com>
9451 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
9452 SIGN_EXTENDs or ZERO_EXTENDs.
9454 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
9457 * combine.c (combine_validate_cost): New arg I0. All callers changed.
9458 Take its cost into account if nonnull.
9459 (insn_a_feeds_b): New static function.
9460 (combine_instructions): Look for four-insn combinations.
9461 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
9462 them into account when computing all_adjacent and looking for other
9464 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
9465 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
9466 (try_combine): New arg I0. Handle four-insn combinations.
9467 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
9470 2010-08-19 Jason Merrill <jason@redhat.com>
9473 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
9475 (gimplify_modify_expr_rhs): Adjust.
9477 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
9479 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
9481 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
9482 * dominance.c (iterate_fix_dominators): Likewise.
9483 * dse.c (set_usage_bits): Likewise.
9484 (set_position_unneeded, record_store): Likewise.
9485 * gimple-fold.c (get_maxval_strlen): Likewise.
9486 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
9487 * ipa-inline.c (update_caller_keys): Likewise.
9488 * ipa-split.c (verify_non_ssa_vars): Likewise.
9489 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
9490 (close_type_exposed_parameter, close_type_full_escape): Likewise.
9491 (close_addressof_down): Likewise.
9492 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
9493 (setup_allocno_left_conflicts_size): Likewise.
9494 (ira_reassign_conflict_allocnos): Likewise.
9495 (ira_reassign_pseudos): Likewise.
9496 * ira-emit.c (change_loop): Likewise.
9497 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
9498 * lto-streamer-out.c (write_symbol): Likewise.
9499 * predict.c (expr_expected_value_1): Likewise.
9500 * regstat.c (regstat_bb_compute_ri): Likewise.
9501 * sel-sched.c (create_block_for_bookkeeping): Likewise.
9502 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
9503 * stmt.c (expand_case): Likewise.
9504 * tree-eh.c (emit_eh_dispatch): Likewise.
9505 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
9506 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
9508 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
9509 (rdg_build_components): Likewise.
9510 * tree-object-size.c (collect_object_sizes_for): Likewise.
9511 * tree-sra.c (convert_callers): Likewise.
9512 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
9513 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
9514 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
9516 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
9518 * config/i386/i386.md (*lea_1): Use P mode iterator.
9519 (lea add splitter): Also handle DImode operands.
9520 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
9521 predicate. Do not use ix86_lea_for_add_ok.
9522 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
9523 (lea ashift splitter): Also handle DImode operands.
9524 (DImode lea ashift splitter): Remove splitter.
9526 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
9528 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
9529 ix86_binary_operator_ok.
9531 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
9533 PR rtl-optimization/44691
9534 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
9537 2010-08-19 Ian Bolton <ian.bolton@arm.com>
9540 * config/arm/arm.c (arm_output_epilogue): Ensure that return
9541 value of size 1-3 is handled correctly.
9543 2010-08-19 Ian Bolton <ian.bolton@arm.com>
9545 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
9546 type for the conditional has wide enough range.
9548 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
9551 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
9552 ix86_binary_operator_ok.
9554 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
9556 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
9557 <default>: Swap operands 1 and 2 for alternative 2 to use existing
9558 code to output insn mnemonic. Fix comment.
9559 (*addsi_1_zext): Add r-r-0 alternative 1.
9560 <TYPE_LEA>: Split insn to lea.
9561 <default>: Handle alternative 1.
9562 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
9563 multi-level if_then_else RTX to set "type" attribute.
9564 <default>: Handle alternative 2.
9565 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
9566 Use cond RTX instead of multi-level if_then_else RTX to set
9568 <default>: Handle alternatives 2 and 4.
9569 (lea splitters): Update calls to ix86_lea_for_add_ok.
9571 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
9573 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
9575 2010-08-18 Richard Guenther <rguenther@suse.de>
9577 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
9578 use operand helpers.
9580 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
9583 * optabs.c (expand_bool_compare_and_swap): Expand pending
9584 pops before trying the optab.
9586 2010-08-18 Yao Qi <yao@codesourcery.com>
9589 * config/arm/arm.c (output_move_double): Fix typo generating
9590 instructions ('ldr'->'str').
9592 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9594 PR rtl-optimization/42575
9595 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
9598 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
9600 * config/arm/arm-protos.h (arm_expand_sync): New.
9601 (arm_output_memory_barrier, arm_output_sync_insn): New.
9602 (arm_sync_loop_insns): New.
9603 * config/arm/arm.c (FL_ARCH7): New.
9604 (FL_FOR_ARCH7): Include FL_ARCH7.
9606 (arm_print_operand): Support %C markup.
9607 (arm_legitimize_sync_memory): New.
9608 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
9609 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
9610 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
9611 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
9612 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
9613 (arm_process_output_sync_insn, arm_output_sync_insn): New.
9614 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
9615 * config/arm/arm.h (struct arm_sync_generator): New.
9616 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
9617 (TARGET_HAVE_MEMORY_BARRIER): New.
9618 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
9619 * config/arm/arm.md: Include sync.md.
9620 (UNSPEC_MEMORY_BARRIER): New.
9621 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
9622 (VUNSPEC_SYNC_OP):New.
9623 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
9624 (sync_result, sync_memory, sync_required_value): New attributes.
9625 (sync_new_value, sync_t1, sync_t2): Likewise.
9626 (sync_release_barrier, sync_op): Likewise.
9627 (length): Add logic to length attribute defintion to call
9628 arm_sync_loop_insns when appropriate.
9629 * config/arm/sync.md: New file.
9631 2010-08-17 Jakub Jelinek <jakub@redhat.com>
9633 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
9634 ENABLE_TREE_CHECKING.
9635 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
9638 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
9640 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
9641 or optimizing for size, always avoid lea if possible.
9643 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
9645 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
9647 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
9648 Dunmmy function with NULL return unless the target is
9649 OSX >= 10.6 (Darwin10).
9651 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
9653 * gcc.c (spec_function): Add remove-outfile.
9654 (remove_outfile_spec_function): New function.
9655 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
9656 * invoke.texi (replace-outfile): Document.
9658 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
9661 * reginfo.c (globalize_reg): Reject stack registers.
9663 2010-08-17 Richard Guenther <rguenther@suse.de>
9665 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
9666 list of conditional equivalences.
9667 (free_all_edge_infos): Adjust.
9668 (record_equivalences_from_incoming_edge): Likewise.
9669 (record_cond): Likewise.
9670 (build_and_record_new_cond): Likewise.
9671 (record_conditions): Likewise.
9672 (dom_opt_leave_block): Likewise.
9674 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
9676 * doc/invoke.texi (ms-extension): Add documentation.
9678 2010-08-17 Richard Guenther <rguenther@suse.de>
9680 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
9682 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
9685 * c-decl.c (diagnose_uninitialized_cst_member): New function.
9686 (finish_decl): Use it to issue a -Wc++-compat warning about
9687 uninitialized const field in struct or union.
9689 (finish_struct): Use strip_array_types.
9691 2010-08-17 Jakub Jelinek <jakub@redhat.com>
9693 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
9695 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
9696 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
9697 call block_nreverse here.
9698 (blocks_nreverse): Rename decl temporary to block.
9700 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
9702 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
9703 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
9704 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
9705 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
9706 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
9707 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
9708 thumb2_iorsi3): Delete.
9709 (orsi_notsi_si): No longer a named pattern.
9710 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
9711 * config/arm/predicates.md (shift_amount_operand): New.
9712 (mult_operator): New.
9713 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
9715 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
9717 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
9718 (not_shiftsi_compare0): Likewise, renamed from
9719 arm_notsi_shiftsi_compare0.
9720 (not_shiftsi_compare0_scratch): Likweise, renamed from
9721 arm_notsi_shiftsi_compare0_scratch.
9722 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
9723 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
9724 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
9725 so that the register alternative is disabled when the shift_operator
9726 is MULT. Use "M" as the constraint for constants.
9727 (arith_shiftsi splitter): Enable for TARGET_32BIT.
9728 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
9729 constraint for constants.
9730 (arith_shiftsi_compare0_scratch): Likewise.
9731 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
9732 Handle Thumb2 alternative.
9734 2010-08-16 Joseph Myers <joseph@codesourcery.com>
9736 * doc/options.texi (NoDriverArg): Document.
9737 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
9739 * opt-functions.awk (switch_flags): Handle NoDriverArg.
9740 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
9741 marking for CL_NO_DRIVER_ARG options when in the driver.
9742 * opts.h (CL_NO_DRIVER_ARG): Define.
9743 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
9744 CL_COMMON): Update values.
9746 2010-08-16 Joseph Myers <joseph@codesourcery.com>
9748 * common.opt: Add driver options.
9749 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
9750 * doc/options.texi (Driver, RejectDriver): Document.
9751 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
9752 print_prog_name, print_multi_directory, print_sysroot,
9753 print_multi_os_directory, print_multi_lib,
9754 print_sysroot_headers_suffix, report_times, combine_flag,
9755 use_pipes, wrapper_string): Remove.
9756 (save_switch, driver_unknown_option_callback,
9757 driver_wrong_lang_callback, driver_post_handling_callback,
9758 driver_handle_option): New.
9759 (spec_lang, last_language_n_infiles): Make file-scope static
9760 instead of local to process_command.
9761 (process_command): Use decode_cmdline_options_to_array and
9762 read_cmdline_option for option processing. Compute have_c in
9763 prescan of decoded options.
9764 * opt-functions.awk (switch_flags): Handle Driver and
9766 (var_type, var_type_struct): Handle Separate options as generating
9767 const char * variables.
9768 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
9769 CL_TARGET to be passed by caller if required.
9770 (decode_cmdline_options_to_array): Update comment.
9771 * opts.c (complain_wrong_lang): Handle options only valid for the
9773 (decode_options): Update call to decode_cmdline_options_to_array.
9774 (print_filtered_help): Ignore driver-only options.
9775 (print_specific_help): Ignore CL_DRIVER.
9776 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
9777 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
9778 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
9781 2010-08-16 Richard Guenther <rguenther@suse.de>
9783 * tree-cfg.c (verify_types_in_gimple_reference): Verify
9784 TARGET_MEM_REF a bit.
9785 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
9786 (create_mem_ref_raw): Always create TMR_OFFSET, store the
9787 alias pointer type via it.
9788 (copy_mem_ref_info): Adjust.
9789 (maybe_fold_tmr): Likewise.
9790 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
9791 (reference_alias_ptr_type): Likewise.
9792 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
9793 adjust documentation of TMR_OFFSET operand.
9794 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
9795 use the alias pointer type.
9796 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
9797 initialize mem attrs but the TMR itself.
9798 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
9800 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
9801 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
9802 (unshare_and_remove_ssa_names): Likewise.
9803 (copy_ref_info): Adjust.
9804 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
9805 TARGET_MEM_REF case.
9806 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
9808 * tree.h (TMR_ORIGINAL): Remove.
9809 * gimple.c (get_base_address): For TARGET_MEM_REF with a
9811 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
9813 (get_addr_base_and_unit_offset): Likewise.
9814 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
9816 (indirect_ref_may_alias_decl_p): Likewise.
9817 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
9819 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
9821 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
9822 with GCC version 4.6, the default setting (when not optimizing
9823 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
9824 been changed to -fomit-frame-pointer.
9826 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
9828 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
9829 Darwin10. Do not link libgcc.a for Darwin >= 9.
9831 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
9833 * doc/invoke.texi (Warning Options): Fix terminology and markup
9834 in the description of how unknown warning options are handled.
9836 2010-08-15 Ira Rosen <irar@il.ibm.com>
9838 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
9840 (vect_supportable_dr_alignment): Check alignment for basic blocks.
9841 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
9843 (vect_bb_vectorization_profitable_p): New function.
9844 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
9845 check if it's worthwhile to vectorize the basic block.
9847 2010-08-14 Anatoly Sokolov <aesok@post.ru>
9849 * reload.h (register_move_cost, memory_move_secondary_cost,
9850 secondary_reload_class): Adjust prototype.
9851 * rtl.h (reg_class_subset_p): Adjust prototype.
9852 * reload.c (secondary_reload_class): Change arguments type from
9853 enum reg_class to reg_class_t. Change result type to reg_class_t.
9854 * reginfo.c (register_move_cost, reg_class_subset_p): Change
9855 arguments type from enum reg_class to reg_class_t.
9856 (memory_move_secondary_cost): Change arguments type from
9857 enum reg_class to reg_class_t. Change type of saved_flags to
9860 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9862 (mips_cost): Remove.
9863 (struct mips_rtx_cost_data): Moved to mips.c.
9864 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
9865 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
9866 (mips_cost): Make static.
9867 (mips_canonicalize_move_class): Change argument type to reg_class_t.
9868 Change result type to reg_class_t.
9869 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
9870 type from enum reg_class to reg_class_t.
9871 (mips_register_move_cost): Make static. Change arguments
9872 type from enum reg_class to reg_class_t.
9873 (mips_memory_move_cost): New function.
9874 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9876 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
9878 PR rtl-optimization/43358
9879 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
9880 of a single hard register, using simplify_subreg_regno to decide
9881 what that register should be.
9883 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
9885 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
9886 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
9887 (loongson_pmull<V_suffix>): Rename to...
9888 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
9890 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
9892 * configure.ac: Enable -fomit-frame-pointer on darwin
9893 which support dwarf2.
9894 * config/i386/i386.c (override_options): Same.
9896 2010-08-13 Jie Zhang <jie@codesourcery.com>
9898 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
9900 2010-08-12 Joseph Myers <joseph@codesourcery.com>
9902 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
9905 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
9907 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
9908 up dot_prod pattern searching if a stmt is outside the loop.
9910 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
9911 Uros Bizjak <ubizjak@gmail.com>
9913 * config.gcc: Handle --enable-frame-pointer.
9915 * configure.ac: Add --enable-frame-pointer.
9916 * configure: Regenerated.
9918 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
9919 (override_options): If not configured with --enable-frame-pointer,
9920 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
9921 optimizing for size), -fasynchronous-unwind-tables and
9922 -maccumulate-outgoing-args by default.
9924 2010-08-12 Jakub Jelinek <jakub@redhat.com>
9926 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
9929 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
9930 -a overflows. Normalize the range.
9932 2010-08-12 Richard Guenther <rguenther@suse.de>
9934 PR tree-optimization/45232
9935 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
9936 for types with undefined overflow.
9937 (reassociate_bb): Allow re-associating of bit and min/max
9938 operations for types with undefined overflow.
9939 * tree-ssa-forwprop.c (associate_plusminus): New function.
9940 (tree_ssa_forward_propagate_single_use_vars): Call it.
9942 2010-08-12 Richard Guenther <rguenther@suse.de>
9944 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
9945 * tree-ssa-alias.c (get_ptr_info): Move ...
9946 * tree-ssanames.c (get_ptr_info): ... here. Initialize
9947 align and misalign fields conservatively.
9948 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
9949 derive alignment information.
9950 (evaluate_stmt): Derive alignment information from memory
9951 allocation functions.
9952 * tree.h (get_pointer_alignment): Make unsigned.
9953 * builtins.c (get_object_alignment): Use alignment information we
9954 have computed for pointers.
9955 (get_pointer_alignment): Likewise. Make conservative, return
9957 (expand_builtin_strlen): Adjust.
9958 (expand_builtin_memcmp): Likewise.
9959 (expand_builtin_strcmp): Likewise.
9960 (expand_builtin_strncmp): Likewise.
9961 (get_builtin_sync_mem): Use at least mode alignment.
9962 (fold_builtin_memset): Adjust.
9963 (fold_builtin_memory_op): Likewise.
9964 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
9965 information also dump pointer alignment knowledge.
9966 (dump_gimple_stmt): Likewise.
9968 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
9970 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
9971 (EMPTY_FIELD_BOUNDARY): Remove.
9972 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
9974 2010-08-12 Jakub Jelinek <jakub@redhat.com>
9977 * caller-save.c (save_call_clobbered_regs): Only swap notes with
9978 DEBUG_INSNs if n_regs_saved.
9980 2010-08-12 Wei Guozhi <carrot@google.com>
9983 * config/arm/arm.md (andsi3): Change to zero extension if possible.
9984 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
9986 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
9988 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
9990 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
9992 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9994 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
9995 the case removed in the previous patch, when the only phi argument
9996 is defined in the same loop as the phi node itself. Handle it
9997 separately from the invariant case by both propagating it outside
9998 the region and replacing the phi node with an assign.
10000 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10002 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
10003 constant phi nodes with one argument are is_gimple_min_invariant
10004 and SSA_NAME_IS_DEFAULT_DEF.
10006 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10008 * graphite-cloog-util.c (oppose_constraint):
10009 Extend loop counter's value range (CLOOG_ORG).
10010 (cloog_matrix_to_ppl_constraint): Same.
10011 (new_Constraint_System_from_Cloog_matrix): Same.
10012 * graphite-cloog-compat.h (matrix_num_type): New.
10014 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10016 * graphite.c (graphite_initialize): Do not initialize
10017 CLooG and initialize the Parma Polyhedra Library
10018 manually when using CLOOG_ORG.
10019 (graphite_finalize): Do not finalize CLooG and finalize
10020 the Parma Polyhedra Library manually when using CLOOG_ORG.
10021 * graphite-cloog-compat.h (cloog_initialize): Hide function
10022 when using CLOOG_ORG.
10023 (cloog_finalize): Same.
10025 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10027 * graphite-clast-to-gimple.c (free_scattering): Change
10028 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
10030 (build_cloog_prog): Same.
10031 * graphite-cloog-compat.h (cloog_domain): Removed.
10032 (cloog_scattering): New.
10033 (cloog_set_domain): Removed.
10034 (cloog_set_scattering): New.
10035 (cloog_next_domain): Removed.
10036 (cloog_next_scattering): New.
10037 (cloog_set_next_domain): Removed.
10038 (cloog_set_next_scattering): New.
10039 (CloogScatteringList): New.
10040 (CloogScattering): New.
10041 (cloog_scattering_free): New.
10042 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
10043 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
10046 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10048 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
10050 (set_cloog_options): Same.
10051 (print_clast_stmt): Same.
10052 (scop_to_clast): Same.
10053 (print_generated_program): Same.
10055 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
10056 (scop_to_clast): Extend with CloogState.
10057 * graphite-cloog-util.c: Include graphite-cloog-compat.h
10058 (new_Cloog_Domain_from_ppl_Polyhedron):
10059 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
10060 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
10061 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10062 * graphite-cloog-util.h (build_cloog_prog): Same.
10063 * graphite-cloog-copat.h (build_cloog_prog): New.
10065 (cloog_state_malloc): New.
10066 (cloog_state_free): New.
10067 (cloog_loop_malloc): New.
10068 (cloog_options_malloc): New.
10069 (cloog_statement_alloc): New.
10070 (cloog_domain_from_cloog_matrix): New.
10071 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
10072 (new_Cloog_Domain_from_ppl_Polyhedron): New.
10074 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10076 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
10077 type of NAME now depends on used CLooG version.
10078 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
10079 (gcc_type_for_clast_expr): Same.
10080 (print_clast_stmt): Replace pprint with clast_pprint.
10081 * graphite-cloog-compat.h: Provide compatibility macros for
10083 (clast_name_p): New.
10084 (clast_expr_term): New.
10085 (clast_expr_red): New.
10086 (clast_expr_bin): New.
10087 (clast_pprint): New.
10089 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10091 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
10092 compatible to newer CLooG releases (CLOOG_ORG).
10093 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
10094 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
10095 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
10096 (build_cloog_prog) : New.
10097 (cloog_program_extract_scalars): New.
10098 (cloog_program_scatter): New.
10100 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10102 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
10103 conditionally (CLOOG_ORG).
10104 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
10105 (cloog_statement_usr): New.
10106 (cloog_domain): Same.
10107 (cloog_set_domain): Same.
10108 (cloog_next_domain): Same.
10109 (cloog_set_next_domain): Same.
10110 (cloog_program_nb_scattdims): Same.
10111 (cloog_program_set_nb_scattdims): Same.
10112 (cloog_program_names): Same.
10113 (cloog_program_set_names): Same.
10114 (cloog_program_set_context): Same.
10115 (cloog_program_set_loop): Same.
10116 (cloog_program_blocklist): Same.
10117 (cloog_program_set_blocklist): Same.
10118 (cloog_program_scaldims): Same.
10119 (cloog_program_set_scaldims): Same.
10120 (cloog_names_nb_parameters): Same.
10121 (cloog_names_set_nb_parameters): Same.
10122 (cloog_names_parameters): Same.
10123 (cloog_names_set_parameters): Same.
10124 (cloog_names_set_nb_iterators): Same.
10125 (cloog_names_set_iterators): Same.
10126 (cloog_names_set_nb_scattering): Same.
10127 (cloog_names_set_scattering): Same.
10128 (cloog_statement_set_usr): Same.
10129 (cloog_loop_set_next): Same.
10130 (cloog_loop_set_domain): Same.
10131 (cloog_loop_set_block): Same.
10132 (cloog_block_list_next): Same.
10133 (cloog_block_list_set_next):
10134 (cloog_block_list_set_block): Same.
10136 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10138 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
10140 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
10141 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
10142 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
10143 when something has been changed.
10144 (rewrite_commutative_reductions_out_of_ssa): Same.
10146 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10148 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
10149 handle the case when def is in the sese region.
10150 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
10151 for invariant expressions.
10152 (rewrite_cross_bb_phi_deps): Removed.
10153 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
10154 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
10155 rewrite_cross_bb_phi_deps.
10157 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10159 * graphite-sese-to-poly.c
10160 (rewrite_commutative_reductions_out_of_ssa_loop): Call
10161 scev_analyzable_p only on is_gimple_reg
10163 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10165 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
10166 (rewrite_close_phi_out_of_ssa): Propagate constant values or
10167 parametric expressions outside the scop region.
10168 (rewrite_cross_bb_scalar_deps): Same.
10169 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
10171 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10173 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
10174 SSA_NAME_DEF_STMT only on SSA_NAMEs.
10176 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10178 * tree-scalar-evolution.c (instantiate_scev_name): Do not
10179 instantiate default definitions.
10181 2010-08-11 Vladimir Kargov <kargov@gmail.com>
10182 Sebastian Pop <sebastian.pop@amd.com>
10184 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
10185 (loop_exits_from_bb_p): New.
10186 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
10187 (loop_exits_from_bb_p): Declared.
10188 * graphite-scop-detection.c (scopdet_basic_block_info): Call
10189 loop_exits_to_bb_p.
10191 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10193 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
10194 extra parameter for the region. Call scev_analyzable_p.
10195 (rewrite_reductions_out_of_ssa): Update call to
10196 rewrite_close_phi_out_of_ssa.
10197 (rewrite_cross_bb_phi_deps): Same.
10198 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
10199 parameter for the region. Call scev_analyzable_p.
10200 (rewrite_commutative_reductions_out_of_ssa): Update call to
10201 rewrite_commutative_reductions_out_of_ssa_loop.
10203 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10205 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
10207 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10209 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
10210 SSA scalar phi nodes that can be scev_analyzable_p.
10212 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10214 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
10215 handle SSA_NAME_IS_DEFAULT_DEF.
10217 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10219 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
10221 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10223 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
10224 case non close-phi nodes with one argument.
10226 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10228 * sese.h (scev_analyzable_p): Scevs could be expressions without
10229 chrecs and still be scev_analyzable_p.
10231 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10233 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10235 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10237 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
10238 * cfgloop.h (struct loop): Remove single_iv field.
10239 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
10240 (scop_canonicalize_loops): Removed.
10241 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
10242 over all the loop phi nodes in loop->header.
10243 (build_poly_scop): Remove use of scop_canonicalize_loops.
10245 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10247 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
10248 handle GIMPLE_CALL.
10250 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10252 * tree-chrec.c (chrec_apply): Should only apply to the specified
10253 variable. Also handle multivariate chains of recurrences that
10254 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
10256 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10258 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
10259 (debug_clast_name_indexes_1): Removed.
10260 (debug_clast_name_indexes): Removed.
10261 (pbb_to_depth_to_oldiv): Removed.
10262 (build_iv_mapping): Replace the use of rename_map with iv_map.
10263 (translate_clast_user): Remove uses of rename_map. Allocate and
10265 (translate_clast_for_loop): Remove uses of rename_map.
10266 (translate_clast_for): Same.
10267 (translate_clast_guard): Same.
10268 (translate_clast): Same.
10270 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
10271 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
10272 * sese.c (set_rename): Now static.
10273 (rename_variables_in_stmt): Removed.
10274 (rename_uses): New.
10275 (is_parameter): Removed.
10277 (expand_scalar_variables_call): Removed.
10278 (expand_scalar_variables_ssa_name): Removed.
10279 (expand_scalar_variables_expr): Removed.
10280 (expand_scalar_variables_stmt): Removed.
10281 (expand_scalar_variables): Removed.
10282 (rename_variables): Removed.
10283 (remove_condition): Removed.
10284 (get_true_edge_from_guard_bb): Removed.
10285 (get_false_edge_from_guard_bb): Removed.
10286 (struct igp): Removed.
10287 (default_before_guard): Removed.
10288 (convert_for_phi_arg): Removed.
10289 (add_guard_exit_phis): Removed.
10290 (insert_guard_phis): Removed.
10291 (graphite_copy_stmts_from_block): Now also uses iv_map and a
10292 region. Do not copy conditions. Do not copy induction variables.
10294 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
10295 the translated statement. Use the iv_map for the induction
10297 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
10298 (set_rename): Removed declaration.
10299 (scev_analyzable_p): ...here.
10300 * tree-chrec.c (chrec_apply_map): New.
10301 * tree-chrec.h (chrec_apply_map): Declared.
10303 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10305 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
10306 insert_loop_close_phis.
10307 * sese.c (name_defined_in_loop_p): Removed.
10308 (expr_defined_in_loop_p): Removed.
10309 (alive_after_loop): Removed.
10310 (close_phi_not_yet_inserted_p): Removed.
10311 (struct alep): Removed.
10312 (add_loop_exit_phis): Removed.
10313 (insert_loop_close_phis): Removed.
10315 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10317 * graphite-cloog-util.c
10318 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
10320 (psct_scattering_dim_for_loop_depth): Same.
10322 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10324 * graphite-cloog-util.h: Added cloog.h.
10325 * graphite-blocking.c: Removed cloog.h.
10326 * graphite-dependences.c: Same.
10327 * graphite-interchange.c: Same.
10328 * graphite-poly.c: Same.
10329 * graphite-ppl.c: Same.
10330 * graphite-scop-detection.c: Same.
10331 * graphite-sese-to-poly.c:
10333 Removed graphite-clast-to-gimple.h.
10334 (check_poly_representation): Removed (unused).
10335 * graphite-sese-to-poly.h
10336 (check_poly_representation): Removed (unused).
10338 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10340 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
10341 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
10342 (graphite-cloog-util.o): New.
10343 (graphite-ppl.o): Added graphite-cloog-util.h.
10344 * graphite-clast-to-gimple.c:
10345 Added graphite-cloog-util.h to include statements.
10346 * graphite-cloog-util.c: New.
10347 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
10348 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10349 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10350 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10351 (insert_constraint_into_matrix): Same.
10352 (ppl_Constrain_System_number_of_constraints): Same.
10353 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
10354 (oppose_constraint): Same.
10355 (cloog_matrix_to_ppl_constraint): Same.
10356 (new_Constraint_System_from_Cloog_Matrix): Same.
10357 * graphite-cloog-util.h: New.
10358 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
10359 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10360 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10361 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10362 (insert_constraint_into_matrix): Same.
10364 Added graphite-cloog-util.h to include statements.
10365 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
10366 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10367 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10368 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10369 (insert_constraint_into_matrix): Same.
10370 (ppl_Constrain_System_number_of_constraints): Same.
10371 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
10372 (oppose_constraint): Same.
10373 (cloog_matrix_to_ppl_constraint): Same.
10374 (new_Constraint_System_from_Cloog_Matrix): Same.
10376 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
10377 graphite-cloog-util.h.
10378 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10379 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10380 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10381 (insert_constraint_into_matrix): Same.
10383 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10385 * graphite-clast-to-gimple.c
10386 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
10387 (precision_for_interval): Same.
10388 (gcc_type_for_interval): Same.
10389 (compute_type_for_level): Same.
10390 * graphite-interchange.c
10391 (lst_interchange_profitable_p): Same.
10393 (psct_scattering_dim_for_loop_depth): Same.
10395 (ppl_max_for_le_pointset): Same.
10396 (ppl_min_for_le_pointset): Same.
10398 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10400 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
10401 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
10403 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10405 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
10406 rewrite_close_phi_out_of_ssa.
10408 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10410 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
10412 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10414 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
10416 * sese.c (debug_rename_map): Same.
10417 (get_rename): Same.
10418 (set_rename): Same.
10419 (rename_variables_in_stmt): Same.
10420 (expand_scalar_variables_call): Same.
10421 (expand_scalar_variables_ssa_name): Same.
10422 (expand_scalar_variables_expr): Same.
10423 (expand_scalar_variables_stmt): Same.
10424 (expand_scalar_variables): Same.
10425 (rename_variables): Same.
10426 (graphite_copy_stmts_from_block): Same.
10427 (copy_bb_and_scalar_dependences): Same.
10429 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10431 * graphite-clast-to-gimple.c (copy_renames): Removed.
10432 (translate_clast_for): Do not call copy_renames.
10433 (translate_clast_guard): Same.
10435 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10437 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
10438 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
10439 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
10440 before rewrite_cross_bb_scalar_deps.
10442 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10444 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
10445 Early return in when flag_associative_math is not set.
10447 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10449 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
10450 of SSA copies on edges except for loop->latch.
10452 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10454 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
10455 Split out of rewrite_reductions_out_of_ssa.
10456 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
10458 * graphite.c (graphite_transform_loops): Call it.
10460 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10462 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
10464 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
10466 * dbgcnt.def (graphite_scop): New counter.
10467 * graphite.c: Include dbgcnt.h.
10468 (graphite_transform_loops): Use new counter to limit transformations.
10469 * Makefile.in (graphite.o): Depend on DBGCNT_H.
10471 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10473 * passes.c (init_optimization_passes): Add pass_graphite.
10474 Schedule a pass_copy_prop before pass_graphite_transforms.
10475 * timevar.def (TV_GRAPHITE): Declared.
10476 * tree-pass.h (pass_graphite): Declared.
10477 * tree-ssa-loop.c (pass_graphite): New.
10479 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10481 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
10482 Remove calls to rename_nb_iterations and rename_sese_parameters.
10483 * graphite-clast-to-gimple.h (gloog): Update declaration.
10484 * graphite.c (graphite_transform_loops): Update call to gloog.
10485 * sese.c (rename_variables_in_expr): Removed.
10486 (rename_nb_iterations): Removed.
10487 (rename_sese_parameters): Removed.
10488 * sese.h (rename_nb_iterations): Removed.
10489 (rename_sese_parameters): Removed.
10491 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10493 * graphite-clast-to-gimple.c (gloog): Remove call to
10494 sese_adjust_liveout_phis.
10495 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
10496 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
10497 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
10498 rewrite_phi_out_of_ssa.
10499 * sese.c (get_vdef_before_sese): Removed.
10500 (sese_adjust_vphi): Removed.
10501 (sese_adjust_liveout_phis): Removed.
10502 * sese.h (sese_adjust_liveout_phis): Removed.
10504 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10506 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
10507 argument for the place after which to insert the out of SSA copy.
10508 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
10509 (rewrite_phi_out_of_ssa): Same.
10510 (rewrite_cross_bb_scalar_deps): Same.
10511 (insert_copyout): Removed.
10512 (insert_copyin): Removed.
10513 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
10514 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
10517 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10519 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
10520 (rewrite_reductions_out_of_ssa): Same.
10521 (rewrite_commutative_reductions_out_of_ssa): Same.
10522 (build_poly_scop): Do not call these functions.
10523 * graphite-sese-to-poly.h (build_poly_scop): Declared.
10524 (rewrite_reductions_out_of_ssa): Declared.
10525 (rewrite_commutative_reductions_out_of_ssa): Declared.
10526 * graphite.c (graphite_transform_loops): Call on every scop
10527 rewrite_commutative_reductions_out_of_ssa before calling
10528 rewrite_reductions_out_of_ssa and build_scop_bbs.
10530 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10532 * graphite-dependences.c (dot_deps): Make system call to dotty run
10534 (dot_deps_stmt): Same.
10535 * graphite-poly.c (dot_lst): Same.
10537 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10539 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
10540 phi_arg_in_outermost_loop.
10541 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
10542 (remove_invariant_phi): Same.
10544 2010-08-11 Anatoly Sokolov <aesok@post.ru>
10546 * target.def (output_addr_const_extra): New hook.
10547 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
10548 * doc/tm.texi: Regenerate.
10549 * targhooks.c (default_asm_output_addr_const_extra): New function.
10550 * targhooks.h (default_asm_output_addr_const_extra): Declare.
10551 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
10554 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10555 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
10556 * config/i386/i386.h (output_addr_const_extra): Rename to...
10557 (i386_asm_output_addr_const_extra): ...this. Make static.
10558 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10560 2010-08-11 Richard Henderson <rth@redhat.com>
10562 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
10564 2010-08-11 Nick Clifton <nickc@redhat.com>
10566 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
10567 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
10568 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
10569 stormy16-lib2-cmpsi.c.
10571 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
10574 2010-08-11 Joseph Myers <joseph@codesourcery.com>
10576 * opts.h (struct cl_option_handler_func): Make handler take
10577 cl_decoded_option structure as parameter, not individual elements.
10578 (struct cl_option_handlers): Make callbacks take cl_decoded_option
10579 structure as parameter, not individual elements.
10580 (handle_option): Take cl_decoded_option structure as parameter,
10581 not individual elements.
10582 (handle_generated_option): Declare.
10583 * opts-common.c (handle_option): Take cl_decoded_option structure
10584 as parameter, not individual elements. Update calls to callback
10585 and handler functions.
10586 (handle_generated_option): New.
10587 (read_cmdline_option): Update calls to callback functions and
10589 * opts.c (common_handle_option, complain_wrong_lang,
10590 unknown_option_callback, post_handling_callback,
10591 lang_handle_option, target_handle_option): Take cl_decoded_option
10592 structure as parameter, not individual elements.
10593 (lang_handle_option, target_handle_option, common_handle_option):
10594 Assert option has at most one argument.
10595 (enable_warning_as_error): Call handle_generated_option instead of
10596 handle_option. Do not pass -Werror argument as argument of
10599 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10601 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
10602 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
10603 (SUBWORD_BOOL_CAS): Likewise.
10604 (SUBWORD_SYNC_OP): Likewise.
10605 (SUBWORD_TEST_AND_SET): Likewise.
10606 (FETCH_AND_OP_WORD): Parenthesise INF_OP
10607 (SUBWORD_SYNC_OP): Likewise.
10608 (OP_AND_FETCH_WORD): Likewise.
10610 2010-08-10 Xinliang David Li <davidxl@google.com>
10612 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
10613 compute max/min offset in address.
10615 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
10617 * ira-live.c: Include sbitmap.h.
10618 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
10619 Compress live ranges even more.
10621 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10623 * coverage.c (ctr_labels): Delete.
10625 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
10628 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
10629 test here from arm_gen_load_multiple_1.
10630 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
10631 multiple_operation_profitable_p.
10633 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10635 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
10636 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
10638 2010-08-10 Richard Henderson <rth@redhat.com>
10640 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
10641 after saving registers. Assert that SSE registers are only saved
10642 with a sufficiently aligned frame.
10643 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
10644 remove stack_realign_fp handling.
10645 (ix86_expand_prologue): Save int registers before stack_realign_fp,
10646 and do not mark the stack alignment as frame related.
10647 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
10649 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
10650 saves when re-aligning the stack.
10652 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10654 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
10655 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
10656 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
10658 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10660 * dwarf2out.c (struct die_struct): Move die_tag to the end.
10662 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
10664 * config/arm/iterators.md: New file.
10665 * config/arm/arm.md: Include iterators.md.
10666 (QHSI): Move to new file.
10667 (LTUGEU, cnb, optab, ior_xor): Likewise.
10668 * config/arm/iwmmxt.md (VMMX): Move to new file.
10669 (VSHFT, MMX_char): Likewise.
10670 * config/arm/neon.md (VD): Move to new file.
10671 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
10672 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
10673 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
10674 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
10675 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
10676 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
10677 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
10678 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
10679 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
10680 (Is_d_reg, V_mode_nunits): Likewise.
10681 * config/arm/vec-common.md (VALL): Move to new file.
10682 (VALLW, VINT, VINTW): Likewise.
10684 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
10686 PR middle-end/45182
10687 * combine.c (make_compound_operation): Don't try to convert
10688 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
10690 2010-08-10 Richard Guenther <rguenther@suse.de>
10692 * tree.h (get_object_alignment): Adjust prototype.
10693 * builtins.c (get_object_alignment): Return unsigned int,
10694 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
10695 and TARGET_MEM_REF properly.
10696 (get_pointer_alignment): Adjust.
10697 * emit-rtl.c (get_mem_align_offset): Adjust comment.
10698 (set_mem_attributes_minus_bitpos): Adjust.
10699 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
10701 2010-08-10 Richard Guenther <rguenther@suse.de>
10703 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
10704 (copy_prop_visit_assignment): Simplify.
10705 (copy_prop_visit_stmt): Also visit assignments from
10707 (copy_prop_visit_phi_node): Use operand_equal_p.
10709 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10711 * ipa-split.c (find_split_points): Free stack.
10713 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10715 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
10716 * tree.c (tree_node_kind): Delete corresponding entries.
10718 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
10720 * alias.c (may_alias_p): Remove unused ret.
10722 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
10724 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
10725 alias_sets_conflict_p.
10726 (walk_mems_1): Moved from alias.c.
10727 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
10729 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
10730 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
10731 * alias.c (walk_mems_2): Moved to ddg.c.
10732 (walk_mems_1): Ditto.
10733 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
10735 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
10737 *(may_alias_p): New function to check whether two memory expression
10738 may alias or not. Currently used in buidling inter-iteration memory
10740 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
10741 (insn_alias_sets_conflict_p): Removed
10742 *rtl.h (may_alias_p): New function prototype.
10744 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10746 * tree.c (nreverse): Assert that we don't have a BLOCK.
10748 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10750 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
10751 * config/arm/arm.c (arm_get_pcs_model): Likewise.
10752 * config/avr/avr.c (init_cumulative_args): Likewise.
10753 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10754 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10755 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
10756 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
10757 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
10758 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10759 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10760 * dwarf2out.c (gen_subprogram_die): Likewise.
10761 * function.c (allocate_struct_function): Likewise.
10762 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
10763 (deserves_ellipsis): Delete.
10765 2010-08-09 Richard Guenther <rguenther@suse.de>
10767 * tree-ssa-copy.c (cached_last_copy_of): Remove.
10768 (valueize_val): New function.
10769 (get_last_copy_of): Remove.
10770 (set_copy_of_val): Simplify.
10771 (dump_copy_of): Likewise.
10772 (copy_prop_visit_cond_stmt): Use valueize_val.
10773 (copy_prop_visit_phi_node): Properly handle unvisited names.
10774 Drop code managing copy-of chains.
10775 (init_copy_prop): Adjust.
10776 (fini_copy_prop): Likewise.
10777 (execute_copy_prop): Remove obsolete comment.
10779 2010-08-09 Richard Guenther <rguenther@suse.de>
10781 PR middle-end/44632
10782 * function.c (gimplify_parameters): Do not clear addressable
10783 bit of the original parameter.
10785 2010-08-09 Richard Guenther <rguenther@suse.de>
10787 PR middle-end/45212
10788 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
10789 alignment from MEM_REF offset only if we took it from the
10792 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
10794 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
10796 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10798 * c-tree.h (build_arg_info): Declare.
10799 * c-decl.c (build_arg_info): Define.
10800 (get_parm_info): Call it. Delete initialization code.
10801 * c-parser.c (c_parser_parms_declarator): Likewise.
10802 (c_parser_parms_list_declaractor): Likewise.
10804 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10806 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
10807 (struct c_arg_info): Change type of tags field.
10808 * c-decl.c (grokdeclarator): Update for changed type of tags field.
10809 (get_parm_info): Likewise.
10810 (store_parm_decls_newstyle): Likewise.
10812 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10814 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
10815 (branch_island_list): Delete.
10816 (branch_islands): Declare.
10817 (add_compiler_branch_island): Adjust for branch_islands instead of
10818 branch_island_list.
10819 (macho_branch_islands): Likewise.
10820 (no_previous_def): Likewise.
10821 (get_prev_label): Likewise.
10823 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10826 * gthr-posix.h (__gthread_start): Delete.
10827 (__gthread_active_init): Use pthread_default_stacksize_np instead of
10828 pthread_create to determine if hpux pthreads are active.
10829 * gthr-posix95.h (__gthread_start): Delete.
10830 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
10832 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
10834 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
10835 _WIN64 not expanded.
10837 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
10838 H.J. Lu <hongjiu.lu@intel.com>
10841 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
10842 to output 32bit SFmode immediate as 8 byte sign extended value.
10844 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10846 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
10847 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
10848 (SUBWORD_BOOL_CAS): Likewise.
10849 (SUBWORD_SYNC_OP): Likewise.
10850 (SUBWORD_TEST_AND_SET): Likewise.
10851 (FETCH_AND_OP_WORD): Parenthesise INF_OP
10852 (SUBWORD_SYNC_OP): Likewise.
10853 (OP_AND_FETCH_WORD): Likewise.
10855 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10857 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
10858 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
10859 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
10860 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
10862 (cortex_a9_sched_adjust_cost): New function.
10863 (xscale_sched_adjust_cost): New function.
10864 * config/arm/arm-protos.h (struct tune_params): New field
10866 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
10868 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
10871 * config/sparc/sparc.c (function_arg_advance): Always take into account
10872 the padding, if any.
10874 2010-08-06 Richard Guenther <rguenther@suse.de>
10876 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
10877 (dump_lattice_value): Dump it.
10878 (get_default_value): Adjust.
10879 (get_constant_value): Likewise.
10880 (set_value_varying): Likewise.
10881 (set_lattice_value): Make sure to not go up the lattice
10882 with bitwise constant values.
10883 (get_value_for_expr): Handle ADDR_EXPRs.
10884 (value_to_double_int): New function.
10885 (get_value_from_alignment): Likewise.
10886 (do_dbg_cnt): Adjust.
10887 (ccp_lattice_meet): Handle partially constant values.
10888 (bit_value_unop_1): New function.
10889 (bit_value_binop_1): Likewise.
10890 (bit_value_unop): Likewise.
10891 (bit_value_binop): Likewise.
10892 (evaluate_stmt): Track partially constant values if
10893 flag_tree_bit_ccp is set.
10894 (ccp_fold_stmt): Dump if we folded a predicate.
10895 (ccp_visit_stmt): Adjust.
10896 * common.opt (ftree-bit-ccp): New flag.
10897 * doc/invoke.texi (ftree-bit-ccp): Document.
10898 * opts.c (decode_options): Enable bit-CCP at -O1.
10900 2010-08-06 Alan Modra <amodra@gmail.com>
10902 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
10903 and -mrelocatable-lib description.
10905 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
10907 From Martin Thuresson <martint@google.com>
10908 * postreload.c (reload_cse_simplify_operands): Use
10909 SET_REGNO_RAW instead of SET_REGNO.
10910 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
10912 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
10913 instead of SET_REGNO.
10914 * rtl.h (SET_REGNO_RAW): New macro.
10916 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
10918 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
10919 computations. Fix formatting issues.
10920 (num_sign_bit_copies1): Likewise.
10921 (canonicalize_condition): Likewise.
10923 2010-08-05 Richard Henderson <rth@redhat.com>
10925 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
10926 (floor_log2): Use clz_hwi.
10927 (exact_log2): Use ctz_hwi.
10928 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
10929 * builtins.c (fold_builtin_bitop): Use them.
10930 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10931 * combine.c (get_pos_from_mask): Use ctz_hwi.
10932 * double-int.c (double_int_ctz): Likewise.
10933 * explow.c (force_reg): Likewise.
10934 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
10936 2010-08-05 Richard Henderson <rth@redhat.com>
10939 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
10940 the alignment constant is properly sign-extended.
10942 2010-08-05 Richard Guenther <rguenther@suse.de>
10944 * expr.c (store_expr): Use emit_block_move only if both
10945 source and target are MEMs. Use store_bit_field if only
10946 the target is a MEM.
10948 2010-08-05 Richard Henderson <rth@redhat.com>
10951 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
10952 (INCOMING_RETURN_ADDR_RTX): Likewise.
10953 (dwarf2out_do_frame): Remove conditional compilation.
10954 (dwarf2out_frame_init): Likewise.
10956 2010-08-05 Nicolas Setton <setton@adacore.com>
10958 * gcov.c (flag_display_progress): New static variable.
10959 (main): Display progress info on standard output if requested.
10960 (options): Add -d/--display-progress.
10961 (print_usage): Print them.
10962 (process_args): Handle them.
10963 * doc/gcov.texi: Document them.
10965 2010-08-05 Martin Jambor <mjambor@suse.cz>
10967 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
10968 (ipcp_insert_stage): Redirect only edges not flagged with
10969 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
10970 discovered constants.
10972 2010-08-05 Martin Jambor <mjambor@suse.cz>
10974 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
10975 (struct ipa_param_descriptor): New fields types and
10976 cannot_devirtualize.
10977 (ipa_param_cannot_devirtualize_p): New function.
10978 (ipa_param_types_vec_empty): Likewise.
10979 (ipa_make_edge_direct_to_target): Declare.
10980 * ipa-cp.c: Fixed first stage driver name in initial comment,
10981 described devirtualization there too.
10982 (ipcp_analyze_node): Call ipa_analyze_params_uses.
10983 (ipcp_print_all_lattices): Print devirtualization info.
10984 (ipa_set_param_cannot_devirtualize): New function.
10985 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
10987 (ipcp_init_stage): Merged into...
10988 (ipcp_generate_summary): ...its caller.
10989 (ipcp_change_tops_to_bottom): Also process type lists.
10990 (ipcp_add_param_type): New function.
10991 (ipcp_copy_types): Likewise.
10992 (ipcp_propagate_types): Likewise.
10993 (ipcp_propagate_stage): Also propagate types.
10994 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
10995 Also return true if propagated types require it.
10996 (ipcp_update_callgraph): Dump redirection info.
10997 (ipcp_process_devirtualization_opportunities): New function.
10998 (ipcp_const_param_count): Include known type information.
10999 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
11000 on new node. Fixed formatting.
11001 * ipa-prop.c (make_edge_direct_to_target): Renamed to
11002 ipa_make_edge_direct_to_target and changed all callers. Made
11003 externally visible.
11004 (ipa_node_duplication_hook): Duplicate types vector.
11005 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
11006 redirect outgoing calls for which we can't get a decl from the
11007 statement. Check that we can get a decl from the call statement.
11008 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11009 ipa_analyze_params_uses only when ipa-cp is disabled.
11010 * tree-inline.c (get_indirect_callee_fndecl): Removed.
11011 (expand_call_inline): Do not call get_indirect_callee_fndecl.
11012 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
11013 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
11015 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11017 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
11018 temporary. Emit move from temporary to accum, so REG_EQUAL note will
11019 be attached to this insn in correct mode.
11021 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11023 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
11024 using REGNO of base_reg directly.
11026 2010-08-05 Jie Zhang <jie@codesourcery.com>
11028 PR tree-optimization/45144
11029 * tree-sra.c (type_consists_of_records_p): Return false
11030 if the record contains bit-field.
11032 2010-08-04 Richard Henderson <rth@redhat.com>
11034 * config/i386/i386.c (struct ix86_frame): Remove padding and
11035 to_allocate members.
11036 (ix86_compute_frame_layout): Don't store them.
11037 (ix86_can_use_return_insn_p): Use a more direct and more obviously
11038 correct condition for the position of the stack pointer.
11039 (ix86_expand_prologue): Compute remaining stack allocation based
11040 on the ultimate stack pointer offset.
11041 (ix86_expand_epilogue): Use more obvious expressions testing for
11042 the stack pointer already pointing to the saved registers.
11044 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
11045 duplication deconstructing the frame pointer. Simplify
11046 deallocation of the local stack frame.
11048 * reg-notes.def (CFA_EXPRESSION): New.
11049 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11050 (dwarf2out_frame_debug_cfa_expression): New.
11051 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
11053 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
11054 * config/i386/i386.c (ix86_expand_prologue): Set it.
11055 (ix86_expand_epilogue): Clear it.
11056 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
11057 context, add REG_CFA_EXPRESSION notes.
11059 * config/i386/i386.h (struct machine_frame_state): Rename from
11060 machine_cfa_state. Add members tracking SP and FP regardless
11061 of the current CFA register.
11062 (ix86_cfa_state): Remove.
11063 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
11064 and sse_reg_save_offset members.
11065 (ix86_compute_frame_layout): Set them.
11066 (gen_push): Increment sp_offset too.
11067 (choose_baseaddr_len, choose_baseaddr): New.
11068 (ix86_emit_save_reg_using_mov): New.
11069 (ix86_emit_save_regs_using_mov): Use it.
11070 (ix86_emit_save_sse_regs_using_mov): Likewise.
11071 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
11072 compare vs the saved red_zone_offset.
11073 (pro_epilogue_adjust_stack): Adjust sp_offset.
11074 (ix86_adjust_stack_and_probe): Likewise.
11075 (ix86_expand_prologue): Set up, use, and validate the new
11076 frame_state_info members. Use gen_frame_mem.
11077 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
11078 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
11079 new frame_state_info members.
11080 (ix86_emit_leave): Likewise.
11081 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
11082 out-of-range stack pointer offsets here.
11083 (ix86_emit_restore_sse_regs_using_mov): Likewise.
11084 (ix86_expand_epilogue): Use and validate the new frame_state_info
11085 members. Break up and simplify the logic selecting the
11086 restore_regs_via_mov code path. Ensure that there will be no
11087 out-of-range stack pointer offsets.
11089 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
11091 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
11092 argument name to reflect the expected tree; fix indentation.
11093 (ix86_asm_output_function_label): Output the entire 32-bit
11094 ms_hook here as bytes ...
11095 (ix86_expand_prologue): ... not here as insns. Attach the
11096 unwind info for the ms_hook to a blockage insn.
11097 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
11098 (ix86_ms_bitfield_layout_p): Fix indentation.
11099 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
11101 * config/i386/i386.c (ix86_using_red_zone): New.
11102 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
11103 ix86_expand_prologue, ix86_force_to_memory): Use it.
11105 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
11106 saving the int registers.
11108 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
11109 and DWARF2_UNWIND_INFO conditional compilation.
11111 2010-08-04 Richard Henderson <rth@redhat.com>
11114 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
11115 an is_naming_typedef_decl.
11117 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
11119 PR rtl-optimization/45162
11120 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
11121 * dce.c (word_dce_process_block): Likewise.
11123 2010-08-04 Steve Ellcey <sje@cup.hp.com>
11126 * config/ia64/constraints.md (Z): New.
11127 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
11128 (xfreg_or_signed_fp01_operand): New.
11129 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
11130 with fr_reg_or_signed_fp01_operand and constraint G with Z.
11135 (adddf3_trunc): Ditto.
11137 (*subdf3_trunc): Ditto.
11139 (*madddf4_trunc): Ditto.
11141 (*msubdf4_trunc): Ditto.
11142 (addxf3): Replace xfreg_or_fp01_operand with
11143 xfreg_or_signed_fp01_operand and constraint G with Z.
11144 (*addxf3_truncsf): Ditto.
11145 (*addxf3_truncdf): Ditto.
11147 (*subxf3_truncsf): Ditto.
11148 (*subxf3_truncdf): Ditto.
11150 (*maddxf4_truncsf): Ditto.
11151 (*maddxf4_truncdf): Ditto.
11153 (*msubxf4_truncsf): Ditto.
11154 (*msubxf4_truncdf): Ditto.
11156 2010-08-04 Richard Guenther <rguenther@suse.de>
11158 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
11159 if either alias-set is zero.
11161 2010-08-04 Richard Guenther <rguenther@suse.de>
11163 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
11164 * tree-ssa-ccp.c: ... here.
11165 * tree-ssa-copy.c: ... and here.
11166 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
11167 value_range_t): Move ...
11168 * tree-vrp.c: ... here.
11169 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
11170 (substitute_and_fold): Adjust prototype.
11171 * tree-ssa-propagate.c (replace_uses_in): Adjust.
11172 (replace_phi_args_in): Likewise.
11173 (substitute_and_fold): Take callback to query lattice instead
11174 of pointer to lattice. Replace SSA name defs with lattice
11176 * tree-ssa-ccp.c (ccp_finalize): Adjust.
11177 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
11178 (get_value): New function.
11179 (fini_copy_prop): Adjust.
11180 * tree-vrp.c (vrp_finalize): Adjust.
11182 2010-08-04 Richard Guenther <rguenther@suse.de>
11184 PR middle-end/45176
11185 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
11186 points-to set for original MEM_REF.
11188 2010-08-04 Richard Guenther <rguenther@suse.de>
11190 * tree-ssa-ccp.c (get_constant_value): New function.
11191 (get_rhs_assign_op_for_ccp): Remove.
11192 (valueize_op): New function.
11193 (ccp_fold): Use get_constant_value and valueize_op.
11194 (fold_const_aggregate_ref): Likewise.
11195 (ccp_fold_stmt): Likewise.
11196 (visit_assignment): Simplify.
11198 2010-08-04 Richard Guenther <rguenther@suse.de>
11200 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
11201 * double-int.h (double_int_ctz): Declare.
11202 * double-int.c (double_int_ctz): New function.
11204 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
11206 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
11208 picochip_expand_movmemhi : Expand movmem pattern.
11209 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
11211 * config/picochip/picochip.md (movmemhi) : New pattern.
11213 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
11215 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
11217 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
11219 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
11220 NEG as operand of a MULT by merging it with the other operand.
11221 * combine.c (make_compound_operation): Use trunc_int_for_mode when
11222 generating a MULT with constant. Canonicalize PLUS and MINUS involving
11224 * config/arm/constraints.md (M): Examine only 32 bits of a
11226 * config/arm/predicates.md (power_of_two_operand): Likewise.
11228 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11230 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
11233 2010-08-03 Jan Hubicka <jh@suse.cz>
11235 * ipa-split.c (struct split_point): Add split_part_set_retval.
11236 (find_retval): Forward declare.
11237 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
11238 (consider_split): Compute current->split_part_set_retval.
11239 (visit_bb): Do not look into return value.
11240 (split_function): Handle !split_part_set_retval
11242 2010-08-03 Martin Jambor <mjambor@suse.cz>
11244 * tree-sra.c (completely_scalarize_record): New parameter REF, create
11245 its own access->expr intead of using build_ref_for_offset.
11247 2010-08-03 Joseph Myers <joseph@codesourcery.com>
11249 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
11250 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
11251 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
11252 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
11253 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
11254 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
11255 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
11256 DEFAULT_SWITCH_TAKES_ARG.
11257 * config/rx/rx.opt (-patch=): Remove option.
11258 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
11259 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
11260 * doc/invoke.texi (RX Options): Remove -patch=.
11261 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
11262 (option_map): Remove --profile-blocks, --quiet and --silent.
11264 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
11266 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
11267 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
11268 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
11269 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
11270 Update calls to ix86_expand_compare and ix86_expand_branch.
11271 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
11272 ix86_expand_compare.
11273 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
11274 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
11276 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
11277 and ix86_compare_op1. Update calls to ix86_expand_compare.
11278 (ix86_expand_int_movcc): Ditto.
11279 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
11280 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
11281 (ix86_expand_setcc): Ditto.
11282 (ix86_expand_compare): Remove prototype.
11283 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
11284 ix86_compare_op0 and ix86_compare_op1. Update calls
11285 to ix86_expand_branch to directly pass operands[1] and operands[2].
11286 (cbranchxf4): Ditto.
11287 (cbranch<MODEF:mode>4): Ditto.
11288 (cbranchcc4): Ditto.
11289 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
11290 Update calls to ix86_expand_setcc to directly pass operands[2] and
11292 (cstorexf4): Ditto.
11293 (cstore<MODEF:mode>4): Ditto.
11294 (cstorecc4): Ditto.
11296 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
11299 * caller-save.c (save_call_clobbered_regs): Remove regs from
11300 hard_regs_saved when they are set.
11302 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
11305 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
11308 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
11310 * common.opt (ftree-loop-distribute-patterns): New.
11311 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
11312 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
11314 * tree-data-ref.c (stores_zero_from_loop): New.
11315 * tree-data-ref.h (stores_zero_from_loop): Declared.
11316 * tree-loop-distribution.c (tree_loop_distribution): Call
11317 stores_zero_from_loop.
11318 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
11320 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
11322 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
11325 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
11326 * config/arm/arm.c (thumb1_code): New variable.
11327 (arm_override_options): Set it.
11328 (thumb1_final_prescan_insn): Keep track of condition code status.
11329 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
11330 jumps that depend on them.
11331 * config/arm/arm.h (thumb1_code): Declare variable.
11332 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
11333 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
11335 (CC_STATUS_INIT): New macro.
11336 * config/arm/constraints.md (Pd): New constraint.
11337 * config/arm/predicates.md (noov_comparison_operator): New predicate.
11338 * config/arm/arm.md (is_thumb1): New define_attr.
11339 (conds): Set default to "clob" when generating Thumb1 code.
11340 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
11341 code are set. Use two-operand assembly syntax.
11342 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
11344 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
11345 codes are set. Use two-operand assembly syntax.
11346 (zero_extendhisi splitter): Remove constraints.
11347 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
11348 thumb1_movsf_insn): Set conds attribute as appropriate.
11349 (cbranchsi4_insn): Use condition code status from struct
11350 machine_function to determine whether the comparison can be eliminated.
11351 Discourage the alternative using high registers.
11352 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
11353 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
11354 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
11355 subsi3_cbranch): Delete.
11356 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
11357 one subtract and one cbranch insn.
11359 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
11360 thumb2_movdf_soft_insn): Delete patterns.
11361 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
11362 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
11363 (pool_range, neg_pool_range): Use them to define defaults.
11364 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
11365 and allow for TARGET_32BIT.
11368 * config/arm/arm.h (arm_regs_in_sequence): Declare.
11369 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
11370 load_multiple_sequence, store_multiple_sequence): Delete
11372 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
11374 * config/arm/ldmstm.md: New file.
11375 * config/arm/arm.c (arm_regs_in_sequence): New array.
11376 (load_multiple_sequence): Now static. New args SAVED_ORDER,
11377 CHECK_REGS. All callers changed.
11378 If SAVED_ORDER is nonnull, copy the computed order into it.
11379 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
11380 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
11381 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
11382 If SAVED_ORDER is nonnull, copy the computed order into it.
11383 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
11384 like REGS. Handle Thumb mode.
11385 (arm_gen_load_multiple_1): New function, broken out of
11386 arm_gen_load_multiple.
11387 (arm_gen_store_multiple_1): New function, broken out of
11388 arm_gen_store_multiple.
11389 (arm_gen_multiple_op): New function, with code from
11390 arm_gen_load_multiple and arm_gen_store_multiple moved here.
11391 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
11392 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
11394 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
11395 * config/arm/predicates.md (commutative_binary_operator): New.
11396 (load_multiple_operation, store_multiple_operation): Handle more
11397 variants of these patterns with different starting offsets. Handle
11399 * config/arm/arm.md: Include "ldmstm.md".
11400 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
11401 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
11402 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
11403 peepholes): Delete.
11404 * config/arm/ldmstm.md: New file.
11405 * config/arm/arm-ldmstm.ml: New file.
11407 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
11408 if statement which adds extra costs to frame-related expressions.
11410 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11412 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
11414 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
11417 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
11419 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
11420 split V4SI operands.
11422 2010-08-01 Anatoly Sokolov <aesok@post.ru>
11424 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
11425 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
11426 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
11427 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
11429 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
11431 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
11434 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
11436 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
11437 used in the call to optab_for_tree_code. Fix the second
11438 is_widening_mult_p call. Check that both unwidened operands
11439 have the same sign.
11441 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
11443 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
11445 2010-07-31 Anatoly Sokolov <aesok@post.ru>
11447 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
11449 2010-07-30 DJ Delorie <dj@redhat.com>
11451 * config/rx/predicates.md (rx_constshift_operand): New.
11452 * config/rx/rx.md (zs_cond): New.
11453 (cbranchsi4): Remove mode.
11454 (*cbranchsi4_<code>): Likewise.
11455 (*tstbranchsi4_<code>): New.
11456 (*tstbranchsi4r_<code>): New.
11457 (*tstbranchsi4m_eq): New.
11458 (*tstbranchsi4m_ne): New.
11459 (cbranchsf4): Remove mode.
11460 (*cbranchsf4_<code>): Likewise.
11462 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
11464 * rtlanal.c (simplify_subreg_regno): Don't treat
11465 HARD_FRAME_POINTER_REGNUM specially.
11467 2010-07-30 Joseph Myers <joseph@codesourcery.com>
11469 * common.opt (-G): Don't define option here.
11470 * config/g.opt: New.
11471 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
11472 rs6000/powerpc and score targets.
11473 * opts.c (common_handle_option): Don't handle -G here.
11474 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
11475 * config/frv/frv.c (frv_handle_option): Handle -G.
11476 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
11477 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
11478 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
11479 * config/mips/mips.c (mips_handle_option): Handle -G.
11480 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
11481 * config/score/score.c (score_handle_option): Handle -G.
11483 2010-07-30 Anatoly Sokolov <aesok@post.ru>
11485 * config/mmix/mmix.c: Include basic-block.h.
11487 2010-07-30 Jakub Jelinek <jakub@redhat.com>
11490 PR rtl-optimization/45137
11491 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
11493 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
11495 * combine.c (next_nonnote_nondebug_insn): Removed.
11496 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
11497 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
11498 * sched-deps.c (sched_analyze_insn): Likewise.
11499 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
11500 * rtlanal.c (canonicalize_condition): Likewise.
11501 * postreload.c (reload_combine_recognize_pattern): Likewise.
11502 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
11504 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
11506 * config/i386/i386.md (int_cond): Remove code iterator.
11508 (cbranch<mode>4): Use ordered_comparison_operator predicate
11510 (cstore<mode>4): Ditto for operator1.
11511 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
11512 (add<mode>cc): ditto.
11514 2010-07-30 Richard Guenther <rguenther@suse.de>
11516 PR middle-end/45141
11517 * expr.c (expand_expr_real_1): Check for not handled base address.
11519 2010-07-30 Richard Guenther <rguenther@suse.de>
11521 * ipa-prop.c (ipa_modify_formal_parameters): Use
11522 build_distinct_type_copy.
11524 2010-07-30 Anthony Green <green@moxielogic.com>
11526 * config/moxie/rtems.h: New file.
11527 * config.gcc: Add moxie-rtems support.
11529 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
11531 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
11532 df flags as in run_fast_df_dce.
11534 2010-07-29 Jakub Jelinek <jakub@redhat.com>
11537 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
11539 * rtl.def (NOTE): Swap operands 4 and 5.
11540 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
11541 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
11542 Adjust accordingly.
11543 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
11545 2010-07-29 Jakub Jelinek <jakub@redhat.com>
11548 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
11549 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
11550 (gen_subprogram_die): Likewise. Remove it when removing declaration's
11552 (gen_decl_die): Change return type to dw_die_ref, return what
11553 gen_formal_parameter_die returned.
11555 2010-07-29 Martin Jambor <mjambor@suse.cz>
11557 * dbgcnt.def (eipa_sra): New counter.
11558 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
11560 2010-07-29 Xinliang David Li <davidxl@google.com>
11563 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
11564 in revision 162652.
11566 2010-07-29 Richard Guenther <rguenther@suse.de>
11568 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
11569 (TV_TREE_STORE_CCP): Likewise.
11570 (TV_TREE_REDPHI): Likewise.
11572 2010-07-29 Richard Guenther <rguenther@suse.de>
11574 * double-int.h (double_int_and_not): New function.
11575 * combine.c (try_combine): Use it.
11576 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
11578 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
11580 PR rtl-optimization/42575
11581 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
11582 Argument AU removed. All callers changed. Ignore artificial refs.
11583 Use return value of df_word_lr_simulate_defs to decide whether an insn
11585 (fast_dce): Rename arg to WORD_LEVEL.
11586 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
11588 (pass_fast_rtl_byte_dce): Delete.
11589 * dce.h (run_word_dce): Declare.
11590 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
11591 All callers changed. Simplify code to only deal with two-word regs.
11592 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
11593 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
11594 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
11595 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
11596 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
11597 (df_word_lr_mark_ref): Declare.
11598 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
11599 df_word_lr_simulate_uses): Declare or rename from byte variants.
11600 (df_byte_lr_simulate_artificial_refs_at_top,
11601 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
11602 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
11604 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
11605 (enum df_mm): Delete.
11606 * df-byte-scan.c: Delete file.
11607 * df-problems.c (df_word_lr_problem_data): Renamed from
11608 df_byte_lr_problem_data, all members deleted except for
11609 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
11610 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
11611 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
11612 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
11613 df_byte_lr_confluence_0): Delete functions.
11614 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
11616 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
11617 Don't initialize members that were deleted, don't try to discover data
11618 about registers. Ignore hard regs.
11619 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
11620 (df_word_lr_mark_ref): New function.
11621 (df_word_lr_bb_local_compute): Renamed from
11622 df_byte_bb_lr_local_compute; all callers changed. Use
11623 df_word_lr_mark_ref. Assert that artificial refs don't include
11624 pseudos. Ignore hard registers.
11625 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
11626 Assert that exit block uses don't contain pseudos.
11627 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
11628 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
11629 callers changed. Ignore hard regs.
11630 (df_word_lr_transfer_function): Renamed from
11631 df_byte_lr_transfer_function; all callers changed.
11632 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
11633 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
11635 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
11637 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
11638 confluence operator 0 set to NULL.
11639 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
11641 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
11642 Return bool, true if bitmap changed or insn otherwise necessary.
11643 All callers changed. Simplify using df_word_lr_mark_ref.
11644 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
11645 all callers changed. Simplify using df_word_lr_mark_ref.
11646 * lower-subreg.c: Include "dce.h"
11647 (decompose_multiword_subregs): Call run_word_dce if df available.
11648 * Makefile.in (lower-subreg.o): Adjust dependencies.
11649 (df-byte-scan.o): Delete.
11650 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
11652 2010-07-29 Richard Guenther <rguenther@suse.de>
11654 * tree.c (build_vector): Assert that the vector constant
11655 has enough elements.
11656 (build_vector_from_ctor): Pad with trailing zeros.
11658 2010-07-29 Richard Guenther <rguenther@suse.de>
11660 PR tree-optimization/45120
11661 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11662 Handle offset in DEREFs properly.
11663 (get_constraint_for_1): Handle MEM_REF offset properly.
11665 2010-07-29 Richard Guenther <rguenther@suse.de>
11667 PR middle-end/45034
11668 * convert.c (convert_to_integer): Always use an unsigned
11669 type for narrowed negate and bitwise not.
11671 2010-07-29 Ira Rosen <irar@il.ibm.com>
11673 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
11674 to outer loop when creating reduction epilogue for double reduction,
11675 and switch back to the inner loop when updating the phi nodes.
11676 Update uses of outer loop exit phi nodes in double reduction (instead
11677 of uses of reduction).
11679 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
11681 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
11682 popcount on power7 and parity on power6 systems.
11683 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
11684 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
11687 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
11688 (UNSPEC_PARITY): Ditto.
11689 (SFDF): New iterator for SF/DF.
11690 (rreg2): New mode attribute for floating register constraint.
11691 (TARGET_FLOAT): New mode attribute for whether single/double float
11693 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
11695 (parity<mode>2_cmpb): New insn for parity on power6 and newer
11697 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
11698 pattern. Add support for fcpsgn instruction added in power6.
11699 (copysignsf3): Delete.
11700 (copysigndf3): Delete.
11701 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
11702 instead of if_then_else in RTL to avoid problems with -0.
11704 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
11705 of if_then_else to mirror scalar code.
11706 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
11709 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
11710 instead of if_then_else.
11712 2010-07-28 Xinliang David Li <davidxl@google.com>
11714 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
11715 (dump_cand): Dump var_before/after.
11716 (htab_inv_expr_eq): New function.
11717 (htab_inv_expr_hash): New function.
11718 (tree_ssa_iv_optimize_init): Support pseudo invariants.
11719 (add_candidate_1): consider base type precision.
11720 (set_use_iv_cost): New parameter.
11721 (adjust_setup_cost): Use profile information.
11722 (get_address_cost): Do not hard code width in computing address
11724 (compare_aff_trees): New function.
11725 (get_loop_invariant_expr_id): New function.
11726 (get_computation_cost_at): New parameter and use profile information.
11727 (get_computation_cost): New parameter.
11728 (determine_use_iv_cost_generic): Pass new parameter.
11729 (determine_use_iv_cost_address): Ditto.
11730 (determine_use_iv_cost_condition): Ditto.
11731 (autoinc_possible_for_pair): Ditto.
11732 (determine_use_iv_costs): More dumps.
11733 (iv_ca_get_num_inv_exprs): New function.
11734 (iv_ca_recount_cost): Consider loop invariants in register pressure
11736 (iv_ca_add_use): New parameter.
11737 (iv_ca_dump): Better dumping.
11738 (iv_ca_extend): New parameter.
11739 (try_add_cand_for): Attempt to get better partial solution.
11740 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
11741 (create_new-ivs): More dumps.
11742 (rewrite_use_compare): Ditto.
11743 (free_loop_data): More cleanup.
11744 (treee_ssa_iv_optimize_finalize): Ditto.
11746 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
11748 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
11749 * config/i386/i386.c (ix86_profile_before_prologue): New.
11750 (override_options): Add special handling for -mfentry.
11751 (ix86_function_regparm): Likewise.
11752 (ix86_function_sseregparm): Likewise.
11753 (ix86_frame_pointer_required): Likewise.
11754 (ix86_expand_prologue): Check for ms_hook_prologue.
11755 (x86_function_profiler): Adjust mcount output.
11756 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
11757 * config/i386/i386.opt (mfentry): New.
11758 * doc/invoke.texi (mfentry): Add documentation.
11759 * doc/tm.texi: Regenerated..
11760 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
11761 * final.c (final_start_function): Replace macro
11762 PROFILE_BEFORE_PROLOGUE by target hook.
11763 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11764 * target.def (profile_before_prologue): New hook.
11765 * targhooks.c (default_profile_before_prologue): New.
11766 * targhooks.h (default_profile_before_prologue): New.
11768 2010-07-28 Jakub Jelinek <jakub@redhat.com>
11771 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
11774 * dwarf2out.c (dwarf2out_var_location): Always consider
11775 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
11777 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
11779 PR rtl-optimization/45107
11780 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
11782 2010-07-28 Richard Guenther <rguenther@suse.de>
11784 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
11785 (set_lattice_value): Do not query an old default value.
11786 (get_value_for_expr): New function. Properly canonicalize
11788 (ccp_visit_phi_node): Use it.
11790 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
11792 * config/arm/arm.c (arm_pcs_default): Remove static.
11793 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
11794 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
11795 (arm_pcs_default): Declare.
11797 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
11799 * config/rs6000/rs6000.c (rs6000_override_options):
11800 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
11801 ... to darwin_rs6000_override_options.
11802 (rs6000_return_in_memory): Update preceding comment for darwin
11803 64 bit ABI. Use TARGET_MACHO inline.
11804 (rs6000_darwin64_struct_check_p): New.
11805 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
11806 (function_arg): Likewise.
11807 (rs6000_arg_partial_bytes): Likewise.
11808 (rs6000_function_value): Likewise.
11810 2010-07-28 Andi Kleen <ak@linux.intel.com>
11812 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
11814 2010-07-28 Richard Guenther <rguenther@suse.de>
11816 PR middle-end/44903
11817 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
11818 targets try harder to not generate unaligned accesses.
11820 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
11822 PR rtl-optimization/45101
11823 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
11826 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
11828 PR tree-optimization/44885
11829 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
11830 with non-aliased component.
11832 2010-07-28 Joseph Myers <joseph@codesourcery.com>
11834 * config/darwin-driver.c (SWITCH_TAKES_ARG,
11835 WORD_SWITCH_TAKES_ARG): Remove.
11836 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
11837 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
11838 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
11839 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
11840 definitions from gcc.c.
11841 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
11843 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
11844 Move to defaults.h.
11845 * opts-common.c: Include tm.h.
11846 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
11847 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
11848 Handle more than one argument. Set canonical_option_num_elements.
11849 (decode_cmdline_options_to_array): Set
11850 canonical_option_num_elements and trailing elements of
11852 * opts.h (struct cl_decoded_option): Allow four elements in
11853 canonical_option. Add field canonical_option_num_elements.
11854 * Makefile.in (opts-common.o): Update dependencies.
11856 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
11858 PR middle-end/44790
11859 PR middle-end/44993
11860 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
11861 sure the base has address_mode before adding the offset.
11863 2010-07-27 Xinliang David Li <davidxl@google.com>
11865 * tree-flow.h (create_mem_ref): Add one new parameter.
11866 * tree-ssa-address.c (create_mem_ref): New parameter.
11867 (addr_to_parts): Ditto.
11868 (move_variant_to_index): New function.
11869 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
11871 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
11873 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
11875 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
11876 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
11877 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
11878 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
11879 CODE_LABELs and NOTEs.
11880 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
11881 * combine.c (try_combine): Likewise.
11882 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11883 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
11885 2010-07-27 Joseph Myers <joseph@codesourcery.com>
11887 * coretypes.h (struct cl_option_handlers): Declare.
11888 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
11889 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
11890 * langhooks-def.h (lhd_handle_option): Declare.
11891 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
11892 * langhooks.c (lhd_handle_option): New.
11893 * langhooks.h (struct lang_hooks): Update prototype and return
11894 value type of handle_option hook.
11895 * optc-gen.awk: Generate target_flags_explicit definition for the
11897 * opts-common.c: Include diagnostic.h.
11898 (handle_option): Move from opts.c. Update prototype and return
11899 value type. Use handlers structure.
11900 (read_cmdline_option): Move from opts.c. Update prototype. Use
11901 handlers structure.
11902 (set_option): Move from opts.c.
11903 * opts.c (common_handle_option): Update prototype and return value
11904 type. Update calls to handle_option and enable_warning_as_error.
11905 (unknown_option_callback, post_handling_callback,
11906 lang_handle_option, target_handle_option): New.
11907 (handle_option, read_cmdline_option): Move to opts-common.c.
11908 (read_cmdline_options): Update prototype. Update call to
11909 read_cmdline_option.
11910 (decode_options): Initialize and use handlers structure.
11911 (set_option): Move to opts-common.c.
11912 (enable_warning_as_error): Update prototype. Update call to
11914 * opts.h (struct cl_option_handler_func, struct
11915 cl_option_handlers): New.
11916 (handle_option, enable_warning_as_error): Update prototypes.
11917 (read_cmdline_option): Declare.
11918 * Makefile.in (opts-common.o): Update dependencies.
11920 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11922 * config/arm/arm.c (params.h): Include.
11923 (arm_override_options): Tune gcse-unrestricted-cost.
11924 * config/arm/t-arm (arm.o): Define dependencies.
11926 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11929 PR middle-end/42574
11930 * basic-block.h (get_dominated_to_depth): Declare.
11931 * dominance.c (get_dominated_to_depth): New function, use
11932 get_all_dominated_blocks as a base.
11933 (get_all_dominated_blocks): Use get_dominated_to_depth.
11935 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
11936 (hoist_exprs): Remove.
11937 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
11938 (compute_code_hoist_vbeinout): Add debug print outs.
11939 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
11941 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
11942 quadratic behavior.
11943 * params.h (MAX_HOIST_DEPTH): New macro.
11944 * doc/invoke.texi (max-hoist-depth): Document.
11946 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11948 PR rtl-optimization/40956
11949 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
11952 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11955 PR middle-end/42574
11956 * config/arm/arm.c (legitimize_pic_address): Use
11957 gen_calculate_pic_address pattern to emit calculation of PIC address.
11958 (will_be_in_index_register): New function.
11959 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
11960 (thumb1_legitimate_address_p): Use it provided !strict_p.
11961 * config/arm/arm.md (calculate_pic_address): New expand and split.
11963 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11966 PR middle-end/42574
11967 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
11968 * config/arm/arm.md (define_split "J", define_split "K"): Make
11969 IRA/reload friendly.
11971 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11973 * gcse.c (insert_insn_end_basic_block): Update signature, remove
11975 (pre_edge_insert, hoist_code): Update.
11977 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11980 PR middle-end/42574
11981 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
11983 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11985 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
11987 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11989 PR rtl-optimization/40956
11991 PR middle-end/42574
11992 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
11994 (hoist_code): Count occurences in current block too.
11996 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11998 * gcse.c (struct expr:max_distance): New field.
11999 (doing_code_hoisting_p): New static variable.
12000 (want_to_gcse_p): Change signature. Allow constrained hoisting of
12001 simple expressions, don't change behavior for PRE. Set max_distance.
12002 (insert_expr_in_table): Set new max_distance field.
12003 (hash_scan_set): Update.
12004 (hoist_expr_reaches_here_p): Stop search after max_distance
12006 (find_occr_in_bb): New static function. Use it in ...
12007 (hoist_code): Calculate sizes of basic block before any changes are
12008 done. Pass max_distance to hoist_expr_reaches_here_p.
12009 (one_code_hoisting_pass): Set doing_code_hoisting_p.
12011 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
12012 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
12013 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
12015 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
12018 2010-07-27 Jeff Law <law@redhat.com>
12019 Maxim Kuvyrkov <maxim@codesourcery.com>
12021 * gcse.c (compute_transpout, transpout): Remove, move logic
12022 to prune_expressions.
12023 (compute_pre_data): Move pruning of trapping expressions ...
12024 (prune_expressions): ... here. New static function.
12025 (compute_code_hoist_data): Use it.
12026 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
12028 2010-07-27 Xinliang David Li <davidxl@google.com>
12030 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
12031 (rewrite_use_address): Adjust iv update position when needed.
12033 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12035 * dbgcnt.def (hoist_insn): New debug counter.
12036 * gcse.c (hoist_code): Use it.
12038 2010-07-27 Xinliang David Li <davidxl@google.com>
12040 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
12041 (niter_for_single_dom_exit): Passes additional parameter.
12042 (iv_period): Fix comments.
12043 (may_eliminate_iv): Handles multiple exit loops properly.
12044 (free_tree_niter_desc): New function.
12045 (free_loop_data): Frees up loop iteration descriptors.
12047 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12050 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
12051 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
12052 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
12053 (expand_one_var): Don't consider DECL_ALIGN for variables for
12054 which expand_one_stack_var_at has been already called.
12057 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
12058 constraints on IA-64.
12060 2010-07-27 Jie Zhang <jie@codesourcery.com>
12064 2010-07-23 Jie Zhang <jie@codesourcery.com>
12066 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
12067 false if ! tree_versionable_function_p.
12069 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12071 * dwarf2out.c (add_data_member_location_attribute): Use
12072 add_AT_unsigned instead of add_AT_int if offset is non-negative.
12074 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12076 * postreload.c (try_replace_in_use): New static function.
12077 (reload_combine_recognize_const_pattern): Use it here. Allow
12078 substituting into a final add insn, and substituting into a memory
12079 reference in an insn that sets the reg.
12081 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12083 * common.opt (o): Add MissingArgError.
12084 * doc/options.texi (MissingArgError): Document.
12085 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
12086 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
12087 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
12088 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
12089 * langhooks.h (struct lang_hooks): Remove missing_argument.
12090 * optc-gen.awk: Handle MissingArgError and output new structure
12091 field initializers.
12092 * opts.c (read_cmdline_option): Use missing_argument_error field
12093 instead of missing_argument langhook.
12094 * opts.h (struct cl_option): Add missing_argument_error field.
12095 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
12097 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
12100 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
12101 Darwin64 ABI, for zero-sized objects.
12103 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
12108 Merge from Apple local 4.2.1.
12109 2005-05-11 Stan Shebs <shebs@apple.com>
12110 Fix 64-bit varargs for Darwin (Radar 4028089).
12111 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
12112 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12113 Add argument, add case for 8-byte register half-filled with a float.
12114 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
12115 single-precision floats specially.
12117 2010-07-27 Ira Rosen <irar@il.ibm.com>
12119 PR tree-optimization/44152
12120 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
12121 complex numbers for further check.
12122 (vect_supported_load_permutation_p): Check nodes with
12125 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12127 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
12128 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
12129 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
12130 (LANG_HOOKS_INITIALIZER): Add new hooks.
12131 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
12132 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
12133 and complain_wrong_lang_p. Update init_options prototype.
12134 * c-objc-common.c (c_initialize_diagnostics): First call
12135 c_common_initialize_diagnostics.
12136 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
12137 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
12138 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
12139 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
12140 (hook_uint_void_0): New.
12141 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
12142 (hook_uint_void_0): New.
12143 * opts-common.c (decode_cmdline_option,
12144 decode_cmdline_options_to_array): Also fill in canonical_option field.
12145 * opts.c (complain_wrong_lang): Use langhook to determine whether
12146 to complain instead of special-casing LTO.
12147 (decode_options): Separate lang_mask determination with
12148 option_lang_mask hook from call of init_options hook.
12149 * opts.h (struct cl_decoded_option): Add canonical_option.
12151 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12153 PR tree-optimization/45083
12154 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
12156 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12158 * postreload.c (reload_combine_recognize_const_pattern): Move test
12159 for limiting the insn movement to the right scope.
12161 PR rtl-optimization/45051
12162 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
12163 than reg_mentioned_p.
12165 2010-07-26 Richard Henderson <rth@redhat.com>
12168 * tree-emutls.c: New file.
12169 * Makefile.in (OBJS-common): Add it.
12170 * tree-pass.h (pass_ipa_lower_emutls): Declare.
12171 * passes.c (init_optimization_passes): Add it.
12173 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
12174 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
12175 * expr.c (emutls_var_address): Delete.
12176 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
12177 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
12178 (emutls_finish): Delete.
12179 * toplev.c (compile_file): Don't call it.
12180 * tree.h (emutls_decl): Delete.
12181 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
12182 (emutls_finish, emutls_finalize_control_var): Delete.
12183 (emutls_object_type): Move to tree-emutls.c.
12184 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
12185 default_emutls_var_fields, get_emutls_object_type,
12186 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
12187 default_emutls_var_init): Likewise.
12188 (get_variable_section): Don't special case emutls.
12189 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
12190 default_elf_select_section, default_unique_section,
12191 default_encode_section_info): Likewise.
12192 * varpool.c (decide_is_variable_needed): Likewise.
12193 * gimple-iterator.c (update_call_edge_frequencies): New
12194 (gsi_insert_on_edge_immediate): Use it.
12195 (gsi_insert_seq_on_edge_immediate): Likewise.
12196 (gsi_commit_one_edge_insert): Likewise.
12198 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
12199 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
12200 (x86_64_elf_unique_section): Likewise.
12202 2010-07-26 Jan Hubicka <jh@suse.cz>
12204 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
12207 2010-07-26 Anatoly Sokolov <aesok@post.ru>
12209 * target.def (output_source_filename): New hook.
12210 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
12211 * doc/tm.texi: Regenerate.
12212 * toplev.c (output_file_directive) Remove function.
12213 * toplev.h (output_file_directive) Remove.
12214 * output.h (default_asm_output_source_filename,
12215 output_file_directive): Declare.
12216 * varasm.h (default_asm_output_source_filename,
12217 output_file_directive): New functions.
12219 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12220 * config/mips/mips-protos.h (mips_output_filename): Remove.
12221 * config/mips/mips.c (mips_output_filename): Make Static.
12222 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12224 2010-07-26 Richard Guenther <rguenther@suse.de>
12226 PR tree-optimization/43784
12227 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
12228 if the destination is used by the call.
12230 2010-07-26 Richard Guenther <rguenther@suse.de>
12232 PR middle-end/45073
12233 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
12234 SSA updating on being in SSA form.
12236 2010-07-26 Richard Guenther <rguenther@suse.de>
12238 PR middle-end/45056
12239 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
12241 2010-07-26 Richard Guenther <rguenther@suse.de>
12243 PR tree-optimization/45071
12244 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
12247 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
12249 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
12250 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
12251 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
12252 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
12253 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
12254 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
12255 save_r31, return_r31, save_interrupt, return_interrupt,
12256 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
12257 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
12258 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
12259 new ABI requirements.
12260 (save_r6_r9, L_callt_save_r6_r9): Remove.
12261 * config/v850/predicates.md (even_reg_operand, disp23_operand,
12262 const_float_1_operand const_float_0_operand): New Predicates.
12263 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
12264 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
12265 * config/v850/t-v850: Update multilibs for new target variants.
12266 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
12267 * config/v850/t-v850e: Likewise.
12268 * config/v850/v850.c (v850_issue_rate): New.
12269 (v850_strict_argument_naming): New.
12270 (function_arg): Modify to generate a different ABI.
12271 (print_operand): Update case 'z' to support float modes.
12272 (output_move_single): Modify to generate appropriate and better
12274 (v850_float_z_comparison_operator, v850_select_cc_mode,
12275 v850_float_nz_comparison_operator, v850_gen_float_compare,
12276 v850_gen_compare): New functions to support comparison of float values.
12277 (ep_memory_offset): Add support for V850E2 targets.
12278 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
12279 (INTERRUPT_REGPARM_NUM): Remove.
12280 (compute_register_save_size): Add extra case to save/restore long call.
12281 (use_prolog_function): New function to support prologue.
12282 (expand_prologue): Add support for V850E2 targets and modified
12283 as per the current ABI requirements.
12284 (expand_epilogue): Likewise.
12285 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
12286 (construct_save_jarl): Likewise.
12287 (construct_dispose_instruction): Update as per the current ABI
12289 (construct_prepare_instruction): Likewise.
12290 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
12291 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
12292 (CPP_SPEC): Updated to support v850e2 targets.
12293 (STRICT_ALIGNMENT): Modified.
12294 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
12295 (FIXED_REGISTERS): Likewise.
12296 (CALL_USED_REGISTERS): Likewise.
12297 (CONDITIONAL_REGISTER_USAGE): Updated.
12298 (HARD_REGNO_MODE_OK): Updated.
12299 (reg_class): Updated to add even registers.
12300 (REG_CLASS_NAMES): Likewise.
12301 (REG_CLASS_CONTENTS): Likewise.
12302 (REGNO_REG_CLASS): Updated for CC registers.
12303 (REG_CLASS_FROM_LETTER): Added support for even registers.
12304 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
12305 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
12306 ARG_POINTER_REGNUM): Updated.
12307 (FUNCTION_ARG_ADVANCE): Define.
12308 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
12309 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
12310 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
12311 (GO_IF_LEGITIMATE_ADDRESS): Updated.
12312 (SELECT_CC_MODE): Define.
12313 (REGISTER_NAMES): Updated to add psw and fcc registers.
12314 (ADDITIONAL_REGISTER_NAMES): Updated.
12315 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
12316 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
12317 * config/v850/v850.md (define_constants): Define new constants.
12318 (type): Update store,bit1,macc,div,fpu and single attributes.
12319 (cpu): New attribute.
12320 (cc): Add set_z attribute.
12321 (unsign23byte_load, sign23byte_load, unsign23hword_load,
12322 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
12323 23word_store): New instructions for 23-bit displacement load and store.
12324 (movqi_internal, movhi_internal): Update the attributes.
12325 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
12326 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
12328 (v850_tst1): Modified using CC_REGNUM.
12330 (cmpsi): Modified as define_expand from define_insn.
12331 (cmpsi_insn, cmpsf, cmpdf): New instructions.
12332 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
12333 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
12334 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
12335 one_cmplsi2): Clobber the CC_REGNUM register.
12336 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
12337 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
12338 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
12339 (setf_insn, set_z_insn, set_nz_insn): New instructions for
12341 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
12342 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
12344 (sasf_1, sasf_2): Remove.
12345 (sasf): New instruction.
12346 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
12347 targets. CC_REGNUM register is clobbered and attributes are
12349 (branch_z_normal, branch_z_invert, branch_nz_normal,
12350 branch_nz_invert): New branch related instructions.
12351 (jump): Updated the attributes.
12352 (switch): Update to support new targets. CC_REGNUM register is
12353 clobbered and attributes are updated.
12354 (call_internal_short, call_internal_long, call_value_internal_short,
12355 call_value_internal_long): Updated the attributes.
12356 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
12357 clobbered and attributes are updated.
12358 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
12359 Update to support new targets. CC_REGNUM register is clobbered.
12360 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
12362 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
12364 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
12365 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
12366 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
12367 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
12368 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
12369 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
12370 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
12371 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
12372 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
12373 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
12374 point instructions defined for V850e2v3 target.
12375 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
12376 Add support for V850E2 targets and CC_REGNUM register is clobbered.
12377 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
12378 support for new targets.
12379 * config/v850/v850-modes.def: New file.
12380 * config/v850/v850.opt(mstrict-align): Remove.
12381 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
12382 mv850e2v3): New command line options for V850.
12383 * config.gcc: Update the newly added files.
12384 * doc/invoke.texi: Update the newly added command line options for
12387 2010-07-26 Richard Guenther <rguenther@suse.de>
12389 PR tree-optimization/45052
12390 * ipa-pure-const.c (check_stmt): Check volatileness.
12392 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
12395 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
12396 * config/sparc/sparc.c: Include reload.h.
12397 (legitimize_tls_address): Rename into...
12398 (sparc_legitimize_tls_address): ...this.
12399 (legitimize_pic_address): Rename into...
12400 (sparc_legitimize_pic_address): ...this.
12401 (sparc_expand_move): Adjust to above renaming.
12402 (sparc_tls_referenced_p): Likewise.
12403 (sparc_legitimize_tls_address): Likewise.
12404 (sparc_legitimize_pic_address): Likewise.
12405 (sparc_legitimize_address): Likewise.
12406 (sparc_output_mi_thunk): Likewise.
12407 (sparc_legitimize_reload_address): New global function. Recognize
12408 (lo_sum (high ...) ...) patterns generated by earlier passes.
12409 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
12411 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
12414 * config/sparc/predicates.md (memory_reg_operand): Delete.
12415 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
12416 (*sync_compare_and_swap): Encode the address form in the pattern.
12417 (*sync_compare_and_swapdi_v8plus): Likewise.
12419 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
12421 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
12422 Streamline paragraph on compatibility with the system compiler.
12424 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
12426 PR middle-end/45035
12427 * alias.c (true_dependence_1): Fix thinko in merge of old
12428 true_dependence and canon_true_dependence.
12430 2010-07-23 Jan Hubicka <jh@suse.cz>
12432 * lto-streamer-out.c (write_symbol): Fix visibilities of external
12435 2010-07-23 Le-Chun Wu <lcwu@google.com>
12437 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
12438 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
12439 and an unnecessary assignment.
12440 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
12441 self-assign warning.
12442 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
12443 unnecessary self-init.
12445 2010-07-23 Richard Guenther <rguenther@suse.de>
12448 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
12449 for -flto and -fwhopr.
12451 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
12454 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
12455 (stmp-int-hdrs): Prefix/postfix headers by include_next.
12456 * config.gcc (user_headers_inc_next_pre): New.
12457 (user_headers_inc_next_post): Likewise.
12458 (*-w64-mingw*): Use for float.h post-fixing, and for
12459 stddef.h/stdarg.h pre-fixing by include_next.
12460 * configure.ac (user_headers_inc_next_post): New.
12461 (user_headers_inc_next_pre): New.
12462 * configure: Regenerated.
12464 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12466 * configure.ac: Don't disable TLS on Solaris 8/9 by default
12467 Set tga_func for Solaris 2/x86 resp. SPARC.
12468 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
12469 (LIB_THREAD_LDFLAGS_SPEC): Define.
12470 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
12471 * configure: Regenerate.
12472 * config.in: Regenerate.
12473 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
12474 -pthread, -threads, LIB_TLS_SPEC with -pthread.
12475 * doc/install.texi (Specific, *-*-solaris2*): Document use of
12476 alternate thread libraries on Solaris 8.
12477 Document TLS patch requirements.
12478 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
12482 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
12485 2010-07-23 Jakub Jelinek <jakub@redhat.com>
12487 * tree.h (struct tree_base): Add nameless_flag bitfield.
12488 (TYPE_NAMELESS, DECL_NAMELESS): Define.
12489 * omp-low.c (create_omp_child_function, scan_omp_parallel,
12490 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
12491 DECL_ARTIFICIAL where needed.
12492 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
12493 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
12494 has DECL_NAMELESS set.
12496 2010-07-23 Martin Jambor <mjambor@suse.cz>
12498 PR tree-optimization/44915
12499 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
12500 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
12501 (analyze_function): Likewise.
12503 2010-07-23 Martin Jambor <mjambor@suse.cz>
12505 PR tree-optimization/44914
12506 * tree-sra.c (sra_modify_function_body): Return true if CFG was
12507 changed, add purging dead eh edges.
12508 (ipa_sra_modify_function_body): Return true if CFG was changed,
12509 simplify purging dead eh edges.
12510 (modify_function): Return true if CFG was changed.
12511 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
12513 (ipa_early_sra): Likewise.
12515 2010-07-23 Jie Zhang <jie@codesourcery.com>
12518 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
12520 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
12521 false if ! tree_versionable_function_p.
12523 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
12525 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
12526 * ipa-pure-const.c (special_builtlin_state): Remove
12527 BUILT_IN_ARGS_INFO case.
12528 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12529 * builtins.c (expand_builtin): Likewise.
12530 (expand_builtin_args_info): Remove.
12531 * doc/tm.texi (__builtin_args_info): Remove.
12532 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
12533 * doc/tm.text.in: Likewise.
12535 2010-07-23 Richard Guenther <rguenther@suse.de>
12537 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
12538 (lto_symtab_merge_decls_2): Likewise.
12539 * tree-ssa.c (useless_type_conversion_p): Likewise.
12540 * lto-streamer-in.c (input_gimple_stmt): Likewise.
12541 * gimple.c (gtc_visited2, gtc_ob2): Remove.
12542 (struct type_pair_d): Make same_p an array indexed by mode.
12544 (lookup_type_pair): Update initialization.
12545 (struct sccs): Adjust same_p type.
12546 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
12548 (print_gimple_types_stats): Likewise.
12549 * gimple.h (enum gtc_mode): New.
12550 (gimple_types_compatible_p): Adjust prototype.
12552 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
12554 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
12555 again after processing insn.
12557 2010-07-23 Jie Zhang <jie@codesourcery.com>
12559 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
12560 proper words when !tree_versionable_function_p.
12562 2010-07-23 Richard Guenther <rguenther@suse.de>
12564 PR tree-optimization/45037
12565 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
12567 2010-07-23 Jie Zhang <jie@codesourcery.com>
12569 * doc/extend.texi: Remove IP2K from the description of naked attribute.
12572 2010-07-10 Andi Kleen <ak@linux.intel.com>
12575 * lto-opts.c (lto_write_options): Add NULL file_data argument to
12576 lto_get_section_name.
12577 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
12578 * lto-streamer-out.c (produce_asm): Likewise.
12579 (copy_function): Likewise.
12580 (produce_symtab): Likewise.
12581 (produce_asm_for_decls): Likewise.
12582 * lto-streamer.c (lto_get_section_name): Add file_data argument.
12583 Rewrite to add random postfix to LTO sections.
12584 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
12585 (lto_get_section_name): Add file_data argument to prototype.
12587 2010-07-10 Andi Kleen <ak@linux.intel.com>
12589 * lto-section-in.c (lto_section_name): Synchronize names
12590 with lto_get_section_name.
12592 2010-07-10 Andi Kleen <ak@linux.intel.com>
12594 * lto-opts.c (lto_read_file_options): Check for missing section.
12596 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12598 * ira.c (check_allocation): Correctly handle the case where an allocno
12599 with two objects was allocated to a single reg.
12601 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
12603 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
12604 (is_widening_mult_p): Likewise.
12605 (convert_to_widen): Use them.
12606 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
12607 well as integer ones.
12609 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
12611 * alias.c (true_dependence_1): New function, merged version of
12612 true_dependence and canon_true_dependence.
12613 (true_dependence): Simplify.
12614 (canon_true_dependence): Simplify.
12616 2010-07-22 Richard Henderson <rth@redhat.com>
12619 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
12620 of V4SFmode for the SSE saves; increase stack alignment if needed.
12621 (ix86_gimplify_va_arg): Don't increase stack alignment here.
12623 2010-07-22 Jakub Jelinek <jakub@redhat.com>
12626 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
12627 call cprop_find_used_regs again via note_uses.
12629 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
12631 * alias.c (get_alias_set): Fix formatting issues.
12633 2010-07-22 Steve Ellcey <sje@cup.hp.com>
12635 PR middle-end/44878
12636 * stmt.c (expand_value_return): Call promote_function_mode with
12637 a for_return argument of 2 when returning by reference.
12639 2010-07-22 Dodji Seketeli <dodji@redhat.com>
12642 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
12643 unit DIE if we can find the scope DIE.
12645 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12647 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
12648 changed. Initialize OBJECT_SUBWORD.
12649 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
12650 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
12651 all callers changed.
12652 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
12653 (finish_allocno): Likewise.
12654 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
12655 (remove_low_level_allocnos): Likewise.
12656 (update_bad_spill_attribute): Likewise.
12657 (setup_min_max_allocno_live_range_point): Likewise.
12658 (sort_conflict_id_map): Likewise.
12659 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
12660 (ior_hard_reg_conflicts): New function.
12661 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
12662 (compress_conflict_vecs): Iterate over objects, not allocnos.
12663 (ira_add_live_range_to_object): New function.
12664 (object_range_compare_func): Renamed from allocno_range_compare_func.
12665 All callers changed.
12666 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
12667 subobjects, widen the min/max range of the lowest-order object to
12668 potentially include all other such low-order objects.
12669 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
12670 (check_allocation): Likewise. Use more fine-grained tests for register
12672 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
12673 allocno subobjects.
12674 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
12675 choices about which bits to set in each set. Don't use
12676 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
12677 using the multiple sets we computed.
12678 (push_allocno_to_stack): Iterate over allocno subobjects.
12679 (all_conflicting_hard_regs_coalesced): New static function.
12680 (setup_allocno_available_regs_num): Use it.
12681 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
12683 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
12684 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12685 by ALLOCNO_NUM_OBJECTS.
12686 (calculate_spill_cost): Likewise.
12687 (color_pass): Express if statement in a more normal way.
12688 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
12689 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
12690 (setup_slot_coalesced_allocno_live_ranges): Likewise.
12691 (allocno_reload_assign): Likewise.
12692 (ira_reassign_pseudos): Likewise.
12693 (fast_allocation): Likewise.
12694 * ira-conflicts.c (build_conflict_bit_table): Likewise.
12695 (print_allocno_conflicts): Likewise.
12696 (ira_build_conflicts): Likewise.
12697 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
12698 callers changed. Test subword 0 of each allocno for conflicts.
12699 (build_object_conflicts): Renamed from build_allocno_conflicts. All
12700 callers changed. Iterate over allocno subobjects.
12701 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
12702 * ira-int.h (struct ira_allocno): New member: num_objects.
12703 Rename object to objects and change it into an array.
12704 (ALLOCNO_OBJECT): Add new argument N.
12705 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
12706 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
12707 (ior_hard_reg_conflicts): Declare.
12708 (ira_add_live_range_to_object): Declare.
12709 (ira_allocno_object_iterator): New.
12710 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
12711 (FOR_EACH_ALLOCNO_OBJECT): New macro.
12712 * ira-lives.c (objects_live): Renamed from allocnos_live; all
12714 (allocnos_processed): New sparseset.
12715 (make_object_born): Renamed from make_allocno_born; take an
12716 ira_object_t argument. All callers changed.
12717 (make_object_dead): Renamed from make_allocno_dead; take an
12718 ira_object_t argument. All callers changed.
12719 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
12720 All callers changed.
12721 (mark_pseudo_regno_live): Iterate over allocno subobjects.
12722 (mark_pseudo_regno_dead): Likewise.
12723 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
12725 (mark_ref_live): Detect subword accesses and call
12726 mark_pseudo_regno_subword_live as appropriate.
12727 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
12728 (process_bb_nodes_live): Deal with object-related updates first; set
12729 and test bits in allocnos_processed to avoid computing allocno
12730 statistics more than once.
12731 (create_start_finish_chains): Iterate over objects, not allocnos.
12732 (print_object_live_ranges): New function.
12733 (print_allocno_live_ranges): Use it.
12734 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
12737 2010-07-22 Richard Guenther <rguenther@suse.de>
12740 * gimple.c (gtc_next_dfs_num): New global.
12741 (struct sccs): Make value a union, add integer same_p member.
12742 (gtc_visit): New function.
12743 (gimple_types_compatible_p_1): New function, split out from ...
12744 (gimple_types_compatible_p): ... here. Start a DFS walk here.
12745 (iterative_hash_gimple_type): Adjust for sccs change.
12747 2010-07-22 Martin Jambor <mjambor@suse.cz>
12749 PR tree-optimization/44891
12750 * tree-sra.c: Include gimple-pretty-print.h.
12751 (replace_uses_with_default_def_ssa_name): Renamed to
12752 get_repl_default_def_ssa_name, return the new SSA name instead of
12753 replacing the old one.
12754 (sra_modify_assign): Dump a message when removing a load, if the LHS
12755 is an SSA_NAME, do not do any propagation, just set the RHS to a
12756 default definition SSA NAME, type convert if necessary.
12757 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
12759 2010-07-22 Richard Guenther <rguenther@suse.de>
12761 PR tree-optimization/45017
12762 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
12763 TYPE_PRECISION of integral types in addition to size.
12765 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12767 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
12768 when no C library is specified.
12770 2010-07-22 Martin Jambor <mjambor@suse.cz>
12772 * ipa-prop.h (struct ipa_node_params): Updated comment.
12773 (struct ipa_edge_args): Likewise.
12774 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
12776 2010-07-22 Martin Jambor <mjambor@suse.cz>
12778 * cgraphunit.c (verify_edge_count_and_frequency): New function.
12779 (verify_cgraph_node): Verify frequencies of indirect edges.
12780 * tree-inline.c (tree_function_versioning): Update frequencies of
12783 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12786 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
12787 Set *arm_rev to be predicable.
12789 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
12791 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
12792 (LINK_COMMAND_SPEC_A): New.
12794 (DSYMUTIL_SPEC): New.
12795 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
12796 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
12798 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
12800 * calls.c (load_register_parameters): Move check for zero
12801 sized items so that only the call to
12802 mem_overlaps_already_clobbered_arg_p () is protected.
12804 2010-07-22 Jan Hubicka <jh@suse.cz>
12806 * ipa-pure-const.c (varying_state): Break out from ...
12807 (get_function_state): ... here; always return varying_state
12808 when state would be NULL otherwise.
12809 (remove_node_data): Do not free varying state.
12811 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12814 PR middle-end/45009
12815 * postreload.c: Include "target.h".
12816 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
12818 (fixup_debug_insns): Don't copy the rtx.
12819 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
12820 Don't copy when replacing. Call fixup_debug_insns in the case where
12821 we merged one add with another.
12822 (reload_combine_recognize_pattern): Fail if there aren't any uses.
12823 Try harder to determine whether we're picking a valid index register.
12824 Don't set store_ruid for an insn we're going to scan in the
12826 (reload_combine): Remove unused code.
12827 (reload_combine_note_use): When updating use information for
12828 an old insn, ignore a use that occurs after store_ruid.
12829 * Makefile.in (postreload.o): Update dependencies.
12831 * function.c (record_hard_reg_sets): Restrict the previous change
12832 to cases where the incoming nominal mode is the same as the
12833 incoming promoted mode and everything happens in MODE_INT.
12835 2010-07-21 Jakub Jelinek <jakub@redhat.com>
12838 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
12839 ASM_OPERANDS_OUTPUT_IDX.
12840 (adjust_insn): For inline asm with multiple sets ensure first
12841 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
12844 2010-07-21 Richard Henderson <rth@redhat.com>
12846 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
12847 comparison for avoiding xmm register saves. Emit the xmm register
12849 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
12850 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
12851 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
12852 Remove patterns and the associated splitters.
12854 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
12856 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
12857 and imagine parts of a complex, so that they can have the same
12858 base and fall into the same group.
12860 2010-07-21 Richard Guenther <rguenther@suse.de>
12863 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
12864 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
12865 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
12867 2010-07-21 Martin Jambor <mjambor@suse.cz>
12869 PR tree-optimization/44900
12870 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
12871 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
12873 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
12875 PR middle-end/44738
12876 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
12878 2010-07-21 Richard Guenther <rguenther@suse.de>
12880 PR middle-end/45013
12881 * tree-ssa.c (useless_type_conversion_p): Dispatch to
12882 gimple_types_compatible_p only when in lto.
12883 * gimple.c (gimple_types_compatible_p): Use canonical types
12884 to speed up comparison.
12886 2010-07-21 Richard Guenther <rguenther@suse.de>
12888 * tree-flow.h (referenced_var): Move define ...
12889 * tree-flow-inline.h (referenced_var): ... here as an inline
12890 function. Assert here ...
12891 * tree-dfa.c (referenced_var_lookup): ... instead of here.
12892 * tree-ssa.c (maybe_optimize_var): Check if the variable
12893 is in referenced vars.
12894 (execute_update_addresses_taken): Remove old broken check.
12895 * gimple-pretty-print.c (pp_points_to_solution): Use
12896 referenced_var_lookup.
12897 * tree-into-ssa.c (dump_decl_set): Likewise.
12899 2010-07-21 Jakub Jelinek <jakub@redhat.com>
12902 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
12903 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
12906 2010-07-20 Richard Henderson <rth@redhat.com>
12908 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
12910 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
12912 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
12913 computing the sum of the stack pointer and a large constant.
12914 * config/arm/constraints.md (M): Remove superfluous parentheses.
12915 (Pc): New constraint.
12917 2010-07-20 Jakub Jelinek <jakub@redhat.com>
12920 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
12921 operand's type if exp is tcc_unary class tree.
12923 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
12925 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
12926 Reverse sense of if_then_else condition.
12928 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
12930 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
12931 * config/rs6000/rs6000.c (rs6000_override_options): Set
12932 rs6000_block_move_inline_limit appropriately.
12933 (expand_block_move): Use rs6000_block_move_inline_limit.
12934 * doc/invoke.texi (mblock-move-inline-limit): Document.
12936 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
12938 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
12939 FROM and TO. All callers changed. Don't look for tracked uses,
12940 just scan the RTL for DEBUG_INSNs and substitute.
12941 (reload_combine_recognize_pattern): Call fixup_debug_insns.
12942 (reload_combine): Ignore DEBUG_INSNs.
12944 2010-07-20 Jakub Jelinek <jakub@redhat.com>
12946 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
12950 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
12951 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
12952 instead of the result's type.
12954 2010-07-20 Richard Guenther <rguenther@suse.de>
12956 PR tree-optimization/44977
12957 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
12960 2010-07-20 Richard Guenther <rguenther@suse.de>
12962 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
12963 (lto_symtab_merge_decls_2): Likewise.
12964 * gimple.h (gimple_types_compatible_p): Declare.
12965 * gimple.c (gimple_queue_type_fixup): Remove.
12966 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
12967 (gimple_compatible_complete_and_incomplete_type_p): New function.
12968 (gimple_types_compatible_p): Adjust.
12969 (gimple_register_type): Remove type fixup code.
12970 (print_gimple_types_stats): Adjust.
12971 (free_gimple_type_tables): Likewise.
12972 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
12973 * tree-ssa.c (useless_type_conversion_p): Likewise.
12975 2010-07-20 Richard Guenther <rguenther@suse.de>
12977 PR middle-end/44971
12978 PR middle-end/44988
12979 * tree-ssa.c (maybe_optimize_var): New function split out from ...
12980 (execute_update_addresses_taken): ... here.
12981 (non_rewritable_mem_ref_base): Likewise.
12982 (execute_update_addresses_taken): Do not iterate over all referenced
12983 vars but just all local decls and parms.
12984 Properly check call and asm arguments and rewrite call arguments.
12986 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
12988 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
12990 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
12992 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
12994 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
12996 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
12998 * gengtype.c (start_root_entry): New function, split out from
12999 write_root. Check whether V is null and raise an error if so.
13000 (write_field_root): Check for V being null. Don't raise an error here;
13001 set V to null instead.
13002 (write_root): Update comment above function. Use start_root_entry.
13004 2010-07-19 Xinliang David Li <davidxl@google.com>
13007 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
13009 (find_uninit_use): Add dump.
13010 (is_use_properly_guarded): Ditto.
13011 (warn_uninitialized_phi): Ditto.
13012 (execute_late_warn_uninitialized): Ditto.
13014 2010-07-19 Richard Guenther <rguenther@suse.de>
13016 PR middle-end/44941
13017 * expr.c (emit_block_move_hints): Move zero size check first.
13018 Move asserts to more useful places.
13019 * calls.c (load_register_parameters): Check for zero size.
13021 2010-07-19 Richard Henderson <rth@redhat.com>
13023 * tree-optimize.c (execute_all_early_local_passes): New. Change
13024 cgraph_state here ...
13025 (execute_early_local_optimizations): ... not here. Remove.
13026 (pass_early_local_passes, pass_all_early_optimizations): Update.
13028 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
13030 * postreload.c (reload_combine_closest_single_use): Ignore the
13031 number of uses for DEBUG_INSNs.
13032 (fixup_debug_insns): New static function.
13033 (reload_combine_recognize_const_pattern): Use it. Don't let the
13034 main loop be affected by DEBUG_INSNs.
13035 Really disallow moving adds past a jump insn.
13036 (reload_combine_recognize_pattern): Don't update use_ruid here.
13037 (reload_combine_note_use): Do it here.
13038 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
13040 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
13042 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
13044 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
13046 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
13048 * config/i386/darwin.h: Define darwin_emit_branch_islands.
13049 (TARGET_MACHO_BRANCH_ISLANDS): New.
13050 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
13051 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
13053 * config/i386/i386.c (output_pic_addr_const): Do not emit
13054 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
13055 (x86_output_mi_thunk): Adjust symbol creation.
13056 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
13057 Remove out of date comment.
13058 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
13059 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
13060 (DARWIN_GENERATE_ISLANDS): Ditto.
13061 (output_call): Do not emit branch islands unless
13062 darwin_emit_branch_islands is set.
13063 * config/darwin.c: Declare darwin_emit_branch_islands.
13064 (machopic_indirect_data_reference): Do not emit unless
13065 darwin_emit_branch_islands is set.
13066 (darwin_override_options): Set darwin_emit_branch_islands
13067 where it is needed.
13068 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
13070 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13072 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13073 sse_runtime, sse2_runtime.
13075 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
13077 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
13078 low half of a single-register SCmode return value before ORing
13079 it with the high half.
13080 * config/mips/mips16.S (MERGE_GPRf): Likewise.
13082 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13085 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
13088 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
13091 * postreload.c (reload_cse_move2add): Return bool, true if anything.
13092 changed. All callers changed.
13093 (move2add_use_add2_insn): Likewise.
13094 (move2add_use_add3_insn): Likewise.
13095 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
13097 (RELOAD_COMBINE_MAX_USES): Bump to 16.
13098 (last_jump_ruid): New static variable.
13099 (struct reg_use): New members CONTAINING_MEM and RUID.
13100 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
13101 (reload_combine_split_one_ruid, reload_combine_split_ruids,
13102 reload_combine_purge_insn_uses, reload_combine_closest_single_use
13103 reload_combine_purge_reg_uses_after_ruid,
13104 reload_combine_recognize_const_pattern): New static functions.
13105 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
13106 is true for our reg and that we have available index regs.
13107 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
13108 callers changed. Use them to initialize fields in struct reg_use.
13109 (reload_combine): Initialize last_jump_ruid. Be careful when to
13110 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
13111 Call reload_combine_recognize_const_pattern.
13112 (reload_combine_note_store): Update REAL_STORE_RUID field.
13114 2010-07-16 Jason Merrill <jason@redhat.com>
13116 * Makefile.in (opts-common.o): Depend on options.h.
13118 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
13120 * tree.c (build_common_builtin_nodes): Use build_function_type_list
13121 instead of build_function_type.
13122 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
13123 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
13125 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
13127 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
13129 (rs6000_emit_int_cmove): Use function pointers for insn generation.
13130 Don't force values into registers unnecessarily.
13131 (output_isel): Assert that we're not given conditions we can't handle.
13132 Delete corresponding code.
13133 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
13134 scc_comparison_operator constraint. Permit 0 for the consequent
13135 operand. Permit any GPR for the alternative operand.
13136 (isel_unsigned_<mode>): Likewise.
13138 2010-07-16 Jakub Jelinek <jakub@redhat.com>
13141 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
13142 argument to const_tree.
13143 * config/i386/i386.c (function_arg_advance): If padding needs to be
13144 inserted before argument, increment cum->words by number of padding
13146 (contains_aligned_value_p): Change argument to const_tree.
13147 (ix86_function_arg_boundary): Change second argument to const_tree.
13149 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
13152 * function.c (record_hard_reg_sets): New static function.
13153 (assign_parm_setup_reg): If an optab for extending exists and the
13154 generated code clobbbers no hard regs, emit the insn directly and
13155 create a REG_EQUIV note.
13157 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13159 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
13161 * c-typeck.c (push_init_level): Likewise.
13162 (process_init_element): Likewise.
13164 2010-07-15 Anatoly Sokolov <aesok@post.ru>
13166 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
13167 (integer_three_node): Add.
13168 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
13169 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
13170 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
13171 of call build_int_cst.
13172 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
13173 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
13174 (find_interesting_uses_address): Ditto.
13175 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
13176 * tree-eh.c (lower_eh_constructs_2): Ditto.
13177 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
13178 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
13179 * expmed.c (expand_divmod): Ditto.
13180 * tree-mudflap.c (mx_register_decls): Ditto.
13181 * varasm.c (array_size_for_constructor): Ditto.
13182 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
13183 * c-parser.c (c_parser_postfix_expression): Ditto.
13185 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
13187 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
13188 New static variables.
13189 (reload_combine_recognize_pattern): New static function, broken out
13191 (reload_combine): Use it. Only initialize first_index_reg and
13192 last_index_reg once.
13194 2010-07-15 Richard Henderson <rth@redhat.com>
13196 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
13199 2010-07-15 Jan Hubicka <jh@suse.cz>
13201 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
13202 comdats for broken gold.
13203 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
13205 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13207 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
13209 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13211 * tree.h (DECL_CHAIN): Define.
13212 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
13213 * c-decl.c: Likewise.
13214 * c-parser.c: Likewise.
13215 * c-typeck.c: Likewise.
13216 * cfgexpand.c: Likewise.
13217 * cgraph.c: Likewise.
13218 * cgraphunit.c: Likewise.
13219 * combine.c: Likewise.
13220 * config/alpha/alpha.c: Likewise.
13221 * config/arm/arm.c: Likewise.
13222 * config/frv/frv.c: Likewise.
13223 * config/i386/i386.c: Likewise.
13224 * config/i386/winnt-cxx.c: Likewise.
13225 * config/ia64/ia64.c: Likewise.
13226 * config/iq2000/iq2000.c: Likewise.
13227 * config/mep/mep.c: Likewise.
13228 * config/mips/mips.c: Likewise.
13229 * config/pa/som.h: Likewise.
13230 * config/rs6000/rs6000.c: Likewise.
13231 * config/s390/s390.c: Likewise.
13232 * config/sh/sh.c: Likewise.
13233 * config/sh/symbian-cxx.c: Likewise.
13234 * config/sparc/sparc.c: Likewise.
13235 * config/spu/spu.c: Likewise.
13236 * config/stormy16/stormy16.c: Likewise.
13237 * config/vxworks.c: Likewise.
13238 * config/xtensa/xtensa.c: Likewise.
13239 * coverage.c: Likewise.
13240 * dbxout.c: Likewise.
13241 * dwarf2out.c: Likewise.
13242 * emit-rtl.c: Likewise.
13243 * expr.c: Likewise.
13244 * function.c: Likewise.
13245 * gimple-low.c: Likewise.
13246 * gimple-pretty-print.c: Likewise.
13247 * gimplify.c: Likewise.
13248 * integrate.c: Likewise.
13249 * ipa-inline.c: Likewise.
13250 * ipa-prop.c: Likewise.
13251 * ipa-split.c: Likewise.
13252 * ipa-struct-reorg.c: Likewise.
13253 * ipa-type-escape.c: Likewise.
13254 * langhooks.c: Likewise.
13255 * lto-cgraph.c: Likewise.
13256 * omp-low.c: Likewise.
13257 * stor-layout.c: Likewise.
13258 * tree-cfg.c: Likewise.
13259 * tree-complex.c: Likewise.
13260 * tree-dfa.c: Likewise.
13261 * tree-dump.c: Likewise.
13262 * tree-inline.c: Likewise.
13263 * tree-mudflap.c: Likewise.
13264 * tree-nested.c: Likewise.
13265 * tree-object-size.c: Likewise.
13266 * tree-pretty-print.c: Likewise.
13267 * tree-sra.c: Likewise.
13268 * tree-ssa-live.c: Likewise.
13269 * tree-ssa-loop-niter.c: Likewise.
13270 * tree-ssa-math-opts.c: Likewise.
13271 * tree-ssa-reassoc.c: Likewise.
13272 * tree-ssa-sccvn.c: Likewise.
13273 * tree-ssa-structalias.c: Likewise.
13274 * tree-tailcall.c: Likewise.
13275 * tree-vrp.c: Likewise.
13276 * tree.c: Likewise.
13277 * var-tracking.c: Likewise.
13278 * varasm.c: Likewise.
13280 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13283 * config/spu/spu.c (spu_expand_builtin_1): Allow references
13284 (as well as pointers) as argument to mask_for_load builtins.
13286 2010-07-15 Richard Guenther <rguenther@suse.de>
13288 PR tree-optimization/44946
13289 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
13290 with accessing only padding properly.
13292 2010-07-15 Jan Hubicka <jh@suse.cz>
13294 * ipa.c (function_and_variable_visibility): Variables marked as used
13295 should not be localized.
13297 2010-07-15 Jan Hubicka <jh@suse.cz>
13299 * cgraph.c: Include lto-streamer.h
13300 (change_decl_assembler_name): Work when assembler name hash is at place.
13301 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
13302 be sure to rename it to avoid name clash.
13303 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
13304 Localize hidden symbols only when locally defined.
13306 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
13308 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
13310 2010-07-15 Magnus Granberg <zorry@gentoo.org>
13311 Kevin F. Quinn <kevquinn@gentoo.org>
13313 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
13314 * common.opt: Add -Wtrampolines.
13315 * doc/invoke.texi: Add -Wtrampolines.
13317 2010-07-15 Jie Zhang <jie@codesourcery.com>
13319 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
13320 cortex_a8_issue_ls.
13322 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
13324 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
13325 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
13327 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13329 * config/spu/spu.c (reg_names): Remove prototype.
13330 (call_used_regs): Likewise.
13332 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
13334 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
13335 "unused" with attribute "used".
13336 (__JCR_END__): Likewise.
13337 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
13339 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
13341 2010-07-14 Richard Guenther <rguenther@suse.de>
13343 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
13344 (maybe_fixup_decls): Likewise.
13345 (input_gimple_stmt): Do not fixup anything.
13346 * lto-streamer-out.c (output_gimple_stmt): Make sure all
13347 non-automatic variable uses are wrapped inside a MEM_REF.
13349 2010-07-14 Richard Henderson <rth@redhat.com>
13351 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
13353 * varasm.c (assemble_variable): Remove early exit for functions;
13354 assert that we're given a variable.
13356 2010-07-14 Jie Zhang <jie@codesourcery.com>
13358 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
13359 cortex_a8_default when neon_type is not none.
13361 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13363 * lower-subreg.c (subreg_context): New static bitmap.
13364 (decompose_multiword_subregs): Allocate and free it.
13365 (find_decomposable_subregs): Set a bit in it for a register that
13366 occurs in a subreg that changes mode but not size.
13367 (can_decompose_p): Test it instead of non_decomposable_context.
13369 2010-07-14 Richard Guenther <rguenther@suse.de>
13371 PR tree-optimization/44824
13372 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
13373 is_gimple_mem_ref_addr.
13374 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
13375 non-decl_address_invariant_p addresses.
13377 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13379 * reload.c (find_reloads): Revert code to penalize small register
13380 classes that was brought in with the IRA merge.
13382 2010-07-14 Richard Guenther <rguenther@suse.de>
13384 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
13385 as base of ARRAY_REFs.
13387 2010-07-14 Richard Guenther <rguenther@suse.de>
13389 PR middle-end/44930
13390 * tree-pretty-print.c (do_niy): Do not print a newline.
13392 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13394 * ira-int.h (struct ira_object): New.
13395 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
13396 (struct ira_allocno): Remove members min, max,
13397 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
13398 conflict_allocnos_num and conflict_vec_p. Add new member object.
13399 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
13400 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
13401 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
13402 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
13403 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
13404 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
13405 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
13406 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
13407 an ira_object_t rather than ira_allocno_t. All uses changed.
13408 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
13409 contains a vector of ira_object_t; all uses changed.
13410 (ira_objects_num): Declare variable.
13411 (ira_create_allocno_object): Declare function.
13412 (ira_conflict_vector_profitable_p): Adjust prototype.
13413 (ira_allocate_conflict_vec): Renamed from
13414 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
13415 (ira_allocate_object_conflicts): Renamed from
13416 ira_allocate_allocno_conflicts; first arg now ira_object_t.
13417 (struct ira_object_iterator): New.
13418 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
13419 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
13420 to conflict_vec_p. All uses changed.
13421 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
13422 Changed to take into account that conflicts are now tracked for
13424 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
13425 Args changed to accept ira_object_t. All uses changed.
13426 (allocnos_conflict_p): New static function.
13427 (collected_conflict_objects): Renamed from collected_allocno_objects;
13428 now a vector of ira_object_t. All uses changed.
13429 (build_conflict_bit_table): Changed to take into account that
13430 conflicts are now tracked for objects.
13431 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
13432 (print_allocno_conflicts, ira_build_conflicts): Likewise.
13433 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
13434 setup_allocno_left_conflicts_size, allocno_reload_assign,
13435 fast_allocation): Likewise.
13436 * ira-lives.c (make_hard_regno_born, make_allocno_born)
13437 process_single_reg_class_operands, process_bb_node_lives): Likewise.
13438 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
13440 * ira-build.c (ira_objects_num): New variable.
13441 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
13442 contains a vector of ira_object_t; all uses changed.
13443 (ira_object_id_map_vec): Corresponding change.
13444 (object_pool): New static variable.
13445 (initiate_allocnos): Initialize it.
13446 (finish_allocnos): Free it.
13447 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
13449 (ira_create_allocno): Don't set members that were removed.
13450 (ira_set_allocno_cover_class): Don't change conflict hard regs.
13451 (merge_hard_reg_conflicts): Changed to take into account that
13452 conflicts are now tracked for objects.
13453 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
13454 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
13455 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
13456 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
13457 setup_min_max_conflict_allocno_ids, ): Likewise.
13458 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
13459 to ira_object_t; all callers changed.
13460 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
13461 to ira_object_t, all callers changed.
13462 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
13463 to ira_object_t, all callers changed.
13464 (conflict_check, curr_conflict_check_tick): Renamed from
13465 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
13467 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
13468 arg changed to ira_object_t, all callers changed.
13469 (create_cap_allocno): Call ira_create_allocno_object.
13470 (finish_allocno): Free the corresponding object.
13471 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
13472 callers changed. Adjusted for dealing with objects.
13473 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
13474 dealing with objects.
13475 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
13477 * ira-int.h (struct live_range): Rename allocno member to object
13478 and change type to ira_object_t.
13479 (struct ira_object): New member live_ranges.
13480 (struct ira_allocno): Remove member live_ranges.
13481 (ALLOCNO_LIVE_RANGES): Remove.
13482 (OBJECT_LIVE_RANGES): New macro.
13483 (ira_create_live_range, ira_copy_live_range_list,
13484 ira_merge_live_range_list, ira_live_ranges_intersect_p,
13485 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
13486 * ira-build.c (ira_create_object): Initialize live ranges here.
13487 (ira_create_allocno): Not here.
13488 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
13489 changed to ira_object_t, all callers changed.
13490 (copy_live_range): Rename from copy_allocno_live_range, all callers
13492 (ira_copy_live_range_list): Rename from
13493 ira_copy_allocno_live_range_list, all callers changed.
13494 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
13495 all callers changed.
13496 (ira_live_ranges_intersect_p): Rename from
13497 ira_allocno_live_ranges_intersect_p, all callers changed.
13498 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
13500 (ira_finish_live_range_list): Rename from
13501 ira_finish_allocno_live_range_list, all callers changed.
13502 (change_object_in_range_list): Rename from change_allocno_in_range_list,
13503 last arg changed to ira_object_t, all callers changed.
13504 (finish_allocno): Changed to expect live ranges in the allocno's object.
13505 (move_allocno_live_ranges, copy_allocno_live_ranges,
13506 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
13507 ira_flattening, ira_build): Likewise.
13508 * ira-color.c (allocnos_have_intersected_live_ranges_p,
13509 slot_coalesced_allocno_live_ranges_intersect,
13510 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
13511 * ira-conflicts.c (build_conflict_bit_table): Likewise.
13512 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13513 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
13514 make_allocno_dead, create_start_finish_chains,
13515 remove_some_program_points_and_update_live_ranges,
13516 ira_debug_live_range_list): Likewise.
13518 * ira-int.h (ira_object_conflict_iterator): Rename from
13519 ira_allocno_conflict_iterator.
13520 (ira_object_conflict_iter_init): Rename from
13521 ira_allocno_conflict_iter_init, second arg changed to
13522 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
13523 FOR_EACH_ALLOCNO_CONFLICT.
13524 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
13525 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
13526 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
13527 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13529 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
13532 * tree-dump.c (dump_options): Add enumerate_locals entry.
13533 Add TDF_NOID exclusion to all entry.
13534 * tree-dump.h (dump_enumerated_decls): Declare.
13535 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
13536 Don't display type uid.
13537 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
13538 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
13539 * tree-ssa-live.c: Include gimple.h.
13540 (numbered_tree_d): New struct.
13541 (numbered_tree): New typedef.
13542 (DEF_VEC_O (numbered_tree): New.
13543 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
13544 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
13545 (dump_enumerated_decls): Likewise.
13546 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
13547 debug info and flag_dump_final_insns, call dump_enumerated_decls.
13548 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
13549 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
13551 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
13553 * expmed.h (MAX_BITS_PER_WORD): Move to...
13554 * defaults.h (MAX_BITS_PER_WORD): ...here.
13556 2010-07-13 DJ Delorie <dj@redhat.com>
13558 * config/h8300/h8300.c (h8300_init_once): Default to
13559 -fstrict_volatile_bitfields.
13561 * config/sh/sh.c (sh_override_options): Default to
13562 -fstrict_volatile_bitfields.
13564 * config/rx/rx.c (rx_option_override): New.
13566 * config/m32c/m32c.c (m32c_override_options): Default to
13567 -fstrict_volatile_bitfields.
13569 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
13571 * tree.h (build_function_call_expr): Delete.
13572 (build_call_expr_loc_array): New function.
13573 (build_call_expr_loc_vec): New function.
13574 * tree-flow.h (struct omp_region): Change type of ws_args field
13576 * builtins.c (build_function_call_expr): Delete.
13577 (build_call_expr_loc_array): New function.
13578 (build_call_expr_loc): Call it. Use XALLOCAVEC.
13579 (build_call_expr): Likewise.
13580 (build_call_expr_loc_vec): New function.
13581 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
13582 build_function_call_expr.
13583 * expr.c (emutls_var_address): Likewise.
13584 * varasm.c (emutls_common_1): Likewise.
13585 * omp-low.c (expand_omp_atomic_mutex): Likewise.
13586 (expand_omp_taskreg): Adjust for new type of region->ws_args.
13587 (get_ws_args_for): Return a VEC instead of a tree.
13588 (expand_parallel_call): Call build_call_expr_loc_vec instead of
13589 build_function_call_expr.
13590 * stor-layout.c (self_referential_size): Likewise.
13592 2010-07-13 Jakub Jelinek <jakub@redhat.com>
13595 * recog.c (constrain_operands): Allow side-effects in memory
13596 operands if either < or > constraint is used, rather than if
13597 both < and > is used.
13599 2010-07-13 Richard Guenther <rguenther@suse.de>
13601 PR middle-end/44911
13602 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
13603 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
13606 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
13609 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
13610 to variable emited.
13611 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
13612 * config/sh/sh.md (symGOT_load): Likewise.
13613 (symDTPOFF2reg): Likewise.
13614 (symTPOFF2reg): Likewise.
13616 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13618 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
13619 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
13621 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13623 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
13625 Find ucontext_t * on Solaris 11.
13626 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
13627 Handle new Solaris 11 __sighndlr patterns.
13629 2010-07-13 Jakub Jelinek <jakub@redhat.com>
13632 * vec.h (VEC_block_remove): Fix comment.
13633 * tree-ssa-live.c (remove_unused_locals): Don't use
13634 VEC_unordered_remove on local_decls, instead replace a single
13635 vector element in each iteration if at least one element had
13636 to be removed and VEC_truncate at the end.
13637 * omp-low.c (expand_omp_taskreg): Likewise.
13639 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
13641 * c-decl.c (finish_function): Fix typo in comment.
13643 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
13646 * postreload.c (move2add_use_add3_insn): Silence gcc warning
13649 2010-07-12 Jakub Jelinek <jakub@redhat.com>
13651 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
13652 (simplify_stmt_using_ranges): Use it.
13654 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13656 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
13657 member. Do not mark as GTY(()).
13658 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
13659 (spu_builtin_decls): New static variable.
13660 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
13661 (spu_init_builtins): Likewise.
13662 (spu_builtin_mul_widen_even): Likewise.
13663 (spu_builtin_mul_widen_odd): Likewise.
13664 (spu_builtin_mask_for_load): Likewise.
13665 (spu_builtin_vec_perm): Likewise.
13666 * config/spu/spu-c.c: Include "target.h".
13667 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
13668 of using spu_builtins[].fndecl.
13670 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13672 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
13673 imply -minterlink-mips16.
13675 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13677 * config/mips/mips.h (mips16_globals): Declare.
13678 (SWITCHABLE_TARGET): Define.
13679 * config/mips/mips.c: Include target-globals.h.
13680 (mips16_globals): New variable.
13681 (mips_set_mips16_mode): Use save_target_globals and
13682 restore_target_globals instead of target_reinit.
13684 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13686 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
13687 to say that the function can be called more than once.
13688 * target-globals.c (save_target_globals): Call init_reg_sets.
13690 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13692 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
13693 * bb-reorder.h: New file.
13694 * bb-reorder.c (default_target_bb_reorder): New variable.
13695 (this_target_bb_reorder): New conditional variable.
13696 (uncond_jump_length): Redefine as a macro.
13697 * target-globals.h (this_target_bb_reorder): Declare.
13698 (target_globals): Add a bb_reorder field.
13699 (restore_target_globals): Copy the bb_reorder field to
13700 this_target_bb-reorder.
13701 * target-globals.c: Include bb-reorder.h.
13702 (default_target_globals): Initialize the bb_reorder field.
13703 (save_target_globals): Likewise.
13705 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13707 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
13708 * gcse.h: New file.
13709 * gcse.c: Include gcse.h.
13710 (default_target_gcse): New variable.
13711 (this_target_gcse): New conditional variable.
13712 (can_copy): Redefine as a macro.
13713 (can_copy_init_p): New macro.
13714 (can_copy_p): Remove can_copy_init_p.
13715 * target-globals.h (this_target_gcse): Declare.
13716 (target_globals): Add a gcse field.
13717 (restore_target_globals): Copy the gcse field to this_target_gcse.
13718 * target-globals.c: Include gcse.h.
13719 (default_target_globals): Initialize the gcse field.
13720 (save_target_globals): Likewise.
13722 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13724 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
13725 and x_ira_prohibited_mode_move_regs_initialized_p.
13726 (ira_prohibited_mode_move_regs): Redefine as a macro.
13727 * ira.c (ira_prohibited_mode_move_regs): Delete.
13728 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
13730 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13732 * reload.h (target_reload): Add x_cached_reg_save_code and
13733 x_cached_reg_restore_code.
13734 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
13735 Redefine as macros.
13737 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13739 * Makefile.in (target-globals.o): Depend on builtins.h.
13740 * builtins.h: New file.
13741 * builtins.c: Include builtins.h.
13742 (default_target_builtins): New variable.
13743 (this_target_builtins): New conditional variable.
13744 (apply_args_mode, apply_result_mode): Redefine as macros.
13745 * target-globals.h (this_target_builtins): Declare.
13746 (target_globals): Add a builtins field.
13747 (restore_target_globals): Copy the builtins field to
13748 this_target_builtins.
13749 * target-globals.c: Include builtins.h.
13750 (default_target_globals): Initialize the builtins field.
13751 (save_target_globals): Likewise.
13753 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13755 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
13756 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
13758 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
13759 (alg_hash, alg_hash_used_p): New macros.
13760 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
13761 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
13762 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
13764 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13766 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
13767 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
13768 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
13769 (this_op_costs, costs_classes): Redefine as macros.
13770 (record_reg_classes): Don't take op_costs as a parameter.
13771 (record_operand_costs): Likewise. Update calls to record_reg_classes.
13772 (scan_one_insn): Update call to record_operand_costs.
13774 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13776 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
13777 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
13778 (target_ira_int): New structure.
13779 (default_target_ira_int): Declare.
13780 (this_target_ira_int): Declare as a variable or define as a macro.
13781 (ira_reg_mode_hard_regset, ira_register_move_cost)
13782 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
13783 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
13784 (prohibited_class_mode_regs, ira_important_classes_num)
13785 (ira_important_classes, ira_reg_class_intersect)
13786 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
13787 (ira_reg_class_union): Redefine as macros.
13788 * ira.h (target_ira): New structure.
13789 (default_target_ira): Declare.
13790 (this_target_ira): Declare as a variable or define as a macro.
13791 (ira_available_class_regs, ira_hard_regno_cover_class)
13792 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
13793 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
13794 (ira_class_hard_regs_num): Redefine as macros.
13795 * ira.c (default_target_ira, default_target_ira_int): New variables.
13796 (this_target_ira, this_target_ira_int): New conditional variables.
13797 (ira_reg_mode_hard_regset, ira_memory_move_cost)
13798 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
13799 (ira_class_subset_p): Delete.
13800 (no_unit_alloc_regs): Redefine as a macro.
13801 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
13802 (ira_class_hard_regs_num, ira_class_hard_reg_index)
13803 (ira_available_class_regs): Delete.
13804 (alloc_reg_class_subclasses): Redefine as a macro.
13805 (ira_reg_class_cover_size, ira_reg_class_cover)
13806 (ira_important_classes_num, ira_important_classes)
13807 (ira_important_class_nums, ira_class_translate): Delete.
13808 (cover_class_order): Document the variable's lifetime.
13809 (reorder_important_classes): Don't set ira_important_class_nums.
13810 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
13811 (ira_reg_class_super_classes, ira_reg_class_union)
13812 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
13814 (setup_reg_class_nregs): Don't set ira_max_regs.
13815 (prohibited_class_mode_regs): Delete.
13816 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
13817 (target_globals): Add ira and ira_int fields.
13818 (restore_target_globals): Copy the ira field to this_target_ira
13819 and the ira_int field to this_target_ira_int.
13820 * target-globals.c: Include ira-int.h.
13821 (default_target_globals): Initialize the ira and ira_int fields.
13822 (save_target_globals): Likewise.
13824 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13826 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
13827 * cfgloop.h (target_cfgloop): New structure.
13828 (default_target_cfgloop): Declare.
13829 (this_target_cfgloop): Declare as a variable or define as a macro.
13830 (target_avail_regs, target_clobbered_regs, target_res_regs)
13831 (target_reg_cost, target_spill_cost): Redefine as macros.
13832 * cfgloopanal.c (default_target_cfgloop): New variable.
13833 (this_target_cfgloop): New conditional variable.
13834 (target_avail_regs, target_clobbered_regs, target_res_regs)
13835 (target_reg_cost, target_spill_cost): Delete.
13836 * target-globals.h (this_target_cfgloop): Declare.
13837 (target_globals): Add a cfgloop field.
13838 (restore_target_globals): Copy the cfgloop field to
13839 this_target_cfgloop.
13840 * target-globals.c: Include cfgloop.h.
13841 (default_target_globals): Initialize the cfgloop field.
13842 (save_target_globals): Likewise.
13844 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13846 * regs.h (target_regs): Add x_direct_load, x_direct_store and
13847 x_float_extend_from_mem.
13848 (direct_load, direct_store, float_extend_from_mem): New macros.
13849 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
13851 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13853 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
13854 (target-globals.o): Depend on $(LIBFUNCS_H).
13855 * libfuncs.h: Include hashtab.h.
13856 (libfunc_entry): Moved from optabs.c.
13857 (target_libfuncs): New structure.
13858 (default_target_libfuncs): Declare.
13859 (this_target_libfuncs): Declare as a variable or define as a macro.
13860 (libfunc_table): Redefine as a macro.
13861 * optabs.c (default_target_libfuncs): New variable.
13862 (this_target_libfuncs): New conditional variable.
13863 (libfunc_table): Delete.
13864 (libfunc_entry): Moved to optabs.h.
13865 (libfunc_hash): Redefine as a macro.
13866 (hash_libfunc, eq_libfunc): Fix comments.
13867 (init_optabs): Use libfunc_hash to detect cases where the function
13868 has already been called. Clear the hash table instead of
13870 * target-globals.h (this_target_libfuncs): Declare.
13871 (target_globals): Add a libfuncs field.
13872 (restore_target_globals): Copy the libfuncs field to
13873 this_target_libfuncs.
13874 * target-globals.c: Include libfuncs.h.
13875 (default_target_globals): Initialize the libfuncs field.
13876 (save_target_globals): Likewise.
13878 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13880 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
13881 in all dependency lists.
13883 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13885 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
13886 * optabs.h (target_optabs): New structure.
13887 (default_target_optabs): Declare.
13888 (this_target_optabs): Declare as a variable or define as a macro.
13889 (optab_table, convert_optab_table, direct_optab_table): Redefine
13891 * optabs.c (default_target_optabs): New variable.
13892 (this_target_optabs): New conditional variable.
13893 (optab_table, convert_optab_table, direct_optab_table): Delete.
13894 * target-globals.h (this_target_optabs): Declare.
13895 (target_globals): Add a optabs field.
13896 (restore_target_globals): Copy the optabs field to
13897 this_target_optabs.
13898 * target-globals.c: Include expr.h and optabs.h.
13899 (default_target_globals): Initialize the optabs field.
13900 (save_target_globals): Likewise.
13902 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13904 * flags.h (target_flagstate): Add x_flag_excess_precision.
13905 (flag_excess_precision): Redefine as a macro.
13906 * toplev.c (flag_excess_precision): Delete.
13908 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13910 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
13911 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
13912 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
13913 (no_caller_save_reg_set): Redefine as a macro.
13914 * reload.h (target_reload): Add x_caller_save_initialized_p and
13916 (caller_save_initialized_p): Redefine as a macro.
13917 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
13918 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
13919 (regno_save_mode): Redefine as a macro.
13921 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13923 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
13924 * expmed.h: New file.
13925 * expmed.c (default_target_costs): New variable.
13926 (this_target_costs): New conditional variable.
13927 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
13928 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
13929 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
13930 * target-globals.h (this_target_expmed): Declare.
13931 (target_globals): Add a expmed field.
13932 (restore_target_globals): Copy the expmed field to
13933 this_target_expmed.
13934 * target-globals.c: Include expmed.h.
13935 (default_target_globals): Initialize the expmed field.
13936 (save_target_globals): Likewise.
13938 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13940 * Makefile.in (target-globals.o): Depend on reload.h.
13941 * reload.h (target_reload): New structure.
13942 (default_target_reload): Declare.
13943 (this_target_reload): Declare as a variable or define as a macro.
13944 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
13945 * reload1.c (default_target_reload): New variable
13946 (this_target_reload): New conditional variable.
13947 (indirect_symref_ok, double_reg_address_ok): Delete.
13948 (spill_indirect_levels): Redefine as a macro.
13949 * target-globals.h (this_target_reload): Declare.
13950 (target_globals): Add a reload field.
13951 (restore_target_globals): Copy the reload field to
13952 this_target_reload.
13953 * target-globals.c: Include hard-reg-set.h.
13954 (default_target_globals): Initialize the reload field.
13955 (save_target_globals): Likewise.
13957 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13959 * rtl.h (target_rtl): Add x_static_reg_base_value.
13960 * alias.c (static_reg_base_value): Redefine as a macro.
13962 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13964 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
13965 (GTFILES): Remove reginfo.c.
13966 * rtl.h (target_rtl): Add x_top_of_stack.
13967 (top_of_stack): New macro.
13968 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
13969 (top_of_stack): Delete.
13971 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13973 * regs.h (target_regs): Add x_hard_regs_of_mode,
13974 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
13975 x_may_move_out_cost and x_last_mode_for_init_move_cost.
13976 (have_regs_of_mode, contains_reg_of_mode, move_cost)
13977 (may_move_in_cost, may_move_out_cost): Redefine as macros.
13978 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
13979 (may_move_in_cost, may_move_out_cost): Delete.
13980 (last_mode_for_init_move_cost): Redefine as a macro.
13982 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13984 * hard-reg-set.h (target_hard_regs): New structure.
13985 (default_target_hard_regs): Declare.
13986 (this_target_hard_regs): Declare as a variable or define as a macro.
13987 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
13988 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
13989 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
13990 (reg_class_size, reg_class_subclasses, reg_class_subunion)
13991 (reg_class_superunion, reg_names): Redefine as macros.
13992 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
13993 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
13994 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
13995 (reg_class_contents, reg_class_size, reg_class_subclasses)
13996 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
13997 (default_target_hard_regs): New variable
13998 (this_target_hard_regs, initial_call_really_used_regs)
13999 (initial_reg_alloc_order): New conditional variables.
14000 (initial_reg_names): New variable.
14001 (init_reg_sets): Assert that initial_call_really_used_regs,
14002 initial_reg_alloc_order and initial_reg_names
14003 are all the same size as their variable counterparts. Use them to
14004 initialize those counterparts.
14005 * target-globals.h (this_target_hard_regs): Declare.
14006 (target_globals): Add a hard_regs field.
14007 (restore_target_globals): Copy the hard_regs field to
14008 this_target_hard_regs.
14009 * target-globals.c: Include hard-reg-set.h.
14010 (default_target_globals): Initialize the hard_regs field.
14011 (save_target_globals): Likewise.
14013 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14015 * Makefile.in (target-globals.o): Depend on $(RTL_H).
14016 * rtl.h (target_rtl): New structure.
14017 (default_target_rtl): Declare.
14018 (this_target_rtl): Declare as a variable or define as a macro.
14019 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
14020 Redefine as macros.
14021 * emit-rtl.c (default_target_rtl): New variable.
14022 (this_target_rtl): New conditional variable.
14023 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
14024 (return_address_pointer_rtx): Delete.
14025 (initial_regno_reg_rtx): New macro.
14026 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
14027 (init_emit_regs): Likewise.
14028 * target-globals.h (this_target_rtl): Declare.
14029 (target_globals): Add a rtl field.
14030 (restore_target_globals): Copy the rtl field to this_target_rtl.
14031 * target-globals.c: Include rtl.h.
14032 (default_target_globals): Initialize the rtl field.
14033 (save_target_globals): Likewise.
14035 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14037 * Makefile.in (target-globals.o): Depend on $(REGS_H).
14038 * regs.h (target_reg_modes): New structure.
14039 (default_target_reg_modes): Declare.
14040 (this_target_reg_modes): Declare as a variable or define as a macro.
14041 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
14042 * reginfo.c (default_target_reg_modes): New variable.
14043 (this_target_reg_modes): New conditional variable.
14044 (hard_regno_nregs, reg_raw_mode): Delete.
14045 * target-globals.h (this_target_regs): Declare.
14046 (target_globals): Add a regs field.
14047 (restore_target_globals): Copy the regs field to this_target_regs.
14048 * target-globals.c: Include regs.h.
14049 (default_target_globals): Initialize the regs field.
14050 (save_target_globals): Likewise.
14052 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14054 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
14055 * doc/tm.texi: Regenerate.
14056 * Makefile.in (OBJS-common): Add target-globals.o.
14057 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
14058 and target-globals.h.
14059 (target-globals.o): New rule.
14060 (GTFILES): Include $(srcdir)/target-globals.h.
14061 * defaults.h (SWITCHABLE_TARGET): Define.
14062 * gengtype.c (open_base_files): Add target-globals.h to the
14064 * target-globals.h: New file.
14065 * target-globals.c: Likewise.
14067 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
14068 * flags.h (target_flag_state): New structure.
14069 (default_target_flag_state): Declare.
14070 (this_target_flag_state): Declare as a variable or define as a macro.
14071 (align_loops_log): Redefine as a macro.
14072 (align_loops_max_skip, align_jumps_log): Likewise.
14073 (align_jumps_max_skip, align_labels_log): Likewise.
14074 (align_labels_max_skip, align_functions_log): Likewise.
14075 * toplev.c (default_target_flag_state): New variable.
14076 (this_target_flag_state): New conditional variable.
14077 (align_loops_log): Delete.
14078 (align_loops_max_skip, align_jumps_log): Likewise.
14079 (align_jumps_max_skip, align_labels_log): Likewise.
14080 (align_labels_max_skip, align_functions_log): Likewise.
14081 * target-globals.h (this_target_flag_state): Declare.
14082 (target_globals): Add a flag_state field.
14083 (restore_target_globals): Copy the flag_state field to
14084 this_target_flag_state.
14085 * target-globals.c: Include flags.h.
14086 (default_target_globals): Initialize the flag_state field.
14087 (save_target_globals): Likewise.
14089 2010-07-12 Jie Zhang <jie@codesourcery.com>
14091 * postreload.c (reg_symbol_ref[]): New.
14092 (move2add_use_add2_insn): New.
14093 (move2add_use_add3_insn): New.
14094 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
14095 (move2add_note_store): Likewise.
14097 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
14099 PR rtl-optimization/44752
14100 * genautomata.c (main): Don't emit an empty file even if there
14103 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14105 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
14106 ix86_solaris_return_in_memory.
14107 * config/i386-protos.h: Reflect this.
14108 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
14109 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
14111 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
14113 2010-07-12 Jie Zhang <jie@codesourcery.com>
14115 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
14116 align the stack when it's going to be saved.
14118 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14121 * config/host-solaris.c (mmap_fixed): New function.
14122 (sol_gt_pch_get_address): Use it.
14123 (sol_gt_pch_use_address): Likewise.
14125 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14127 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
14128 pentiumpro on Solaris 8 and 9/x86.
14129 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
14130 Document SSE/SSE2 support.
14131 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
14133 2010-07-12 Andi Kleen <ak@linux.intel.com>
14135 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
14136 instead of gcc_assert to print better error message for multiple
14139 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
14141 * config/i386/i386.c (ix86_asm_output_function_label): Change format
14142 string placeholder from 0x%x to %#x.
14143 (ix86_code_end): Use putc to output '\n'.
14144 (ix86_print_operand) <case ';'>: Use putc to output ';'.
14146 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
14148 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
14149 in directive -export.
14151 2010-07-10 Anatoly Sokolov <aesok@post.ru>
14153 * reginfo.h (reg_classes_intersect_p): Change arguments type to
14155 * rtl.h (reg_classes_intersect_p): Adjust prototype.
14157 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14159 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
14160 rs6000_memory_move_cost): Remove
14161 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
14162 TARGET_MEMORY_MOVE_COST): Define.
14163 (rs6000_register_move_cost): Make static. Change arguments type from
14164 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
14165 (rs6000_memory_move_cost): Make static. Change arguments type from
14166 'enum reg_class' to reg_class_t.
14168 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
14170 PR middle-end/42505
14171 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
14172 lookup code into....
14173 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
14175 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
14176 * cfgloopanal.c (target_clobbered_regs): Define.
14177 (init_set_costs): Initialize target_clobbered_regs.
14178 (estimate_reg_pressure_cost): Add call_p argument. When true,
14179 adjust the number of available registers to exclude the
14180 call-clobbered registers.
14181 * cfgloop.h (target_clobbered_regs): Declare.
14182 (estimate_reg_pressure_cost): Adjust declaration.
14183 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
14184 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
14185 (determine_set_costs): Dump target_clobbered_regs.
14186 (loop_body_includes_call): New function.
14187 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
14188 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
14189 call_p flag through.
14190 (best_gain_for_invariant): Likewise.
14191 (find_invariants_to_move): Likewise.
14192 (move_single_loop_invariants): Likewise, using already-computed
14195 2010-07-10 Richard Guenther <rguenther@suse.de>
14196 Joern Rennecke <joern.rennecke@embecosm.com>
14199 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
14200 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
14201 unless they have DECL_IGNORED_P set.
14203 2010-07-10 Richard Guenther <rguenther@suse.de>
14206 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
14208 (gimple_types_compatible_p): Similar to pointed-to
14209 types allow and merge a mix of complete and incomplete aggregate.
14210 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
14211 (iterative_hash_gimple_type): Adjust for that.
14213 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
14215 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
14217 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
14220 * config/darwin.c (output_objc_section_asm_op): Save and restore
14221 section when outputting ObjC section list.
14223 2010-07-09 Jan Hubicka <jh@suse.cz>
14225 * lto-streamer-out.c (produce_symtab): Do not write alias
14226 cgraph/varpool nodes.
14228 2010-07-09 Jan Hubicka <jh@suse.cz>
14230 * tree-inline.c (declare_return_variable): Fix ICE while
14231 inlining DECL_BY_VALUE function not in SSA form
14233 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
14235 PR tree-optimization/44576
14236 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
14237 New. Pull out from is_loop_prefetching_profitable to implement
14238 the trip count to ahead ratio heuristic.
14239 (mem_ref_count_reasonable_p): New. Pull out from
14240 is_loop_prefetching_profitable to implement the instruction to
14241 memory reference ratio heuristic. Also consider not reasonable if
14242 the memory reference count is above a threshold (to avoid
14243 explosive compilation time.
14244 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
14245 is_loop_prefetching_profitable to implement the instruction to
14246 prefetch ratio heuristic.
14247 (is_loop_prefetching_profitable): Removed.
14248 (loop_prefetch_arrays): Distribute the cost analysis across the
14249 function to allow early exit of the prefetch analysis.
14250 is_loop_prefetching_profitable is splitted into three functions,
14251 with each one called as early as possible.
14252 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
14253 number of memory references in a loop is considered too many.
14255 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
14257 * reload.c (find_reloads): Don't clear badop if we have a winreg
14258 alternative, but not win, and the class only has fixed regs.
14259 * hard-reg-set.h (class_only_fixed_regs): Declare.
14260 * reginfo.c (class_only_fixed_regs): New array.
14261 (init_reg_sets_1): Initialize it.
14262 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
14263 discourage alternatives using the stack pointer.
14265 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
14267 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
14269 * config/arm/arm.md (cbranchqi4): Fix array size.
14270 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
14271 calculating length.
14273 2010-07-09 Richard Guenther <rguenther@suse.de>
14275 * gimple.c (struct type_fixup_s): New struct and VEC type.
14276 (gimple_register_type_fixups): New static global.
14277 (gimple_queue_type_fixup): New function.
14278 (gimple_types_compatible_p): Queue type fixups instead of
14279 applying them here.
14280 (gimple_register_type): Apply queued fixups for the
14281 canonical type. Empty the type fixup queue.
14283 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14285 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
14286 * configure: Regenerate.
14287 * config.in: Ditto.
14289 2010-07-09 Jakub Jelinek <jakub@redhat.com>
14290 Denys Vlasenko <dvlasenk@redhat.com>
14291 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14293 PR tree-optimization/28632
14294 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
14295 (extract_range_from_binary_expr): Further optimize
14296 BIT_AND_EXPR and BIT_IOR_EXPR.
14298 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
14300 * tree-if-conv.c (fold_or_predicates): New.
14301 (add_to_predicate_list): Call it.
14303 2010-07-09 Richard Guenther <rguenther@suse.de>
14305 PR middle-end/44890
14306 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
14307 if base is a pointer.
14308 * tree-cfg.c (verify_expr): Update MEM_REF checking.
14310 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14313 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
14314 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
14315 builtin mask for load/store builtins.
14317 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14319 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
14321 * configure: Regenerate.
14322 * config/i386/i386.c (ix86_print_operand) <case ';'>:
14323 Remove TARGET_MACHO.
14325 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
14327 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
14329 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
14331 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
14333 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
14335 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14337 * config/picochip/picochip.md (commsTestPort): Emit more
14338 efficient sequence for tstport instruction.
14340 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14342 * config/i386/i386.c (ix86_veclib_handler): Make static.
14344 2010-07-09 Richard Guenther <rguenther@suse.de>
14346 PR tree-optimization/44852
14347 * tree-ssa-alias.c: Include toplev.h for exact_log2.
14348 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
14350 (indirect_refs_may_alias_p): Likewise.
14351 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
14353 2010-07-09 Richard Guenther <rguenther@suse.de>
14355 PR tree-optimization/44882
14356 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
14358 (vectorizable_load): Likewise.
14360 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
14363 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
14364 All callers changed.
14365 Handle the case when we're called for the epilogue.
14366 (thumb_unexpanded_epilogue): Use it.
14367 (thumb1_expand_epilogue): Likewise.
14369 2010-07-09 Jakub Jelinek <jakub@redhat.com>
14371 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
14372 both ranges are range_int_cst_p with non-negative minimum,
14373 try harder to derive smaller range.
14375 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14377 * genrecog.c: Include diagnostic-core.h before toplev.h.
14378 * genoutput.c: Likewise.
14379 * genextract.c: Likewise.
14380 * genautomata.c: Likewise.
14381 * genemit.c: Likewise.
14382 * genpeep.c: Likewise.
14383 * genattrtab.c: Likewise.
14384 * genconditions.c: Likewise.
14385 * genpreds.c: Likewise.
14387 2010-07-08 Andi Kleen <ak@linux.intel.com>
14389 * lto-section-in.c (lto_section_name): Add missing comma.
14391 2010-07-08 Anatoly Sokolov <aesok@post.ru>
14393 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
14394 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
14395 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
14396 (ia64_override_options): Rename to...
14397 (ia64_option_override): ... this one. Make static.
14399 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14401 PR middle-end/44843
14402 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
14403 pointed-to type of the offset in a MEM_REF to compute the alignment.
14405 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
14407 * final.c (final_scan_insn): Replace
14408 TARGET_UNWIND_INFO macro check by unwind_emit
14410 * targhooks.c (default_unwind_emit): Removed.
14411 * targhooks.h (default_unwind_emit): Likewise.
14412 * target.def (unwind_emit): Set default value to NULL.
14414 * config/i386/i386-protos.h (ix86_asm_output_function_label):
14416 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
14417 for NULL fntype argument and allow 64-bit targets.
14418 (ix86_asm_output_function_label): New function.
14419 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
14420 (ix86_handle_fndecl_attribute): Likewise.
14421 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
14422 * doc/doc/tm.texi: Regenerated.
14423 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
14424 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
14425 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
14426 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
14427 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
14428 * config/elfos.h: Likewise.
14429 * config/i386/cygming.h: Likewise.
14430 * config/netbsd-aout.h: Likewise.
14431 * config/openbsd.h: Likewise.
14432 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
14433 by ix86_asm_output_function_label function call.
14434 * varasm.c (assemble_start_function): Use
14435 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
14437 2010-07-08 Jan Hubicka <jh@suse.cz>
14439 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
14441 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
14443 * ipa-cp.c (ipcp_estimate_growth): Use it.
14444 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
14447 2010-07-08 Jan Hubicka <jh@suse.cz>
14449 * tree-inline.c (declare_return_variable): Allocate annotation for new
14452 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
14454 PR tree-optimization/44710
14455 * tree-if-conv.c (parse_predicate): New.
14456 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
14457 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
14459 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
14461 * common.opt (ftree-loop-if-convert): New flag.
14462 * doc/invoke.texi (ftree-loop-if-convert): Documented.
14463 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
14464 when flag_tree_loop_if_convert is set.
14466 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
14468 * config/i386/i386.c: Use short syntax for function calls
14469 through function pointers.
14470 * config/i386/i386.md: Ditto.
14472 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14474 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
14476 2010-07-08 Richard Guenther <rguenther@suse.de>
14478 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
14479 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
14481 2010-07-08 Jakub Jelinek <jakub@redhat.com>
14483 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
14484 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
14485 (loc_list_from_tree): Likewise.
14486 (output_loc_operands): Handle outputting DW_OP_const[48]u
14487 with loc->dtprel set.
14488 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
14490 2010-07-08 Jan Hubicka <jh@suse.cz>
14492 * ipa.c: Include pointer-set.h
14493 (cgraph_externally_visible_p): New attribute ALIASED;
14494 when in LTO, hidden symbols are local unless they are aliased.
14495 (function_and_variable_visibility): Compute aliased nodes;
14496 handle LTO and hidden symbol on functions and vars.
14497 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
14498 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
14500 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14502 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14503 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14504 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14505 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14506 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14507 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
14508 (ix86_gen_probe_stack_range): Likewise.
14509 (override_options): Set them.
14510 (ix86_target_stack_probe): New function.
14511 (ix86_compute_frame_layout): Force use of push instructions to
14512 save registers if stack checking with probes is enabled.
14513 (get_scratch_register_on_entry): New function.
14514 (release_scratch_register_on_entry): Likewise.
14515 (ix86_adjust_stack_and_probe): Likewise.
14516 (output_adjust_stack_and_probe): Likewise.
14517 (ix86_emit_probe_stack_range): Likewise.
14518 (output_probe_stack_range): Likewise.
14519 (ix86_expand_prologue): Emit stack checking code if static built-in
14520 stack checking is enabled.
14521 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
14522 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
14523 (output_adjust_stack_and_probe): Likewise.
14524 (output_probe_stack_range): Likewise.
14525 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
14526 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
14527 TARGET_STACK_PROBE.
14528 (allocate_stack_worker_64): Likewise.
14529 (allocate_stack): Likewise.
14530 (adjust_stack_and_probe): New insn.
14531 (probe_stack_range): Likewise.
14533 2010-07-08 Richard Guenther <rguenther@suse.de>
14535 PR tree-optimization/44831
14536 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
14537 a MEM_REF preserving TBAA info of the original dereference.
14538 Dereference the original pointer if the address is not invariant.
14539 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
14540 at least one invariant address that we are going to dereference.
14542 2010-07-08 Richard Guenther <rguenther@suse.de>
14544 PR tree-optimization/44861
14545 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
14546 information when building MEM_REFs.
14547 (vectorizable_load): Likewise.
14548 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
14550 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14552 * config/sol2-c.c: Do not include diagnostic-core.h.
14554 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14557 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
14558 with respect to current_function_decl. Pass decl of the function.
14559 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
14560 * ipa-inline.c (compute_inline_parameters): Pass decl to
14561 estimated_stack_frame_size.
14563 2010-07-08 Richard Guenther <rguenther@suse.de>
14565 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
14567 (valueize_refs): Call it.
14569 2010-07-08 Richard Guenther <rguenther@suse.de>
14571 PR rtl-optimization/44838
14572 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
14573 SSA form do not use pointer equivalence.
14575 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14577 * dwarf2out.c (AT_linkage_name): Delete.
14578 (add_linkage_attr): New function.
14579 (add_linkage_name): Call it to emit the linkage attribute.
14580 (dwarf2out_finish): Likewise.
14581 (move_linkage_attr): Explicitly accept both attribute variants.
14583 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14585 * toplev.h: Do not include diagnostic-core.h.
14586 Include diagnostic-core.h in every file that includes toplev.h.
14587 * c-tree.h: Do not include toplev.h.
14588 * pretty-print.h: Update comment.
14589 * Makefile.in: Update dependencies.
14590 * alias.c: Include diagnostic-core.h in every file that includes
14592 * attribs.c: Likewise.
14593 * auto-inc-dec.c: Likewise.
14594 * bb-reorder.c: Likewise.
14595 * bt-load.c: Likewise.
14596 * caller-save.c: Likewise.
14597 * calls.c: Likewise.
14599 * cfganal.c: Likewise.
14600 * cfgbuild.c: Likewise.
14601 * cfgcleanup.c: Likewise.
14602 * cfghooks.c: Likewise.
14603 * cfgloop.c: Likewise.
14604 * combine.c: Likewise.
14605 * config/alpha/alpha.c: Likewise.
14606 * config/arc/arc.c: Likewise.
14607 * config/arm/arm.c: Likewise.
14608 * config/arm/pe.c: Likewise.
14609 * config/avr/avr.c: Likewise.
14610 * config/bfin/bfin.c: Likewise.
14611 * config/cris/cris.c: Likewise.
14612 * config/crx/crx.c: Likewise.
14613 * config/darwin-c.c: Likewise.
14614 * config/darwin.c: Likewise.
14615 * config/fr30/fr30.c: Likewise.
14616 * config/frv/frv.c: Likewise.
14617 * config/h8300/h8300.c: Likewise.
14618 * config/host-darwin.c: Likewise.
14619 * config/i386/i386.c: Likewise.
14620 * config/i386/netware.c: Likewise.
14621 * config/i386/nwld.c: Likewise.
14622 * config/i386/winnt-cxx.c: Likewise.
14623 * config/i386/winnt-stubs.c: Likewise.
14624 * config/i386/winnt.c: Likewise.
14625 * config/ia64/ia64-c.c: Likewise.
14626 * config/ia64/ia64.c: Likewise.
14627 * config/iq2000/iq2000.c: Likewise.
14628 * config/lm32/lm32.c: Likewise.
14629 * config/m32c/m32c-pragma.c: Likewise.
14630 * config/m32c/m32c.c: Likewise.
14631 * config/m32r/m32r.c: Likewise.
14632 * config/m68hc11/m68hc11.c: Likewise.
14633 * config/m68k/m68k.c: Likewise.
14634 * config/mcore/mcore.c: Likewise.
14635 * config/mep/mep-pragma.c: Likewise.
14636 * config/mep/mep.c: Likewise.
14637 * config/mmix/mmix.c: Likewise.
14638 * config/mn10300/mn10300.c: Likewise.
14639 * config/moxie/moxie.c: Likewise.
14640 * config/pa/pa.c: Likewise.
14641 * config/pdp11/pdp11.c: Likewise.
14642 * config/picochip/picochip.c: Likewise.
14643 * config/rs6000/rs6000-c.c: Likewise.
14644 * config/rs6000/rs6000.c: Likewise.
14645 * config/rx/rx.c: Likewise.
14646 * config/s390/s390.c: Likewise.
14647 * config/score/score.c: Likewise.
14648 * config/score/score3.c: Likewise.
14649 * config/score/score7.c: Likewise.
14650 * config/sh/sh.c: Likewise.
14651 * config/sh/symbian-base.c: Likewise.
14652 * config/sh/symbian-c.c: Likewise.
14653 * config/sh/symbian-cxx.c: Likewise.
14654 * config/sol2-c.c: Likewise.
14655 * config/sol2.c: Likewise.
14656 * config/sparc/sparc.c: Likewise.
14657 * config/spu/spu.c: Likewise.
14658 * config/stormy16/stormy16.c: Likewise.
14659 * config/v850/v850-c.c: Likewise.
14660 * config/v850/v850.c: Likewise.
14661 * config/vax/vax.c: Likewise.
14662 * config/vxworks.c: Likewise.
14663 * config/xtensa/xtensa.c: Likewise.
14664 * convert.c: Likewise.
14666 * cselib.c: Likewise.
14667 * dbgcnt.c: Likewise.
14668 * dbxout.c: Likewise.
14670 * dominance.c: Likewise.
14671 * emit-rtl.c: Likewise.
14672 * explow.c: Likewise.
14673 * expmed.c: Likewise.
14674 * fixed-value.c: Likewise.
14675 * fold-const.c: Likewise.
14676 * fwprop.c: Likewise.
14677 * gcse.c: Likewise.
14678 * ggc-common.c: Likewise.
14679 * ggc-page.c: Likewise.
14680 * ggc-zone.c: Likewise.
14681 * gimple-low.c: Likewise.
14682 * gimplify.c: Likewise.
14683 * graph.c: Likewise.
14684 * haifa-sched.c: Likewise.
14685 * ifcvt.c: Likewise.
14686 * implicit-zee.c: Likewise.
14687 * integrate.c: Likewise.
14688 * ira-build.c: Likewise.
14689 * ira-color.c: Likewise.
14690 * ira-conflicts.c: Likewise.
14691 * ira-costs.c: Likewise.
14692 * ira-lives.c: Likewise.
14694 * lists.c: Likewise.
14695 * loop-doloop.c: Likewise.
14696 * loop-iv.c: Likewise.
14697 * lto-opts.c: Likewise.
14698 * lto-symtab.c: Likewise.
14699 * main.c: Likewise.
14700 * modulo-sched.c: Likewise.
14701 * optabs.c: Likewise.
14702 * params.c: Likewise.
14703 * plugin.c: Likewise.
14704 * postreload-gcse.c: Likewise.
14705 * postreload.c: Likewise.
14706 * predict.c: Likewise.
14707 * profile.c: Likewise.
14708 * real.c: Likewise.
14709 * regcprop.c: Likewise.
14710 * reginfo.c: Likewise.
14711 * regmove.c: Likewise.
14712 * reorg.c: Likewise.
14713 * resource.c: Likewise.
14715 * rtlanal.c: Likewise.
14716 * sched-deps.c: Likewise.
14717 * sched-ebb.c: Likewise.
14718 * sched-rgn.c: Likewise.
14719 * sdbout.c: Likewise.
14720 * sel-sched-dump.c: Likewise.
14721 * sel-sched-ir.c: Likewise.
14722 * simplify-rtx.c: Likewise.
14723 * stmt.c: Likewise.
14724 * stor-layout.c: Likewise.
14725 * store-motion.c: Likewise.
14726 * targhooks.c: Likewise.
14727 * tree-cfg.c: Likewise.
14728 * tree-cfgcleanup.c: Likewise.
14729 * tree-dump.c: Likewise.
14730 * tree-eh.c: Likewise.
14731 * tree-inline.c: Likewise.
14732 * tree-nomudflap.c: Likewise.
14733 * tree-object-size.c: Likewise.
14734 * tree-optimize.c: Likewise.
14735 * tree-outof-ssa.c: Likewise.
14736 * tree-phinodes.c: Likewise.
14737 * tree-profile.c: Likewise.
14738 * tree-ssa-ccp.c: Likewise.
14739 * tree-ssa-coalesce.c: Likewise.
14740 * tree-ssa-live.c: Likewise.
14741 * tree-ssa-loop-niter.c: Likewise.
14742 * tree-ssa-loop-prefetch.c: Likewise.
14743 * tree-ssa-loop.c: Likewise.
14744 * tree-ssa-structalias.c: Likewise.
14745 * tree-ssa-uninit.c: Likewise.
14746 * tree-ssa.c: Likewise.
14747 * tree-vect-data-refs.c: Likewise.
14748 * tree-vect-loop-manip.c: Likewise.
14749 * tree-vect-loop.c: Likewise.
14750 * tree-vect-patterns.c: Likewise.
14751 * tree-vect-stmts.c: Likewise.
14752 * tree-vrp.c: Likewise.
14753 * varasm.c: Likewise.
14756 * xcoffout.c: Likewise.
14758 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
14760 * gengtype.c (write_field_root): New function.
14761 (write_root): Use it.
14763 2010-07-07 Wei Guozhi <carrot@google.com>
14765 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
14766 of lowest bits to lshift/compare): Add a missing line.
14768 2010-07-07 Wei Guozhi <carrot@google.com>
14770 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
14771 of lowest bits to lshift/compare): New.
14773 2010-07-07 Tom Tromey <tromey@redhat.com>
14775 * doc/tm.texi: Update.
14776 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
14778 * target.def (want_debug_pub_sections): New hook.
14779 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
14780 * dwarf2out.c (add_pubname_string): Check
14781 targetm.want_debug_pub_sections.
14782 (add_pubname): Likewise.
14783 (add_pubtype): Likewise.
14785 2010-07-07 Jie Zhang <jie@codesourcery.com>
14787 * genautomata.c (output_automata_list_min_issue_delay_code):
14788 Correctly decompress min_issue_delay.
14790 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
14792 PR rtl-optimization/44404
14793 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
14794 possible, use reg_overlap_mentioned_p instead.
14796 2010-07-07 Duncan Sands <baldrick@free.fr>
14798 PR middle-end/41355
14799 * tree.c (build_function_type_skip_args): Copy the original type using
14800 build_distinct_type_copy rather than copy_node.
14802 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
14805 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
14807 (ix86_expand_prologue): Likewise.
14808 (ix86_handle_fndecl_attribute): Likewise.
14809 (ix86_asm_declare_function_name): Likewise.
14810 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14811 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14812 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
14813 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
14814 * doc/extend.texi: Likewise.
14816 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
14819 * config/i386/i386.md (rdrand<mode>): Changed to expand to
14820 retry if the carry flag isn't valid.
14821 (rdrand<mode>_1): New.
14823 2010-07-07 Richard Guenther <rguenther@suse.de>
14825 PR middle-end/44790
14826 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
14827 for expanding the constant offset for MEM_REFs.
14829 2010-07-07 Richard Guenther <rguenther@suse.de>
14831 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
14832 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
14833 * gimple.h (is_gimple_operand): Remove.
14834 * gimple.c (is_gimple_operand): Likewise.
14835 (walk_gimple_op): Fix wi->val_only setting for calls.
14836 * tree-cfg.c (verify_gimple_call): Fix argument validation.
14837 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
14838 invalid gimple calls.
14840 2010-07-06 Jan Hubicka <jh@suse.cz>
14842 * lto-cgraph.c (output_cgraph): Add missing declaration.
14844 2010-07-06 Jan Hubicka <jh@suse.cz>
14846 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
14849 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
14851 * doc/gimple.texi (GIMPLE_DEBUG): Document.
14852 * doc/rtl.texi (Debug Information): New node.
14853 (NOTE_INSN_VAR_LOCATION): Document.
14854 (debug_insn): Likewise.
14855 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
14857 2010-07-07 Jan Hubicka <jh@suse.cz>
14859 With parts by Richard Guenther.
14861 PR middle-end/44813
14862 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
14863 for functions passed by reference.
14864 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
14865 in memory when passed by reference.
14866 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
14868 * ipa-split.c (split_function): Cleanup way return value is passed;
14869 handle SSA DECL_BY_REFERENCE retvals.
14870 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
14871 DECL_BY_REFERENCE is set.
14872 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
14873 find_what_p_points_to): Handle RESULT_DECL.
14874 * tree-inline.c (declare_return_variable): Get new entry_block argument;
14875 when passing by reference ensure that RESULT_DECL is gimple_val.
14876 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
14877 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
14879 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
14881 PR rtl-optimization/44787
14882 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
14883 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
14885 2010-07-06 Jan Hubicka <jh@suse.cz>
14887 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
14888 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
14889 with body can prevail.
14890 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
14891 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
14892 * cgraph.c (cgraph_get_node_or_alias): New function.
14893 * cgraph.h (cgraph_get_node_or_alias): Declare.
14895 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
14897 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
14899 (ix86_expand_prologue): Likewise.
14900 (ix86_handle_fndecl_attribute): Likewise.
14901 (ix86_asm_declare_function_name): New function for
14902 ASM_DECLARE_FUNCTION_NAME.
14903 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
14904 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
14905 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
14906 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
14907 * doc/extend.texi: Adjust documentation about ms_hook_prologue
14910 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
14912 * config/i386/i386.md (immediate_operand): New mode attribute.
14914 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
14915 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
14916 using P mode iterator.
14917 (pro_epilogue_adjust_stack_di_2): Rename from
14918 pro_epilogue_adjust_stack_rex64_2.
14920 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
14922 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
14924 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
14925 through gen_mov_insv_1 function pointer.
14926 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
14927 gen_truncxf<mode>2 through gen_truncxf function pointer.
14928 (remainder<mode>3): Ditto.
14929 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
14930 (allocate_stack): Call gen_allocate_stack_worker_64 or
14931 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
14933 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
14936 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
14938 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
14939 operand constraint instead of <r><i>m.
14941 2010-07-06 Richard Guenther <rguenther@suse.de>
14943 PR middle-end/44828
14944 * convert.c (convert_to_integer): Watch out for overflowing
14947 2010-07-05 Jan Hubicka <jh@suse.cz>
14949 * lto-streamer.c (write_symbol_vec): Rename to ...
14950 (write_symbol) ... this one; write only symbol given and when
14951 present in cache. Sanity check that what is defined is present
14952 in cgraph/varpool with body/finalized decl.
14953 (write_symbols_of_kind): Remove.
14954 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
14955 pairs to produce symtab.
14956 (produce_asm_for_decls): Update call of produce_symtab; don't do so
14957 when doing WPA streaming.
14959 2010-07-05 Jan Hubicka <jh@suse.cz>
14961 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
14962 function is still available to fold into.
14964 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
14966 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
14967 * function.h (struct_function): Change type of local_decls field
14969 (add_local_decl): New function.
14970 (FOR_EACH_LOCAL_DECL): New macro.
14971 * cfgexpand.c (init_vars_expansion): Adjust for new type of
14973 (estimated_stack_frame_size): Likewise.
14974 (expand_used_vars): Likewise.
14975 * cgraphbuild.c (build_cgraph_edges): Likewise.
14976 * function.c (instantiate_decls_1): Likewise.
14977 * ipa-struct-reorg.c (build_data_structure): Likewise.
14978 * ipa-type-escape.c (analyze_function): Likewise.
14979 * lto-streamer-in.c (input_function): Likewise.
14980 * lto-streamer-out.c (output_function): Likewise.
14981 * tree-ssa-live.c (remove_unused_locals): Likewise.
14982 * tree.c (free_lang_data_in_decl): Likewise.
14983 (find_decls_types_in_node): Likewise.
14984 * omp-low.c (remove_exit_barrier): Likewise.
14985 (expand_omp_taskreg): Likewise.
14986 (list2chain): Rename to...
14987 (vec2chain): ...this. Adjust.
14988 * cgraphunit.c (assemble_thunk): Call add_local_decl.
14989 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
14990 * gimple-low.c (record_vars_into): Likewise.
14991 * tree-inline.c (remap_decls): Likewise.
14992 (declare_return_variable): Likewise.
14993 (declare_inline_vars): Likewise.
14994 (copy_forbidden): Adjust for new type of cfun->local_decls.
14995 (add_local_variables): New function.
14996 (expand_call_inline): Call it.
14997 (tree_function_versioning): Likewise.
14999 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
15001 AVX Programming Reference (June, 2010)
15002 * config/i386/cpuid.h (bit_F16C): New.
15003 (bit_RDRND): Likewise.
15004 (bit_FSGSBASE): Likewise.
15006 * config/i386/i386-builtin-types.def: Add
15007 "DEF_FUNCTION_TYPE (UINT16)", function types for
15008 float16 <-> float conversions and
15009 "DEF_FUNCTION_TYPE (VOID, UINT64)".
15011 * config/i386/i386-c.c (ix86_target_macros_internal): Support
15012 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
15013 OPTION_MASK_ISA_F16C.
15015 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
15016 (OPTION_MASK_ISA_RDRND_SET): Likewise.
15017 (OPTION_MASK_ISA_F16C_SET): Likewise.
15018 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
15019 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
15020 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
15021 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
15022 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
15023 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
15024 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
15025 (override_options): Handle them.
15026 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
15027 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
15028 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
15029 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
15030 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
15031 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
15032 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
15033 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
15034 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
15035 (bdesc_args): Likewise.
15036 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
15037 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
15038 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
15039 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
15040 Handle non-memory store.
15042 * config/i386/i386.h (TARGET_FSGSBASE): New.
15043 (TARGET_RDRND): Likewise.
15044 (TARGET_F12C): Likewise.
15046 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
15047 (UNSPEC_VCVTPS2PH): Likewise.
15048 (UNSPECV_RDFSBASE): Likewise.
15049 (UNSPECV_RDGSBASE): Likewise.
15050 (UNSPECV_WRFSBASE): Likewise.
15051 (UNSPECV_WRGSBASE): Likewise.
15052 (UNSPECV_RDRAND): Likewise.
15053 (rdfsbase<mode>): Likewise.
15054 (rdgsbase<mode>): Likewise.
15055 (wrfsbase<mode>): Likewise.
15056 (wrgsbase<mode>): Likewise.
15057 (rdrand<mode>): Likewise.
15059 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
15061 * config/i386/immintrin.h (_rdrand_u16): New.
15062 (_rdrand_u32): Likewise.
15063 (_readfsbase_u32): Likewise.
15064 (_readfsbase_u64): Likewise.
15065 (_readgsbase_u32): Likewise.
15066 (_readgsbase_u64): Likewise.
15067 (_writefsbase_u32): Likewise.
15068 (_writefsbase_u64): Likewise.
15069 (_writegsbase_u32): Likewise.
15070 (_writegsbase_u64): Likewise.
15071 (_rdrand_u64): Likewise.
15072 (_cvtsh_ss): Likewise.
15073 (_mm_cvtph_ps): Likewise.
15074 (_mm256_cvtph_ps): Likewise.
15075 (_cvtss_sh): Likewise.
15076 (_mm_cvtps_ph): Likewise.
15077 (_mm256_cvtps_ph): Likewise.
15079 * config/i386/sse.md (vcvtph2ps): New.
15080 (*vcvtph2ps_load): Likewise.
15081 (vcvtph2ps256): Likewise.
15082 (vcvtps2ph): Likewise.
15083 (*vcvtps2ph): Likewise.
15084 (*vcvtps2ph_store): Likewise.
15085 (vcvtps2ph256): Likewise.
15087 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
15089 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
15091 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
15094 * genenums.c (main): Output include of insn-constants.h
15095 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
15097 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
15099 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
15100 (override_options): Initialize it.
15101 (ix86_expand_prologue): Use it.
15103 2010-07-05 Jakub Jelinek <jakub@redhat.com>
15105 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
15107 2010-07-05 Anatoly Sokolov <aesok@post.ru>
15109 * double-int.h (fit_double_type): Remove declaration.
15110 * double-int.c (fit_double_type): Remove function.
15111 * tree.h (int_fits_type_p): Adjust prototype.
15112 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
15113 instead of fit_double_type.
15114 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
15115 instead of fit_double_type and build_int_cst_wide.
15116 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
15117 instead of fit_double_type and build_int_cst_wide.
15118 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
15119 of fit_double_type.
15121 2010-07-05 Jan Hubicka <jh@suse.cz>
15123 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
15124 in_other_partition.
15125 * lto-cgraph.c (referenced_from_other_partition_p,
15126 reachable_from_other_partition_p): Use in_other_partition flags.
15127 (output_node, output_varpool_node): COMDAT nodes always have private
15128 copies and thus are never used from other partition.
15130 2010-07-05 Anatoly Sokolov <aesok@post.ru>
15132 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
15133 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
15134 * config/ia64/ia64.c Include reload.h.
15135 (ia64_memory_move_cost): New function.
15136 (TARGET_MEMORY_MOVE_COST): Define.
15137 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
15140 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
15142 PR middle-end/42505
15143 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
15144 comments about cost model.
15145 (try_add_cand_for): Add second strategy for choosing initial set
15146 based on original IVs, controlled by ORIGINALP argument.
15147 (get_initial_solution): Add ORIGINALP argument.
15148 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
15149 (find_optimal_iv_set): Try two different strategies for choosing
15150 the IV set, and return the one with lower cost.
15152 2010-07-05 Richard Guenther <rguenther@suse.de>
15154 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
15156 2010-07-05 Richard Guenther <rguenther@suse.de>
15158 * tree.c (reference_alias_ptr_type): New function.
15159 * tree.h (reference_alias_ptr_type): Declare.
15160 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
15161 allow non-TARGET_MEM_REF new refs.
15162 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
15163 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
15164 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
15165 (create_mem_ref): Get alias pointer type. Adjust calls to
15166 create_mem_ref_raw.
15167 (maybe_fold_tmr): Likewise.
15168 * tree-flow.h (create_mem_ref): Adjust prototype.
15170 2010-07-05 Jakub Jelinek <jakub@redhat.com>
15173 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
15174 *from_p is VAR_DECL.
15176 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15178 * tree.h (build_call_list): Remove.
15179 * tree.c (build_call_list): Remove.
15181 2010-07-05 Richard Guenther <rguenther@suse.de>
15183 * double-int.h (double_int_sub): Declare.
15184 * double-int.c (double_int_sub): New function.
15185 * dwarf2out.c (field_byte_offset): Use it.
15186 * fixed-value.c (do_fixed_add): Likewise.
15187 (do_fixed_multiply): Likewise.
15188 (do_fixed_divide): Likewise.
15189 * tree-predcom.c (add_ref_to_chain): Likewise.
15190 (determine_roots_comp): Likewise.
15191 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
15193 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15195 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
15198 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
15200 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
15201 * arm-modes.def (CC_NOTB): Don't define.
15202 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
15203 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
15204 (LTUGEU): New code_iterator.
15205 (cnb, optab): New corresponding code_attrs.
15206 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
15207 to canonical form. Operands 1 and 2 are commutative. Parametrize
15209 (addsi3_carryin_shift_<optab>): Likewise.
15210 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
15211 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
15212 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
15213 (subsi3_compare): Renamed from subsi3_compare0_c.
15214 Change CC_NOTB to CC.
15215 (arm_subsi3_insn): Allow constants for operand 0.
15216 (compare_scc peephole for eq case): New.
15217 (compare_scc splitters): Change CC_NOTB to CC.
15219 2010-07-05 Richard Guenther <rguenther@suse.de>
15221 * tree-ssa-loop-im.c (for_each_index): Do not handle
15222 ALIGN_INDIRECT_REF.
15223 (gen_lsm_tmp_name): Likewise.
15224 * tree-dump.c (dequeue_and_dump): Likewise.
15225 * tree-pretty-print.c (dump_generic_node): Likewise.
15226 (op_code_prio): Likewise.
15227 (op_symbol_code): Likewise.
15228 * tree.c (staticp): Likewise.
15229 (build1_stat): Likewise.
15230 * tree.h (INDIRECT_REF_P): Likewise.
15231 * fold-const.c (maybe_lvalue_p): Likewise.
15232 (operand_equal_p): Likewise.
15233 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15234 (ao_ref_init_from_vn_reference): Likewise.
15235 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
15236 (find_interesting_uses_address): Likewise.
15237 * dwarf2out.c (loc_list_from_tree): Likewise.
15238 * gimplify.c (gimplify_expr): Likewise.
15239 * tree-eh.c (tree_could_trap_p): Likewise.
15240 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15241 * cfgexpand.c (expand_debug_expr): Likewise.
15242 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15243 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
15244 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
15245 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
15246 * tree-ssa-operands.c (get_expr_operands): Likewise.
15247 * expr.c (safe_from_p): Likewise.
15248 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
15249 * tree-vect-data-refs.c (vect_setup_realignment): Build
15250 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
15251 * tree-vect-stmts.c (vectorizable_load): Likewise.
15252 * tree.def (ALIGN_INDIRECT_REF): Remove.
15254 2010-07-05 Richard Guenther <rguenther@suse.de>
15256 PR tree-optimization/44784
15257 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
15258 for inserted stmts.
15259 (find_or_generate_expression): Fix SCCVN insertion check.
15261 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
15263 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
15264 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
15265 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
15268 2010-07-05 Ira Rosen <irar@il.ibm.com>
15270 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
15271 statements that are not vectorized.
15272 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
15275 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
15278 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
15280 2010-07-05 Richard Guenther <rguenther@suse.de>
15282 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
15283 RESULT_DECLs properly.
15285 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
15287 PR rtl-optimization/44695
15288 * config/i386/i386.md (extract_code): Removed.
15289 (<u>divmodqi4): Likewise.
15291 (udivmodqi4): Likewise.
15292 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
15293 (udivmodhiqi3): Likewise.
15295 2010-07-04 Jan Hubicka <jh@suse.cz>
15297 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
15299 2010-07-04 Jan Hubicka <jh@suse.cz>
15301 * cgraphunit.c (init_cgraph): Only initialize dump file if it
15302 is not already initialized.
15304 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15306 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
15307 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
15308 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
15309 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
15310 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
15311 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
15312 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
15313 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
15314 (sync_new_nand_optab): Redefine as macros.
15315 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
15317 (direct_optab_index): New enum.
15318 (direct_optab_d): New structure.
15319 (direct_optab): New typedef.
15320 (direct_optab_table): Declare.
15321 (direct_optab_handler, set_direct_optab_handler): New functions.
15322 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
15323 (sync_lock_release_optab): New macros.
15324 * optabs.c (direct_optab_table): New variable.
15325 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
15326 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
15327 cmpstr_optab and cmpstrn_optab.
15328 (emit_conditional_move): Likewise for movcc_optab.
15329 (can_conditionally_move_p): Likewise for movcc_gen_code.
15330 (init_insn_codes): Clear direct_optab_table.
15331 (init_optabs): Don't initialize the new "direct optabs" here.
15332 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
15334 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
15335 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
15336 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
15337 (expand_sync_operation): Likewise other sync_*_optabs.
15338 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
15339 to sync_compare_and_swap_optab.
15340 (expand_sync_lock_test_and_set): Use direct_optab_handler for
15341 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
15342 to the names of both.
15343 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
15344 cmpstr_optab and cmpstrn_optab.
15345 (expand_builtin_lock_release): Likewise sync_lock_release.
15346 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
15347 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
15348 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
15349 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
15350 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
15351 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
15352 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
15353 (sync_lock_test_and_set, sync_lock_release): Delete.
15354 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
15355 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
15356 * genopinit.c (optabs): Use set_direct_optab_handler for the new
15358 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
15359 the "optab" local variable. Use direct_optab_handler for optab and
15360 sync_compare_and_swap_optab.
15361 * reload1.c (reload_in_optab, reload_out_optab): Delete.
15362 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
15363 reload_in_optab and reload_out_optab.
15364 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
15365 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
15366 * config/pa/pa.c (pa_secondary_reload): Likewise.
15367 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
15368 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
15369 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
15370 (VMSupportsCS8_builtin): Likewise.
15372 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15374 * optabs.h (optab_handlers): Change type of insn_code to int.
15375 (optab_handler, set_optab_handler, convert_optab_handler)
15376 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
15378 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
15379 (init_insn_codes): Zero both the above arrays.
15380 (init_optabs): Never call init_insn_codes first time around.
15382 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15384 * optabs.h (optab_handler, convert_optab_handler): Turn into
15385 inline functions that return an insn code.
15386 (set_optab_handler, set_convert_optab_handler): New functions.
15387 * builtins.c: Replace optab_handler(X)->insn_code with
15388 optab_handler or set_optab_handler thoughout. Likewise
15389 convert_optab_handler(X)->insn_code with convert_optab_handler
15390 and set_convert_optab_handler.
15391 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
15392 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
15393 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
15394 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15395 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
15396 config/spu/spu.c: Likewise.
15398 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
15401 * config.gcc (sh*-*-*): Use regular expressions instead of
15402 the 'i' modifier for sed substitutions.
15404 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
15406 * gimple.c (gimple_body): Comments added.
15408 2010-07-04 Richard Guenther <rguenther@suse.de>
15410 PR middle-end/44809
15411 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
15412 of an INDIRECT_REF.
15414 2010-07-04 Richard Guenther <rguenther@suse.de>
15416 PR tree-optimization/44479
15417 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
15418 extra SSA name copy statements which preserves points-to
15420 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
15421 Copy points-to information for all pointers. Properly handle
15423 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
15425 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
15428 2010-07-04 Richard Guenther <rguenther@suse.de>
15430 PR middle-end/44785
15431 * tree-inline.c (initialize_inlined_parameters): Do not
15432 re-use pointer-map slot over remap_type call.
15434 2010-07-04 Richard Guenther <rguenther@suse.de>
15436 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
15438 2010-07-04 Richard Guenther <rguenther@suse.de>
15440 PR tree-optimization/44656
15441 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
15442 again after value-replacing in the defintions lhs.
15444 2010-07-04 Ira Rosen <irar@il.ibm.com>
15445 Revital Eres <eres@il.ibm.com>
15447 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
15448 Document new arguments.
15449 * doc/tm.texi: Regenerate.
15450 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
15451 Handle unaligned store.
15452 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
15453 * target.def (builtin_vectorization_cost): Add new arguments.
15454 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
15455 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
15456 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
15457 (vect_vfa_segment_size): Fix indentation.
15458 * tree-vectorizer.h (struct _vect_peel_info): New.
15459 (struct _vect_peel_extended_info): New.
15460 (struct _loop_vec_info): Add new field for peeling hash table and a
15461 macro for its access.
15462 (VECT_MAX_COST): Define.
15463 (vect_get_load_cost): Declare.
15464 (vect_get_store_cost, vect_get_known_peeling_cost,
15465 vect_get_single_scalar_iteraion_cost): Likewise.
15466 (vect_supportable_dr_alignment): Add new argument.
15467 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
15469 (destroy_loop_vec_info): Free peeling hash table.
15470 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
15471 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
15472 vect_analyze_slp. Fix indentation.
15473 (vect_get_single_scalar_iteraion_cost): New function.
15474 (vect_get_known_peeling_cost): Likewise.
15475 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
15476 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
15477 statement. Move outside cost calculation inside unknown peeling case.
15478 Call vect_get_known_peeling_cost for known amount of peeling.
15479 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
15480 reference to the print message of forced alignment.
15481 (vect_verify_datarefs_alignment): Update call to
15482 vect_supportable_dr_alignment.
15483 (vect_get_data_access_cost): New function.
15484 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
15485 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
15486 vect_peeling_hash_choose_best_peeling): Likewise.
15487 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
15488 to store all the accesses in the loop and find best possible access to
15489 align using peeling for known alignment case. For unknown alignment
15490 check if stores are preferred or if peeling is worthy.
15491 (vect_find_same_alignment_drs): Analyze pairs of loads too.
15492 (vect_supportable_dr_alignment): Add new argument and check aligned
15493 accesses according to it.
15494 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
15495 (cost_for_stmt): Call vect_get_stmt_cost.
15496 (vect_model_simple_cost): Likewise.
15497 (vect_model_store_cost): Call vect_get_stmt_cost. Call
15498 vect_get_store_cost to calculate the cost of the statement.
15499 (vect_get_store_cost): New function.
15500 (vect_model_load_cost): Call vect_get_stmt_cost. Call
15501 vect_get_load_cost to calculate the cost of the statement.
15502 (vect_get_load_cost): New function.
15503 (vectorizable_store): Update call to vect_supportable_dr_alignment.
15504 (vectorizable_load): Likewise.
15505 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
15506 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
15507 arguments. Handle unaligned store.
15508 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
15509 (rs6000_builtin_support_vector_misalignment): Return true for word and
15510 double word alignments for VSX.
15511 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
15512 vect_supportable_dr_alignment and builtin_vectorization_cost.
15514 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15517 * config/pa/predicates.md (prefetch_cc_operand): Remove.
15518 (prefetch_nocc_operand): Likewise.
15519 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
15520 (prefetch_20): New insn.
15521 (prefetch_cc): Remove.
15522 (prefetch_nocc): Likewise.
15524 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
15526 * expr.c (vector_mode_valid_p): Move to c-common.c.
15527 * expr.h (vector_mode_valid_p): Do not declare here.
15528 * system.h: Poison GCC_EXPR_H in front-ends.
15529 * Makefile.in: Update dependencies.
15531 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15534 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
15536 2010-07-03 Jan Hubicka <jh@suse.cz>
15538 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
15539 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
15540 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
15541 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
15544 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
15546 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
15547 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
15548 TV_IPA_LTO_DECL_OUT): New.
15549 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
15551 2010-07-03 Jan Hubicka <jh@suse.cz>
15553 * ipa-inline.c (update_edge_key): Break out from ...
15554 update_callers_keys): ... here;
15555 (update_callee_keys): Update only the edges from caller to callee.
15556 (update_all_calle_keys): Do what update_calle_keys did.
15557 (decide_inlining_of_small_functions): Avoid recomputing of all
15558 callees when badness increase.
15560 2010-07-03 Jie Zhang <jie@codesourcery.com>
15562 * config/arm/arm.c (arm_attr_length_move_neon): New.
15563 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
15564 * config/arm/neon.md (define_mode_attr V_slen): Remove.
15565 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
15566 to compute length attribute.
15568 2010-07-03 Jie Zhang <jie@codesourcery.com>
15570 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
15571 as predicate for operand 1 and remove its constraint.
15572 * config/arm/predicates.md (vfp_register_operand): New.
15573 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
15574 (*push_fp_multi): Likewise.
15576 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
15578 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
15580 2010-07-03 Jan Hubicka <jh@suse.cz>
15582 * config/i386/i386.c (override_options): Revert accidental commit.
15584 2010-07-02 Le-Chun Wu <lcwu@google.com>
15587 * doc/invoke.texi: Update documentation of -Wshadow.
15589 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
15590 Julian Brown <julian@codesourcery.com>
15591 Sandra Loosemore <sandra@codesourcery.com>
15593 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
15594 comparisons. Adjust to take both operands.
15595 (arm_select_cc_mode): Handle DImode comparisons.
15596 (arm_gen_compare_reg): Generate a scratch register for DImode
15597 comparisons which require one. Use xor for Thumb equality checks.
15598 (arm_const_double_by_immediates): New.
15599 (arm_print_operand): Allow 'Q' and 'R' for constants.
15600 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
15601 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
15602 arm_canonicalize_comparison.
15603 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
15604 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
15606 (arm_const_double_by_immediates): Declare.
15607 * config/arm/constraints.md (Di): New constraint.
15608 * config/arm/predicates.md (arm_immediate_di_operand)
15609 (arm_di_operand, cmpdi_operand): New.
15610 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
15611 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
15612 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
15613 (cstoredi4): Handle non-Cirrus also.
15615 2010-07-02 Julian Brown <julian@codesourcery.com>
15616 Sandra Loosemore <sandra@codesourcery.com>
15619 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
15620 (smax<mode>3): Disable for NEON float modes when
15621 flag_unsafe_math_optimizations is false.
15622 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
15624 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
15625 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
15626 for NEON float modes when flag_unsafe_math_optimizations is false.
15627 (quad_halves_<code>v4sf): Only enable if
15628 flag_unsafe_math_optimizations is true.
15629 * doc/invoke.texi (ARM Options): Add note about floating point
15630 vectorization requiring -funsafe-math-optimizations.
15632 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15633 Julian Brown <julian@codesourcery.com>
15635 * config/arm/neon.md (UNSPEC_VABA): Delete.
15636 (UNSPEC_VABAL): Delete.
15637 (UNSPEC_VABS): Delete.
15638 (UNSPEC_VMUL_N): Delete.
15639 (adddi3_neon): New.
15640 (subdi3_neon): New.
15641 (mul<mode>3add<mode>_neon): Make the pattern named.
15642 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
15643 (neon_vadd<mode>): Replace with define_expand, and move the remaining
15645 (neon_vadd<mode>_unspec): ...to this.
15646 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
15647 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
15648 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
15649 (neon_vaba<mode>): Rewrite in terms of vabd.
15650 (neon_vabal<mode>): Rewrite in terms of vabdl.
15651 (neon_vabs<mode>): Rewrite without unspec.
15652 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
15653 (*arm_subdi3): Likewise.
15654 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
15655 No_op attribute to disable assembly output checks.
15656 * config/arm/arm_neon.h: Regenerated.
15657 * doc/arm-neon-intrinsics.texi: Regenerated.
15659 2010-07-02 Jan Hubicka <jh@suse.cz>
15661 * ipa-split.c (split_function): For aggregate values, set the return
15662 slot optimization bit. When passing DECL_BY_REFERENCE, produce
15663 *<retval> = fncall.part ().
15664 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
15666 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15668 * config/arm/neon.md (UNSPEC_VAND): Delete.
15669 (UNSPEC_VBIC): Delete.
15670 (UNSPEC_VCLZ): Delete.
15671 (UNSPEC_VCNT): Delete.
15672 (UNSPEC_VEOR): Delete.
15673 (UNSPEC_VORN): Delete.
15674 (UNSPEC_VORR): Delete.
15675 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
15676 core registers too.
15677 (anddi3_neon): Likewise.
15678 (orndi3_neon): Likewise.
15679 (bicdi3_neon): Likewise.
15680 (xordi3_neon): Likewise.
15681 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
15682 rid of unspec and handle unused operand.
15683 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
15684 * config/arm/predicates.md (imm_for_neon_logic_operand):
15685 Require TARGET_NEON.
15686 (imm_for_neon_inv_logic_operand): Likewise.
15687 * config/arm/arm.md (define_split for logical_binary_operator):
15688 Disable for NEON registers.
15689 (anddi3): Add new define_expand, and rename the insn. Disable
15690 this insn for NEON, where anddi3_neon now applies.
15691 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
15692 (iordi3): As for anddi3.
15693 (xordi3): Likewise.
15694 * config/arm/neon.ml (Vand): Split DImode variants and mark them
15695 as No_op to disable testing for exact instruction match.
15700 * config/arm/arm_neon.h: Regenerated.
15701 * doc/arm-neon-intrinsics.texi: Regenerated.
15703 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
15705 * expr.h (emit_stack_probe): Declare.
15706 * explow.c (emit_stack_probe): Make global.
15707 (anti_adjust_stack_and_probe): Fix comments.
15708 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15709 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15710 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15711 * config/sparc/sparc.c: Include except.h.
15712 (sparc_emit_probe_stack_range): New function.
15713 (output_probe_stack_range): Likewise.
15714 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
15715 built-in stack checking is enabled.
15716 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
15717 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15718 (probe_stack_range): New insn.
15720 2010-07-02 Richard Guenther <rguenther@suse.de>
15723 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
15724 for argument alignment.
15726 2010-07-02 Jan Hubicka <jh@suse.cz>
15728 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
15729 walk backwards from entry_bb to check only those basic block of header
15730 that might lead to execution of split part.
15731 (consider_split) ... here.
15732 (find_return_bb): Allow assignment in return BB.
15733 (find_retval): New.
15734 (split_function): Fix name of cloned function; take care of updating
15735 return value in return_bb containing move.
15737 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
15740 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
15741 used variable insn.
15743 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
15745 * implicit-zee.c (combine_reaching_defs): Fix long lines.
15746 (is_set_with_extension_DI): Delete.
15747 (struct zero_extend_info): New structure.
15748 (add_removable_zero_extend): New function.
15749 (find_removable_zero_extends): Use note_stores to find SETs.
15750 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
15752 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
15754 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
15755 is_miss_rate_acceptable. Pull total_positions computation
15756 out of the loops. Early return if miss_positions exceeds
15757 the acceptable threshold.
15758 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
15759 is_miss_rate_acceptable after renaming of compute_miss_rate.
15761 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
15763 PR middle-end/44576
15764 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
15765 of 1000) for miss rate if the address diference is greater than or
15766 equal to the cache line size (the two reference will never hit the
15769 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
15772 * config/arm/arm-modes.def (CC_NOTB): New mode.
15773 * config/arm/arm.c (get_arm_condition_code): Handle it.
15774 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
15775 * config/arm/arm.md (subsi3_compare0_c): New pattern.
15776 (compare_scc): Now a define_and_split. Add a number of extra
15777 splitters before it.
15780 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
15782 (arm_rtx_costs_1): Likewise.
15783 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
15784 * config/arm/arm.md (is_arch6): New attribute.
15785 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
15786 extendqisi2): Tighten the code somewhat, avoiding invalid
15787 RTL to occur in the expander patterns.
15788 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
15789 (thumb1_zero_extendhisi2_v6): Delete.
15790 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
15791 (thumb1_extendhisi2_v6): Delete.
15792 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
15793 (thumb1_extendqisi2_v6): Delete.
15794 (zero_extendhisi2 for register input splitter): New.
15795 (zero_extendqisi2 for register input splitter): New.
15796 (thumb1_extendhisi2 for register input splitter): New.
15797 (extendhisi2 for register input splitter): New.
15798 (extendqisi2 for register input splitter): New.
15799 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
15800 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
15801 and add support for a register alternative requiring a split.
15802 (thumb1_zero_extendqisi2): Likewise.
15803 (arm_zero_extendqisi2): Likewise.
15804 (arm_extendhisi2): Likewise.
15805 (arm_extendqisi2): Likewise.
15807 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15809 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
15810 instead of an unspec.
15811 (neon_expand_vector_init): Likewise.
15812 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
15813 (UNSPEC_VDUP_LANE): Delete.
15814 (UNSPEC VDUP_N): Delete.
15815 (UNSPEC_VGET_HIGH): Delete.
15816 (UNSPEC_VGET_LANE): Delete.
15817 (UNSPEC_VGET_LOW): Delete.
15818 (UNSPEC_VMVN): Delete.
15819 (UNSPEC_VSET_LANE): Delete.
15820 (V_double_vector_mode): New.
15821 (vec_set<mode>_internal): Make code emitted match that for the
15822 corresponding intrinsics.
15823 (vec_setv2di_internal): Likewise.
15824 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
15825 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
15826 (neon_vset_lane<mode>): Combine double and quad patterns and
15827 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
15828 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
15829 (neon_vdup_n<mode>): Rewrite RTL without unspec.
15830 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
15831 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
15832 with neon_vdup_lanev2di, adjusting the pattern from the latter
15833 to be predicable for consistency.
15834 (neon_vdup_lane<mode>_internal): New.
15835 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
15836 to avoid using an unspec.
15837 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
15838 (neon_vdup_lanev2di): Turn into a define_expand.
15839 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
15840 (neon_vget_high<mode>): Replace with....
15841 (neon_vget_highv16qi): New pattern using canonical RTL.
15842 (neon_vget_highv8hi): Likewise.
15843 (neon_vget_highv4si): Likewise.
15844 (neon_vget_highv4sf): Likewise.
15845 (neon_vget_highv2di): Likewise.
15846 (neon_vget_low<mode>): Replace with....
15847 (neon_vget_lowv16qi): New pattern using canonical RTL.
15848 (neon_vget_lowv8hi): Likewise.
15849 (neon_vget_lowv4si): Likewise.
15850 (neon_vget_lowv4sf): Likewise.
15851 (neon_vget_lowv2di): Likewise.
15853 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
15854 test for this emitting vmov.
15855 (Vset_lane): Likewise.
15856 (Vdup_n): Likewise.
15857 (Vmov_n): Likewise.
15859 * doc/arm-neon-intrinsics.texi: Regenerated.
15861 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15863 * config/arm/neon.md (vec_extractv2di): Correct error in register
15864 numbering to reconcile with neon_vget_lanev2di.
15866 2010-07-02 Richard Guenther <rguenther@suse.de>
15868 * tree-ssa-structalias.c (pt_solution_set_var): New function.
15869 * tree-ssa-alias.h (pt_solution_set_var): Declare.
15870 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
15871 points-to information.
15873 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
15875 * config/s390/s390.c (override_options): Adopt prefetching
15876 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
15878 2010-07-02 Jan Hubicka <jh@suse.cz>
15880 * df-problems.c (df_kill_notes): Do not collect dead notes.
15881 (df_set_note): Just call add_reg_note.
15882 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
15883 df_create_unused_note): Do not deal with lists of old notes.
15884 (df_note_bb_compute): Likewise.
15886 2010-07-02 Richard Guenther <rguenther@suse.de>
15888 * tree-ssa-structalias.c (find_func_aliases): Handle
15889 pointer alignment via BIT_AND_EXPR.
15890 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
15892 2010-07-02 Richard Guenther <rguenther@suse.de>
15894 * tree-data-ref.c (initialize_data_dependence_relation): Handle
15895 mismatching number of dimensions properly.
15897 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15900 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
15901 (lo_sum (high ...) ...) patterns generated by earlier passes.
15903 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15905 * doc/install.texi (Prerequisites): Document Perl requirement on
15907 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
15909 2010-07-02 Richard Guenther <rguenther@suse.de>
15911 PR middle-end/44777
15912 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
15914 2010-07-02 Jan Hubicka <jh@suse.cz>
15916 PR middle-end/44706
15917 * predict.c (predict_paths_for_bb): Handle case when control dependence
15918 BB has only abnormal edges.
15920 2010-07-02 Richard Guenther <rguenther@suse.de>
15922 PR tree-optimization/44748
15923 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
15924 the embedded conversion in MEM_REFs.
15926 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
15928 * reload.c: Include toplev.h.
15929 * recog.c: Likewise.
15930 * Makefile.in: Adjust dependencies.
15932 2010-07-01 Jakub Jelinek <jakub@redhat.com>
15935 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
15936 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
15938 2010-07-01 Richard Guenther <rguenther@suse.de>
15940 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
15943 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
15946 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
15947 Fix argument types.
15949 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
15952 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
15953 Make sure operand 0 dies.
15955 2010-07-01 Richard Guenther <rguenther@suse.de>
15957 PR middle-end/42834
15958 PR middle-end/44468
15959 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
15960 * doc/generic.texi (References to storage): Document MEM_REF.
15961 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
15962 (print_call_name): Likewise.
15963 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
15964 (build_simple_mem_ref_loc): New function.
15965 (mem_ref_offset): Likewise.
15966 * tree.h (build_simple_mem_ref_loc): Declare.
15967 (build_simple_mem_ref): Define.
15968 (mem_ref_offset): Declare.
15969 * fold-const.c: Include tree-flow.h.
15970 (operand_equal_p): Handle MEM_REF.
15971 (build_fold_addr_expr_with_type_loc): Likewise.
15972 (fold_comparison): Likewise.
15973 (fold_unary_loc): Fold
15974 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
15975 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
15976 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
15977 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
15978 (ptr_deref_may_alias_ref_p_1): Likewise.
15979 (ao_ref_base_alias_set): Properly differentiate base object for
15981 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
15982 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
15983 (indirect_refs_may_alias_p): Likewise.
15984 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
15986 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
15987 (call_may_clobber_ref_p_1): Likewise.
15988 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
15989 * expr.c (expand_assignment): Handle MEM_REF.
15990 (store_expr): Handle MEM_REFs from STRING_CSTs.
15991 (store_field): If expanding a MEM_REF of a non-addressable
15992 decl use bitfield operations.
15993 (get_inner_reference): Handle MEM_REF.
15994 (expand_expr_addr_expr_1): Likewise.
15995 (expand_expr_real_1): Likewise.
15996 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
15997 * alias.c (ao_ref_from_mem): Handle MEM_REF.
15998 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
15999 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
16000 (dr_analyze_indices): Likewise.
16001 (dr_analyze_alias): Likewise.
16002 (object_address_invariant_in_loop_p): Likewise.
16003 * gimplify.c (mark_addressable): Handle MEM_REF.
16004 (gimplify_cond_expr): Build MEM_REFs.
16005 (gimplify_modify_expr_to_memcpy): Likewise.
16006 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
16007 (gimple_fold_indirect_ref): Adjust.
16008 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
16009 * tree.def (MEM_REF): New tree code.
16010 * tree-dfa.c: Include toplev.h.
16011 (get_ref_base_and_extent): Handle MEM_REF.
16012 (get_addr_base_and_unit_offset): New function.
16013 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
16014 * gimple-fold.c (may_propagate_address_into_dereference): Handle
16016 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
16017 accesses if the array has just one dimension. Remove always true
16018 parameter. Do not require type compatibility here.
16019 (maybe_fold_offset_to_component_ref): Remove.
16020 (maybe_fold_stmt_indirect): Remove.
16021 (maybe_fold_reference): Remove INDIRECT_REF handling.
16022 Fold back to non-MEM_REF.
16023 (maybe_fold_offset_to_address): Simplify. Deal with type
16025 (maybe_fold_reference): Likewise.
16026 (maybe_fold_stmt_addition): Likewise. Also handle
16027 &ARRAY + I in addition to &ARRAY[0] + I.
16028 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
16029 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
16030 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
16031 * tree-ssa.c (useless_type_conversion_p): Make most pointer
16032 conversions useless.
16033 (warn_uninitialized_var): Handle MEM_REF.
16034 (maybe_rewrite_mem_ref_base): New function.
16035 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
16037 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
16038 INDIRECT_REF handling.
16039 (copy_tree_body_r): Handle MEM_REF.
16040 * gimple.c (is_gimple_addressable): Adjust.
16041 (is_gimple_address): Likewise.
16042 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
16043 invariant base are invariant.
16044 (is_gimple_min_lval): Adjust.
16045 (is_gimple_mem_ref_addr): New function.
16046 (get_base_address): Handle MEM_REF.
16047 (count_ptr_derefs): Likewise.
16048 (get_base_loadstore): Likewise.
16049 * gimple.h (is_gimple_mem_ref_addr): Declare.
16050 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
16051 * tree-cfg.c (verify_address): New function, split out from ...
16052 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
16053 the address operand of MEM_REFs. Verify MEM_REFs. Reject
16055 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
16056 INDIRECT_REF. Allow conversions.
16057 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
16058 a register does not change its size.
16059 (verify_types_in_gimple_reference): Verify MEM_REF.
16060 (verify_gimple_assign_single): Disallow INDIRECT_REF.
16062 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
16064 (mark_address_taken): Handle MEM_REF.
16065 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
16066 (get_asm_expr_operands): Pass opf_not_non_addressable.
16067 (get_expr_operands): Handle opf_[not_]non_addressable.
16068 Handle MEM_REF. Remove INDIRECT_REF handling.
16069 * tree-vrp.c (check_array_ref): Handle MEM_REF.
16070 (search_for_addr_array): Likewise.
16071 (check_array_bounds): Likewise.
16072 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
16073 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
16074 (ref_always_accessed_p): Likewise.
16075 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
16076 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
16078 * cgraphbuild.c (mark_load): Properly check for NULL result
16079 from get_base_address.
16080 (mark_store): Likewise.
16081 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
16082 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
16083 handling for MEM_REF.
16084 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
16085 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
16086 * builtins.c (stabilize_va_list_loc): Use the function ABI
16087 valist type if we couldn't canonicalize the argument type.
16088 Always dereference with the canonical va-list type.
16089 (maybe_emit_free_warning): Handle MEM_REF.
16090 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
16092 * builtins.c (fold_builtin_memory_op): Use ref-all types
16093 for all memcpy foldings.
16094 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
16095 (build_outer_var_ref): Likewise.
16096 (scan_omp_1_op): Likewise.
16097 (lower_rec_input_clauses): Likewise.
16098 (lower_lastprivate_clauses): Likewise.
16099 (lower_reduction_clauses): Likewise.
16100 (lower_copyprivate_clauses): Likewise.
16101 (expand_omp_atomic_pipeline): Likewise.
16102 (expand_omp_atomic_mutex): Likewise.
16103 (create_task_copyfn): Likewise.
16104 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
16105 Remove old union trick. Initialize constant offsets.
16106 (ao_ref_init_from_vn_reference): Likewise. Do not handle
16107 INDIRECT_REF. Init base_alias_set properly.
16108 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
16109 (vn_reference_fold_indirect): Adjust for MEM_REFs.
16110 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
16112 (may_insert): Remove.
16113 (visit_reference_op_load): Do not test may_insert.
16114 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
16115 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
16116 a field to store the constant offset this op applies.
16117 (run_scc_vn): Adjust prototype.
16118 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
16119 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
16120 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
16121 bother about volatile qualifiers on pointers.
16122 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
16123 * tree-ssa-loop-ivopts.c
16124 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
16125 (strip_offset_1): Likewise.
16126 (find_interesting_uses_address): Replace INDIRECT_REF handling with
16128 (get_computation_cost_at): Likewise.
16129 * ipa-pure-const.c (check_op): Handle MEM_REF.
16130 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
16131 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
16133 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
16134 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
16135 (eliminate_local_variables_1): Likewise.
16136 (create_call_for_reduction_1): Likewise.
16137 (create_loads_for_reductions): Likewise.
16138 (create_loads_and_stores_for_name): Likewise.
16139 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
16140 (ssa_accessed_in_tree): Handle MEM_REF.
16141 (ssa_accessed_in_assign_rhs): Likewise.
16142 (update_type_size): Likewise.
16143 (analyze_accesses_for_call_stmt): Likewise.
16144 (analyze_accesses_for_assign_stmt): Likewise.
16145 (transform_access_sites): Likewise.
16146 (transform_allocation_sites): Likewise.
16147 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
16148 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
16149 not handle INDIRECT_REF.
16150 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
16151 (cond_store_replacement): Likewise.
16152 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16153 MEM_REF, no not handle INDIRECT_REFs.
16154 (insert_into_preds_of_block): Properly initialize avail.
16155 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
16156 for ARRAY_REFs. Properly handle reference lookups that
16157 require a bit re-interpretation.
16158 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
16159 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
16160 (build_ref_for_offset_1): Remove.
16161 (build_ref_for_offset): Build MEM_REFs.
16162 (gate_intra_sra): Disable for now.
16163 (sra_ipa_modify_expr): Handle MEM_REF.
16164 (ipa_early_sra_gate): Disable for now.
16165 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
16167 (disqualify_base_of_expr): Likewise.
16168 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
16170 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
16171 Use mem_ref_offset. Remove bogus folding.
16172 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
16173 (make_fancy_name_1): Add support for MEM_REF.
16174 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
16175 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
16176 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
16177 (compute_complex_ancestor_jump_func): Likewise.
16178 (ipa_analyze_virtual_call_uses): Likewise.
16179 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
16180 INDIRECT_REF folding with more generalized MEM_REF folding.
16181 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
16182 (forward_propagate_addr_into_variable_array_index): Also handle
16183 &ARRAY + I in addition to &ARRAY[0] + I.
16184 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
16185 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
16186 creates assignments with overlap.
16187 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
16188 (get_frame_field): Likewise.
16189 (get_nonlocal_debug_decl): Likewise.
16190 (convert_nonlocal_reference_op): Likewise.
16191 (struct nesting_info): Add mem_refs pointer-set.
16192 (create_nesting_tree): Allocate it.
16193 (convert_local_reference_op): Insert to be folded mem-refs.
16194 (fold_mem_refs): New function.
16195 (finalize_nesting_tree_1): Perform defered folding of mem-refs
16196 (free_nesting_tree): Free the pointer-set.
16197 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
16198 (vectorizable_load): Likewise.
16199 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
16200 (propagate_with_phi): Likewise.
16201 * tree-object-size.c (addr_object_size): Handle MEM_REFs
16202 instead of INDIRECT_REFs.
16203 (compute_object_offset): Handle MEM_REF.
16204 (plus_stmt_object_size): Handle MEM_REF.
16205 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
16207 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
16208 (symbol_marked_for_renaming): Likewise.
16209 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
16210 (fold-const.o): Add $(TREE_FLOW_H).
16211 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
16212 (find_func_clobbers): Likewise.
16213 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
16214 (decompose_access): Likewise.
16215 (replace_field_acc): Likewise.
16216 (replace_field_access_stmt): Likewise.
16217 (insert_new_var_in_stmt): Likewise.
16218 (get_stmt_accesses): Likewise.
16219 (reorg_structs_drive): Disable.
16220 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
16221 (ix86_canonical_va_list_type): Likewise.
16223 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
16226 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
16227 * target.def (struct gcc_target): Replace enum reg_class with
16228 reg_class_t in hook argument / return types.
16229 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
16230 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
16231 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
16232 * targhooks.h (default_branch_target_register_class): Likewise.
16233 (default_ira_cover_classes, default_secondary_reload): Likewise.
16234 (default_memory_move_cost, default_register_move_cost): Likewise.
16235 * targhooks.c (default_branch_target_register_class): Likewise.
16236 (default_ira_cover_classes, default_secondary_reload): Likewise.
16237 (default_memory_move_cost, default_register_move_cost): Likewise.
16238 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
16239 * bt-load.c (branch_target_load_optimize): Likewise.
16240 * ira.c (setup_cover_and_important_classes): Likewise.
16241 * ira-costs.c (copy_cost): Likewise.
16242 * reload1.c (emit_input_reload_insns): Likewise.
16243 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
16244 * config/frv/frv.c (frv_secondary_reload): Likewise.
16245 * config/s390/s390.c (s390_secondary_reload): Likewise.
16246 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
16247 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
16248 (ix86_register_move_cost): Likewise.
16249 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
16250 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
16251 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
16252 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
16253 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
16254 (rs6000_ira_cover_classes): Likewise.
16255 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
16256 * config/picochip/picochip-protos.h (picochip_secondary_reload):
16258 * config/pa/pa.c (pa_secondary_reload): Likewise.
16259 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
16260 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
16261 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
16262 * doc/tm.texi: Regenerate.
16264 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
16266 PR bootstrrap/44726
16267 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
16269 (build_alias_set_optimal_p): Likewise.
16270 (build_base_obj_set_for_drs): Likewise.
16272 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
16274 * target.def: Remove comment about licensing problems of function
16277 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
16278 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
16279 * doc/tm.texi: Regenerate.
16281 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
16282 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
16284 * target.def (enum_va_list_p): Use DEFHOOK.
16285 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
16286 Rename ptype to ptree.
16287 * doc/tm.texi: Regenerate.
16289 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
16290 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
16291 * doc/tm.texi: Regenerate.
16293 * target.def (memory_move_cost): Use DEFHOOK.
16294 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
16295 Rename regclass AKA class to rclass.
16296 * doc/tm.texi: Regenerate.
16298 * target.def (pragma_parse): Use DEFHOOK.
16299 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
16300 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
16301 * doc/tm.texi: Regenerate.
16303 * target.def (pass_by_reference): Use DEFHOOK.
16304 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
16305 * doc/tm.texi: Regenerate.
16307 * target.def (resolve_overloaded_builtin): Rename params to arglist.
16309 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
16310 * doc/tm.texi: Regenerate.
16312 * target.def (return_pops_args): Use DEFHOOK.
16313 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
16314 Rename stack-size to size.
16315 * doc/tm.texi: Regenerate.
16317 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
16318 last-sched_cycle to last_clock, cur_cycle to clock.
16319 * doc/tm.texi.in: Use @hook.
16320 * doc/tm.texi: Regenerate.
16322 * target.def (print_operand, print_operand_address): Update comment.
16323 (print_operand_punct_valid_p): Likewise.
16325 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
16327 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
16329 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
16330 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
16331 * rtl-error.h: New.
16332 * regrename.c: Do not include toplev.h. Include rtl-error.h.
16333 * rtl-error.c: Likewise.
16334 * reload.c: Likewise.
16335 * recog.c: Likewise.
16336 * sel-sched.c: Likewise.
16337 * function.c: Likewise.
16338 * reg-stack.c: Likewise.
16339 * cfgrtl.c: Likewise.
16340 * reload1.c: Likewise.
16341 * final.c: Include rtl-error.
16342 * Makefile.in: Adjust dependencies.
16344 2010-06-30 Jan Hubicka <jh@suse.cz>
16346 PR middle-end/PR44706
16347 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
16348 to return the value.
16350 2010-06-30 Michael Matz <matz@suse.de>
16353 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
16354 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
16355 a gimple reg, attach the original VDEF to the last store in the
16358 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
16361 * config/darwin.c (darwin_override_options): Use renamed
16362 targetm.asm_out.emit_unwind_label.
16364 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
16366 PR tree-optimization/39799
16367 * tree-inline.c (remap_ssa_name): Initialize variable only if
16368 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
16370 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
16372 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
16374 2010-06-30 Richard Guenther <rguenther@suse.de>
16377 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
16378 against oscillation with reverse peephole2.
16380 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
16383 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16386 2010-06-30 Nick Clifton <nickc@redhat.com>
16388 * config/rx/rx-modes.def: New file.
16389 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
16390 (CC_REGNUM): Define.
16391 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
16393 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
16394 (SELECT_CC_MODE): Define.
16395 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
16396 (reg:CC CC_REG) instead of (cc0).
16397 (attr "cc"): Delete.
16398 (cbranchsi4): Do not split compare and branch here. Instead move
16400 (cbranchsi4_<code>): ... here. New patterns.
16401 (cmpsi): Call rx-compare_redundant to find out if it is necessary
16402 to emit the compare instruction.
16403 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
16405 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
16406 FIRST_PSEUDO_REGNUM.
16407 (rx_expand_prologue, rx_expand_epilogue): Likewise.
16408 (rx_notice_update_cc): Delete.
16409 (rx_cc_modes_compatible): New function.
16410 (flags_needed_for_conditional): New function.
16411 (flags_from_mode): New function.
16412 (rx_compare_redundant): New function - scans backwards through
16413 insn list to find out if condition flags are already set correctly.
16414 (TARGET_CC_MODES_COMPATIBLE): Define.
16415 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
16417 * config/rx/rx.h (BRANCH_COST): Define.
16418 (REGISTER_MOVE_COST): Define.
16419 * config/rx/predicates (rx_source_operand): Allow all constant types.
16420 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
16421 (tstsi4): New pattern.
16422 * config/rx/rx.c (rx_memory_move_cost): Define.
16423 (TARGET_MEMORY_MOVE_COST): Define.
16425 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
16427 * tree.h (block_may_fallthru): Declare here.
16428 * tree-flow.h (block_may_fallthru): Do not declare here.
16429 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
16431 * Makefile.in (c-typeck.o): Update dependencies.
16433 2010-06-30 Jakub Jelinek <jakub@redhat.com>
16436 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
16437 * cselib.c (cfa_base_preserved_regno): New static variable.
16438 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
16439 of REGNO (cfa_base_preserved_val->locs->loc).
16440 (cselib_preserve_cfa_base_value): Add regno argument, set
16441 cfa_base_preserved_regno to it.
16442 (cselib_invalidate_regno): Allow removal of registers other than
16443 cfa_base_preserved_regno from cfa_base_preserved_val.
16444 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
16445 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
16446 of MEM addresses, if not on LHS.
16447 (reverse_op): Don't add reverse ops for cfa_base_rtx.
16448 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
16450 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
16452 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
16454 (peep2_buf_position): New static function.
16455 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
16456 peephole2_optimize): Use it.
16457 (peep2_attempt, peep2_update_life): New static functions, broken out
16458 of peephole2_optimize.
16459 (peep2_fill_buffer): New static function.
16460 (peephole2_optimize): Change the main loop to try to fill the buffer
16461 with the maximum number of insns before matching them against
16462 peepholes. Use a forward scan. Remove special case for targets with
16463 conditional execution.
16464 * genrecog.c (change_state): Delete dead code.
16465 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16466 Rewrite so as not to expect the second insn to have had a peephole
16469 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16471 * genhooks.c (emit_findices): Cast field precision to int.
16472 (emit_documentation): Likewise.
16474 2010-06-29 Jakub Jelinek <jakub@redhat.com>
16476 PR tree-optimization/43801
16477 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
16478 if old_decl was DECL_ONE_ONLY.
16481 * dwarf2out.c (add_accessibility_attribute): New function.
16482 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
16483 instead of adding DW_AT_accessibility manually.
16484 (gen_enumeration_type_die, gen_struct_or_union_type_die,
16485 gen_typedef_die): Use it.
16487 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16489 * vmsdbgout.c (full_name): Just output the file name if not native.
16491 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16493 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
16494 (funcnam_table): New static table.
16495 (funcnum_table): New static table.
16496 (write_rtnbeg): Write value saved in funcnum_table.
16497 (write_rtnend): Write value saved in funcnum_table.
16498 (vmsdbgout_begin_function): Save current function info in
16499 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
16500 (vmsdbgout_finish): Iterate over funcnum_table.
16502 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16504 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
16505 (vmsdbgout_type_decl): Declare
16506 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
16507 (FUNC_EPILOGUE_LABEL): New macro
16508 (vmsdbgout_begin_epilogue): New function.
16509 (vmsdbgout_type_decl): New function.
16511 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16513 * vmsdbg.h: Update copyright.
16515 2010-06-29 Douglas B Rupp <rupp@gnat.com>
16517 * vmsdbg.h (DST_K_TBG): New DST constant.
16518 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
16519 (write_modbeg): Cast module_language to avoid warning.
16520 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
16522 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
16525 * target.def, doc/tm.texi.in, genhooks.c: New files.
16526 * target.h: Instead of defining individual hook members,
16527 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
16528 include target.def.
16529 * target-def.h: Instead of defining individual hook initializers,
16530 include target-hooks-def.h.
16531 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
16532 targetm.live_on_entry -> targetm.extra_live_on_entry
16533 targetm.sched.md_finish ->targetm.sched.finish
16534 targetm.sched.md_init -> targetm.sched.init
16535 targetm.sched.md_init_global -> targetm.sched.init_global
16536 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
16537 targetm.asm_out.except_table_label ->
16538 targetm.asm_out.emit_except_table_label
16539 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
16540 targetm.target_help -> targetm.help
16541 targetm.vectorize.builtin_support_vector_misalignment ->
16542 targetm.vectorize.support_vector_misalignment
16543 targetm.file_start_app_off -> targetm.asm_file_start_app_off
16544 targetm.file_start_file_directive ->
16545 targetm.asm_file_start_file_directive
16546 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
16547 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
16548 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
16549 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
16550 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
16551 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
16552 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
16553 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
16554 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
16555 * Makefile.in (TARGET_H): Depend on target.def.
16556 (TARGET_DEF_H): Depend on target-hooks-def.h.
16557 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
16558 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
16559 * doc/tm.texi: Regenerate.
16561 * Makefile.in (s-tm-texi): Remove stray tab / rule.
16563 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
16564 (targetm.sched.init): Likewise.
16566 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16569 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
16570 (function_arg_advance_32): Const-ify TYPE parameter.
16571 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
16572 (ix86_function_arg_advance): Change type of NAMED to bool.
16573 (function_arg_32): Const-ify CUM and TYPE parameters.
16574 (function_arg_64): Likewise. Change type of NAMED to bool.
16575 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
16577 (ix86_function_arg): Change type of NAMED to bool.
16578 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
16579 last argument as a bool.
16581 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
16583 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
16584 (OVERRIDE_OPTIONS): Add note of obsolescence.
16585 Replace references with references to TARGET_OPTION_OVERRIDE.
16586 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
16588 * targhooks.c (default_target_option_override): New function.
16589 * targhooks.h (default_target_option_override): Declare.
16590 * target.h (struct gcc_target): Add override member to
16591 target_option member.
16592 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
16593 targetm.target_option.override call.
16594 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
16595 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
16597 2010-06-29 Jan Hubicka <jh@suse.cz>
16599 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
16601 2010-06-29 Jan Hubicka <jh@suse.cz>
16603 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
16605 (rebuild_frequencies): New function.
16606 * predict.h (rebuild_frequencies): Declare.
16607 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
16608 entry block and edge reaching new_entry.
16609 (tree_function_versioning): When doing partial cloning, rebuild
16610 frequencies when done.
16611 * passes.c (execute_function_todo): Use rebild_frequencies.
16613 2010-06-29 Richard Guenther <rguenther@suse.de>
16615 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
16616 * tree-flow.h (enum noalias_state): Remove.
16617 (struct var_ann_d): Remove noalias_state member.
16619 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
16622 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
16623 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
16624 (maddhidi4): Likewise.
16626 Revert parts of the change for PR25130.
16627 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
16630 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16632 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
16633 targetm.calls.function_incoming_arg, and
16634 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
16635 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
16636 * target.h (struct gcc_target): Add function_arg_advance,
16637 function_arg, and function_incoming_arg fields.
16638 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
16639 (TARGET_FUNCTION_INCOMING_ARG): Define.
16640 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
16641 and TARGET_FUNCTION_INCOMING_ARG.
16642 * targhooks.h (default_function_arg_advance): Declare.
16643 (default_function_arg, default_function_incoming_arg): Declare.
16644 * targhooks.c (default_function_arg_advance): New function.
16645 (default_function_arg, default_function_incoming_arg): New function.
16646 * config/i386/i386.c (function_arg_advance): Rename to...
16647 (ix86_function_arg_advance): ...this. Make static.
16648 (function_arg): Rename to...
16649 (ix86_function_arg): ...this. Make static.
16650 (TARGET_FUNCTION_ARG_ADVANCE): Define.
16651 (TARGET_FUNCTION_ARG): Define.
16652 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
16653 (FUNCTION_ARG): Delete.
16654 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
16655 (function_arg): Delete prototype.
16657 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16659 * reginfo.c (init_reg_sets_1): Adjust comments.
16660 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
16661 * calls.c (prepare_call_address): Likewise.
16662 (emit_call_1): Use targetm.calls.return_pops_args.
16663 (expand_call): Likewise.
16664 * function.c (assign_parms): Likewise.
16665 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
16666 * target.h (struct gcc_target) [struct calls]: Add
16667 return_pops_args field.
16668 * targhooks.h (default_return_pops_args): Declare.
16669 * targhooks.c (default_return_pops_args): Define.
16670 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
16671 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
16672 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
16673 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
16675 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
16676 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
16677 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
16678 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
16679 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
16680 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
16681 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
16682 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
16683 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
16684 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
16685 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
16686 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
16687 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
16688 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
16689 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
16690 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
16691 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
16692 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
16693 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
16694 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
16695 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
16696 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
16697 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
16698 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
16699 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
16700 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
16701 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
16702 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
16703 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
16704 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
16705 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
16706 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
16707 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
16708 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
16709 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
16710 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
16711 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
16712 * config/i386/i386.c (ix86_return_pops_args): Make static.
16713 Constify arguments.
16714 (TARGET_RETURN_POPS_ARGS): Define.
16715 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
16716 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
16717 (TARGET_RETURN_POPS_ARGS): Define.
16718 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
16719 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
16720 (TARGET_RETURN_POPS_ARGS): Define.
16722 2010-06-29 Richard Guenther <rguenther@suse.de>
16724 PR middle-end/44667
16725 * tree-inline.c (initialize_inlined_parameters): Make sure
16726 to remap the inlined parameter variable substitutions types.
16728 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
16730 PR rtl-optimization/44659
16731 * combine.c (make_compound_operation) <SUBREG>: Do not return the
16732 result of force_to_mode if it partially re-expanded the compound.
16734 2010-06-28 Jan Hubicka <jh@suse.cz>
16736 PR middle-end/44671
16737 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
16740 2010-06-28 Anatoly Sokolov <aesok@post.ru>
16742 * double-int.h (force_fit_type_double): Remove declaration.
16743 * double-int.c (force_fit_type_double): Move to tree.c.
16744 * tree.h (force_fit_type_double): Declare.
16745 * tree.h (force_fit_type_double): Moved from double-int.c. Use
16746 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
16747 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
16748 * convert.c (convert_to_pointer): Adjust call to
16749 force_fit_type_double.
16750 * tree-vrp.c (extract_range_from_assert,
16751 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
16752 * fold-const.c: Update comment.
16753 (int_const_binop, fold_convert_const_int_from_int,
16754 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
16755 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
16756 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
16757 round_up_loc): Adjust call to force_fit_type_double.
16759 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16761 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
16763 2010-06-28 Martin Jambor <mjambor@suse.cz>
16765 * tree-sra.c (convert_callers): New parameter, change fndecls of
16767 (modify_function): Pass the old decl to convert_callers.
16769 2010-06-28 Martin Jambor <mjambor@suse.cz>
16771 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
16772 ipa_check_create_node_params and ipa_initialize_node_params with
16773 checking asserts they are not necessary.
16775 2010-06-28 Jan Hubicka <jh@suse.cz>
16777 PR tree-optimization/44687
16778 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
16780 2010-06-28 Martin Jambor <mjambor@suse.cz>
16783 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
16784 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
16785 instead of BINFO_BASE_BINFO.
16787 2010-06-28 Michael Matz <matz@suse.de>
16789 PR middle-end/44592
16790 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
16791 proper VDEF chain for intermediate stores in the sequence.
16793 2010-06-28 Jan Hubicka <jh@suse.cz>
16795 PR tree-optimization/44357
16796 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
16797 uninlinable functions.
16799 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16801 * config.gcc (powerpc*-*-*): Handle titan.
16802 * config/rs6000/rs6000.c (titan_cost): New costs.
16803 (rs6000_override_options): Add "titan" to processor_target_table.
16804 Add Titan to branch alignment logic.
16805 Correctly set rs6000_cost for titan.
16806 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
16807 * config/rs6000/titan.md: New file.
16808 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
16810 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
16812 * tree-browser.c (TB_history_stack): Convert to a VEC.
16813 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
16814 (TB_history_prev): Likewise.
16816 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
16818 * vec.h (vec_heap_free): Add parentheses around free.
16820 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
16822 * system.h: Poison GCC_EXCEPT_H for front-end files.
16824 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
16826 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
16827 Define to NULL by default.
16828 * except.h: Define GCC_EXCEPT_H.
16829 (doing_eh): Remove prototype.
16830 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
16831 (lang_protect_cleanup_actions): Remove.
16832 * except.c (lang_protect_cleanup_actions): Remove.
16833 (doing_eh): Remove.
16834 (gen_eh_region): Don't check doing_eh here.
16835 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
16836 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
16837 instead of lang_protect_cleanup_actions.
16838 * omp-low.c (maybe_catch_exception): Likewise.
16839 * Makefile.in: Update dependencies.
16841 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
16843 * cgraph.h (struct varpool_node): new used_from_object_file flag.
16844 (struct cgraph_local_info): new used_from_object_file flag.
16845 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
16846 (cgraph_clone_node): initialize used_from_object_file.
16847 (cgraph_create_virtual_clone): initialize used_from_object_file.
16848 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
16849 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
16850 when compiling with -fwhole-program.
16851 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
16853 * ipa.c (function_and_variable_visibility): Set externally_visible
16854 flag of varpool_node if used_from_object_file flag is set.
16855 (cgraph_externally_visible_p): check used_from_object_file flag.
16856 * doc/invoke.texi (-fwhole-program option): Change description of
16857 externally_visible attribute accordingly.
16858 * doc/extend.texi (externally_visible): Ditto.
16860 2010-06-27 Jan Hubicka <jh@suse.cz>
16862 * params.def (max-inline-insns-auto): Default to 40.
16863 * doc/invoke.texi (max-inline-insns-auto): Document the change.
16865 2010-06-27 Jan Hubicka <jh@suse.cz>
16867 PR middle-end/44671
16868 PR middle-end/44686
16869 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
16871 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
16872 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
16874 2010-06-27 Anatoly Sokolov <aesok@post.ru>
16876 * target.h (struct gcc_target): Add register_move_cost field.
16877 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
16878 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
16879 * targhooks.c (default_register_move_cost): New function.
16880 * targhooks.h (default_register_move_cost): Declare function.
16881 * defaults.h (REGISTER_MOVE_COST): Delete.
16882 * ira-int.h (ira_register_move_cost): Update comment.
16883 * ira.c (ira_register_move_cost): Update comment.
16884 * reload.h (register_move_cost): Declare.
16885 * reginfo.c (register_move_cost): New function.
16886 (move_cost): Update comment.
16887 (init_move_cost, memory_move_secondary_cost): Replace
16888 REGISTER_MOVE_COST with register_move_cost.
16889 * postreload.c (reload_cse_simplify_set): (Ditto.).
16890 * reload.c (find_valid_class, find_reloads): (Ditto.).
16891 * reload1.c (choose_reload_regs): (Ditto.).
16892 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
16893 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
16894 * doc/md.texi (can_create_pseudo_p): Update documentation.
16896 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
16897 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
16898 * config/i386/i386.h (ix86_memory_move_cost): Make static.
16899 (TARGET_MEMORY_MOVE_COST): Define.
16901 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
16902 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
16903 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
16904 (TARGET_MEMORY_MOVE_COST): Define.
16906 2010-06-27 Richard Guenther <rguenther@suse.de>
16908 PR tree-optimization/44683
16909 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
16910 false edge from the inverted condition.
16912 2010-06-27 Richard Guenther <rguenther@suse.de>
16914 PR middle-end/44684
16915 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
16916 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
16917 for register LHS. Or non-store assignments.
16919 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
16921 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
16922 (sparc_emit_set_const64): Likewise. Remove disabled code.
16923 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
16924 (sparc_emit_set_const64): Likewise.
16926 2010-06-26 Catherine Moore <clm@codesourcery.com>
16928 * config/mips/mips.md (alu_type): New attribute.
16929 (type): Infer type from alu_type.
16930 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
16931 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
16932 *subsi3_extended, negsi2, negdi2, *low<mode>,
16933 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
16934 xor<mode>3, *nor<mode>3,
16935 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
16936 *zero_extendhi_truncqi): Set alu_type instead of type.
16938 2010-06-26 Douglas B Rupp <rupp@gnat.com>
16940 * config/alpha/alpha.c (alpha_need_linkage): Adjust
16941 splay_tree_new_ggc call.
16942 (alpha_use_linkage): Likewise.
16944 2010-06-26 Joseph Myers <joseph@codesourcery.com>
16946 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
16947 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
16948 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
16949 (static_specs): Remove switches_need_spaces.
16950 (process_command, do_self_spec): Hardcode handling "-o" instead of
16951 checking switches_need_spaces.
16952 * system.h (SWITCHES_NEED_SPACES): Poison.
16954 2010-06-26 Richard Guenther <rguenther@suse.de>
16956 PR tree-optimization/44393
16957 * tree-loop-distribution.c (generate_loops_for_partition): Fix
16958 stmt removal and VOP renaming.
16959 (generate_memset_zero): Remove redundant stmt updating.
16960 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
16961 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
16963 2010-06-26 Jan Hubicka <jh@suse.cz>
16965 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
16966 edges comming from header are equivalent.
16967 (visit_bb): Handle PHIs correctly.
16968 * tree-inline.c (copy_phis_for_bb): Be able to copy
16969 PHI from entry edge.
16970 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
16972 2010-06-26 Richard Guenther <rguenther@suse.de>
16974 PR middle-end/44674
16975 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
16976 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
16978 2010-06-26 Joseph Myers <joseph@codesourcery.com>
16980 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
16981 add_infile, alloc_switch): New.
16982 (process_command): Remove variable lang_n_infiles. Process
16983 options in a single pass. Use new functions for allocating
16984 infiles and switches arrays. Properly skip operands of
16985 -Xpreprocessor and -Xassembler.
16987 2010-06-26 Jan Hubicka <jh@suse.cz>
16989 PR middle-end/44671
16990 * cgraphunit.c (cgraph_function_versioning): Remove wrong
16991 cgraph_make_decl_local call; fix typo copying RTL data.
16993 2010-06-25 DJ Delorie <dj@redhat.com>
16995 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
16996 (m32c_output_aligned_common): Likewise.
16997 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
16998 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
16999 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
17000 (m32c_register_pragmas): Register it.
17001 * config/m32c/m32c.c (m32c_get_pragma_address): New.
17002 (m32c_insert_attributes): Set #pragma address decls volatile.
17003 (pragma_entry_eq): New.
17004 (pragma_entry_hash): New.
17005 (m32c_note_pragma_address): New.
17006 (m32c_get_pragma_address): New.
17007 (m32c_output_aligned_common): New.
17008 * doc/extend.texi: Document the new pragma.
17010 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
17012 * config/m32c/predicates.md (m32c_any_operand): Check the code
17013 instead of memory_operand so as to allow matching volatile MEMs.
17014 (m32c_nonimmediate_operand): Likewise.
17015 (mra_operand): Allow volatiles.
17017 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
17020 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
17021 address if the offset is unknown.
17023 2010-06-25 Douglas B Rupp <rupp@gnat.com>
17025 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
17026 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
17027 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
17028 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
17029 to ia64_start_function. Invoke it.
17030 * config/ia64/ia64.c (ia64_start_function): Call new function
17031 dwarf2out_vms_debug_main_pointer.
17033 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17035 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
17036 statements computing the true predicate.
17038 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17040 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
17041 to boolean_true_node.
17042 (reset_bb_predicate): New.
17043 (predicate_bbs): Call reset_bb_predicate.
17045 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17047 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
17048 (tree_if_conversion): Returns true when something has been changed.
17049 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
17052 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17054 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
17055 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
17056 * tree-if-conv.c: Include dbgcnt.h.
17057 (tree_if_conversion): Use if_conversion_tree to count the number of
17058 if-convertible loops.
17060 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
17062 * common.opt (fprefetch-loop-arrays): Re-define
17063 -fprefetch-loop-arrays as a tri-state option with the initial
17065 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
17066 pass only when flag_prefetch_loop_arrays > 0.
17067 * toplev.c (process_options): Note that, with tri-states,
17068 flag_prefetch_loop_arrays>0 means prefetching is enabled.
17069 * config/i386/i386.c (override_options): Enable prefetching at -O3
17070 for a set of CPUs that sw prefetching is helpful.
17071 (software_prefetching_beneficial_p): New. Return TRUE if software
17072 prefetching is beneficial for the given CPU.
17074 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
17076 PR rtl-optimization/44326
17077 * implicit-zee.c (find_removable_zero_extends): Replace
17078 INSN_P with NONDEBUG_INSN_P.
17080 2010-06-25 Martin Jambor <mjambor@suse.cz>
17082 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
17083 (struct ipa_node_params): Removed the modification_analysis_done flag.
17084 (ipa_is_param_modified): Removed.
17085 (ipa_analyze_node): Declare.
17086 (ipa_compute_jump_functions): Remove declaration.
17087 (ipa_count_arguments): Likewise.
17088 (ipa_detect_param_modifications): Likewise.
17089 (ipa_analyze_params_uses): Likewise.
17090 * ipa-prop.c (struct param_analysis_info): New type.
17091 (visit_store_addr_for_mod_analysis): Removed.
17092 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
17093 moved down in the file.
17094 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
17095 (ipa_count_arguments): Made static.
17096 (mark_modified): New function.
17097 (is_parm_modified_before_call): New function.
17098 (compute_pass_through_member_ptrs): New parameter parms_info, call
17099 is_parm_modified_before_call instead of ipa_is_param_modified.
17100 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
17101 it to compute_pass_through_member_ptrs.
17102 (ipa_compute_jump_functions): New parameter parms_info, pass it to
17103 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
17104 on the callee if it is analyzed. Made static.
17105 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
17106 is_parm_modified_before_call instead of ipa_is_param_modified.
17107 (ipa_analyze_call_uses): New parameter parms_info, pass it to
17108 ipa_analyze_indirect_call_uses.
17109 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
17110 ipa_analyze_call_uses.
17111 (ipa_analyze_params_uses): New parameter parms_info, pass it to
17112 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
17113 (ipa_analyze_node): New function.
17114 (ipa_print_node_params): Do not dump the modified flag.
17115 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
17116 it. Do not stream the modified parameter flag.
17117 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
17118 it. Do not stream the modified parameter flag.
17119 * ipa-cp.c (ipcp_analyze_node): Removed.
17120 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
17121 with only a call to ipa_analyze_node.
17122 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
17123 node with only a call to ipa_analyze_node.
17125 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
17127 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
17129 2010-06-25 Jan Hubicka <jh@suse.cz>
17131 * tree-pass.h (pass_split_functions): Declare.
17132 * opts.c (decode_options): Enable function splitting at -O2
17133 * timevar.def (TV_IPA_FNSPLIT): New macro.
17134 * ipa-split.c: New file.
17135 * common.opt (-fpartial-inlining): New flag.
17136 * Makefile.in (ipa-split.o): New object file.
17137 * passes.c (init_optimization_passes): Add ipa-split.
17138 * params.def (partial-inlining-entry-probability): New parameters.
17139 * doc/invoke.texi (-fpartial-inlining): New.
17141 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
17144 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
17145 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
17146 (gimplify_expr): Likewise.
17148 2010-06-25 Martin Jambor <mjambor@suse.cz>
17150 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
17151 statements instead of bailing out on them.
17152 (ipa_analyze_indirect_call_uses): Do not require that loads from the
17153 parameter are in the same BB as the condition. Update comments.
17155 2010-06-25 Jakub Jelinek <jakub@redhat.com>
17157 PR middle-end/43866
17158 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
17159 true or always false, return NULL_TREE.
17160 (tree_unswitch_single_loop): Optimize conditions even when reaching
17161 max-unswitch-level parameter. If num > 0, optimize first all conditions
17162 using entry checks, then do still reachable block discovery and consider
17163 only conditions in still reachable basic blocks in the loop.
17165 PR tree-optimization/44539
17166 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
17167 the call doesn't have LHS, but has VDEF.
17169 2010-06-25 Joseph Myers <joseph@codesourcery.com>
17171 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
17172 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
17173 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
17174 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
17175 * system.h (MODIFY_TARGET_NAME): Poison.
17177 2010-06-25 Alan Modra <amodra@gmail.com>
17179 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
17180 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
17181 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
17182 CMODEL_LARGE as default.
17183 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
17184 (offsettable_ok_by_alignment): Delete.
17185 (rs6000_emit_move): Remove mcmodel=medium optimization.
17187 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
17189 With large parts from Jim Wilson:
17191 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
17192 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17193 * optabs.c (optab_for_tree_code): Likewise.
17194 (expand_widen_pattern_expr): Likewise.
17195 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
17196 out of execute_optimize_widening_mul.
17197 (convert_plusminus_to_widen): New function.
17198 (execute_optimize_widening_mul): Use the two new functions.
17199 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
17200 Remove code to generate widening multiply-accumulate. Add support
17201 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17202 * gimple-pretty-print.c (dump_ternary_rhs): New function.
17203 (dump_gimple_assign): Call it when appropriate.
17204 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
17205 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
17206 (expand_gimple_stmt_1): Likewise.
17207 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
17208 WIDEN_MULT_MINUS_EXPR.
17209 * tree-ssa-operands.c (get_expr_operands): Likewise.
17210 * tree-inline.c (estimate_operator_cost): Likewise.
17211 * gimple.c (extract_ops_from_tree_1): Renamed from
17212 extract_ops_from_tree. Add new arg for a third operand; fill it.
17213 (gimple_build_assign_stat): Support operations with three operands.
17214 (gimple_build_assign_with_ops_stat): Likewise.
17215 (gimple_assign_set_rhs_from_tree): Likewise.
17216 (gimple_assign_set_rhs_with_ops_1): Renamed from
17217 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
17218 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
17219 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
17220 WIDEN_MULT_MINUS_EXPR.
17221 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
17222 (extract_ops_from_tree_1): Adjust declaration.
17223 (gimple_assign_set_rhs_with_ops_1): Likewise.
17224 (gimple_build_assign_with_ops): Pass NULL for last operand.
17225 (gimple_build_assign_with_ops3): New macro.
17226 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
17227 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
17229 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
17230 (verify_gimple_assign): Call it.
17231 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
17232 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
17233 functions for dealing with three-operand statements.
17234 * tree.c (commutative_ternary_tree_code): New function.
17235 * tree.h (commutative_ternary_tree_code): Declare it.
17236 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
17237 ternary statements.
17238 (gimple_assign_nonzero_warnv_p): Likewise.
17239 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
17240 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
17241 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
17242 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
17243 (struct hashtable_expr): New member ternary in the union.
17244 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
17245 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
17246 (iterative_hash_hashable_expr): Likewise.
17247 (print_expr_hash_elt): Handle EXPR_TERNARY.
17248 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
17249 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
17250 statements. Handle GIMPLE_TERNARY_RHS.
17252 2010-06-25 Jan Hubicka <jh@suse.cz>
17254 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
17256 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
17259 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
17260 parameters are not good.
17261 (c_parser_parameter_declaration): Error unknown type name if the type
17262 name can't start declaration specifiers.
17264 2010-06-25 Joseph Myers <joseph@codesourcery.com>
17266 * gcc.c (translate_options): Don't mention +e in comment.
17267 (process_command): Don't handle +e specially.
17269 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
17271 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
17273 * ira-build.c (merge_hard_reg_conflicts): New function.
17274 (create_cap_allocno, copy_info_to_removed_store_destinations,
17275 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
17276 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
17277 (remove_unnecessary_allocnos, remove_low_level_allocnos)
17278 copy_nifo_to_removed_store_destination): Use them.
17279 * ira-lives.c (make_hard_regno_born): New function, split out of
17281 (make_allocno_born): Likewise.
17282 (make_hard_regno_dead): New function, split out of make_regno_dead.
17283 (make_allocno_dead): Likewise.
17284 (inc_register_pressure): New function, split out of set_allocno_live.
17285 (dec_register_pressure): New function, split out of clear_allocno_live.
17286 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
17287 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
17288 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
17289 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
17290 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
17291 mark_pseudo_regno_live.
17292 (process_bb_node_lives): Use mark_pseudo_regno_live,
17293 make_hard_regno_born and make_allocno_dead.
17294 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
17295 set_allocno_live, clear_allocno_live): Delete functions.
17297 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
17298 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
17300 (ira_flattening): Use ira_parent_allocno.
17301 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
17302 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
17304 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
17307 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
17308 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
17309 minmax_set_iter_cond, minmax_set_iter_next,
17310 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
17311 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
17312 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
17313 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
17316 * ira-int.h (struct live_range, live_range_t): Renamed from struct
17317 ira_allocno_live_range and allocno_live_range_t; all uses changed.
17318 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
17321 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
17323 * thumb2.md (thumb2_tlobits_cbranch): Delete.
17324 (peephole2 to convert zero_extract/compare of single bit to
17325 lshift/compare): New.
17327 2010-06-24 Anatoly Sokolov <aesok@post.ru>
17329 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
17330 recursive call and call to 'int_const_binop'.
17331 (build_range_check, fold_cond_expr_with_comparison, unextend,
17332 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
17333 multiple_of_p): Adjust call to const_binop.
17335 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
17337 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
17338 determine size of XFmode operand.
17339 (XFmode extended DFmode push splitter): Ditto.
17340 (XFmode extended SFmode push splitter): Ditto.
17342 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
17345 * config/i386/i386.md (extract_code): New.
17346 (<u>divmodqi4): Likewise.
17347 (divmodhiqi3): Likewise.
17348 (udivmodhiqi3): Likewise.
17349 (<u>divqi3): Remvoved.
17351 2010-06-24 Jakub Jelinek <jakub@redhat.com>
17353 PR middle-end/44492
17354 * recog.h (struct recog_data): Add is_asm field.
17355 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
17356 present in constraints of inline-asm operand and memory operand
17357 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
17358 (extract_insn): Initialize recog_data.is_asm.
17359 * doc/md.texi (Constraints): Document operand side-effect rules.
17361 2010-06-24 Andi Kleen <ak@linux.intel.com>
17363 * c-parser.c (c_parser_conditional_expression): Call
17364 warn_for_omitted_condop.
17365 * doc/invoke.texi: Document omitted condop warning.
17367 2010-06-24 Nick Clifton<nickc@redhat.com>
17369 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
17370 insn in the sequence is a jump insn before setting its label.
17372 2010-06-24 Alan Modra <amodra@gmail.com>
17374 * collect2.c (main): Match exactly --version and --help.
17376 2010-06-24 DJ Delorie <dj@redhat.com>
17378 * config/m32c/m32c-pragma.c: Don't include rtl.h.
17380 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
17382 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
17383 using X87MODEF mode iterator.
17384 (pushsf splitter): Macroize splitter using P mode iterator.
17385 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
17388 (*movxf_internal): Rename from *movxf_integer.
17389 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
17390 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
17391 (*movdf_internal): Rename from *movdf_integer.
17392 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
17393 (*movsf_internal): Rename from *movdf_1.
17395 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
17397 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
17398 (const_gimple_seq_node): Removed typedefs.
17400 * gimple.h (gimple_seq_node_d, gimple_seq_node)
17401 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
17403 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
17405 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
17406 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
17407 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
17408 and CODE_FOR_vec_extract_lo_v4df.
17410 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
17411 Changed to define_insn_and_split.
17412 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
17413 (vec_extract_lo_v16hi): Likewise.
17414 (vec_extract_lo_v32qi): Likewise.
17415 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
17416 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
17418 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
17421 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
17422 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
17423 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
17424 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
17425 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
17428 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
17431 * df-core.c (struct df): Rename to df_d.
17432 * df.h (struct df): Likewise.
17433 * dse.h (struct df): Remove forward declaration.
17434 * recog.h (struct insn_data): Rename to:
17435 (struct_insn_data_d). Adjusted all users.
17437 2010-06-23 Arnaud Charlet <charlet@adacore.com
17440 * doc/install.texi: Update requirements to build GNAT.
17442 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
17444 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
17446 (m68k_sched_attr_opx_type): Remove unreachable return.
17447 (m68k_sched_attr_opy_type): Likewise.
17448 (m68k_sched_attr_size): Likewise.
17449 (sched_get_opxy_mem_type): Likewise.
17450 (m68k_sched_attr_op_mem): Likewise.
17452 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
17454 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
17455 new statement and adjust VDEF only if necessary. Remove superfluous
17456 call to maybe_clean_or_replace_eh_stmt.
17457 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
17459 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
17460 * tree-inline.c (copy_bb): ...and not there.
17462 2010-06-22 Cary Coutant <ccoutant@google.com>
17464 * dwarf2out.c (is_nested_in_subprogram): New function.
17465 (should_move_die_to_comdat): Use it.
17466 (copy_ancestor_tree): Don't mark DIEs here.
17467 (copy_decls_walk): Start walk from root of newly-added tree;
17468 mark DIEs here instead.
17470 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
17472 * config/i386/i386.md (unit): Also check sseishft1.
17474 2010-06-22 Jan Hubicka <jh@suse.cz>
17476 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
17479 2010-06-22 Jan Hubicka <jh@suse.cz>
17481 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
17482 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
17483 Return true if something changed.
17484 * df.h (df_confluence_function_n): Return bool.
17485 * df-core.c (df_worklist_propagate_forward,
17486 df_worklist_propagate_backward): Track changes and ages.
17487 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
17489 * dse.c (dse_confluence_n): Return always true.
17491 2010-06-22 Jan Hubicka <jh@suse.cz>
17493 * bitmap.c (bitmap_clear_bit): Micro optimize.
17495 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
17497 * config/i386/i386.md (SWI1248x): New mode iterator.
17502 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
17503 SWI1248x mode iterator.
17504 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
17505 using SWI124 mode iterator.
17506 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
17508 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
17509 *pushdi2_prologue_rex64 using P mode iterator.
17510 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
17511 using SWI48 mode iterator.
17512 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
17513 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
17514 using SWI1248x mode iterator.
17515 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
17516 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
17517 SWI48 mode iterator.
17518 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
17520 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
17521 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
17522 SWI12 mode iterator.
17523 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
17524 SWI12 mode iterator.
17525 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
17526 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
17527 SWI24 mode iterator.
17528 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
17529 SWI48 mode iterator.
17530 (mov<mode>_insn_1): New expander.
17531 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
17532 using SWI48x mode iterator.
17534 (*movoi_internal_avx): Rename from *movoi_internal.
17535 (*movti_internal_rex64): Rename from *movti_rex64.
17536 (*movti_internal_sse): Rename from *movti_sse.
17537 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
17538 (*movdi_internal): Rename from *movdi_2.
17539 (*movsi_internal): Rename from *movsi_1.
17540 (*movhi_internal): Rename from *movhi_1.
17541 (*movqi_internal): Rename from *movqi_1.
17543 (insv): Update the call to gen_movsi_insv_1 for rename.
17544 * config/i386/i386.c (promote_duplicated_reg): Ditto.
17546 2010-06-22 Jan Hubicka <jh@suse.cz>
17548 * passes.c (execute_function_todo): Move call of statistics_fini_pass
17550 (execute_todo) ... this one.
17552 2010-06-22 Alan Modra <amodra@gmail.com>
17555 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
17556 * caller-save.c (insert_restore, insert_save): Use non-validate
17557 form of adjust_address.
17559 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17562 * config/pa/pa.c (override_options): Disable
17563 -freorder-blocks-and-partition.
17565 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
17568 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
17570 * config/i386/i386.md (type): Add sseishft1
17572 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
17573 (ppro_insn_load): Likewise.
17574 (ppro_insn_store): Likewise.
17575 (ppro_insn_both): Likewise.
17577 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
17578 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
17580 (*vec_extractv2di_1_avx): Likewise.
17581 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
17582 type. Remove atom_unit.
17583 (*vec_extractv2di_1_sse2): Likewise.
17585 2010-06-21 DJ Delorie <dj@redhat.com>
17587 * diagnostic.h (diagnostic_classification_change_t): New.
17588 (diagnostic_context): Add history and push/pop list.
17589 (diagnostic_push_diagnostics): Declare.
17590 (diagnostic_pop_diagnostics): Declare.
17591 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
17592 from pragmas in a history chain instead of the global table.
17593 (diagnostic_push_diagnostics): New.
17594 (diagnostic_pop_diagnostics): New.
17595 (diagnostic_report_diagnostic): Scan history chain to find state
17596 of diagnostics as of the diagnostic location.
17597 * opts.c (set_option): Pass UNKNOWN_LOCATION to
17598 diagnostic_classify_diagnostic.
17599 (enable_warning_as_error): Likewise.
17600 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
17601 use in the history chain.
17602 * doc/extend.texi: Document pragma GCC diagnostic changes.
17604 2010-06-21 Jakub Jelinek <jakub@redhat.com>
17606 * dwarf2out.c (add_linkage_name): New function. Don't add
17607 anything to DW_TAG_member DIEs.
17608 (add_name_and_src_coords_attributes): Use it.
17609 (gen_variable_die): Call it for C++ static data members if
17610 specification is DW_TAG_member.
17612 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
17613 C++ char16_t and char32_t.
17615 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
17616 * genattrtab.c: Include vecprim.h.
17617 (cached_attrs, cached_attr_count, attrs_seen_once,
17618 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
17619 attrs_cached_after): New variables.
17620 (find_attrs_to_cache): New function.
17621 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
17622 (write_test_expr): Add attrs_cached argument, return it too,
17623 attempt to cache non-const attributes used more than once in
17624 a single case handling.
17625 (write_attr_get): Use find_attrs_to_cache, for caching candidates
17626 emit cached_* variables. Adjust write_attr_set callers.
17627 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
17628 to find attributes that should be cached in this block. Adjust
17629 write_test_expr callers.
17630 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
17632 (make_automaton_attrs): Adjust write_test_expr caller.
17634 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
17635 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
17636 (make_automaton_attrs): If find_tune_attr returns non-NULL,
17637 write separate internal_dfa_insn_code_* and insn_default_latency_*
17638 functions for each attribute's value and emit init_sched_attrs
17639 function and function pointers.
17640 * genattr.c (const_attrs, reservations): New variables.
17641 (gen_attr): Add const attributes to const_attrs vector.
17642 (check_tune_attr, find_tune_attr): New functions.
17643 (main): Add reservations to reservations vector. If find_tune_attr
17644 returns true, add prototype for init_sched_attrs and make
17645 internal_dfa_insn_code and insn_default_latency function pointers,
17646 otherwise define init_sched_attrs as dummy macro.
17647 * cfgexpand.c: Include insn-attr.h.
17648 (gimple_expand_cfg): Call init_sched_attrs.
17650 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
17653 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
17654 va_arg from a set of register save slots into a temporary,
17655 if the container is bigger than type size, do the copying
17656 using smaller mode or using memcpy.
17659 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
17661 (sel_print_to_dot): Remove macro.
17662 (sel_print): Likewise. New prototype.
17663 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
17664 (sel_print): New function.
17666 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17668 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
17669 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
17671 2010-06-21 Nick Clifton <nickc@redhat.com>
17673 * config/rx/rx.h (PTRDIFF_TYPE): Define.
17674 (SMALL_REGISTER_CLASS): Define (to zero).
17675 (PRINT_OPERAND): Delete.
17676 (PRINT_OPERAND_ADDRESS): Delete.
17677 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
17678 (rx_print_operand_address): Delete prototype.
17679 * config/rx/rx.c (rx_print_operand): Make static.
17680 Allow %H and %L to handle CONST_DOUBLEs.
17681 (rx_print_operand_address): Make static.
17682 (rx_gen_move_template): Rename local variable 'template' to
17684 (rx_function_arg): Do not pass unknown sized objects in registers.
17685 (TARGET_PRINT_OPERAND): Define.
17686 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17688 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17690 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
17692 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
17694 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
17695 stack-alignment for simple leaf-functions.
17697 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
17699 * doc/install.texi: Document bootstrap-lto.
17701 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
17704 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
17705 (input_function): Drop them here, if VTA is disabled.
17707 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
17710 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
17712 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
17713 ix86_swapped_fp_comparsion_operator instead of
17714 ix86_fp_comparison_operator.
17716 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
17717 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
17718 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
17719 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
17720 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
17721 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
17723 2010-06-20 Joseph Myers <joseph@codesourcery.com>
17726 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
17727 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
17728 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
17729 (decode_cmdline_option): Update for this return value. Set
17730 orig_option_with_args_text field. Set arg field for unknown
17731 options. Make static.
17732 (decode_cmdline_options_to_array): New.
17733 (prune_options): Update handling of find_opt return value.
17734 * opts.c (read_cmdline_option): Take decoded option. Return void.
17735 (read_cmdline_options): Take decoded options.
17736 (decode_options): Add parameters for decoded options. Use
17737 decode_cmdline_options_to_array. Use decoded options for -O
17738 scan. Use integral_argument for -O parameters. Update call to
17739 read_cmdline_options.
17740 (enable_warning_as_error): Update handling of find_opt return value.
17741 * opts.h: Update comment on unknown options.
17742 (struct cl_decoded_option): Update comments on opt_index and arg.
17743 Add orig_option_with_args_text.
17744 (decode_cmdline_option): Remove.
17745 (decode_cmdline_options_to_array): Declare.
17746 (decode_options): Update prototype.
17747 * toplev.c (save_argv): Remove.
17748 (save_decoded_options, save_decoded_options_count): New.
17749 (read_integral_parameter): Remove.
17750 (print_switch_values): Use decoded options.
17751 (toplev_main): Don't set save_argv. Update call to decode_options.
17752 * toplev.h (read_integral_parameter): Remove.
17753 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
17755 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
17758 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
17760 * constraints.md (Pw, Px): New constraints.
17761 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
17763 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
17765 * config/i386/sse.md (fma4modesuffixf4): Removed.
17766 (ssemodesuffixf2s): Likewise.
17767 (ssemodesuffixf4): Likewise.
17768 (ssemodesuffixf2c): Likewise.
17769 (ssescalarmodesuffix2s): Likewise.
17770 (avxmodesuffixf2c): Likewise.
17771 (ssemodesuffix): New.
17772 (ssescalarmodesuffix): Likewise.
17773 Update patterns with ssemodesuffix and ssescalarmodesuffix.
17775 2010-06-19 Philip Herron <herron.philip@googlemail.com>
17777 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
17779 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
17781 * stor-layout.c (debug_rli): Remove unused local variables.
17783 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
17785 PR rtl-optimization/40900
17786 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
17787 original expression for later reuse.
17788 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
17789 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
17791 2010-06-18 Anatoly Sokolov <aesok@post.ru>
17793 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
17794 double_int_fits_in_uhwi_p): Implement as static inline.
17795 (double_int_xor): New inline function.
17796 (double_int_lrotate, double_int_rrotate, double_int_max,
17797 double_int_umax, double_int_smax, double_int_min, double_int_umin,
17798 double_int_smin): Declare.
17799 (lrotate_double, rrotate_double): Remove declaration.
17800 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
17801 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
17802 (double_int_lrotate, double_int_rrotate, double_int_max,
17803 double_int_umax, double_int_smax, double_int_min, double_int_umin,
17804 double_int_smin): New function.
17805 * fold-const.c (int_const_binop): Clean up, use double_int_*
17807 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
17808 double_int_* and immed_double_int_const functions.
17810 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
17812 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
17813 * function.c (types_used_by_cur_var_decl): Likewise.
17814 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
17816 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
17818 * tree.h (record_layout_info): Change type of pending_statics field
17820 * stor-layout.c (start_record_layout): Store NULL into
17822 (debug_rli): Call debug_vec_tree instead of debug_tree.
17823 (place_field): Likewise.
17824 (finish_record_layout): Likewise.
17826 2010-06-18 Alan Modra <amodra@gmail.com>
17828 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
17830 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17833 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
17834 for SET source operand from SET destination operand.
17836 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
17838 PR rtl-optimization/39871
17839 * reload1.c (init_eliminable_invariants): For flag_pic, disable
17840 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
17841 (function_invariant_p): Rule out a plus of frame or arg pointer with
17843 * ira.c (find_reg_equiv_invariant_const): Likewise.
17845 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
17847 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
17848 print_operand_address and puts to output the operand for CONST.
17850 2010-06-17 Jakub Jelinek <jakub@redhat.com>
17853 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
17856 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17858 * v850-protos.h (print_operand): Delete.
17859 (print_operand_address): Delete.
17860 * v850.h (PRINT_OPERAND): Delete.
17861 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17862 (PRINT_OPERAND_ADDRESS): Delete.
17863 * v850.c (print_operand_address): Rename to...
17864 (v850_print_operand_address): ...this. Make static. Call
17865 v850_print_operand.
17866 (print_operand): Rename to...
17867 (v850_print_operand): ...this. Make static. Call
17868 v850_print_operand_address.
17869 (v850_print_operand_punct_valid_p): New function.
17870 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17871 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17873 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17875 * config/sh/sh-protos.h (print_operand): Delete.
17876 (print_operand_address): Delete.
17877 * config/sh/sh.h (PRINT_OPERAND): Delete.
17878 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17879 (PRINT_OPERAND_ADDRESS): Delete.
17880 * config/sh/sh.c (sh_print_operand_address): Make static.
17881 (sh_print_operand): Make static. Call sh_print_operand_address
17882 and sh_print_operand.
17883 (sh_print_operand_punct_valid_p): New function.
17884 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17885 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17887 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17889 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
17890 (mcore_print_operand_address): Delete.
17891 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
17892 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17893 (PRINT_OPERAND_ADDRESS): Delete.
17894 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
17895 (mcore_print_operand): Make static.
17896 (mcore_print_operand_punct_valid_p): New function.
17897 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
17898 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17900 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17902 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
17903 (print_operand_address): Delete.
17904 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
17905 (PRINT_OPERAND_ADDRESS): Delete.
17906 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
17908 (m68hc11_print_operand): Make static.
17909 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17911 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17913 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
17914 (m32r_print_operand_address): Delete.
17915 * config/m32r/m32r.h (m32r_punct_chars): Delete.
17916 (PRINT_OPERAND): Delete.
17917 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17918 (PRINT_OPERAND_ADDRESS): Delete.
17919 * config/m32r/m32r.c (m32r_punct_chars): Make static.
17920 (m32r_print_operand_address): Make static.
17921 (m32r_print_operand): Make static.
17922 (m32r_print_operand_punct_valid_p): New function.
17923 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17924 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17926 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17928 * config/iq2000/iq2000-protos.h (print_operand): Delete.
17929 (print_operand_address): Delete.
17930 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
17931 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17932 (PRINT_OPERAND_ADDRESS): Delete.
17933 (iq2000_print_operand_punct): Delete.
17934 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
17935 (iq2000_print_operand_address): Make static.
17936 (iq2000_print_operand): Make static.
17937 (iq2000_print_operand_punct_valid_p): New function.
17938 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17939 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17941 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17943 * config/frv/frv-protos.h (frv_print_operand): Delete.
17944 (frv_print_operand_address): Delete.
17945 * config/frv/frv.h (PRINT_OPERAND): Delete.
17946 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17947 (PRINT_OPERAND_ADDRESS): Delete.
17948 * config/frv/frv.c (frv_print_operand_address): Make static.
17949 (frv_print_operand): Make static.
17950 (frv_print_operand_punct_valid_p): New function.
17951 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17952 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17954 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17956 * tree.h (vec_member): Declare.
17957 * tree.c (vec_member): Define.
17959 2010-06-17 Richard Guenther <rguenther@suse.de>
17961 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
17962 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
17964 2010-06-17 Richard Guenther <rguenther@suse.de>
17966 * tree-inline.c (declare_return_variable): Remove bogus code.
17968 2010-06-17 Richard Guenther <rguenther@suse.de>
17970 * gimplify.c (gimplify_bind_expr): Always promote complex
17971 and vector variables to registers if possible.
17973 2010-06-17 Richard Guenther <rguenther@suse.de>
17975 * expr.c (get_inner_reference): Use double_int for bit_offset
17978 2010-06-16 DJ Delorie <dj@redhat.com>
17980 * common.opt (-fstrict-volatile-bitfields): new.
17981 * doc/invoke.texi: Document it.
17982 * fold-const.c (optimize_bit_field_compare): For volatile
17983 bitfields, use the field's type to determine the mode, not the
17985 * expr.c (expand_assignment): Likewise.
17986 (get_inner_reference): Likewise.
17987 (expand_expr_real_1): Likewise.
17988 * expmed.c (store_fixed_bit_field): Likewise.
17989 (extract_bit_field_1): Likewise.
17990 (extract_fixed_bit_field): Likewise.
17992 2010-06-16 Richard Guenther <rguenther@suse.de>
17994 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
17996 2010-06-16 Douglas B Rupp <rupp@gnat.com>
17998 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
17999 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
18000 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
18001 * debug.c: Likewise.
18002 * sdbout.c: Likewise.
18003 * vmsdbgout.c: Likewise.
18004 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
18005 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
18006 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
18007 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
18008 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
18009 * dwarf2out.c (dw_fde_struct): New fields
18010 dw_fde_vms_{end,begin}_prologue.
18011 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
18012 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
18013 (dwarf2out_vms_end_prologue): New function.
18014 (dwarf2out_vms_begin_epilogue): New function.
18015 (dw_val_struct): New value dw_val_class_vms_delta.
18016 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
18017 begin_epilogue for VMS.
18018 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
18019 new static functions.
18020 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
18021 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
18023 (print_die): New case dw_val_class_vms_delta.
18024 (attr_checksum): Likewise.
18025 (same_dw_val_p: Likewise.
18026 (size_of_die): Likewise.
18027 (value_format): Likewise.
18028 (output_die): Likewise.
18029 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
18030 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
18031 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
18032 dwarf2out_cfi_begin_epilogue
18033 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
18035 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18037 * config/cris/cris-protos.h (cris_print_operand): Delete.
18038 (cris_print_operand_address): Delete.
18039 * config/cris/cris.h (PRINT_OPERAND): Delete.
18040 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18041 (PRINT_OPERAND_ADDRESS): Delete.
18042 * config/cris/cris.c (cris_print_operand_address): Make static.
18043 (cris_print_operand): Make static.
18044 (cris_print_operand_punct_valid_p): New function.
18045 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18046 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18048 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18050 * config/arm/arm-protos.h (arm_print_operand): Delete.
18051 (arm_print_operand_address): Delete.
18052 * config/arm/arm.h (PRINT_OPERAND): Delete.
18053 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18054 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
18055 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
18056 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
18057 (arm_print_operand): Make static.
18058 (arm_print_operand_punct_valid_p): New function.
18059 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18060 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18062 2010-06-16 Nick Clifton <nickc@redhat.com>
18064 * config/rx/constraints.md (NEGint4): New constraint.
18065 * config/rx/rx.md (attr cc): Add set_zsc.
18066 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
18069 (call_internal): Clobber the cc0 register.
18070 (call_value_internal): Likewise.
18071 (cstoresi4): Likewise.
18072 (movsieq): Likewise.
18073 (movsine): Likewise.
18074 (addsi3): Add alternative to handle small negative constants.
18075 (sunsi3): Likewise.
18076 (addsi3): Do not set the O bit in the cc0 register.
18077 (adddi3): Likewise.
18078 (subsi3): Likewise.
18079 (subdi3): Likewise.
18080 (andsi3): Reorder alternatives to prefer shorter forms.
18081 (mulsi3): Likewise.
18082 (iorsi3): Likewise.
18083 (negsi2): Note that the cc0 flags are set.
18084 (rotlsi3): Note that only the Z and S bits are set in cc0.
18085 (lshrsi3): Likewise.
18086 (ashlsi3): Likewise.
18087 (subsf3): Use %Q for the MEM operand.
18088 (fix_truncsfsi2): Likewise.
18089 (floatsisf2): Likewise.
18090 (bitset): Remove early clobber from destination.
18091 (bitset_in_memory): Likewise.
18092 (lrintsf2): Clobber the cc0 register.
18093 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
18094 (rx_print_operand): Handle %N.
18096 2010-06-16 Jan Hubicka <jh@suse.cz>
18098 * df-core.c (df_compact_blocks): Free problem_temps vector.
18100 2010-06-16 Martin Jambor <mjambor@suse.cz>
18102 PR tree-optimization/43905
18103 * tree-sra.c: Include tree-inline.h.
18104 (create_abstract_origin): Removed.
18105 (modify_function): Version the call graph node instead of creating
18106 abstract origins and dealing with same_body aliases.
18107 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
18108 function is versionable.
18109 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
18111 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
18113 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
18114 (CHOOSE_DYNAMIC_LINKER): Update.
18116 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
18118 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
18119 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
18120 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
18121 *prefetch_3dnow_rex.
18123 2010-06-15 Anatoly Sokolov <aesok@post.ru>
18125 * target.h (struct asm_out):Add declare_constant_name field.
18126 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
18127 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
18128 * output.h (default_asm_declare_constant_name): Declare.
18129 (assemble_label): Update prototype.
18130 * varasm.c (assemble_constant_contents): Use
18131 targetm.asm_out.declare_constant_name target hook.
18132 (assemble_label): Add 'file' argument.
18133 (default_asm_declare_constant_name): New function.
18134 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
18135 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
18136 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
18138 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
18139 * config/darwin.c (darwin_asm_declare_constant_name): New function.
18140 (machopic_output_indirection): Update assemble_label argument list.
18141 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
18142 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
18144 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
18146 PR middle-end/44391
18147 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
18148 size_one_node for pointer types. Do not call gmp_cst_to_tree.
18150 2010-06-15 Richard Guenther <rguenther@suse.de>
18152 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
18154 2010-06-15 Paul Brook <paul@codesourcery.com>
18156 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
18159 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
18161 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
18162 don't get a vector type for output.
18164 2010-06-15 Jakub Jelinek <jakub@redhat.com>
18167 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
18168 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
18169 (LANG_HOOKS_DECLS): Add it.
18170 * gimplify.c (omp_notice_variable): Call
18171 lang_hooks.decls.omp_report_decl.
18173 2010-06-15 Martin Jambor <mjambor@suse.cz>
18176 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
18177 on the newly dead SSA name.
18179 2010-06-15 Alan Modra <amodra@gmail.com>
18181 * doc/invoke.texi: Add mcmodel to powerpc options.
18182 * configure.ac: Add HAVE_LD_LARGE_TOC test.
18183 * configure: Regenerate.
18184 * config.in: Regenerate.
18185 * config/rs6000/linux64.opt (mcmodel): New.
18186 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
18187 (TARGET_CMODEL, SET_CMODEL): Define.
18188 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
18189 select CMODEL_MEDIUM default.
18190 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
18191 (TARGET_CMODEL): Define default.
18192 * config/rs6000/rs6000.c (cmodel): New variable.
18193 (rs6000_explicit_options): Add cmodel field.
18194 (rs6000_handle_option): Handle -mcmodel.
18195 (create_TOC_reference): Add largetoc_reg param. Generate high,
18196 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
18197 (rs6000_delegitimize_address): Recognise new toc reference rtl
18198 and minimal-toc rtl.
18199 (rs6000_legitimize_reload_address): Handle new toc references.
18200 (print_operand_address): Handle legitimate_constant_pool_address_p
18201 match before lo_sum.
18202 (rs6000_eliminate_indexed_memrefs): Tidy.
18203 (rs6000_emit_move): Tweak threshold for inlining constants.
18204 Keep rs6000_emit_allocate_stack large stack frame offsets
18205 loaded into r0 inline.
18206 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
18207 (tocrel_base, tocrel_offset): New variables.
18208 (toc_relative_expr_p): Set them here.
18209 (print_operand_address): Skip over any offset on constant pool address.
18210 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
18211 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
18212 (offsettable_ok_by_alignment): New function.
18213 (rs6000_emit_move): Address suitably aligned local symbol_refs
18214 relative to the toc pointer for -mcmodel=medium.
18215 (legitimate_constant_pool_address_p): Make param const_rtx. Add
18216 strict param. Allow lo_sum version of addressing. Verify reg
18217 used for -mminimal-toc and -mcmodel != small. Update all callers.
18218 * config/rs6000/constraints.md: Update for above change.
18219 * config/rs6000/predicates.md: Likewise.
18220 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
18222 (tls_gd): Split for -mcmodel=medium/large.
18223 (tls_gd_high, tls_gd_low): New.
18224 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
18225 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
18226 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
18227 (largetoc_high, largetoc_low): New.
18228 (cmptf_internal2): Add clobber.
18229 * config/rs6000/rs6000-protos.h: Update.
18231 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
18233 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
18234 true if no prefetch is going to be generated for a given group.
18235 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
18236 estimate the prefetch_count.
18237 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
18238 prefetch count by considering the unroll_factor and prefetch_mod
18239 for is_loop_prefetching_profitable.
18241 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
18243 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
18244 anything if the argument is not a MEM.
18246 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
18251 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
18253 (canonicalize_loop_ivs): Likewise.
18255 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
18258 * haifa-sched.c (setup_insn_reg_pressure_info,
18259 update_register_pressure): Reject debug insns.
18260 (ready_sort): Don't setup reg pressure for debug insns.
18261 (schedule_insn): Don't update reg pressure for debug insns.
18263 2010-06-14 Richard Guenther <rguenther@suse.de>
18265 * lto-streamer.c (cached_bp): Remove.
18266 (bitpack_delete): Likewise.
18267 (bitpack_create): Likewise.
18268 (bp_get_next_word): Likewise.
18269 (bp_pack_value, bp_unpack_value): Move ...
18270 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
18272 (struct bitpack_d): Likewise.
18273 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
18274 New inline functions.
18275 * lto-streamer-out.c (lto_output_bitpack): Remove.
18276 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
18277 (pack_value_fields): Adjust.
18278 (lto_write_tree): Likewise.
18279 (output_gimple_stmt): Likewise.
18280 (output_function): Likewise.
18281 * lto-streamer-in.c (input_gimple_stmt): Adjust.
18282 (input_function): Likewise.
18283 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
18284 (lto_input_bitpack): Remove.
18285 (lto_materialize_tree): Adjust.
18286 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
18287 * lto-cgraph.c (lto_output_edge): Adjust.
18288 (lto_output_node): Likewise.
18289 (lto_output_varpool_node): Likewise.
18290 (lto_output_ref): Likewise.
18291 (input_node): Likewise.
18292 (input_varpool_node): Likewise.
18293 (input_ref): Likewise.
18294 (input_edge): Likewise.
18295 (output_node_opt_summary): Likewise.
18296 (input_node_opt_summary): Likewise.
18297 * ipa-pure-const.c (pure_const_write_summary): Likewise.
18298 (pure_const_read_summary): Likewise.
18299 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
18300 (ipa_read_indirect_edge_info): Likewise.
18301 (ipa_write_node_info): Likewise.
18302 (ipa_read_node_info): Likewise.
18304 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
18307 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
18308 (vec_extract_lo_v16hi): Likewise.
18309 (vec_extract_lo_v32qi): Likewise.
18311 2010-06-14 Jakub Jelinek <jakub@redhat.com>
18314 * tree.h (build_call_expr): Don't define as vararg macro, instead
18316 * builtins.c (build_call_nofold): Remove.
18317 (expand_builtin_int_roundingfn, expand_builtin_pow,
18318 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
18319 expand_builtin_memset_args, expand_builtin_strcmp,
18320 expand_builtin_strncmp, expand_builtin_memory_chk): Use
18321 build_call_nofold_loc instead of build_call_nofold.
18322 (build_call_expr): New function.
18324 PR tree-optimization/44508
18325 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
18326 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
18327 don't eliminate trivially dead stmts.
18328 * tree-vrp.c (vrp_finalize): Pass false as last argument
18329 to substitute_and_fold.
18330 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
18331 to substitute_and_fold.
18332 * tree-ssa-ccp.c (ccp_finalize): Likewise.
18335 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
18337 2010-06-14 Ira Rosen <irar@il.ibm.com>
18339 PR tree-optimization/44507
18340 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
18341 to build initial vector for BIT_AND_EXPR.
18342 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
18344 2010-06-14 Jakub Jelinek <jakub@redhat.com>
18346 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
18347 adjust z10prop set_attr.
18349 2010-06-13 Jan Hubicka <jh@suse.cz>
18351 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
18352 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
18353 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
18354 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
18355 datastructure checks into checking asserts.
18356 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
18357 * tree-ssa-sccvn.c (VN_INFO): Likewise.
18358 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
18359 df_ref_create_structure): Likewise.
18360 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
18361 pool_free): Use gcc_checking_assert.
18362 * alias.c (get_alias_set): Likewise.
18363 * var-tracking.c (variable_htab_free, shared_hash_copy,
18364 canonicalize_values_mark, variable_merge_over_cur): Likewise.
18365 * lto-streamer.c (bp_unpack_value): Likewise.
18367 2010-06-13 Richard Guenther <rguenther@suse.de>
18369 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
18370 Do not stream but initialize TYPE_CANONICAL to NULL.
18371 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
18372 * gimple.c (gimple_types_compatible_p): Disregard
18373 TYPE_STRUCTURAL_EQUALITY_P.
18374 (gimple_register_type): Use TYPE_CANONICAL as cache.
18375 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
18376 before registering common types.
18377 * config/i386/i386.c (ix86_function_arg_boundary): Do not
18378 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
18379 * tree.h (TYPE_CANONICAL): Clarify documentation.
18381 2010-06-13 Anatoly Sokolov <aesok@post.ru>
18383 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
18384 LIBCALL_VALUE): Remove macros.
18385 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
18386 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18387 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18388 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
18389 (ia64_function_value): Make static. Handle receiving the function
18390 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
18392 2010-06-12 Jan Hubicka <jh@suse.cz>
18394 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
18397 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
18399 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
18401 2010-06-12 Jan Hubicka <jh@suse.cz>
18403 * df-core.c (df_clear_bb_info): New function.
18404 (df_set_blocks): bb_info is always allocated.
18405 (df_get_bb_info): Use block_info_elt_size.
18406 (df_set_bb_info): Likewise.
18407 (df_compact_blocks): Update for new block_info.
18408 (grow_bb_info): New function.
18409 * df-problems.c (df_grow_bb_info): Move to df-core.c
18410 (df_rd_set_bb_info): Remove.
18411 (df_rd_free_bb_info): Do not free block pool.
18412 (df_rd_alloc): Do not create pool, use check for
18413 obstack presence instead of NULL pointer for new blocks.
18414 (df_rd_free): DO not free alloc pool; clear block_info.
18415 (problem_RD): Add size of block info structure.
18416 (df_lr_set_bb_info): Remove.
18417 (df_lr_free_bb_info): Do not free block pool.
18418 (df_lr_alloc): Do not create pool, use check for
18419 obstack presence instead of NULL pointer for new blocks.
18420 (df_lr_free): DO not free alloc pool; clear block_info.
18421 (problem_LR): Add size of block info structure.
18422 (df_live_set_bb_info): Remove.
18423 (df_live_free_bb_info): Do not free block pool.
18424 (df_live_alloc): Do not create pool, use check for
18425 obstack presence instead of NULL pointer for new blocks.
18426 (df_live_free): DO not free alloc pool; clear block_info.
18427 (problem_LIVE): Add size of block info structure.
18428 (problem_CHAIN): Add size of block info structure.
18429 (df_byte_lr_set_bb_info): Remove.
18430 (df_byte_lr_free_bb_info): Do not free block pool.
18431 (df_byte_lr_alloc): Do not create pool, use check for
18432 obstack presence instead of NULL pointer for new blocks.
18433 (df_byte_lr_free): DO not free alloc pool; clear block_info.
18434 (problem_BYTE_LR): Add size of block info structure.
18435 (problem_NOTE): Add size of block info structure.
18436 (df_byte_MD_set_bb_info): Remove.
18437 (df_byte_MD_free_bb_info): Do not free block pool.
18438 (df_byte_MD_alloc): Do not create pool, use check for
18439 obstack presence instead of NULL pointer for new blocks.
18440 (df_byte_MD_free): DO not free alloc pool; clear block_info.
18441 (problem_BD): Add size of block info structure.
18442 * df-scan.c (df_scan_free_internal): Free block pool.
18443 (df_scan_set_bb_info): Remove.
18444 (df_scan_free_bb_info): Check for artificial_defs instead
18445 of bb_info being non-NULL.
18446 (df_scan_alloc): DO not create df_scan_block pool.
18447 (problem_SCAN): Set size of block info.
18448 (df_bb_refs_record): Do not allocate bb_info.
18449 * df.h (df_problem): Add block_info_elt_size.
18450 (struct dataflow): Change block_info to void *.
18451 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
18452 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
18453 in-line structures.
18455 2010-06-12 Jan Hubicka <jh@suse.cz>
18457 PR tree-optimize/44485
18458 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
18459 containing use of return value of noreturn function.
18461 2010-06-12 Anatoly Sokolov <aesok@post.ru>
18463 * targhooks.c (default_function_value): Don't use
18464 FUNCTION_OUTGOING_VALUE.
18465 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
18466 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
18468 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
18470 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
18471 Add crtfastmath.o to extra_parts.
18472 * config/mips/crtfastmath.c: New.
18473 * config/mips/linux.h (ENDFILE_SPEC): New.
18475 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
18477 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
18478 old_type in parameter.
18479 (gcc_type_for_value): Update call to gcc_type_for_interval.
18480 (compute_type_for_level_1): Renamed compute_type_for_level.
18481 Update call to gcc_type_for_interval.
18483 2010-06-11 Joseph Myers <joseph@codesourcery.com>
18485 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
18486 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
18488 2010-06-11 Joseph Myers <joseph@codesourcery.com>
18490 * opts-common.c: Include options.h.
18491 (integral_argument): Move from opts.c.
18492 (decode_cmdline_option): New. Based on read_cmdline_option.
18493 * opts.c (integral_argument): Move to opts-common.c.
18494 (read_cmdline_option): Move most contents to
18495 decode_cmdline_option. Use %qs in diagnostics.
18496 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
18497 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
18498 decode_cmdline_option): New.
18500 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18503 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
18504 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
18505 (partiysi2_cmp): Ditto.
18506 (*partiyhi2_cmp): Ditto.
18507 (*parityqi2_cmp): Remove.
18509 2010-06-11 Jan Hubicka <jh@suse.cz>
18511 * bitmap.h (bmp_iter_next_bit): New.
18512 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
18514 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
18515 Eric Botcazou <ebotcazou@adacore.com>
18517 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
18520 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18522 * config/i386/i386.md (unspec): New define_c_enum.
18525 2010-06-10 Jakub Jelinek <jakub@redhat.com>
18527 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
18529 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
18531 PR middle-end/44483
18532 * tree-if-conv.c (bb_predicate_s): New struct.
18533 (bb_predicate_p): New.
18534 (bb_has_predicate): New.
18535 (bb_predicate): New.
18536 (set_bb_predicate): New.
18537 (bb_predicate_gimplified_stmts): New.
18538 (set_bb_predicate_gimplified_stmts): New.
18539 (add_bb_predicate_gimplified_stmts): New.
18540 (init_bb_predicate): New.
18541 (free_bb_predicate): New.
18542 (is_predicated): Use bb_predicate.
18543 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
18544 (predicate_bbs): Same. Gimplify the condition of the basic blocks
18545 before processing their successors.
18546 (clean_predicate_lists): Removed.
18547 (find_phi_replacement_condition): Use bb_predicate.
18548 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
18550 (insert_gimplified_predicates): New.
18551 (combine_blocks): Call insert_gimplified_predicates.
18552 (tree_if_conversion): Call free_bb_predicate instead of
18553 clean_predicate_lists.
18555 2010-10-11 Paul Brook <paul@codesourcery.com>
18557 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
18558 * config/arm/arm.c (all_architectures): Change v7e-m default to
18560 * config/arm/arm-cores.def: Add cortex-m4.
18561 * config/arm/arm-tune.md: Regenerate.
18563 2010-06-11 Jan Hubicka <jh@suse.cz>
18565 * ipa-pure-const.c (special_builtlin_state): New function.
18566 (check_call): Use it instead of special casign BUILT_IN_RETURN.
18567 (propagate_pure_const): Use it.
18569 2010-06-11 Jan Hubicka <jh@suse.cz>
18571 * df-problems.c (df_live_scratch): Convert to bitmap_head.
18572 (df_live_alloc): Initialize df_live_scratch when initializing
18574 (df_live_transfer_function): Update uses of df_live_scratch.
18575 (df_live_free): Free problem_data; clear df_live_scratch before
18576 releasing the obstack.
18577 (df_md_free): Free problem data.
18579 2010-06-11 Jan Hubicka <jh@suse.cz>
18581 * doc/invoke.texi (Wsuggest-attribute): Document.
18582 (Wmissing-noreturn): Remove.
18583 * ipa-pure-const.c (warn_function_noreturn): New function.
18584 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
18585 warn_missing_noreturn.
18586 * common.opt (Wsuggest-attribute=noreturn): New.
18587 * tree-flow.h (warn_function_noreturn): Declare.
18588 * tree-cfg.c (execute_warn_function_noreturn): Use
18589 warn_function_noreturn.
18590 (gate_warn_function_noreturn): New.
18591 (pass_warn_function_noreturn): Update.
18593 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
18595 * c-typeck.c (handle_warn_cast_qual): Add loc
18596 parameter. Improve warning message.
18597 (build_c_cast): Pass location to handle_warn_cast_qual.
18599 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18601 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
18602 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
18604 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
18606 2010-06-10 Dodji Seketeli <dodji@redhat.com>
18608 Fix bootstap on mips
18609 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
18610 be naming typedefs.
18612 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
18614 * system.h (helper_const_non_const_cast): New inline for
18615 gcc version <= 4.0.
18616 (CONST_CAST2): For gcc version <= 4.0 use
18617 new helper to do const/non-const casting.
18619 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18621 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
18622 * Makefile.in (OBJS-common): Include insn-enums.o.
18623 (insn-enums.o): New rule.
18624 (simple_generated_c): Add insn-enums.c.
18625 (build/genenums.o): New rule.
18626 (genprogmd): Add "enums".
18627 * genconstants.c (print_enum_type): Declare a C string array
18629 * genenums.c: New file.
18630 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
18631 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
18632 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
18634 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18636 * doc/md.texi (define_enum_attr): Document.
18637 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
18638 * read-md.h (lookup_enum_type): Declare.
18639 * read-md.c (lookup_enum_type): New function.
18640 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
18641 * genattrtab.c (attr_desc): Add an enum_name field.
18642 (evaluate_eq_attr): Take the associated attribute as argument.
18643 Get the enum prefix from the enum_name field, if defined.
18644 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
18645 (simplify_test_exp): Pass attr to evaluate_eq_attr.
18646 (add_attr_value): New function, split out from...
18647 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
18648 (write_test_expr): Pass attr to evaluate_eq_attr.
18649 (write_attr_get): Use the enum_name as the enum tag, if defined.
18650 (write_attr_valueq): Use the enum_name as a prefix, if defined.
18651 (find_attr): Initialize enum_name.
18652 (main): Handle DEFINE_ENUM_ATTR.
18653 * gensupport.c (process_rtx): Likewise.
18654 * config/mips/mips.h (mips_tune_attr): Delete.
18655 * config/mips/mips.md (cpu): Use define_attr_enum.
18657 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18659 * doc/md.texi (define_c_enum, define_enum): Document.
18660 * read-md.h (md_constant): Add a parent_enum field.
18661 (enum_value, enum_type): New structures.
18662 (upcase_string, traverse_enum_types): Declare.
18663 * read-md.c (enum_types): New variable.
18664 (upcase_string, add_constant): New functions.
18665 (handle_constants): Don't create the hash table here.
18667 (traverse_md_constants): Don't check for a null md_constants.
18668 (decimal_string, handle_enum, traverse_enum_types): New functions.
18669 (read_md_files): Initialize md_constants and md_enums.
18670 * genconstants.c (print_md_constant): Ignore info argument.
18671 Only print constants that belong to no enum.
18672 (print_enum_type): New function.
18673 (main): Don't pass stdout to print_md_constant. Call print_enum_type
18674 for each defined enum type.
18675 * config/mips/mips.md (processor): New define_enum.
18676 (unspec): New define_c_enum.
18677 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
18678 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
18679 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
18680 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
18681 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
18682 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
18683 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
18684 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
18685 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
18686 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
18687 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
18688 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
18689 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
18690 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
18691 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
18692 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
18693 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
18694 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
18695 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
18696 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
18697 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
18698 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
18699 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
18700 (UNSPEC_RDDSP): Move to mips-dsp.md.
18701 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
18702 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
18703 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
18704 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
18705 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
18706 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
18707 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
18708 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
18709 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
18710 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
18711 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
18712 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
18713 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
18714 Moved to mips-dspr2.md.
18715 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
18716 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
18717 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
18718 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
18719 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
18720 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
18721 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
18722 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
18723 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
18724 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
18725 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
18726 UNSPEC_LOONGSON_PSADBH)
18727 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
18728 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
18729 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
18730 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
18731 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
18732 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
18733 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
18734 (cpu): Update comment.
18735 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
18736 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
18737 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
18738 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
18739 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
18740 UNSPEC_LOONGSON_PCMPEQ)
18741 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
18742 UNSPEC_LOONGSON_PINSR_0)
18743 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
18744 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
18745 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
18746 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
18747 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
18748 UNSPEC_LOONGSON_PSADBH)
18749 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
18750 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
18751 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
18752 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
18753 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
18754 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
18755 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
18756 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
18757 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
18758 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
18759 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
18760 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
18761 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
18762 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
18763 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
18764 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
18765 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
18766 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
18767 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
18768 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
18769 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
18770 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
18771 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
18772 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
18773 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
18774 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
18775 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
18776 (UNSPEC_RDDSP): Moved from mips.md.
18777 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
18778 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
18779 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
18780 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
18781 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
18782 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
18783 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
18784 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
18785 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
18786 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
18787 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
18788 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
18789 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
18790 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
18791 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
18792 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
18793 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
18794 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
18795 (UNSPEC_SCC): Moved from mips.md.
18796 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
18797 "processor_type" to "processor".
18798 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
18799 * config/mips/mips.h (processor_type): Delete.
18800 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
18801 "processor_type" to "processor".
18803 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18805 * configure.ac (tm_include_list): Add insn-constants.h.
18806 * configure: Regenerate.
18807 * Makefile.in (GTM_H): Move insn-constants.h here from...
18809 * mkconfig.sh: Remove special handling for insn-constants.h.
18811 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18813 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
18814 (BUILD_MD): ...this new variable.
18815 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
18816 that include the old contents of simple_generated_h and
18817 simple_generated_c.
18818 (simple_generated_h, simple_generated_c): Include them. Add
18820 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
18821 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
18822 Remove these dependencies from the main rule and include
18823 insn-conditions.md in the command line only if it appears
18824 in the dependency list.
18825 (insn-constants.h, s-constants): Delete.
18826 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
18828 (build/genmddeps.o): Likewise.
18829 (genprogrtl): New variable that contains everything from genprogmd
18830 except mddeps and constants.
18831 (genprogmd): Redefine in terms of genprogrtl. Make these programs
18832 depend on $(BUILD_MD)
18833 (genprog): New variable. Make these programs depend on
18835 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
18836 (main): Use read_md_files instead of init_rtx_reader_args.
18837 * genconstants.c: As for genmddeps.c.
18838 * read-md.h (read_skip_construct): Declare.
18839 * read-md.c (read_skip_construct): New function.
18840 (handle_file): Allow a null handle_directive, skipping the
18842 (parse_include): Update the comment accordingly.
18844 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18846 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
18847 * genmddeps.c: Include read-md.h.
18848 (main): Call init_rtx_reader_args instead of init_md_reader_args.
18849 * genattr.c (main): Likewise.
18850 * genattrtab.c (main): Likewise.
18851 * genautomata.c (main): Likewise.
18852 * gencodes.c (main): Likewise.
18853 * genconditions.c (main): Likewise.
18854 * genconfig.c (main): Likewise.
18855 * genconstants.c (main): Likewise.
18856 * genemit.c (main): Likewise.
18857 * genextract.c (main): Likewise.
18858 * genflags.c (main): Likewise.
18859 * genopinit.c (main): Likewise.
18860 * genoutput.c (main): Likewise.
18861 * genpeep.c (main): Likewise.
18862 * genrecog.c (main): Likewise.
18863 * genpreds.c (main): Likewise.
18864 * gensupport.h (in_fname): Move to read-md.h.
18865 (init_md_reader_args_cb): Rename to...
18866 (init_rtx_reader_args_cb): ...this and return a bool.
18867 (init_md_reader_args): Rename to...
18868 (init_rtx_reader_args): ...this and return a bool.
18869 (include_callback): Move to read-md.h.
18870 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
18871 (file_name_list, first_dir_md_include): Move to read-md.c
18872 (first_bracket_include): Delete unused variable.
18873 (last_dir_md_include): Move to read-md.c.
18874 (process_include): Delete, moving code to read-md.c:handle_include.
18875 (process_rtx): Don't handle INCLUDE.
18876 (save_string): Delete.
18877 (rtx_handle_directive): New function.
18878 (init_md_reader_args_cb): Rename to...
18879 (init_rtx_reader_args_cb): ...this and return a boolean success value.
18881 (init_md_reader_args): Rename to...
18882 (init_rtx_reader_args): ...this and return a boolean success value.
18883 * rtl.def (INCLUDE): Delete.
18884 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
18886 * read-rtl.c (read_conditions): Don't gobble ')' here.
18887 (read_mapping): Likewise.
18888 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
18889 Handle top-level non-rtx constructs here rather than in read_rtx_1.
18890 Store the whole queue in *X. Remove call to init_md_reader.
18891 (read_rtx_1): Rename to...
18892 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
18893 Don't handle top-level non-rtx constructs here. Don't handle (nil)
18895 (read_nested_rtx): New function. Handle (nil) here rather than
18897 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
18899 * read-md.h (directive_handler_t): New type.
18900 (in_fname, include_callback): Moved from read-md.h.
18901 (read_constants, init_md_reader): Delete.
18902 (read_md_files): Declare.
18903 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
18904 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
18906 (read_constants): Rename to...
18907 (handle_constants): ...this. Don't gobble ')' here.
18908 (handle_include, handle_file, handle_toplevel_file)
18909 (parse_include): New functions, mostly taken from gensupport.c.
18910 (init_md_reader): Subsume into...
18911 (read_md_files): ...this new function.
18913 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18915 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
18916 (unread_char): Decrement read_md_lineno after putting back '\n'.
18917 * read-md.c (fatal_with_file_and_line): Push back any characters
18918 that we decide not to add to the context.
18919 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
18920 fatal_expected_char in cases where '/' ends a line (for example).
18921 (read_name): Don't increment read_md_lineno here.
18922 (read_escape): Likewise.
18923 (read_quoted_string): Likewise.
18924 (read_braced_string): Likewise.
18926 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18928 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
18929 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
18930 * genconstants.c: Include read-md.h.
18931 * read-rtl.c (md_constants): Move to read-md.c.
18932 (md_name): Move to read-md.h.
18933 (initialize_iterators): Use leading_string_hash instead of def_hash
18934 and leading_string_eq_p instead of def_name_eq_p.
18935 (read_name): Move to read-md.c.
18936 (def_hash, def_name_eq_p): Delete.
18937 (read_constants, traverse_md_constants): Move to read-md.c.
18938 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
18939 * read-md.h: Include hashtab.h.
18940 (md_name): Moved from read-rtl.c.
18941 (md_constant): Moved from read-md.h.
18942 (leading_string_hash, leading_string_eq_p, read_name)
18943 (read_constants, traverse_md_constants): Declare.
18944 * read-md.c (md_constants): Moved from read-rtl.c.
18945 (leading_string_hash, leading_string_eq_p): New functions.
18946 (read_name, read_constants, traverse_md_constants): Moved from
18949 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18951 * read-rtl.c (md_name): New structure.
18952 (read_name): Take an md_name instead of a buffer pointer.
18953 Use the "string" field instead of strcpy when expanding constants.
18954 (read_constants): Remove the tmp_char argument. Update the calls
18955 to read_name, using two local name buffers instead of the tmp_char
18956 argument. Merge the constant-creation code.
18957 (read_conditions): Remove the tmp_char argument. Update the calls
18958 to read_name, using a local name buffer instead of the tmp_char
18960 (read_mapping): Replace tmp_char variable with a local name buffer.
18961 Update the calls to read_name.
18962 (read_rtx_1): Likewise. Update the calls to read_constants and
18965 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18967 * Makefile.in (build/read-md.o): Depend on errors.h.
18968 * read-md.h (error_with_line): Declare.
18969 * read-md.c: Include errors.h.
18970 (message_with_line_1): New function, extracted from...
18971 (message_with_line): ...here.
18972 (error_with_line): New function.
18973 * genattrtab.c: If a call to message_with_line is followed by
18974 "have_error = 1;", replace both statements with a call to
18976 * genoutput.c: Likewise.
18977 * genpreds.c: Likewise.
18978 * genrecog.c: If a call to message_with_line is followed by
18979 "error_count++;", replace both statements with a call to
18981 (errorcount): Delete.
18982 (main): Don't check it.
18983 * gensupport.c: If a call to message_with_line is followed by
18984 "errors = 1;", replace both statements with a call to error_with_line.
18986 (process_define_cond_exec): Check have_error instead of errors.
18987 (init_md_reader_args_cb): Likewise. Don't set errors.
18989 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18991 * read-md.h (read_md_file): Declare.
18992 (read_char, unread_char): New functions.
18993 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
18994 (read_quoted_string, read_string): Remove FILE * argument.
18995 * read-md.c (read_md_file): New variable.
18996 (read_md_filename, read_md_lineno): Update comments and remove
18997 unnecessary initialization.
18998 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
18999 (read_escape, read_quoted_string, read_braced_string, read_string):
19000 Remove FILE * argument. Update calls accordingly, using read_char
19001 and unread_char instead of getc and ungetc.
19002 * rtl.h (read_rtx): Remove FILE * argument.
19003 * read-rtl.c (iterator_group): Remove FILE * argument from
19005 (iterator_traverse_data): Remove "infile" field.
19006 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
19007 (add_mapping, read_name, read_constants, read_conditions)
19008 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
19009 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
19010 Remove file arguments from all calls, using read_char and unread_char
19011 instead of getc and ungetc.
19012 * gensupport.c (process_include): Preserve read_md_file around
19013 the include. Set read_md_file to the handle of the included file.
19014 Update call to read_rtx.
19015 (init_md_reader_args_cb): Set read_md_file to the handle of the file
19016 and remove local FILE *. Update calls to read_rtx.
19018 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19020 * read-md.h (read_rtx_lineno): Rename to...
19021 (read_md_lineno): ...this.
19022 (read_rtx_filename): Rename to...
19023 (read_md_filename): ...this.
19024 (copy_rtx_ptr_loc): Rename to...
19025 (copy_md_ptr_loc): ...this.
19026 (print_rtx_ptr_loc): Rename to...
19027 (print_md_ptr_loc): ...this.
19028 * read-md.c: Likewise. Update references after renaming.
19029 (string_obstack): Replace RTL with MD in comment.
19030 (set_rtx_ptr_loc): Rename to...
19031 (set_md_ptr_loc): ...this.
19032 (get_rtx_ptr_loc): Rename to...
19033 (get_md_ptr_loc): ...this.
19034 * genconditions.c: Update references after renaming.
19035 * genemit.c: Likewise.
19036 * genoutput.c: Likewise.
19037 * genpreds.c: Likewise.
19038 * gensupport.c: Likewise.
19039 * read-rtl.c: Likewise.
19041 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19043 * Makefile.in (READ_MD_H): New variable.
19044 (BUILD_RTL): Add build/read-md.o.
19045 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
19046 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
19047 (build/genattrtab.o, build/genconditions.o build/genemit.o)
19048 (build/genextract.o, build/genflags.o, build/genoutput.o)
19049 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
19050 (build/read-md.o): New rule.
19051 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
19052 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
19053 * coretypes.h: ...here.
19054 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
19055 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
19056 * genattr.c: Include read-md.h.
19057 * genattrtab.c: Likewise.
19058 * genconditions.c: Likewise.
19059 * genemit.c: Likewise.
19060 * genextract.c: Likewise.
19061 * genflags.c: Likewise.
19062 * genoutput.c: Likewise.
19063 * genpreds.c: Likewise.
19064 * genrecog.c: Likewise.
19065 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
19066 (join_c_conditions, print_c_condition, read_rtx_filename)
19067 (read_rtx_lineno): Move to read-md.h.
19068 * read-rtl.c: Include read-md.h.
19069 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
19070 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
19071 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
19072 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
19073 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
19074 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
19075 (read_braced_string, read_string): Move to read-md.c.
19076 (read_rtx): Move some initialization to init_md_reader and call
19077 init_md_reader here.
19078 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
19080 * gensupport.c: Include read-md.h.
19081 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
19082 * read-md.h, read-md.c: New files.
19084 2010-06-10 Anatoly Sokolov <aesok@post.ru>
19086 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19087 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19088 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
19089 * config/moxie/moxie.c (moxie_function_value): Make static.
19090 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
19091 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19093 2010-06-10 Martin Jambor <mjambor@suse.cz>
19095 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
19096 * dbgcnt.def (tree_sra): New counter.
19097 * tree-sra.c: Include dbgcnt.h.
19098 (gate_intra_sra): Check tree_sra debug counter.
19100 2010-06-10 Martin Jambor <mjambor@suse.cz>
19102 PR tree-optimization/44258
19103 * tree-sra.c (build_access_subtree): Return false iff there is a
19105 (build_access_trees): Likewise.
19106 (analyze_all_variable_accesses): Disqualify candidates if
19107 build_access_trees returns true for them.
19109 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
19112 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
19113 tail-recurse into canonical node. Fast-forward over
19114 non-canonical VALUEs.
19116 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
19119 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
19120 (*addsi_1_zext) <TYPE_LEA>: Likewise.
19121 (add lea splitter): Likewise.
19122 (add_zext lea splitter): Likewise.
19124 2010-06-10 Joseph Myers <joseph@codesourcery.com>
19126 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
19128 2010-06-10 Jan Hubicka <jh@suse.cz>
19130 * df-problems.c (df_live_problem_data): Add live_bitmaps.
19131 (df_live_alloc): Initialize problem data and live_osbtacks.
19132 (df_live_finalize): Remove obstack, problem data; do not
19134 (df_live_top_dump, df_live_bottom_dump): Do not dump old
19135 data when not allocated.
19136 (df_live_verify_solution_start): Do not allocate problem data.
19137 (df_live_verify_solution_end): Check if out is allocated.
19138 (struct df_md_problem_data): New structure.
19139 (df_md_alloc): Allocate problem data.
19140 (df_md_free): Free problem data; do not clear bitmaps.
19142 2010-06-10 Jan Beulich <jbeulich@novell.com>
19145 * configure.ac: Replace $() with ${} when intending to expand
19146 variables rather than invoking commands.
19147 * configure: Re-generate.
19149 2010-06-10 Jan Hubicka <jh@suse.cz>
19151 PR rtl-optimization/44460
19152 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
19153 TYPE_NEEDS_CONSTRUCTING sanity check.
19155 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
19157 * doc/include/fdl.texi: Move to GFDL version 1.3.
19159 * doc/cpp.texi: Move to GFDL version 1.3.
19160 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
19161 * doc/gccint.texi: Move to GFDL version 1.3.
19162 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
19163 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
19164 * doc/invoke.texi: Move to GFDL version 1.3.
19166 2010-06-09 Jan Hubicka <jh@suse.cz>
19168 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
19170 (propagate) ... here; swap the order.
19172 2010-06-09 Jan Hubicka <jh@suse.cz>
19174 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
19175 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
19176 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
19177 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
19179 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
19181 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
19182 Do not the gather memory reference in the outer loop if the step
19185 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
19187 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
19188 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
19189 8 to 4. Minor change of the related comments.
19191 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19193 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
19194 the scev analysis when the variable is not used outside the loop
19195 in a close phi node: call compute_overall_effect_of_inner_loop.
19197 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19199 * graphite-sese-to-poly.c (single_pred_cond): Renamed
19200 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
19201 (build_sese_conditions_before): Renamed call to single_pred_cond.
19202 (build_sese_conditions_after): Same.
19204 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19206 * graphite-poly.h: Fix comments and indentation.
19207 * graphite-sese-to-poly.c: Same.
19208 (build_sese_conditions_before): Compute stmt and gbb only when needed.
19209 * tree-chrec.c: Fix comments and indentation.
19210 (tree-ssa-loop-niter.c): Same.
19212 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
19214 PR rtl-optimization/42461
19215 * dce.c (deletable_insn_p): Return true for const or pure calls again.
19216 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
19218 2010-06-09 Jan Hubicka <jh@suse.cz>
19220 * bitmap.c (bitmap_and): Walk array forward.
19221 (bitmap_and_compl_into): Likewise.
19222 (bitmap_xor): Likewise.
19223 (bitmap_xor_into): Likewise.
19224 (bitmap_equal_p): Likewise.
19225 (bitmap_intersect_p): Likewise.
19226 (bitmap_intersect_compl_p): Likewise.
19227 (bitmap_ior_and_into): Likewise.
19228 (bitmap_elt_copy): Likewise.
19229 (bitmap_and_compl): Likewise.
19230 (bitmap_elt_ior): Likewise.
19232 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
19234 * opts-common.c (prune_options): Ensure replacement argv array
19235 is correctly terminated by a NULL entry.
19237 2010-06-09 Jan Hubicka <jh@suse.cz>
19239 * cgraph.h (varpool_first_static_initializer,
19240 varpool_next_static_initializer): Make checking only when
19242 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
19243 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
19244 gcc_assert to gcc_checking_assert.
19245 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
19246 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
19247 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
19248 op_iter_init_phiuse, op_iter_init_phidef,
19249 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
19250 gcc_checking_assert.
19251 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
19252 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
19253 partition_is_global, live_on_entry, live_on_exit,
19254 live_merge_and_clear): Likewise.
19255 * system.h (gcc_checking_assert): New macro.
19256 * gimple.h (set_bb_seq): Use gcc_checking_assert.
19258 2010-06-09 Jason Merrill <jason@redhat.com>
19260 * Makefile.in (TAGS): Collect tags info from c-family.
19262 2010-06-09 Jan Hubicka <jh@suse.cz>
19264 * gimple.h (gcc_gimple_checking_assert): New macro.
19265 (gimple_set_def_ops, gimple_set_use_ops,
19266 gimple_set_vuse, gimple_set_vdef,
19267 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
19268 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
19269 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
19270 gimple_asm_output_op, gimple_asm_output_op_ptr,
19271 gimple_asm_set_output_op, gimple_asm_clobber_op,
19272 gimple_asm_set_clobber_op, gimple_asm_label_op,
19273 gimple_asm_set_label_op, gimple_try_set_kind,
19274 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
19275 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
19276 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
19277 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
19278 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
19279 gimple_omp_for_set_initial, gimple_omp_for_final,
19280 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
19281 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
19282 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
19283 conditional with ENABLE_GIMPLE_CHECKING.
19284 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
19286 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
19288 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
19289 (get_computation_cost_at): Use it.
19290 (determine_use_iv_cost_condition): Likewise.
19291 (determine_iv_cost): Likewise.
19293 2010-06-09 Richard Guenther <rguenther@suse.de>
19295 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
19298 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
19300 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
19302 2010-06-09 Martin Jambor <mjambor@suse.cz>
19304 PR tree-optimization/44423
19305 * tree-sra.c (dump_access): Dump also grp_assignment_read.
19306 (analyze_access_subtree): Pass negative allow_replacements to children
19307 if the current type is scalar.
19309 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
19312 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
19313 * doc/plugins.texi (Plugin license check): Update information
19314 on type of plugin_is_GPL_compatible.
19315 * Makefile.in (PLUGINCC): Define as $(COMPILER).
19316 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
19318 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
19320 * config/arm/arm.c (thumb2_reorg): New function.
19321 (arm_reorg): Call it.
19322 * config/arm/thumb2.md (define_peephole2 for flag clobbering
19323 arithmetic operations): Delete.
19325 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
19328 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
19331 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
19334 * gcc-plugin.h: Encapsulate all declarations in extern "C".
19336 2010-06-08 Jan Hubicka <jh@suse.cz>
19338 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
19339 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
19341 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
19343 PR tree-optimization/39874
19344 PR middle-end/28685
19345 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
19347 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
19348 same_bool_result_p): New.
19349 (and_var_with_comparison, and_var_with_comparison_1,
19350 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
19351 (or_var_with_comparison, or_var_with_comparison_1,
19352 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
19353 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
19354 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
19355 of combine_comparisons.
19356 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
19358 2010-06-08 Anatoly Sokolov <aesok@post.ru>
19360 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19361 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19362 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
19363 pdp11_function_value_regno_p): New functions.
19364 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19365 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19367 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
19369 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
19370 Thumb-2 in the MINUS case.
19372 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
19374 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
19376 * doc/gty.texi (GTY Options): Document typed GC allocation and
19377 variable_size GTY option.
19379 * ggc-internal.h: New.
19381 * ggc.h: Update copyright year.
19382 (digit_string): Move to stringpool.c.
19383 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
19384 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
19385 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
19386 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
19387 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
19388 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
19389 (ggc_force_collect, ggc_get_size, ggc_statistics)
19390 (ggc_print_common_statistics): Move to ggc-internal.h.
19391 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
19392 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
19393 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
19394 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
19395 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
19396 (ggc_alloc_zone_pass_stat): Remove.
19397 (ggc_internal_alloc_stat, ggc_internal_alloc)
19398 (ggc_internal_cleared_alloc_stat): New.
19399 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
19400 (ggc_internal_vec_alloc_stat)
19401 (ggc_internal_cleared_vec_alloc_stat)
19402 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
19403 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
19404 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
19405 (ggc_cleared_alloc_ptr_array_two_args): New.
19406 (htab_create_ggc, splay_tree_new_ggc): Redefine.
19407 (ggc_splay_alloc): Change the type of the first argument to
19408 enum gt_types_enum.
19409 (ggc_alloc_string): Make macro.
19410 (ggc_alloc_string_stat): New.
19411 (ggc_strdup): Redefine.
19412 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
19413 (ggc_alloc_rtvec_sized): New.
19414 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
19415 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
19416 (ggc_internal_cleared_alloc_zone_stat)
19417 (ggc_internal_zone_alloc_stat)
19418 (ggc_internal_zone_cleared_alloc_stat)
19419 (ggc_internal_zone_vec_alloc_stat)
19420 (ggc_alloc_zone_rtx_def_stat)
19421 (ggc_alloc_zone_tree_node_stat)
19422 (ggc_alloc_zone_cleared_tree_node_stat)
19423 (ggc_alloc_cleared_gimple_statement_d_stat): New.
19425 * ggc-common.c: Include ggc-internal.h.
19426 (ggc_internal_cleared_alloc_stat): Rename from
19427 ggc_alloc_cleared_stat.
19428 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
19429 (ggc_calloc): Remove.
19430 (ggc_cleared_alloc_htab_ignore_args): New.
19431 (ggc_cleared_alloc_ptr_array_two_args): New.
19432 (ggc_splay_alloc): Add obj_type parameter.
19433 (init_ggc_heuristics): Formatting fixes.
19435 * ggc-none.c: Update copyright year.
19436 (ggc_alloc_stat): Rename to ggc_alloc_stat.
19437 (ggc_alloc_cleared_stat): Rename to
19438 ggc_internal_cleared_alloc_stat.
19439 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
19441 * ggc-page.c: Update copyright year. Include ggc-internal.h.
19442 Remove references to ggc_alloc in comments.
19443 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
19444 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
19445 (new_ggc_zone, destroy_ggc_zone): Remove.
19446 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
19448 * ggc-zone.c: Include ggc-internal.h. Remove references to
19449 ggc_alloc in comments.
19450 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
19451 (ggc_internal_alloc_zone_pass_stat): New.
19452 (ggc_internal_cleared_alloc_zone_stat): New.
19453 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
19454 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
19455 (new_ggc_zone, destroy_ggc_zone): Remove.
19457 * stringpool.c: Update copyright year. Include ggc-internal.h
19458 (digit_vector): Make static.
19459 (digit_string): Moved from ggc.h.
19460 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
19461 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
19463 * Makefile.in (GGC_INTERNAL_H): New.
19464 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
19465 $(GGC_INTERNAL_H) to dependencies.
19467 * gentype.c: Update copyright year.
19468 (walk_type): Accept variable_size GTY option.
19469 (USED_BY_TYPED_GC_P): New macro.
19470 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
19471 whitespace at the end of strings.
19472 (get_type_specifier, variable_size_p): New functions.
19473 (alloc_quantity, alloc_zone): New enums.
19474 (write_typed_alloc_def): New function.
19475 (write_typed_struct_alloc_def): Likewise.
19476 (write_typed_typed_typedef_alloc_def): Likewise.
19477 (write_typed_alloc_defns): Likewise.
19478 (output_typename, write_splay_tree_allocator_def): Likewise.
19479 (write_splay_tree_allocators): Likewise.
19480 (main): Call write_typed_alloc_defns and
19481 write_splay_tree_allocators.
19483 * lto-streamer.h (lto_file_decl_data_ptr): New.
19485 * passes.c (order): Define using cgraph_node_ptr.
19487 * strinpool.c (struct string_pool_data): Declare nested_ptr using
19490 * gimple.h (union gimple_statement_d): Likewise.
19492 * rtl.h (struct rtx_def): Likewise.
19493 (struct rtvec_def): Likewise.
19495 * tree.h (union tree_node): Likewise.
19497 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
19499 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
19501 * tree-scalar-evolution.c (scev_initialize): Likewise.
19503 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
19505 * dwarf2asm.c (dw2_force_const_mem): Likewise.
19507 * omp-low.c (lower_omp_critical): Likewise.
19509 * bitmap.h (struct bitmap_head_def): Update comment to not
19510 reference ggc_alloc.
19512 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
19514 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
19516 * ipa-prop.c (duplicate_ggc_array): Rename to
19517 duplicate_ipa_jump_func_array. Use typed GC allocation.
19518 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
19520 * gimple.c (gimple_alloc_stat): Use
19521 ggc_alloc_cleared_gimple_statement_d_stat.
19523 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
19525 * tree.c (make_node_stat): Use
19526 ggc_alloc_zone_cleared_tree_node_stat.
19527 (make_tree_vec_stat): Likewise.
19528 (build_vl_exp_stat): Likewise.
19529 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
19530 (make_tree_binfo_stat): Likewise.
19531 (tree_cons_stat): Likewise.
19533 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
19534 (shallow_copy_rtx_stat): Likewise.
19535 (make_node_stat): Likewise.
19537 * lto-symtab.c: Fix comment.
19539 * tree-cfg.c (create_bb): Update comment to not reference
19541 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
19543 * varpool.c (varpool_node): Use typed GC allocation.
19544 (varpool_extra_name_alias): Likewise.
19546 * varasm.c (emutls_decl): Likewise.
19547 (get_unnamed_section): Likewise.
19548 (get_noswitch_section): Likewise.
19549 (get_section): Likewise.
19550 (get_block_for_section): Likewise.
19551 (build_constant_desc): Likewise.
19552 (create_constant_pool): Likewise.
19553 (force_const_mem): Likewise.
19555 * tree.c (build_vl_exp_stat): Likewise.
19556 (build_real): Likewise.
19557 (build_string): Likewise.
19558 (decl_debug_expr_insert): Likewise.
19559 (decl_value_expr_insert): Likewise.
19560 (type_hash_add): Likewise.
19561 (build_omp_clause): Likewise.
19563 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
19565 * tree-ssa.c (init_tree_ssa): Likewise.
19567 * tree-ssa-structalias.c (heapvar_insert): Likewise.
19569 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19571 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19573 * tree-ssa-alias.c (get_ptr_info): Likewise.
19575 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19577 * tree-phinodes.c (allocate_phi_node): Likewise.
19579 * tree-iterator.c (tsi_link_before): Likewise.
19580 (tsi_link_after): Likewise.
19582 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19584 * tree-dfa.c (create_var_ann): Likewise.
19586 * tree-cfg.c (create_bb): Likewise.
19588 * toplev.c (alloc_for_identifier_to_locale): Likewise.
19589 (general_init): Likewise.
19591 * stringpool.c (stringpool_ggc_alloc): Likewise.
19592 (gt_pch_save_stringpool): Likewise.
19594 * sese.c (if_region_set_false_region): Likewise.
19596 * passes.c (do_per_function_toporder): Likewise.
19598 * optabs.c (set_optab_libfunc): Likewise.
19599 (set_conv_libfunc): Likewise.
19601 * lto-symtab.c (lto_symtab_register_decl): Likewise.
19603 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19604 (input_eh_region): Likewise.
19605 (input_eh_lp): Likewise.
19606 (make_new_block): Likewise.
19607 (unpack_ts_real_cst_value_fields): Likewise.
19609 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19611 * lto-cgraph.c (input_node_opt_summary): Likewise.
19613 * loop-init.c (loop_optimizer_init): Likewise.
19615 * lambda.h (lambda_vector_new): Likewise.
19617 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
19619 * ira.c (update_equiv_regs): Likewise.
19621 * ipa.c (cgraph_node_set_new): Likewise.
19622 (cgraph_node_set_add): Likewise.
19623 (varpool_node_set_new): Likewise.
19624 (varpool_node_set_add): Likewise.
19626 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
19627 (duplicate_ipa_jump_func_array): Likewise.
19628 (ipa_read_node_info): Likewise.
19630 * ipa-cp.c (ipcp_create_replace_map): Likewise.
19632 * integrate.c (get_hard_reg_initial_val): Likewise.
19634 * gimple.c (gimple_alloc_stat): Likewise.
19635 (gimple_build_omp_for): Likewise.
19636 (gimple_seq_alloc): Likewise.
19637 (gimple_copy): Likewise.
19639 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
19640 (gsi_insert_after_without_update): Likewise.
19642 * function.c (add_frame_space): Likewise.
19643 (insert_temp_slot_address): Likewise.
19644 (assign_stack_temp_for_type): Likewise.
19645 (allocate_struct_function): Likewise.
19646 (types_used_by_var_decl_insert): Likewise.
19648 * except.c (init_eh_for_function): Likewise.
19649 (gen_eh_region): Likewise.
19650 (gen_eh_region_catch): Likewise.
19651 (gen_eh_landing_pad): Likewise.
19652 (add_call_site): Likewise.
19654 * emit-rtl.c (get_mem_attrs): Likewise.
19655 (get_reg_attrs): Likewise.
19656 (start_sequence): Likewise.
19657 (init_emit): Likewise.
19659 * dwarf2out.c (new_cfi): Likewise.
19660 (queue_reg_save): Likewise.
19661 (dwarf2out_frame_init): Likewise.
19662 (new_loc_descr): Likewise.
19663 (find_AT_string): Likewise.
19664 (new_die): Likewise.
19665 (add_var_loc_to_decl): Likewise.
19666 (clone_die): Likewise.
19667 (clone_as_declaration): Likewise.
19668 (break_out_comdat_types): Likewise.
19669 (new_loc_list): Likewise.
19670 (loc_descriptor): Likewise.
19671 (add_loc_descr_to_each): Likewise.
19672 (add_const_value_attribute): Likewise.
19673 (tree_add_const_value_attribute): Likewise.
19674 (add_comp_dir_attribute): Likewise.
19675 (add_name_and_src_coords_attributes): Likewise.
19676 (lookup_filename): Likewise.
19677 (store_vcall_insn): Likewise.
19678 (dwarf2out_init): Likewise.
19680 * dbxout.c (dbxout_init): Likewise.
19682 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19684 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19686 * config/score/score7.c (score7_output_external): Likewise.
19688 * config/score/score3.c (score3_output_external): Likewise.
19690 * config/s390/s390.c (s390_init_machine_status): Likewise.
19692 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19693 (rs6000_init_machine_status): Likewise.
19694 (output_toc): Likewise.
19696 * config/pa/pa.c (pa_init_machine_status): Likewise.
19697 (get_deferred_plabel): Likewise.
19699 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19701 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19703 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19705 * config/mep/mep.c (mep_init_machine_status): Likewise.
19706 (mep_note_pragma_flag): Likewise.
19708 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19710 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19712 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19714 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19715 (i386_pe_maybe_record_exported_symbol): Likewise.
19717 * config/i386/i386.c (get_dllimport_decl): Likewise.
19718 (ix86_init_machine_status): Likewise.
19719 (assign_386_stack_local): Likewise.
19721 * config/frv/frv.c (frv_init_machine_status): Likewise.
19723 * config/darwin.c (machopic_indirection_name): Likewise.
19725 * config/cris/cris.c (cris_init_machine_status): Likewise.
19727 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19729 * config/avr/avr.c (avr_init_machine_status): Likewise.
19731 * config/arm/arm.c (arm_init_machine_status): Likewise.
19733 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19734 (alpha_need_linkage): Likewise.
19735 (alpha_use_linkage): Likewise.
19737 * cgraph.c (cgraph_allocate_node): Likewise.
19738 (cgraph_create_edge_1): Likewise.
19739 (cgraph_create_indirect_edge): Likewise.
19740 (cgraph_add_asm_node): Likewise.
19742 * cfgrtl.c (init_rtl_bb_info): Likewise.
19744 * cfgloop.c (alloc_loop): Likewise.
19745 (rescan_loop_exit): Likewise.
19747 * cfg.c (init_flow): Likewise.
19748 (alloc_block): Likewise.
19749 (unchecked_make_edge): Likewise.
19751 * c-parser.c (c_parse_init): Likewise.
19752 (c_parse_file): Likewise.
19754 * c-decl.c (bind): Likewise.
19755 (record_inline_static): Likewise.
19756 (push_scope): Likewise.
19757 (make_label): Likewise.
19758 (lookup_label_for_goto): Likewise.
19759 (finish_struct): Likewise.
19760 (finish_enum): Likewise.
19761 (c_push_function_context): Likewise.
19763 * bitmap.c (bitmap_element_allocate): Likewise.
19764 (bitmap_gc_alloc_stat): Likewise.
19766 * alias.c (record_alias_subset): Likewise.
19767 (init_alias_analysis): Likewise.
19769 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
19771 * fold-const.c (fold_comparison): Remove redundant parenthesis.
19772 * tree-inline.c (expand_call_inline): Pass translated return value of
19773 cgraph_inline_failed_string to diagnostic function.
19775 2010-06-08 Andrew Pinski <pinskia@gmail.com>
19776 Shujing Zhao <pearly.zhao@oracle.com>
19779 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
19780 implicit bad conversions is initialization.
19781 (error_init): Use gmsgid instead of msgid for argument name and change
19782 the call for error.
19783 (pedwarn_init): Use gmsgid instead of msgid for argument name and
19784 change the call for pedwarn.
19785 (warning_init): Use gmsgid instead of msgid for argument name and
19786 change the call for warning.
19788 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
19790 * config/mips/mips-protos.h (mips_print_operand): Delete.
19791 (mips_print_operand_address): Delete.
19792 * config/mips/mips.h (mips_print_operand_punct): Delete.
19793 (PRINT_OPERAND): Delete.
19794 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19795 (PRINT_OPERAND_ADDRESS): Delete.
19796 * config/mips/mips.c (mips_print_operand_punct): Make static.
19797 (mips_print_operand_address): Make static.
19798 (mips_print_operand): Make static. Call
19799 mips_print_operand_punct_valid_p.
19800 (mips_print_operand_punct_valid_p): New function.
19801 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19802 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19804 2010-06-07 Jan Hubicka <jh@suse.cz>
19806 PR middle-end/44454
19807 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
19810 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
19812 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
19815 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19817 * doc/sourcebuild.texi (Effective-Target Keywords, Other
19818 attributes): Document gas.
19820 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
19822 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
19823 <TYPE_LEA>: Split instruction.
19824 <default>: Remove alternative 2 handling.
19825 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
19826 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
19827 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
19829 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
19830 (ashift_zext lea splitter): Use DImode for multiplication.
19832 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
19833 to generate addition.
19835 2010-06-07 Joseph Myers <joseph@codesourcery.com>
19837 * common.opt (fira-verbose): Use Var.
19838 (fpcc-struct-return): Use Init instead of VarExists.
19839 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
19841 * flags.h (flag_signed_char, flag_short_enums,
19842 flag_pcc_struct_return, flag_ira_verbose,
19843 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
19844 * toplev.c (flag_detailed_statistics, flag_signed_char,
19845 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
19846 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
19847 * toplev.h (flag_crossjumping, flag_if_conversion,
19848 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
19849 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
19850 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
19851 flag_cprop_registers, time_report, flag_ira_loop_pressure,
19852 flag_ira_coalesce, flag_ira_move_spills,
19853 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
19855 2010-06-07 Jan Hubicka <jh@suse.cz>
19857 * df-core.c (df_analyze_problem): Do verification after allocation.
19859 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
19860 (df_lr_alloc): Initialize problem data; move bitmaps to
19861 lr_bitmaps obstack.
19862 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
19863 (df_lr_verify_solution_start): Do not initialize problem data;
19864 allocate bitmaps in lr_bitmaps.
19865 (df_lr_verify_solution_end): Do not free problem data.
19867 2010-06-07 Jan Hubicka <jh@suse.cz>
19869 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
19870 if caller is noreturn.
19871 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
19872 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
19873 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
19874 * ipa-pure-const.c (check_decl): Add IPA parameter.
19875 (state_from_flags): New function.
19876 (better_state, worse_state): New functions.
19877 (check_call): When in IPA mode, do not care about callees.
19878 (check_load, check_store): Update.
19879 (check_ipa_load, check_ipa_store): New.
19880 (check_stmt): When in IPA mode, use IPA checkers.
19881 (analyze_function): Use state_from_flags.
19882 (propagate): Check indirect edges and references.
19884 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
19886 PR rtl-optimization/44404
19887 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
19888 of count_occurrences to see if it's safe to modify mem_insn.
19890 2010-06-07 Richard Guenther <rguenther@suse.de>
19892 * gimplify.c (gimplify_cleanup_point_expr): For empty body
19893 and EH-only cleanup drop the cleanup instead of inserting it
19896 2010-06-07 Ira Rosen <irar@il.ibm.com>
19898 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
19900 * targhooks.c (default_builtin_vectorization_cost): New function.
19901 * targhooks.h (default_builtin_vectorization_cost): Declare.
19902 * target.h (enum vect_cost_for_stmt): Define.
19903 (builtin_vectorization_cost): Change argument and comment.
19904 * tree-vectorizer.h: Remove cost model macros.
19905 * tree-vect-loop.c: Include target.h.
19906 (vect_get_cost): New function.
19907 (vect_estimate_min_profitable_iters): Replace cost model macros with
19908 calls to vect_get_cost.
19909 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
19910 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
19911 default implementation.
19912 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
19913 calls to target hook builtin_vectorization_cost.
19914 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
19916 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
19917 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
19918 implementation to return costs.
19919 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
19920 * config/spu/spu.h: Remove vectorizer cost model macros.
19921 * config/i386/i386.h: Likewise.
19922 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
19923 a call to target hook builtin_vectorization_cost.
19925 2010-06-06 Sriraman Tallam <tmsriram@google.com>
19928 * config/i386/i386.c (override_options): Turn zee pass on for level 2
19929 and above and defer till target is known.
19930 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
19931 turn off otherwise.
19933 2010-05-25 Jan Hubicka <jh@suse.cz>
19935 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
19936 (df_compact_blocks): Likewise.
19937 * df.h (struct df): Turn hardware_regs_used,
19938 regular_block_artificial_uses, eh_block_artificial_uses,
19939 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
19941 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
19942 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
19943 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
19944 df_scan_blocks, df_insn_delete, df_insn_rescan,
19945 df_insn_rescan_debug_internal, df_insn_rescan_all,
19946 df_process_deferred_rescans, df_process_deferred_rescans,
19947 df_notes_rescan, df_get_call_refs, df_get_call_refs,
19948 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
19949 df_record_entry_block_defs, df_record_exit_block_uses,
19950 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
19951 df_scan_verify): Update.
19953 2010-05-25 Dodji Seketeli <dodji@redhat.com>
19956 * c-common.c (is_typedef_decl): Move this definition ...
19957 * tree.c (is_typedef_decl): ... here.
19958 (typdef_variant_p): Move definition here from cp/tree.c.
19959 * c-common.h (is_typedef_decl): Move this declaration ...
19960 * tree.h (is_typedef_decl): ... here.
19961 (typedef_variant_p): Move declaration here from cp/cp-tree.h
19962 * dwarf2out.c (is_naming_typedef_decl): New function.
19963 (gen_tagged_type_die): Split out of ...
19964 (gen_type_die_with_usage): ... this function. When an anonymous
19965 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
19966 is emitted for the typedef.
19967 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
19968 anonymous tagged types.
19970 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
19973 * c-decl.c (grokdeclarator): Delete warning.
19975 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
19977 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
19978 newly built CALL_EXPR.
19979 * tree-profile.c (tree_profiling): Don't profile functions produced
19980 for built-in stuff.
19982 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
19986 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
19987 endianness-independent.
19989 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
19991 * c-common.c: Move to c-family/.
19992 * c-common.def: Likewise.
19993 * c-common.h: Likewise.
19994 * c-cppbuiltin.c: Likewise.
19995 * c-dump.c: Likewise.
19996 * c-format.c: Likewise.
19997 * c-format.h : Likewise.
19998 * c-gimplify.c: Likewise.
19999 * c-lex.c: Likewise.
20000 * c-omp.c: Likewise.
20002 * c-opts.c: Likewise.
20003 * c-pch.c: Likewise.
20004 * c-ppoutput.c: Likewise.
20005 * c-pragma.c: Likewise.
20006 * c-pragma.h: Likewise.
20007 * c-pretty-print.c: Likewise.
20008 * c-pretty-print.h: Likewise.
20009 * c-semantics.c: Likewise.
20010 * stub-objc.c: Likewise.
20012 * gengtype.c (get_file_langdir): Special-case files in c-family/.
20013 (get_output_file_with_visibility): Fix name for c-common.h.
20014 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
20016 * c-tree.h: Update include path for moved files.
20017 * c-lang.c: Likewise.
20018 * c-lang.h: Likewise.
20019 * c-parser.c: Likewise.
20020 * c-convert.c: Likewise.
20021 * c-decl.c: Likewise.
20022 * c-objc-common.c: Likewise.
20023 * configure.ac: Make sure c-family/ exists in the build directory.
20024 * configure: Regenerate.
20025 * Makefile.in: Update paths for moved files. Regroup files per
20026 location and update dependencies. Move generated_files down after
20029 * config/spu/spu-c.c: Update paths for moved files.
20030 * config/mep/mep-pragma.c: Likewise.
20031 * config/darwin-c.c: Likewise.
20032 * config/i386/msformat-c.c: Likewise.
20033 * config/i386/i386-c.c: Likewise.
20034 * config/avr/avr-c.c: Likewise.
20035 * config/sol2-c.c: Likewise.
20036 * config/ia64/ia64-c.c: Likewise.
20037 * config/rs6000/rs6000-c.c: Likewise.
20038 * config/arm/arm.c: Likewise.
20039 * config/arm/arm-c.c: Likewise.
20040 * config/h8300/h8300.c: Likewise.
20041 * config/v850/v850-c.c: Likewise.
20043 * config/t-darwin: Fix dependencies for moved files.
20044 * config/t-sol2: Fix dependencies for moved files.
20045 * config/mep/t-mep: Fix dependencies for moved files.
20046 * config/ia64/t-ia64: Fix dependencies for moved files.
20047 * config/rs6000/t-rs6000: Fix dependencies for moved files.
20048 * config/v850/t-v850: Fix dependencies for moved files.
20049 * config/v850/t-v850e: Fix dependencies for moved files.
20051 * config/m32c/m32c-pragma.c
20053 * po/exgettext: Look in c-family/ also.
20055 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
20057 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
20058 (mark_control_dependent_edges_necessary): Call it instead of marking
20059 the last statement manually.
20060 (propagate_necessity): Likewise.
20062 2010-06-05 Jan Hubicka <jh@suse.cz>
20064 * basic-block.h (compute_dominance_frontiers): Updated.
20065 (compute_idf): Likewise.
20067 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
20068 for dominance frontiers.
20069 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
20070 (insert_updated_phi_nodes_for): Likewise.
20071 (update_ssa): Likewise.
20072 * cfganal.c (compute_dominance_frontiers_1): Likewise.
20073 (compute_dominance_frontiers): Likewise.
20074 (compute_idf): Likewise.
20075 * df-problems.c (df_md_local_compute): Likewise.
20077 2010-06-05 Anatoly Sokolov <aesok@post.ru>
20079 * target.h (struct gcc_target): Add memory_move_cost field.
20080 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
20081 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
20082 * targhooks.c (default_memory_move_cost): New function.
20083 * targhooks.h (default_memory_move_cost): Declare function.
20084 * reload.h (memory_move_cost): Declare.
20085 (memory_move_secondary_cost): Change type of 'in' argument to bool.
20086 * reginfo.c (memory_move_cost): New function.
20087 (memory_move_secondary_cost): Change type of 'in' argument to bool.
20088 * ira.h (ira_memory_move_cost): Update comment.
20089 * ira.c (ira_memory_move_cost): Update comment.
20090 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
20091 with memory_move_cost.
20092 * postreload.c (reload_cse_simplify_set): (Ditto.).
20093 * reload1.c (choose_reload_regs): (Ditto.).
20094 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
20095 (MEMORY_MOVE_COST): Revise documentation.
20097 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
20098 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
20099 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
20100 type of 'in' argument to bool.
20101 (TARGET_MEMORY_MOVE_COST): Define.
20103 2010-06-05 Jan Hubicka <jh@suse.cz>
20105 * ipa-pure-const.c (propagate): Fix typo in handling of functions
20106 that cannot return. Be more careful when merging the results with
20107 previously known ones.
20109 2010-06-05 Matthias Klose <doko@ubuntu.com>
20111 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
20112 function to add the -iplugindir option.
20113 (find_plugindir_spec_function): Add new declaration and function.
20114 (static_spec_func): Use it for "find-plugindir".
20116 2010-06-05 Jakub Jelinek <jakub@redhat.com>
20119 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
20120 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
20121 statement expression.
20123 2010-06-05 Jan Hubicka <jh@suse.cz>
20125 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
20126 (df_rd_problem_data): Convert sparse_invalidated_by_call,
20127 dense_invalidated_by_call to bitmap head.
20128 (df_rd_alloc, df_rd_bb_local_compute_process_def,
20129 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
20130 df_rd_start_dump, df_lr_verify_transfer_functions,
20131 df_live_verify_transfer_functions, df_chain_create_bb,
20132 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
20133 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
20134 df_simulate_one_insn_forwards, df_md_alloc,
20135 df_md_bb_local_compute_process_def,
20136 df_md_bb_local_compute_process_def, df_md_local_compute,
20137 df_md_transfer_function df_md_free): Update.
20139 2010-06-05 Joseph Myers <joseph@codesourcery.com>
20142 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
20143 target type for ADDR_EXPR; require no changes to qualifiers except
20144 for function types.
20145 * c-tree.h (c_build_type_variant): Remove.
20147 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
20149 * genautomata.c (get_excl_set): Do work per element, not per char.
20150 (check_presence_pattern_sets): Similar.
20151 (check_absence_pattern_sets): Similar.
20153 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
20155 * genautomata.c (curr_state_pass_num): Delete.
20156 (min_issue_delay_pass_states): Delete.
20157 (min_issue_delay): Delete.
20158 (initiate_min_issue_delay_pass_states): Delete.
20159 (output_min_issue_delay_table): Compute min_issue_delay_vect
20160 using a breadth-first search variant.
20161 (output_tables): Don't call initiate_min_issue_delay_pass_states.
20163 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
20166 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
20167 (df_byte_lr_bb_local_compute): Likewise.
20169 2010-06-03 Jason Merrill <jason@redhat.com>
20171 Implement noexcept operator (5.3.7)
20172 * c-common.c (c_common_reswords): Add noexcept.
20173 * c-common.h (enum rid): Add RID_NOEXCEPT.
20175 2010-06-04 Joseph Myers <joseph@codesourcery.com>
20177 * config/darwin-driver.c (darwin_default_min_version): Use
20178 GCC-specific formats in diagnostics.
20179 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
20181 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
20182 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
20183 eval_spec_function, handle_braces, process_brace_body, main,
20184 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
20185 getenv_spec_function, compare_version_strings,
20186 version_compare_spec_function): Use GCC-specific formats in
20189 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20191 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
20192 that operand 0 and operand 1 are equal.
20193 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
20194 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
20195 and operand 1 are equal.
20196 <default>: Ditto. Remove ??? comment.
20197 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
20198 and operand 1 are equal.
20199 <default>: Ditto. Remove ??? comment.
20200 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
20202 (*add<mode>_4) <default>: Ditto.
20203 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
20205 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
20207 * config/i386/i386-protos.h (ix86_print_operand): Declare.
20208 * config/i386/i386.c (ix86_print_operand): Make non-static.
20209 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
20210 * output.h (output_operand): Declare.
20211 * final.c (output_operand): Make non-static.
20213 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
20215 PR rtl-optimization/44013
20216 * sched-deps.c (add_dependence_list_and_free): Don't free lists
20217 when processing debug insns.
20220 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
20221 recursing. Check that recursion is bounded. Rename inner var
20222 to avoid hiding incoming argument.
20224 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20226 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
20227 operands[2] == 255.
20231 (*addqi_ext_1_rex64): Ditto.
20232 (*addqi_ext_1): Ditto.
20234 (*addqi_4): Check for incdec_operand in QImode.
20236 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
20237 using SWI mode iterator.
20238 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
20239 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
20241 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
20242 using SWI mode iterator.
20244 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
20247 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
20248 * c-format.c (gcc_diag_flag_specs): Add hash.
20249 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
20250 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
20251 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
20252 pp_c_cv_qualifiers. Handle qualifiers spelling here.
20253 (pp_c_type_qualifier_list): Call the function above.
20254 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
20255 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
20256 (WARN_FOR_QUALIFIERS): New macro.
20257 (convert_for_assignment): Use it.
20259 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
20261 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
20263 2010-06-04 Jan Hubicka <jh@suse.cz>
20265 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
20266 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
20267 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
20268 DF_BYTE_LR_OUT): Update for embedded bitmaps.
20269 * fwprop.c (single_def_use_enter_block): Likewise.
20270 * ddg.c (create_ddg_dep_from_intra_loop_link,
20271 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
20272 * loop-iv.c (latch_dominating_def): Likewise.
20273 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
20274 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
20275 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
20276 df_rd_transfer_function, df_rd_top_dump,
20277 df_rd_bottom_dump): Update.
20278 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
20279 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
20280 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
20281 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
20282 df_lr_verify_solution_start, df_lr_verify_solution_end,
20283 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
20284 df_live_free_bb_info, df_live_alloc, df_live_reset,
20285 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
20286 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
20287 df_live_verify_solution_start, df_live_verify_solution_end,
20288 df_live_verify_transfer_functions, df_chain_create_bb,
20289 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
20290 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
20291 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
20292 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
20293 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
20294 df_byte_lr_transfer_function, df_byte_lr_top_dump,
20295 df_byte_lr_bottom_dump, df_create_unused_note,
20296 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
20297 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
20298 df_md_transfer_function, df_md_init, df_md_confluence_0,
20299 df_md_confluence_n,
20300 df_md_top_dump, df_md_bottom_dump): Update.
20301 (struct df_lr_problem_data): Embedd bitmap headers.
20303 2010-06-04 Jan Hubicka <jh@suse.cz>
20305 * dce.c (dce_process_block): Do not re-scan already marked
20308 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
20310 PR rtl-optimization/39871
20311 PR rtl-optimization/40615
20312 PR rtl-optimization/42500
20313 PR rtl-optimization/42502
20314 * ira.c (init_reg_equiv_memory_loc: New function.
20315 (ira): Call it twice.
20316 * reload.h (calculate_elim_costs_all_insns): Declare.
20317 * ira-costs.c: Include "reload.h".
20318 (regno_equiv_gains): New static variable.
20319 (init_costs): Allocate it.
20320 (finish_costs): Free it.
20321 (ira_costs): Call calculate_elim_costs_all_insns.
20322 (find_costs_and_classes): Take estimated elimination costs
20324 (ira_adjust_equiv_reg_cost): New function.
20325 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
20326 * reload1.c (init_eliminable_invariants, free_reg_equiv,
20327 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
20328 (elim_bb): New static variable.
20329 (reload): Move code out of here into init_eliminable_invariants and
20330 free_reg_equiv. Call them.
20331 (calculate_elim_costs_all_insns): New function.
20332 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
20333 all callers changed. If FOR_COSTS is true, don't call alter_reg,
20334 but call note_reg_elim_costly if we turned a valid memory address
20335 into an invalid one.
20336 * Makefile.in (ira-costs.o): Depend on reload.h.
20338 2010-06-04 Julian Brown <julian@codesourcery.com>
20340 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
20343 2010-06-04 Richard Guenther <rguenther@suse.de>
20346 * cgraph.h (struct varpool_node): Add lto_file_data field.
20347 * lto-cgraph.c (input_varpool_node): Initialize it.
20349 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20351 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
20352 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
20353 predicate in "type" attribute calculation.
20354 (*addsi_1_zext): Ditto.
20355 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
20356 (*addsi_2_zext): Ditto.
20357 (*add<mode>_3): Ditto.
20358 (*addsi_3_zext): Ditto.
20359 (*add<mode>_5): Ditto.
20361 2010-06-03 Jan Hubicka <jh@suse.cz>
20363 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
20365 * cfganal.c (compute_dominance_frontiers_1): Likewise.
20367 2010-06-03 Jan Hubicka <jh@suse.cz>
20369 * df-problems.c (df_create_unused_note, df_note_bb_compute):
20370 micro-optimize the checks when to add new note.
20372 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
20374 * final.c (output_asm_insn): Call
20375 targetm.asm_out.print_operand_punct_valid_p. Update comments.
20376 (output_operand): Call targetm.asm_out.print_operand. Update comments.
20377 (output_address): Call targetm.asm_out.print_operand_address.
20379 * target.h (struct gcc_target): Add print_operand,
20380 print_operand_address, and print_operand_punct_valid_p fields.
20381 * targhooks.h (default_print_operand): Declare.
20382 (default_print_operand_address): Declare.
20383 (default_print_operand_punct_valid_p): Declare.
20384 * targhooks.c (default_print_operand): Define.
20385 (default_print_operand_address): Define.
20386 (default_print_operand_punct_valid_p): Define.
20387 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
20388 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
20389 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
20390 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
20391 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
20392 * vmsdbgout.c (addr_const_to_string): Update comment.
20393 * config/i386/i386.c (print_operand): Rename to...
20394 (ix86_print_operand): ...this. Make static.
20395 (print_operand_address): Rename to...
20396 (ix86_print_operand_address): ...this. Make static. Call
20397 ix86_print_operand instead of PRINT_OPERAND.
20398 (ix86_print_operand_punct_valid_p): New function.
20399 (TARGET_PRINT_OPERAND): Define.
20400 (TARGET_PRINT_OPERAND_ADDRESS): Define.
20401 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20402 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
20403 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20404 (PRINT_OPERAND): Delete.
20405 (PRINT_OPERAND_ADDRESS): Delete.
20406 * config/i386/i386-protos.h (print_operand): Delete prototype.
20407 (print_operand_address): Delete prototype.
20409 2010-06-03 Richard Guenther <rguenther@suse.de>
20411 PR tree-optimization/44403
20412 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20413 Preserve pointer qualifiers.
20414 (vect_create_data_ref_ptr): Likewise.
20416 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
20419 * defaults.h (MAX_FIXED_MODE_SIZE): New.
20421 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
20423 2010-06-03 Jakub Jelinek <jakub@redhat.com>
20426 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
20427 return false if merging the bbs would lead to goto_locus
20428 location being lost from the IL.
20430 2010-06-03 Jan Hubicka <jh@suse.cz>
20431 Jakub Jelinek <jakub@redhat.com>
20433 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
20434 set->regs[i] is NULL or has just one entry.
20436 2010-06-03 Jan Hubicka <jh@suse.cz>
20438 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
20439 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
20441 2010-06-03 Paul Brook <paul@codesourcery.com>
20443 * config/arm/arm.c (FL_TUNE): Define.
20444 (arm_default_cpu, arm_cpu_select): Remove.
20445 (all_cores): Populate core field.
20446 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
20447 (arm_find_cpu): New function.
20448 (arm_handle_option): Lookup cpu/architecture names.
20449 (arm_override_options): Cleanup mcpu/march/mtune handling.
20450 (arm_file_start): Ditto.
20452 2010-06-03 Alan Modra <amodra@gmail.com>
20455 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
20456 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
20457 rtx to gen_load_toc_v4_PIC_1b. Tidy.
20458 (rs6000_emit_load_toc_table): Likewise.
20460 2010-06-02 Jan Hubicka <jh@suse.cz>
20462 * passes.c (init_optimization_passes): Put ipa reference
20463 after ipa pure-const.
20465 2010-06-02 Jan Hubicka <jh@suse.cz>
20467 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
20468 calls_read_all and calls_write_all.
20469 (get_reference_optimization_summary): Fix formatting.
20470 (is_proper_for_analysis): Check that decl is not readonly.
20471 (propagate_bits): Check CONST/PURE/noreturn flags.
20472 (ipa_init): Move all_module_statics to optimization_summary_obstack.
20473 (analyze_function): Ignore indirect edges.
20474 (copy_global_bitmap): For all module statics, do nothing.
20475 (generate_summary): Do not print calls_read_all/calls_write_all.
20476 (read_write_all_from_decl): Take node as argument; check
20477 cgraph_node_cannot_return.
20478 (propagate): Reorganize read_all/write_all computation;
20479 check indirect edges; check ecf flags; use all_module_statics
20480 in the results; do not free all_module_statics.
20481 (stream_out_bitmap): Handle all_module_statics.
20482 (ipa_reference_write_optimization_summary): Likewise; use
20483 varpool/cgraph encoders to get boundaries.
20484 (ipa_reference_read_optimization_summary): Read in all_module_statics;
20485 use it when possible.
20487 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20490 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
20491 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
20493 * doc/extend.texi (powerpc builtins): Document vec_recip,
20494 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
20496 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
20497 (rs6000_emit_swrsqrt): Ditto.
20498 (rs6000_emit_swdivsf): Delete.
20499 (rs6000_emit_swdivdf): Ditto.
20500 (rs6000_emit_swrsqrtsf): Ditto.
20502 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
20503 describe the reciprocal estimate support for each type.
20504 (recip_options): Map -mrecip=<opt> into option bits.
20505 (gen_2arg_fn_t): New typedef for binary rtx gen function.
20506 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
20507 reciprocal estimate instructions.
20508 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
20509 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
20510 Set up rs6000_recip_bits based on the -mrecip* options. Print the
20511 cost information if -mdebug=cost or -mdebug=reg.
20512 (rs6000_override_options): Set -mrecip-precision for power6, and
20513 power7 machines. If -mvsx or -mdfp, enable various options that
20514 came in previous instruction set ISAs, unless the option was
20515 explicitly disabled by the command line option. Parse
20516 -mrecip=<opt> options.
20517 (rs6000_builtin_vectorized_function): Add support for vectorizing
20518 the reciprocal estimate builtins and expansions.
20519 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
20520 (bdesc_2arg): Add reciprocal estimate builtins.
20521 (bdesc_1arg): Add reciprocal square root estimate builtins.
20522 (rs6000_expand_builtin): Rewrite to use a switch statement,
20523 instead of multiple if/then/elses. Add reciprocal estimate builtins.
20524 (rs6000_init_builtins): Create declarations for reciprocal
20526 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
20527 sized, prefer traditional floating point registers, if integer
20528 vector types, prefer altivec registers. Don't actually look at
20529 the memory address any more.
20530 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
20532 (rs6000_load_constant_and_splat): New helper function to load up
20533 the constant for reciprocal estimate instructions.
20534 (rs6000_emit_madd): New helper function for generating
20535 multiply/add type instructions, based on the current switches.
20536 (rs6000_emit_msub): Ditto.
20537 (rs6000_emit_mnsub): Ditto.
20538 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
20539 replace a divide with a reciprocal estimate and fixup, adding
20540 support for machines with high precision and vectors.
20541 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
20542 low precision machines.
20543 (rs6000_emit_swdiv): New common function to be called to replace a
20544 division with reciprocal estimate and fixup.
20545 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
20546 for double and vector types. Add support for high precision machines.
20548 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
20549 the reciprocal estimate instructions can be generated.
20550 (TARGET_FRE): Ditto.
20551 (TARGET_FRSQRTES): Ditto.
20552 (TARGET_FRSQRTE): Ditto.
20553 (RS6000_RECIP_*): New macros for reciprocal estimate support.
20555 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
20556 square root estimate on vectors.
20557 (re<mode>2): New insn for reciprocal division estimate on vectors.
20559 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
20561 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
20562 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
20563 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
20564 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
20565 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
20566 (RS6000_BUILTIN_RSQRT): Ditto.
20567 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
20568 floating point builtin.
20570 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
20571 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
20572 __RECIP_PRECISION__ based on the command line switches.
20573 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
20575 * config/rs6000/rs6000.opt (-mrecip): Document add support for
20576 replacing division instructions with reciprocal estimate and fixup.
20577 (-mrecip=<opt>): New option.
20578 (-mrecip-precision): Ditto.
20580 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
20581 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
20582 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
20585 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
20586 (UNSPEC_VREFP): Ditto.
20587 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
20588 conterparts with regard to support of -mno-fused-madd and -ffast-math.
20589 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
20590 reciprocal estimate instructions to be generated.
20591 (altivec_vrefp): Ditto.
20593 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
20595 (rreg): New mode attribute for reciprocal estimate support.
20596 (recip<mode>3): New insn for division using reciprocal estimate
20597 and fixup builtins.
20598 (divide define_split): New define_split to convert floating point
20599 division to use reciprocal estimate if the user used the
20600 appropriate options and the split is run when we can add new
20601 pseudo registers for the fixup.
20602 (rsqrt<mode>2): New insn for reciprocal square root support.
20603 (recipsf3): Move into recip<mode>3.
20605 (fres): Use TARGET_FRES.
20606 (rsqrtsf2): Move into rsqrt<mode>2.
20607 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
20608 (copysignsf3): Add support for VSX.
20609 (fred): Use TARGET_FRE.
20611 (rsqrtdf_internal1): New function for frsqrte instruciton.
20613 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
20614 (vec_rsqrt): Ditto.
20616 2010-06-03 Richard Guenther <rguenther@suse.de>
20618 PR middle-end/44291
20619 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
20620 (set_user_assembler_libfunc): Likewise.
20622 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20624 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
20626 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
20628 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
20629 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
20630 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
20631 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
20632 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
20633 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
20634 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
20635 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
20636 * defaults.h: Updated for above mentioned changes.
20638 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
20640 * c-common.c: Remove header include of tm_p.h.
20641 * Makefile.in (c-common.o): Remove TM_P_H dependency.
20643 2010-06-02 Jakub Jelinek <jakub@redhat.com>
20645 * tree.h (struct tree_decl_map): New type.
20646 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
20647 (tree_decl_map_hash): New prototype.
20648 (debug_expr_for_decl, value_expr_for_decl): Change into
20649 tree_decl_map hashtab from tree_map.
20650 (init_ttree): Adjust initialization.
20651 (tree_decl_map_hash): New function.
20652 (decl_debug_expr_lookup, decl_debug_expr_insert,
20653 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
20655 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20657 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
20659 * configure: Regenerate.
20660 * config.in: Regenerate.
20662 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
20663 (X86_64_EMULATION): Define.
20664 (TARGET_LD_EMULATION): Use them.
20666 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
20667 (SPARC64_EMULATION): Define.
20668 (LINK_ARCH_SPEC): Use them.
20670 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
20672 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
20673 smallest_mode_for_size for computing the precision types of new
20674 graphite IVs. Do not call lang_hooks.types.type_for_size.
20676 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
20678 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
20680 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
20682 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
20684 PR middle-end/44363
20685 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
20686 return false instead.
20688 2010-06-02 Jan Hubicka <jh@suse.cz>
20690 PR middle-end/44295
20691 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
20692 create new cgraph node to check callee.
20694 2010-06-02 Richard Guenther <rguenther@suse.de>
20696 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
20698 2010-06-02 Richard Guenther <rguenther@suse.de>
20700 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
20701 (lto_wrapper_cleanup): ... this. Do not exit.
20702 (fatal): Adjust. Exit here.
20703 (fatal_perror): Likewise.
20704 (fatal_signal): New function.
20705 (main): Set up signal handlers to cleanup temporary files.
20706 * Makefile.in (lto-wrapper.o): Adjust dependencies.
20708 2010-06-02 Richard Guenther <rguenther@suse.de>
20710 PR tree-optimization/44377
20711 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
20713 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20715 * config/s390/2097.md (z10_fhex): Remove insn reservation.
20716 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
20717 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
20718 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
20720 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
20722 2010-06-02 Jan Hubicka <jh@suse.cz>
20724 * bitmap.c (bitmap_descriptor): Add search_iter.
20725 (bitmap_find_bit): Increment it.
20726 (print_statistics): Print it.
20728 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
20730 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
20731 instead of gimple_build_call_vec. Delete unnecessary local variable.
20733 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20735 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
20736 change from yesterday.
20738 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20740 * c-ada-spec.c: Clean up redundant includes.
20742 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
20744 * gimplify.c: Do not include except.h and optabs.h.
20745 (gimplify_body): Do not initialize RTL profiling.
20746 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
20747 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
20748 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
20749 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
20752 * tree-pretty-print.h: Include pretty-print.h.
20753 * gimple-pretty-print.h: Include pretty-print.h.
20755 * tree-pretty-print.c: Do not include diagnostic.h.
20756 * tree-vrp.c: Likewise.
20757 * tree-tailcall.c: Likewise
20758 * tree-scalar-evolution.c: Likewise
20759 * tree-ssa-dse.c: Likewise
20760 * tree-chrec.c: Likewise
20761 * tree-ssa-sccvn.c: Likewise
20762 * tree-ssa-copyrename.c: Likewise
20763 * tree-nomudflap.c: Likewise
20764 * tree-call-cdce.c: Likewise
20765 * tree-stdarg.c: Likewise
20766 * tree-ssa-math-opts.c: Likewise
20767 * tree-nrv.c: Likewise
20768 * tree-ssa-sink.c: Likewise
20769 * tree-browser.c: Likewise
20770 * tree-ssa-loop-ivcanon.c: Likewise
20771 * tree-ssa-loop.c: Likewise
20772 * tree-parloops.c: Likewise
20773 * tree-ssa-address.c: Likewise
20774 * tree-ssa-ifcombine.c: Likewise
20775 * tree-if-conv.c: Likewise
20776 * tree-data-ref.c: Likewise
20777 * tree-affine.c: Likewise
20778 * tree-ssa-phiopt.c: Likewise
20779 * tree-ssa-coalesce.c: Likewise
20780 * tree-ssa-pre.c: Likewise
20781 * tree-ssa-live.c: Likewise
20782 * tree-predcom.c: Likewise
20783 * tree-ssa-forwprop.c: Likewise
20784 * tree-ssa-dce.c: Likewise
20785 * tree-ssa-ter.c: Likewise
20786 * tree-ssa-loop-prefetch.c: Likewise
20787 * tree-optimize.c: Likewise
20788 * tree-ssa-phiprop.c: Likewise
20789 * tree-object-size.c: Likewise
20790 * tree-outof-ssa.c: Likewise
20791 * tree-ssa-structalias.c: Likewise
20792 * tree-switch-conversion.c: Likewise
20793 * tree-ssa-reassoc.c: Likewise
20794 * tree-ssa-operands.c: Likewise
20795 * tree-vectorizer.c: Likewise
20796 * tree-vect-data-refs.c: Likewise
20797 * tree-vect-generic.c: Likewise
20798 * tree-vect-stmts.c: Likewise
20799 * tree-vect-patterns.c: Likewise
20800 * tree-vect-slp.c: Likewise
20801 * tree-vect-loop.c: Likewise
20802 * tree-ssa-loop-ivopts.c: Likewise
20803 * tree-ssa-loop-im.c: Likewise
20804 * tree-ssa-loop-niter.c: Likewise
20805 * tree-ssa-loop-unswitch.c: Likewise
20806 * tree-ssa-loop-manip.c: Likewise
20807 * tree-ssa-loop-ch.c: Likewise
20808 * tree-dump.c: Likewise
20809 * tree-complex.c: Likewise
20811 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
20812 * tree-ssa-uninit.c: Likewise
20813 * tree-ssa-threadupdate.c: Likewise
20814 * tree-ssa-uncprop.c: Likewise
20815 * tree-ssa-ccp.c: Likewise
20816 * tree-ssa-dom.c: Likewise
20817 * tree-ssa-propagate.c: Likewise
20818 * tree-ssa-alias.c: Likewise
20819 * tree-dfa.c: Likewise
20820 * tree-cfgcleanup.c: Likewise
20821 * tree-sra.c: Likewise
20822 * tree-ssa-copy.c: Likewise
20823 * tree-ssa.c: Likewise
20824 * tree-profile.c: Likewise
20825 * tree-cfg.c: Likewise
20826 * tree-ssa-threadedge.c: Likewise
20827 * tree-vect-loop-manip.c: Likewise
20829 * tree-inline.c: Do not include diagnostic.h and expr.h.
20831 (copy_decl_for_dup_finish): Do not use NULL_RTX.
20833 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
20834 * tree-loop-distribution.c: Likewise.
20836 2010-06-01 Jan Hubicka <jh@suse.cz>
20838 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
20840 2010-06-01 Jan Hubicka <jh@suse.cz>
20842 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
20843 remove return value.
20844 (split_bbs_on_noreturn_calls) .... here.
20845 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
20846 * tree-flow.h (fixup_noreturn_call): New.
20848 2010-06-01 Jan Hubicka <jh@suse.cz>
20850 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
20852 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
20854 * tree.h (build_nt_call_list): Delete.
20855 * tree.c (build_nt_call_list): Delete.
20857 2010-06-01 Jan Hubicka <jh@suse.cz>
20859 * fwprop.c: Make emit-rtl.h include last.
20860 * rtlanal.c: Include emit-rtl.h.
20861 * genautomata.c: Output emit-rtl include into insn-automata.c
20862 * df-scan.c: Include emit-rtl.h.
20863 * haifa-sched.c: Indlude emit-rtl.h.
20864 * mode-switching.c: Indlude emit-rtl.h.
20865 * graph.c: Indlude emit-rtl.h.
20866 * sel-sched.c: Include emit-rtl.h.
20867 * sel-sched-ir.c: Include emit-rtl.h.
20868 * ira-build.c: Include emit-rtl.h.
20869 * emit-rtl.c (first_insn, last_insn): Remove defines.
20870 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
20871 Move to emit-rtl.h.
20872 (set_new_first_and_last_insn, get_last_insn_anywhere,
20873 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
20874 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
20875 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
20876 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
20877 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
20878 Use accessor functions.
20879 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
20880 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
20881 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
20882 mem_expr_equal_p): Move here from rtl.h.
20883 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
20884 Move here from emit-rtl.c; make inline.
20885 * cfglayout.h: Include emit-rtl.h.
20886 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
20887 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
20888 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
20889 mem_expr_equal_p, get_insns, set_first-insn,
20890 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
20891 * reg-stack.c: Include emit-rtl.h.
20894 2010-06-01 Jan Hubicka <jh@suse.cz>
20896 * cgraph.h (tree_function_versioning): Update prototype.
20897 (cgraph_function_versioning): Update prototype.
20898 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
20900 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
20901 (cgraph_materialize_clone, save_inline_function_body): Update use of
20902 tree_function_versioning.
20903 * tree-inline.c (copy_bb): Look for previous copied block to link
20904 after; fix debug output.
20905 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
20906 (copy_body): Likewise.
20907 (expand_call_inline): Update use of copy_body.
20908 (tree_function_versioning): Update use of copy body; accept
20909 blocks_to_copy and new_entry.
20911 2010-06-01 Jan Hubicka <jh@suse.cz>
20913 * gegenrtl.c: Remove unnecesary prototypes.
20915 (gendef): Produce static inline.
20917 (main): Do not decode parameters; generate header only.
20918 * Makefile.in (genrtl.c): Remove.
20920 2010-06-01 Jan Hubicka <jh@suse.cz>
20922 * tree-switch-conversion.c (build_one_array): Make it readonly.
20924 2010-06-01 Richard Guenther <rguenther@suse.de>
20926 * optabs.c (init_optabs): Guard all accesses to reinit.
20927 * ipa-pure-const.c (propagate): Fix another typo.
20928 * opts.c (common_handle_option): Split assignment to bool.
20929 * c-opts.c (c_common_handle_option): Likewise.
20931 2010-06-01 Arnaud Charlet <charlet@adacore.com>
20932 Matthew Gingell <gingell@adacore.com>
20934 * doc/invoke.texi: Mention -fdump-ada-spec.
20935 * tree-dump.c (dump_files): Add ada-spec.
20936 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
20937 * tree-pass.h (tree_dump_index): Add TDI_ada.
20938 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
20939 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
20940 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
20941 * c-decl.c: Include c-ada-spec.h.
20942 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
20944 (c_write_global_declarations): Add handling of -fdump-ada-spec.
20945 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
20946 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
20947 * c-ada-spec.h, c-ada-spec.c: New files.
20949 2010-06-01 Richard Guenther <rguenther@suse.de>
20952 * ipa-pure-const.c (get_function_state): Hand back varying state
20953 if we do not have one.
20954 (has_function_state): New function.
20955 (duplicate_node_data): Adjust.
20956 (remove_node_data): Likewise.
20957 (pure_const_write_summary): Likewise.
20958 (propagate): Likewise. Fix typo.
20960 2010-06-01 Jan Hubicka <jh@suse.cz>
20962 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
20963 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
20964 (execute_all_ipa_transforms): Do not play with the states.
20966 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
20968 * config/arm/t-linux-androideabi: New.
20969 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
20971 2010-06-01 Jan Hubicka <jh@suse.cz>
20973 * tree-inline.c (estimate_num_insns): For stdarg functions look
20974 into call statement to count cost of argument passing.
20976 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
20978 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
20979 argument for fprintf.
20980 (ix86_output_addr_diff_elt): Likewise.
20981 (x86_function_profiler): Likewise.
20982 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
20983 (LPREFIX): Likewise.
20984 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
20986 2010-05-31 Jakub Jelinek <jakub@redhat.com>
20989 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
20990 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
20991 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
20992 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
20993 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
20994 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
20995 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
20996 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
20999 2010-05-31 Jan Hubicka <jh@suse.cz>
21001 * tree.h (tree_range_check_failed): Declare noreturn.
21003 2010-05-31 Jan Hubicka <jh@suse.cz>
21005 * gimple.c (gimple_call_builtin_p): New function.
21006 * gimple.h (gimple_call_builtin_p): Declare.
21007 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
21009 (execute_warn_function_return): BUILT_IN_RETURN is return.
21010 (split_critical_edges): Return edges are not critical.
21011 (is_ctrl_altering_stmt): Builtin_in_return is altering.
21012 (gimple_verify_flow_info): Handle built_in_return.
21013 (execute_warn_function_return): Handle built_in_return.
21014 * ipa-pure-const.c (check_call): Ignore builtin_return.
21016 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21018 PR middle-end/44337
21019 * expr.c (expand_assignment): Don't store anything for out-of-bounds
21020 array accesses with non-MEM.
21022 PR tree-optimization/44182
21023 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
21024 newly needs to end a bb is followed by debug stmts, instead return
21025 true from the function at the end.
21026 (maybe_move_debug_stmts_to_successors): New function.
21027 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
21029 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
21032 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
21034 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
21036 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
21037 for nested functions in non-optimized compilation.
21039 2010-05-31 Richard Guenther <rguenther@suse.de>
21041 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
21043 2010-05-30 Jan Hubicka <jh@suse.cz>
21045 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
21047 2010-05-30 Richard Guenther <rguenther@suse.de>
21050 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
21051 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
21054 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
21056 * config/darwin.c (output_objc_section_asm_op): Add comment.
21057 (name_needs_quotes): Add '_' to list of valid comment chars.
21058 (machopic_output_function_base_name): Remove unneeded quotes.
21059 (darwin_encode_section_info): Adjust asm whitespace.
21060 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
21061 (ASM_OUTPUT_LOCAL): Ditto.
21062 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
21063 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
21064 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
21066 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
21068 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
21069 RS6000_OUTPUT_BASENAME unconditionally.
21070 (rs6000_output_function_epilogue): Likewise.
21072 2010-05-30 Jan Hubicka <jh@suse.cz>
21074 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
21077 2010-05-30 Richard Guenther <rguenther@suse.de>
21079 * tree-cfg.c (verify_gimple_assign_single): Implement
21080 verification for COND_EXPR rhs.
21082 2010-05-30 Jan Hubicka <jh@suse.cz>
21084 * cgraph.h (cgraph_dump_file): Declare.
21085 * cgraphunit.c (cgraph_dump_file): Export.
21086 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
21088 2010-05-30 Jan Hubicka <jh@suse.cz>
21090 * dwarf2out.c (reference_to_unused,
21091 premark_types_used_by_global_vars_helper): Avoid creation of new
21094 2010-05-30 Jan Hubicka <jh@suse.cz>
21096 * cgraph.h (cgraph_node_cannot_return,
21097 cgraph_edge_cannot_lead_to_return): New functions.
21098 * cgraph.c (cgraph_node_cannot_return,
21099 cgraph_edge_cannot_lead_to_return): Use them.
21100 * ipa-pure-const.c (pure_const_names): New static var.
21101 (check_call): Handle calls not leading to return.
21102 (pure_const_read_summary): Dump info read.
21103 (propagate): Dump info about propagation process; ignore side effects
21104 of functions not leading to exit; fix handling of pure functions.
21106 2010-05-30 Jan Hubicka <jh@suse.cz>
21108 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
21109 for tail call epilogues.
21111 2010-05-30 Jan Hubicka <jh@suse.cz>
21113 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
21114 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
21117 2010-05-29 Jan Hubicka <jh@suse.cz>
21119 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
21120 node; remove references in node we no longer keep in cgrpah but need
21123 2010-05-29 Jan Hubicka <jh@suse.cz>
21125 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
21127 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21130 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
21132 2010-05-29 Jan Hubicka <jh@suse.cz>
21134 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
21135 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
21136 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
21137 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
21138 debug_names_replaced_by, debug_update_ssa): Likewise.
21139 * sbitmap.c (debug_sbitmap): Likewise.
21140 * genrecog.c (debug_decision, debug_decision_list): Likewise.
21141 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
21142 debug_tree_chain): Likewise.
21143 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
21144 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
21145 * optabs.c (debug_optab_libfuncs): Likewise.
21146 (verify_loop_closed_ssa): Likewise.
21147 * value-prof.c (verify_histograms): Likewise.
21148 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
21149 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
21150 * cfghooks.c (verify_flow_info): Likewise.
21151 * fold-const.c (debug_fold_checksum): Likewise.
21152 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
21153 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
21155 * omega.c (debug_omega_problem): Likewise.
21156 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
21157 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
21158 * dominance.c (verify_dominators, debug_dominance_info,
21159 debug_dominance_tree): Likewise.
21160 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
21161 * df_regno_debug, df_ref_debug,
21162 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
21163 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
21164 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
21165 * sel-sched.c (debug_state): Likewise.
21166 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
21168 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
21169 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
21170 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
21171 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
21173 * c-pretty-print.c (debug_c_tree): Likewise.
21174 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
21175 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
21176 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
21177 * ebitmap.c (debug_ebitmap): Likewise.
21178 * function.c (debug_find_var_in_block_tree): Likewise.
21179 * print-rtl.c (debug_rtx): Likewise.
21180 (debug_rtx_count): Likewise.
21181 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
21182 * stor-layout.c (debug_rli): Likewise.
21183 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
21184 * tree-data-ref.c (debug_data_references,
21185 debug_data_dependence_relations, debug_data_reference,
21186 debug_data_dependence_relation, debug_rdg_vertex,
21187 debug_rdg_component, debug_rdg): Likewise.
21188 * tree-affine.c (debug_aff): Likewise.
21189 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
21191 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
21192 * emit-rtl.c (verify_rtl_sharing): Likewise.
21193 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
21194 debug_value_expressions): Likewise.
21195 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
21196 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
21197 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
21198 * cfglayout.c (verify_insn_chain): Likewise.
21199 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
21200 debug_clast_stmt, debug_generated_program): Likewise.
21201 * ggc-page.c (debug_print_page_list): Likewise.
21202 * tree-ssa-ter.c (debug_ter): Likewise.
21203 * graphite-dependences.c (debug_pddr): Likewise.
21204 * sched-deps.c (debug_ds): Likewise.
21205 * tree-ssa.c (verify_ssa): Likewise.
21206 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
21207 debug_scattering_functions, debug_iteration_domains, debug_pdr,
21208 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
21209 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
21210 * tree-inline.c (debug_find_tree): Likewise.
21211 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
21212 debug_ppl_powerset_matrix): Likewise.
21213 * var-tracking.c (debug_dv): Likewise.
21214 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
21215 * cfgloop.c (verify_loop_structure): Likewise.
21216 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
21217 * c-common.c (verify_sequence_points): Likewise.
21218 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
21219 debug_candidates, debug_rgn_dependencies): Likewise.
21220 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
21221 * debug_constraint_graph, debug_solution_for_var,
21222 debug_sa_points_to_info): Likewise.
21223 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
21225 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
21226 debug_loops, debug_loop, debug_loop_num): Likewise.
21227 * passes.c (debug_pass): Likewise.
21228 (dump_properties): Likewise; add cfglayout property.
21229 (debug_properties): Likewise.
21230 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
21231 * varpool.c (debug_varpool): Likewise.
21232 * regcprop.c (debug_value_data): Likewise.
21233 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
21234 debug_immediate_uses_for): Likewise.
21236 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
21239 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
21240 Filter out insn-flags.h.
21242 2010-05-29 Jan Hubicka <jh@suse.cz>
21244 * cgraph.h (struct varpool_node_set_def,
21245 struct cgraph_node_set_def): Remove unused AUX pointer.
21246 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
21249 2010-05-29 Jan Hubicka <jh@suse.cz>
21251 PR middle-end/44324
21252 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
21254 2010-05-29 Richard Guenther <rguenther@suse.de>
21256 * lto-streamer.c (cached_bp): New global variable.
21257 (bitpack_create): Return the cached bitpack, if available.
21258 (bitpack_delete): Clear and cache the bitpack, if appropriate.
21259 (bp_pack_value): Remove redundant asserts.
21261 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
21263 PR middle-end/44306
21264 * tree-if-conv.c (is_true_predicate): New.
21265 (is_predicated): Use is_true_predicate.
21266 (add_to_predicate_list): Same. Do not use unshare_expr.
21267 (add_to_dst_predicate_list): Same.
21269 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
21271 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
21273 (predicate_bbs): Same.
21274 (clean_predicate_lists): Same.
21275 (find_phi_replacement_condition): Do not AND the predicate from
21278 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
21281 * Makefile.in (build/gencondmd.o): Add a missing `\'.
21283 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21286 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
21287 (negdf2): Adjust expander pattern and use negdf2_slow.
21288 (negsf2): Likewise.
21290 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
21292 * basic-block.h (struct control_flow_graph): Move last_label_uid field
21294 * df.h (struct df_base_ref): Move regno field up.
21295 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
21296 * expr.h (struct separate_ops): Move location field up.
21297 * optabs.h (struct optab_d): Move libcall_basename field down.
21298 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
21299 * config/i386/i386.h (struct machine_function): Convert call_abi field
21300 into a bitfield. Move cfa field to the end of the structure.
21302 2010-05-29 Jan Hubicka <jh@suse.cz>
21304 * varpool.c (varpool_get_node): Fix lookup.
21306 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21308 * config/spu/spu-protos.h: Do not include rtl.h. Protect
21309 RTL specific prototypes with #ifdef RTX_CODE.
21310 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
21311 * config/spu/t-spu-elf: Fix dependencies.
21313 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
21315 2010-05-29 Mike Stump <mikestump@comcast.net>
21318 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
21319 TM_H when building to avoid dependency loops.
21321 2010-05-29 Jan Hubicka <jh@suse.cz>
21323 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
21324 refs and body; not the whole node for masters of materialized clones.
21326 2010-05-29 Mike Stump <mikestump@comcast.net>
21328 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
21330 2010-05-29 Jan Hubicka <jh@suse.cz>
21332 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
21333 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
21334 use of clone_function_name.
21335 * cgraph.h (cgraph_create_virtual_clone,
21336 cgraph_function_versioning): update prototypes.
21337 (clone_function_name): Declare.
21338 * ipa-cp.c (ipcp_insert_stage): Update call of
21339 cgraph_create_virtual_clone.
21340 * omp-low.c (create_omp_child_function_name): Use
21341 cgraph_create_virtual_clone.
21342 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
21343 (cgraph_function_versioning): Take SUFFIX argument; produce new name
21344 and make decl local.
21346 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21348 * vec.h: Include statistics.h
21349 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
21352 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21354 * c-lex.c: Do not include c-tree.h.
21355 * c-pretty-print.c: Likewise.
21356 * c-opts.c: Likewise.
21357 * c-gimplify.c: Likewise.
21358 * c-common.c: Likewise.
21359 * c-dump.c: Likewise. Include c-common.h.
21361 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21363 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
21364 before including diagnostic-core.h.
21365 (c_cpp_error): New prototype moved from c-tree.h.
21366 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
21367 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
21368 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
21369 (c_cpp_error): Prototype moved to c-common.h.
21370 * Makefile.in: Update dependency for C_COMMON_H.
21372 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21374 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
21375 * c-common.c (c_register_addr_space): Remove here.
21376 * c-decl.c (c_register_addr_space): Re-add here.
21378 2010-05-28 Mike Stump <mikestump@comcast.net>
21380 * config/darwin-c.c: Remove c-tree.h include.
21382 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21384 * gcc.c: Include diagnostic.h.
21385 (error_count): Remove. All users changed to use errorcount.
21386 (programname): Remove. All users changed to use progname.
21387 (fancy_abort, internal_error, fatal_error, error, warning, inform,
21389 (execute): Don't include "Internal error" and bug reporting
21390 information in argument of internal_error call.
21391 (process_command): Don't increment error_count after calling
21393 (input_filename): Rename to gcc_input_filename. All users
21395 (main): Call diagnostic_initialize. Register delete_temp_files
21396 with atexit. Use seen_error to test for errors.
21397 * gcc.h: Include diagnostic-core.h.
21398 (fatal_error, error, warning): Remove.
21399 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
21400 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
21401 (gcc.o): Update dependencies.
21403 2010-05-28 Jeff Law <law@redhat.com>
21405 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
21407 * ira.h (ira_bad_reload_regno): Declare
21408 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
21410 * ira-color.c (update_curr_costs): Free updated hard reg costs.
21411 (ira_reassign_conflict_allocnos): Remove bogus asserts.
21412 (allocno_reload_assign): Likewise.
21414 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
21416 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
21419 2010-05-28 Richard Guenther <rguenther@suse.de>
21422 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
21423 Stream fixed-point constants mode.
21424 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
21425 and TYPE_PRECISION.
21426 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
21427 Stream fixed-point constants mode.
21428 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
21429 and TYPE_PRECISION.
21431 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21433 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
21434 only place it was called from.
21435 (number_of_latch_executions): Do not return chrec_dont_know when the
21436 may_be_zero is a runtime condition: instead, return a COND_EXPR
21437 including the may_be_zero condition.
21438 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
21440 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
21443 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21445 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
21446 generate COND_EXPRs for degenerate_phi_result.
21448 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
21450 PR middle-end/44293
21451 * tree-if-conv.c (if_convertible_loop_p): Check the
21452 if-convertibility of phi nodes in non predicated BBs.
21454 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21456 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
21458 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21461 * gcc.c (inform, warning, inform): New functions.
21462 (fatal_ice): Rename to internal_error; change cmsgid parameter to
21463 gmsgid. All callers changed.
21464 (notice): Rename to fnotice; add parameter fp. All callers changed.
21465 (fatal_error): Rename to fatal_signal. All users changed.
21466 (fatal): Rename to fatal_error; change cmsgid parameter to
21467 gmsgid. All callers changed.
21468 (process_command): Use warning instead of error for warnings.
21469 (end_going_arg): Don't use _() around argument of error.
21470 (do_spec_1): Use inform for message from %n specs. Use warning
21471 instead of error for warnings.
21472 (main): Use inform for comparison messages. Use warning for
21473 message about unused linker input.
21474 (error): Increment error_count. Print "error: ".
21475 * gcc.h (fatal): Change to fatal_error.
21476 (warning): Declare.
21477 * config/darwin-driver.c (darwin_default_min_version): Use warning
21478 instead of fprintf for warnings.
21479 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
21481 2010-05-28 Julian Brown <julian@codesourcery.com>
21483 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
21484 (*thumb2_addsi3_compare0_scratch): New.
21485 * config/arm/constraints.md (Pv): New.
21486 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
21488 (*addsi3_compare0_scratch): Likewise.
21490 2010-05-28 Jan Hubicka <jh@suse.cz>
21492 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
21494 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
21495 only on local statics.
21497 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
21499 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
21501 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
21504 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
21505 (OPTION_GLIBC): Define.
21507 2010-05-28 Jakub Jelinek <jakub@redhat.com>
21510 * dwarf2out.c (double_int_type_size_in_bits): New function.
21511 (round_up_to_align): Change first argument and return value to
21513 (field_byte_offset): Work internally on double_ints.
21516 * builtins.c (expand_movstr): Use a temporary pseudo instead
21517 of target even when target is not NULL and not const0_rtx, but
21518 fails movstr predicate.
21519 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
21521 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21523 * final.c (rest_of_clean_state): Use %m in errors instead of
21525 * gengtype.c (read_input_list, close_output_files): Use xstrerror
21526 instead of strerror.
21527 * toplev.c (process_options): Use %m in errors instead of strerror
21529 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
21532 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
21534 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
21535 (ix86_canonical_va_list_type): Make static. Add declaration.
21536 (ix86_enum_va_list): Make static. Reindent.
21537 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
21538 (ix86_canonical_va_list_type): Ditto.
21539 (ix86_enum_va_list): Ditto.
21541 2010-05-28 Richard Guenther <rguenther@suse.de>
21543 * lto-wrapper.c (run_gcc): With -save-temps generate a
21544 user-visible ltrans filename. Fixup ltrans unit numbering.
21546 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
21548 * c-common.c (c_common_nodes_and_builtins): Replace use
21549 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
21550 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
21551 to ix86_enum_va_list.
21552 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
21553 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
21554 (TARGET_ENUM_VA_LIST_P): Add hook description.
21555 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
21556 * target.h (gcc_target): Add enum_va_list hook.
21559 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
21560 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
21561 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
21563 2010-05-28 Alan Modra <amodra@gmail.com>
21566 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
21567 emit_library_call machinery to set up __tls_get_addr calls.
21569 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21571 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
21573 2010-05-28 Dodji Seketeli <dodji@redhat.com>
21575 Revert fix for PR c++/44188
21576 * c-common.c (is_typedef_decl): Revert the moving of this
21578 * tree.c (is_typedef_decl): ... here.
21579 (typdef_variant_p): Revert the moving of this definition
21580 here from cp/tree.c.
21581 * c-common.h (is_typedef_decl): Revert the moving of this
21583 * tree.h (is_typedef_decl): ... here.
21584 (typedef_variant_p): Revert the moving of this declaration here
21586 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
21587 (gen_tagged_type_die): Revert the splitting out of ...
21588 (gen_type_die_with_usage): ... this function. Revert the anonymous
21589 tagged type handling.
21590 (gen_typedef_die): Revert emitting DW_TAG_typedef for
21591 typedefs naming anonymous tagged types.
21593 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
21595 * config/rs6000/rs6000-modes.def (PSImode): Delete.
21597 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
21599 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
21600 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
21602 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
21604 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
21605 XER_REGS to CA_REGS throughout.
21606 * config/rs6000/rs6000.h: Same.
21607 (ADDITIONAL_REGISTER_NAMES): Add "xer".
21608 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
21609 that mode_iterator "P" is the size for arithmetic carries as well.
21610 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
21612 2010-05-28 Jakub Jelinek <jakub@redhat.com>
21615 * combine.c (struct rtx_subst_pair): Define unconditionally.
21616 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
21617 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
21618 Call make_compound_operation on pair->to.
21619 (propagate_for_debug): Don't call make_compound_operation here.
21620 Always use simplify_replace_fn_rtx.
21622 2010-05-27 Sterling Augustine <sterling@tensilica.com>
21624 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
21625 * config/xtensa/xtensa.c (override_options): Check
21626 TARGET_FORCE_NO_PIC and set flag_pic.
21627 * config/xtensa/xtensa.opt: Document -mforce-no-pic
21629 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
21632 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
21633 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
21635 2010-05-27 Joseph Myers <joseph@codesourcery.com>
21637 * diagnostic-core.h: New. Contents moved from diagnostic.h and
21639 * diagnostic.c: Don't include toplev.h.
21640 (progname): Define. Moved from toplev.c.
21641 (seen_error): New function.
21642 * diagnostic.h: Include diagnostic-core.h.
21643 (diagnostic_t, emit_diagnostic): Don't declare here.
21644 * toplev.c (progname): Move to toplev.c.
21645 (emit_debug_global_declarations, compile_file, finalize,
21646 do_compile, toplev_main): Use seen_error.
21647 * toplev.h: Include diagnostic-core.h.
21648 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
21649 internal_error, warning, warning_at, error, error_n, error_at,
21650 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
21651 verbatim, fnotice, progname): Move to diagnostic-core.h.
21652 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
21653 (expand_builtin_expect): Use seen_error.
21654 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
21655 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
21656 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
21657 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
21658 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
21659 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
21660 errorcount for errors.
21661 * c-opts.c (c_common_finish): Use seen_error.
21662 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
21663 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
21664 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
21665 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
21666 (get_coverage_counts): Use seen_error.
21667 * dwarf2out.c (dwarf2out_finish): Use seen_error.
21668 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
21669 gimplify_body): Use seen_error.
21670 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
21671 * ipa-pure-const.c (gate_pure_const): Use seen_error.
21672 * ipa-reference.c (gate_reference): Use seen_error.
21673 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
21674 * lambda-code.c: Include diagnostic-core.h instead of
21676 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
21677 * lto-compress.c: Include diagnostic-core.h instead of
21679 * lto-section-in.c: Include diagnostic-core.h instead of
21681 * lto-streamer-out.c: Include diagnostic-core.h instead of
21683 * lto-streamer.c: Include diagnostic-core.h instead of
21685 (gate_lto_out): Use seen_error.
21686 * matrix-reorg.c: Include diagnostic-core.h instead of
21688 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
21689 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
21690 (gate_expand_omp, lower_omp_1): Use seen_error.
21691 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
21692 (rest_of_decl_compilation, rest_of_type_compilation,
21693 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
21694 * tree-cfg.c (label_to_block_fn): Use seen_error.
21695 * tree-inline.c (optimize_inline_calls): Use seen_error.
21696 * tree-mudflap.c (mudflap_finish_file): Use
21698 * tree-optimize.c (gate_all_optimizations,
21699 gate_all_early_local_passes, gate_all_early_optimizations): Use
21701 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
21702 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
21703 (varpool_remove_unreferenced_decls,
21704 varpool_assemble_pending_decls): Use seen_error.
21705 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
21706 (TOPLEV_H, DIAGNOSTIC_H): Update.
21707 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
21708 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
21709 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
21710 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
21711 coverage.o, lambda-code.o): Update dependencies.
21713 2010-05-25 Dodji Seketeli <dodji@redhat.com>
21716 * c-common.c (is_typedef_decl): Move this definition ...
21717 * tree.c (is_typedef_decl): ... here.
21718 (typdef_variant_p): Move definition here from cp/tree.c.
21719 * c-common.h (is_typedef_decl): Move this declaration ...
21720 * tree.h (is_typedef_decl): ... here.
21721 (typedef_variant_p): Move declaration here from cp/cp-tree.h
21722 * dwarf2out.c (is_naming_typedef_decl): New function.
21723 (gen_tagged_type_die): Split out of ...
21724 (gen_type_die_with_usage): ... this function. When an anonymous
21725 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
21726 is emitted for the typedef.
21727 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
21728 anonymous tagged types.
21730 2010-05-27 Jason Merrill <jason@redhat.com>
21732 * print-tree.c (debug_vec_tree): New fn.
21733 (print_vec_tree): New fn.
21734 * tree.h: Declare them.
21735 * gdbinit.in (pvt): New command.
21737 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
21739 * gdbinit.in (pdd): New command.
21741 2010-05-27 Jan Hubicka <jh@suse.cz>
21743 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
21744 (update_caller_keys): Return early if there are no callers;
21745 only update fibheap when decresing the key.
21746 (update_callee_keys): Avoid recursion.
21747 (decide_inlining_of_small_functions): When badness does not match;
21748 re-insert into fibheap.
21750 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
21752 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
21753 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
21754 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
21755 (ALL_HOST_OBJS): Now a union of the above two.
21756 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
21757 all files in ALL_HOST_FRONTEND_OBJS.
21758 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
21760 * c-common.c: Pretend to be a backend file by undefining
21761 IN_GCC_FRONTEND (still need rtl.h here).
21763 2010-05-27 Jan Hubicka <jh@suse.cz>
21765 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
21766 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
21768 2010-05-27 Jan Hubicka <jh@suse.cz>
21770 * sched-ebb.c: Rename struct deps to struct deps_desc.
21772 * sel-sched-ir.c: Likewise.
21773 * sched-deps.c: Likewise.
21774 * sched-int.h: Likewise.
21775 * sched-rgn.c: Likewise.
21777 2010-05-27 Jon Beniston <jon@beniston.com>
21780 * config/lm32/lm32.h: Remove definition of
21781 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
21783 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
21786 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
21788 2010-05-27 Richard Guenther <rguenther@suse.de>
21790 PR tree-optimization/44284
21791 * tree-vect-stmts.c (vectorizable_assignment): Handle
21792 sign-changing conversions as simple copy.
21794 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
21796 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
21798 (__gthread_active_p): Check for pthread_create if compiling against
21801 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
21803 Support compilation for Android platform. Reimplement -mandroid.
21805 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
21806 (*android*): Set ANDROID_DEFAULT.
21807 (arm*-*-linux*): Include linux-android.h.
21808 (arm*-*-eabi*): Don't include previous -mandroid implementation.
21809 * config/arm/eabi.h: Remove, move Android-specific parts ...
21810 * config/linux-android.h: ... here. New file.
21811 * config/arm/eabi.opt: Rename to ...
21812 * config/linux-android.opt: ... this.
21813 (mandroid): Allow -mno-android option. Initialize based on
21815 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
21816 Move logic to corresponding LINUX_TARGET_* macros.
21817 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
21818 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
21819 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
21820 Android definitions.
21821 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
21822 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
21825 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
21827 Add support for Bionic C library
21829 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
21831 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
21832 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
21834 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
21835 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
21836 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
21837 to support multiple C libraries. Handle Bionic.
21838 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
21839 (BIONIC_DYNAMIC_LINKER64): Define.
21840 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
21842 (TARGET_HAS_SINCOS): Enable for Bionic.
21844 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
21845 the last option specified on command line take effect.
21846 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
21848 (mglibc, muclibc): Update.
21850 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
21851 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
21854 * doc/invoke.texi (-mglibc, -muclibc): Update.
21855 (-mbionic): Document.
21857 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21859 * c-common.h (c_register_addr_space): Add prototype.
21860 (ADDR_SPACE_KEYWORD): Remove.
21861 * c-common.c (c_register_addr_space): New function.
21862 (c_addr_space_name): Reimplement.
21863 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
21865 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
21866 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
21868 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
21869 Remove TARGET_ADDR_SPACE_KEYWORDS.
21871 2010-05-27 Joseph Myers <joseph@codesourcery.com>
21873 * input.c: New file.
21874 * input.h (main_input_filename): Move declaration to toplev.h.
21875 * toplev.c (input_location, line_table): Move to input.c
21876 * toplev.h (main_input_filename): Move declaration from input.h.
21877 * tree.c (expand_location): Move to input.c.
21878 * Makefile.in (OBJS-common): Add input.o.
21879 (input.o): Add dependencies.
21881 2010-05-27 Richard Guenther <rguenther@suse.de>
21883 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
21884 for non-existant files.
21885 (fork_execute): Mark args_name file as deleted.
21887 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
21890 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
21891 (narrow_signed_type): Likewise.
21893 2010-05-26 Jan Hubicka <jh@suse.cz>
21895 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
21896 edge only when checking is enabled; check using former_clone_of;
21897 check inline clones too.
21898 (cgraph_materialize_clone): Record former_clone_of pointer.
21899 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
21900 combining redirections; dump args_to_skip bitmap
21901 (cgraph_materialize_all_clones): Do no redirection here.
21902 * ipa-inline.c (inline_transform): Do redirection here.
21903 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
21906 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
21908 * config/avr/avr-c.c: Do not include regs.h.
21909 Include cpplib.h for cpp_define and tree.h for c-common.h.
21910 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
21911 * config/avr/t-avr: Fix dependencies for avr-c.o.
21913 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
21915 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
21916 string instead of SYMBOL_REF rtx.
21917 * rtl.h (set_stack_check_libfunc): Move prototype from here...
21918 * libfuncs.h: ...to here. Adjust for explow.c change.
21920 2010-05-26 Joseph Myers <joseph@codesourcery.com>
21922 * pretty-print.c: Don't include ggc.h.
21923 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
21924 (identifier_to_locale): Use them for allocation.
21925 * pretty-print.h (identifier_to_locale_alloc,
21926 identifier_to_locale_free): Declare.
21927 * toplev.c (alloc_for_identifier_to_locale): New.
21928 (general_init): Set identifier_to_locale_alloc and
21929 identifier_to_locale_free.
21930 * Makefile.in (pretty-print.o): Update dependencies.
21932 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
21934 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
21935 pointer types if they have different alignment or mode.
21937 2010-05-26 Anatoly Sokolov <aesok@post.ru>
21939 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21940 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21941 * config/sparc/sparc-protos.h (function_value): Remove declaration.
21942 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
21943 sparc_function_value_regno_p): New functions.
21944 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21945 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21946 (function_value): Rename to...
21947 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
21948 argument to 'outgoing'.
21949 (function_arg_record_value, function_arg_union_value,
21950 function_arg_vector_value): Update comment.
21952 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
21954 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
21955 (fde_needed_for_eh_p): New predicate.
21956 (output_call_frame_info): Use it throughout to decide whether FDEs
21957 are needed for EH purpose.
21958 (dwarf2out_begin_prologue): Reorder assignments.
21960 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21962 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
21963 special case loop->header.
21964 (is_predicated): New.
21965 (if_convertible_loop_p): Call it.
21967 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21969 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
21970 iterator in parameter. Do not generate code during the analysis.
21971 (tree_if_convert_cond_stmt): Removed.
21972 (tree_if_convert_stmt): Removed.
21973 (predicate_bbs): New.
21974 (if_convertible_loop_p): Call predicate_bbs.
21975 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
21976 now contains all the analysis part.
21978 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21980 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
21981 statements in the analysis part.
21982 (tree_if_convert_stmt): Update comment.
21983 (remove_conditions_and_labels): New.
21984 (combine_blocks): Call remove_conditions_and_labels.
21985 (tree_if_conversion): Update comment.
21987 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21989 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
21990 than 2 predecessors or more than 2 successors.
21992 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21994 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
21995 of loops in which the data dependence analysis fails.
21997 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21999 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
22000 CDI_POST_DOMINATORS.
22001 (tree_if_conversion): Same.
22003 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22005 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
22007 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22009 * tree-if-conv.c: Update copyright years. Fix comments.
22012 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
22014 * builtin-types.def (BT_INT128): New primitive type.
22015 (BT_UINT128): Likewise.
22016 * c-common.c (c_common_r): Add __int128 keyword.
22017 (c_common_type_for_size): Handle __int128.
22018 (c_common_type_for_mode): Likewise.
22019 (c_common_signed_or_unsigned_type): Likewise.
22020 (c_common_nodes_and_builtins): Add builtin type
22021 if target supports 128-bit integer scalar.
22022 * c-common.h (enum rid): Add RID_INT128.
22023 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
22024 if target supports 128-bit integer scalar.
22025 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
22026 (finish_declspecs): Likewise.
22027 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
22028 (c_token_starts_declspecs): Likewise.
22029 (c_parser_declspecs): Likewise.
22030 (c_parser_attributes): Likewise.
22031 (c_parser_objc_selector): Likewise.
22032 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
22033 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
22034 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
22035 * tree.c (make_or_reuse_type): Likewise.
22036 (make_unsigned_type): Likewise.
22037 (build_common_tree_nodes_2): Likewise.
22038 * tree.h (enum integer_type_kind): Add itk_int128 and
22039 itk_unsigned_int128.
22040 (int128_integer_type_node): New define.
22041 (int128_unsigned_type_node): New define.
22042 * doc/extend.texi: Add documentation about __int128 type.
22044 2010-05-26 Richard Guenther <rguenther@suse.de>
22046 * tree-ssa-sccvn.c (copy_nary): Adjust.
22047 (copy_phis): Rename to ...
22048 (copy_phi): ... this. Adjust.
22049 (copy_references): Rename to ...
22050 (copy_reference): ... this. Adjust.
22051 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
22052 result into the valid table.
22054 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22056 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
22057 insn-config.h, insn-codes.h, recog.h, and optabs.h.
22059 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22061 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
22063 2010-05-26 Richard Guenther <rguenther@suse.de>
22065 * opts.c (common_handle_option): Handle OPT_Ofast.
22067 2010-05-26 Joseph Myers <joseph@codesourcery.com>
22069 * diagnostic.c: Don't include opts.h.
22070 (permissive_error_option): Define.
22071 (diagnostic_initialize): Take n_opts parameter. Allocate memory
22072 for classify_diagnostic. Don't use memset for
22073 classify_diagnostic. Initialize new and recently added fields.
22074 (diagnostic_classify_diagnostic): Use context->n_opts instead of
22076 (diagnostic_report_diagnostic): Pass context parameter to
22077 diagnostic_report_warnings_p. Use option_enabled and option_name
22078 hooks from context.
22079 (emit_diagnostic): Use permissive_error_option.
22080 (permerror): Likewise.
22081 * diagnostic.h: Don't include options.h.
22082 (struct diagnostic_context): Add n_opts, opt_permissive,
22083 inhibit_warnings, warn_system_headers, option_enabled and
22084 option_name fields. Change classify_diagnostic to a pointer.
22085 * opts-diagnostic.h: New file.
22086 * opts.c: Include opts-diagnostic.h.
22087 (common_handle_option): Set global_dc fields for -Wfatal-errors,
22088 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
22089 (option_name): New function.
22090 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
22091 (c_common_handle_option): Set global_dc->permissive for
22093 * c-common.c (c_cpp_error): Save and restore
22094 global_dc->warn_system_headers, not variable warn_system_headers.
22095 * toplev.c: Include opts-diagnostic.h.
22096 (general_init): Update call to diagnostic_initialize. Set
22097 global_dc->show_column, global_dc->option_enabled and
22098 global_dc->option_name.
22099 (process_options): Don't set global_dc fields here.
22100 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
22101 (diagnostic.o, opts.o, toplev.o): Update dependencies.
22103 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
22105 * config/picochip/picochip.md (movsi): Split a movsi from a
22106 const after reload.
22108 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22110 * ggc-zone.c: Update copyright year.
22111 (poison_region): Mark memory for Valgrind as undefined before
22112 memset () call and inaccessible afterwards.
22113 (ggc_pch_total_size): Change type of i to int.
22115 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22117 * ggc-common.c (ggc_free_overhead): Allow empty slot.
22119 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22121 * ggc-common.c: Update copyright year.
22122 (ggc_rlimit_bound): Remove prototype. Compile only if
22123 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
22124 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
22125 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
22126 (ggc_min_heapsize_heuristic): Likewise.
22128 2010-05-26 Richard Guenther <rguenther@suse.de>
22130 PR rtl-optimization/44164
22131 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
22132 no-common access-path disambiguation.
22133 (indirect_ref_may_alias_decl_p): Adjust.
22134 (indirect_refs_may_alias_p): Likewise.
22135 (refs_may_alias_p_1): Likewise.
22137 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22139 * c-typeck.c: Do not include expr.h.
22141 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22143 * rtl.h (decl_default_tls_model): Move prototype from here...
22144 * output.h: ...to here.
22145 * c-decl.c: Do not include rtl.h.
22146 * c-pragma.c: Likewise.
22147 * c-parser.c: Likewise.
22148 * c-gimplify.c: Likewise. And also not hard-reg-set.
22149 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
22150 FIXME note for it. Add a FIXME note for expr.h.
22151 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
22152 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
22155 2010-05-26 Jakub Jelinek <jakub@redhat.com>
22158 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
22159 or total_size is larger than red zone size for non-V4 ABI, emit a
22160 stack_tie resp. frame_tie insn before stack pointer restore.
22161 * config/rs6000/rs6000.md (frame_tie): New insn.
22163 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
22165 * function.h (struct function): Add can_throw_non_call_exceptions bit.
22166 * lto-streamer-in.c (input_function): Stream it in.
22167 * lto-streamer-out.c (output_function): Stream it out.
22168 * function.c (allocate_struct_function): Set it.
22169 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
22170 for flag_non_call_exceptions.
22171 * cfgbuild.c (control_flow_insn_p): Likewise.
22172 (make_edges): Likewise.
22173 * cfgexpand.c (expand_stack_alignment): Likewise.
22174 * combine.c (distribute_notes): Likewise.
22175 * cse.c (cse_extended_basic_block): Likewise.
22176 * except.c (insn_could_throw_p): Likewise.
22177 * gcse.c (simple_mem): Likewise.
22178 * ipa-pure-const.c (check_call): Likewise.
22179 (check_stmt ): Likewise.
22180 * lower-subreg.c (lower-subreg.c): Likewise.
22181 * optabs.c (emit_libcall_block): Likewise.
22182 (prepare_cmp_insn): Likewise.
22183 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
22184 * postreload.c (rest_of_handle_postreload): Likewise.
22185 * reload1.c (reload_as_needed): Likewise.
22186 (emit_input_reload_insns): Likewise.
22187 (emit_output_reload_insns): Likewise.
22188 (fixup_abnormal_edges): Likewise.
22189 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
22190 * store-motion.c (find_moveable_store): Likewise.
22191 * tree-eh.c (stmt_could_throw_p): Likewise.
22192 (tree_could_throw_p): Likewise.
22193 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22194 * config/arm/arm.c (arm_expand_prologue): Likewise.
22195 (thumb1_expand_prologue): Likewise.
22196 * config/rx/rx.md (cbranchsf4): Likewise.
22198 * config/s390/s390.c (s390_emit_prologue): Likewise.
22199 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
22200 (inline_forbidden_into_p): New predicate.
22201 (expand_call_inline): Use it to forbid inlining.
22202 (tree_can_inline_p): Likewise.
22204 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22206 * config/i386/i386-c.c: Do not include rtl.h.
22207 * config/i386/t-i386: Update dependencies.
22209 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22211 * attribs.c: Do not include rtl.h.
22212 * Makefile.in: Update dependencies.
22214 2010-05-25 Anatoly Sokolov <aesok@post.ru>
22216 * double-int.h (double_int_and): New.
22217 * combine.c (try_combine): Clean up, use double_int_* and
22218 immed_double_int_const functions.
22220 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22222 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
22223 stderr to /dev/null instead of grep -q.
22224 * configure: Regenerate.
22226 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22228 * Makefile.in (EXCEPT_H): Fix typo.
22230 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
22232 * ira-build.c (update_conflict_hard_reg_costs): New.
22233 (ira_build): Call update_conflict_hard_reg_costs.
22235 2010-05-25 Jakub Jelinek <jakub@redhat.com>
22238 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
22240 (intersect_loc_chains): Walk the s2var's loc_chain together
22241 with s1node chain as long as the locations are equal, don't
22242 call find_loc_in_1pdv in that case.
22245 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
22246 (copy_bind_expr): ... instead of here.
22247 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
22248 if the block hasn't been remapped.
22249 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
22250 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
22252 2010-05-25 Richard Guenther <rguenther@suse.de>
22254 PR middle-end/44069
22255 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
22256 out-of-bounds array accesses.
22258 2010-05-25 Richard Guenther <rguenther@suse.de>
22260 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
22261 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
22262 (run_gcc): Re-organize to make cleanup easier.
22264 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22266 * config/s390/s390.c (optimization_options): Fix and move the
22267 flag_prefetch_loop_arrays override ...
22268 (override_options): ... here.
22270 2010-05-25 Joseph Myers <joseph@codesourcery.com>
22272 * diagnostic.c: Don't include plugin.h.
22273 (diagnostic_report_diagnostic): Don't handle plugins specially
22274 here. Pass context to internal_error callback.
22275 * diagnostic.h (struct diagnostic_context): Add context parameter
22276 to internal_error callback.
22277 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
22278 * plugin.h (struct diagnostic_context): Declare.
22279 (warn_if_plugins, plugins_internal_error_function): Declare.
22280 * toplev.c (general_init): Set global_dc->internal_error.
22281 * Makefile.in (diagnostic.o): Update dependencies.
22283 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
22285 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
22286 * config/rs6000/t-darwin64: New.
22287 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
22290 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
22293 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
22294 match the original (and intended) behaviour before r159557. This
22295 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
22298 2010-05-25 Richard Guenther <rguenther@suse.de>
22300 * doc/invoke.texi: Document -Ofast.
22301 * target.h (struct gcc_target): Add handle_ofast.
22302 * target-def.h (TARGET_HANDLE_OFAST): Add.
22303 (TARGET_INITIALIZER): Adjust.
22304 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
22305 * common.opt (Ofast): Add.
22307 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
22309 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
22310 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
22312 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
22315 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
22316 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
22317 false_rtx. Use false_rtx to compute the correct *ptest for reversed
22318 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
22320 2010-05-25 Jakub Jelinek <jakub@redhat.com>
22322 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
22323 DW_OP_minus with negated offset instead of DW_OP_plus.
22324 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
22326 2010-05-25 Wei Guozhi <carrot@google.com>
22328 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
22329 tst instruction and a new alternative.
22330 * config/arm/constraints.md (Pu): New constraint.
22332 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
22334 * function.c (assign_stack_local_1): Initialize variable
22335 to avoid warning when bootstrapping at -O3.
22337 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
22339 * configure.ac (all_lang_makefiles): Remove everything related to it.
22340 * configure: Regenerate.
22341 * Makefile.in: Fix reference to ada Make-lang.in.
22342 Remove support for LANG_MAKEFILES.
22344 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
22345 Sandra Loosemore <sandra@codesourcery.com>
22347 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
22348 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
22349 description. Add arm_neon_fp16_ok.
22350 (Add Options): Add arm_neon and arm_neon_fp16.
22352 2010-05-24 Joseph Myers <joseph@codesourcery.com>
22354 * diagnostic.c: Don't include flags.h.
22355 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
22356 context parameters. Check flags in the context passed as a parameter.
22357 (diagnostic_build_prefix): Add context parameter. Check
22358 show_column flag in context.
22359 (diagnostic_action_after_output): Check fatal_errors flag in context.
22360 (diagnostic_report_current_module): Check show_column flag in context.
22361 (default_diagnostic_starter): Update call to
22362 diagnostic_build_prefix.
22363 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
22364 (emit_diagnostic): Pass context to permissive_error_kind.
22365 (permerror): Pass context to permissive_error_kind.
22366 * diagnostic.h (struct diagnostic_context): Add show_column,
22367 pedantic_errors, permissive and fatal_errors fields.
22368 (diagnostic_build_prefix): Update prototype.
22370 * toplev.c (process_options): Set flags in global_dc from
22371 flag_show_column, flag_pedantic_errors, flag_permissive,
22373 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
22374 to diagnostic_build_prefix.
22375 * Makefile.in (diagnostic.o): Update dependencies.
22377 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
22379 * config/i386/ia32intrin.h (__crc32q): Define only if
22380 __SSE4_2__ is defined.
22382 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
22385 PR middle-end/43602
22386 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
22387 DECL_VISIBILITY_SPECIFIED.
22388 (emutls_decl): Set DECL_PRESERVE_P and copy
22389 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
22390 (emutls_finalize_control_var): New callback.
22391 (emutls_finish): Finalize emutls control variables.
22392 * toplev.c (compile_file): Move the call to emutls_finish ()
22393 before varpool_assemble_pending_decls ().
22395 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
22397 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
22398 added to the preprocessor condition.
22400 2010-05-24 Paul Brook <paul@codesourcery.com>
22402 * gengtype-lex.l: Add HARD_REG_SET.
22403 * expr.c (expand_expr_real_1): Record writes to hard registers.
22404 * function.c (rtl_data): Add asm_clobbers.
22405 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
22406 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
22407 Use crtl->asm_clobbers.
22409 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22411 * doc/makefile.texi (Makefile): Mention stages 'profile'
22412 and 'feedback' for profiledbootstrap.
22414 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
22417 * config/i386/i386.c (def_builtin): Properly check
22418 OPTION_MASK_ISA_64BIT.
22420 2010-05-23 Joseph Myers <joseph@codesourcery.com>
22422 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
22423 typedefs with different but compatible types. Allow duplicate
22424 typedefs with the same type except for pedantic non-C1X, but give
22425 warning for variably modified types.
22426 * c-typeck.c (tagged_types_tu_compatible_p,
22427 function_types_compatible_p, type_lists_compatible_p,
22428 comptypes_internal): Add parameter different_types_p; set
22429 *different_types_p for different but compatible types. All
22431 (comptypes_check_different_types): New.
22432 * c-tree.h (comptypes_check_different_types): Declare.
22434 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
22436 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
22437 * jump.c: Include basic-block.h.
22438 * profile.c: Likewise.
22439 * tree-profile.c: Likewise.
22440 * coverage.c: Likewise.
22441 * basic-block.h (optimize_function_for_size_p): Move to function.h.
22442 (optimize_function_for_speed_p): Likewise.
22443 * function.h (optimize_function_for_size_p,
22444 optimize_function_for_speed_p): Moved here from basic-block.h.
22445 * Makefile.in: Update dependencies.
22447 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22449 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
22450 before calling make; allow override through $MAKE.
22451 * doc/invoke.texi (Optimize Options): Document override.
22453 2010-05-23 Anatoly Sokolov <aesok@post.ru>
22455 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
22456 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22457 (rs6000_mode_dependent_address_ptr): Make static.
22458 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22459 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
22462 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
22465 * config/i386/i386.c: Make sure that the correct regparm is passed.
22467 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
22469 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
22470 * sbitmap.c: ...to here to internalize sbitmap element access.
22471 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
22472 Explain why basic-block.h is included.
22473 * function.h: Include tm.h for CUMULATIVE_ARGS.
22474 * Makefile.in: Update dependencies.
22476 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
22478 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
22480 * sbitmap.h (struct sbitmap_def): Do not typedef here.
22481 * sbitmap.c: Include sbitmap.h.
22482 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
22483 hard-reg-set.h. Split everything related to regsets out from here...
22484 * regset.h: ...to here. New file.
22485 * df.h: Include regset.h and sbitmap.h.
22486 * tree-flow.h: Likewise.
22487 * cfgloop.h: Likewise.
22488 * except.h: Do not include sbitmap.h. Include hashtab.h.
22489 * cgraph.h: Include vec.h and function.h.
22490 * reload.h (struct insn_chain): Change types of live_throughout
22491 and dead_or_set from regset_head to bitmap_head.
22492 (compute_use_by_pseudos): Be defined also if regset.h is not included.
22493 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
22494 spilled_regs from regset_head to bitmap_head to avoid dependency
22496 * sel-sched-ir.h: Include regset.h.
22497 * reload.c: Include df.h before reload.h.
22498 * caller-save.c: Likewise.
22499 * reload1.c: Likewise.
22501 (mark_elimination): Update type of r to bitmap, consistent with
22503 * dominance.c: Include bitmap.h.
22504 * modulo-sched.c: Include df.h.
22505 * cfganal.c: Include bitmap.h and sbitmap.h.
22506 * cfgbuild.c: Include sbitmap.h.
22507 * lcm.c: Include sbitmap.h.
22508 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
22509 * domwalk.c: Include sbitmap.h, exclude ggc.h.
22510 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
22511 * cselib.c: Include bitmap.h.
22512 * tree-optimize.c: Include regset.h.
22513 * stmt.c: Include bitmap.h.
22514 * Makefile.in: Update dependencies.
22516 2010-05-22 Jan Hubicka <jh@suse.cz>
22518 * cgraph.h (struct varpool_node): Add same_comdat_group.
22519 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
22521 (output_varpool): Update call of lto_output_varpool_node.
22522 (input_varpool): Read same_comdat_group pointer.
22523 (input_varpool_1): Fixup same_comdat_group pointer.
22524 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
22525 group is needed, all are.
22526 * varpool.c (varpool_remove_node): Remove node from same comdat group
22528 (varpool_analyze_pending_decls): Walk same comdat groups.
22530 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
22532 * rtl.h (union rtunion_def): Remove rt_bit member.
22533 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
22534 * print-rtl (print_rtx): Do not print the member.
22535 * gengtype.c (adjust_field_rtx_def): Do not handle it.
22536 * gengenrtl.c (type_from_format): Likewise.
22537 (accessor_from_format): Likewise.
22539 2010-05-22 Joseph Myers <joseph@codesourcery.com>
22541 * dbgcnt.c: Include toplev.h instead of errors.h.
22542 * ira-emit.c: Don't include errors.h.
22543 * ira.c: Include toplev.h instead of errors.h.
22544 * lto-compress.c: Include toplev.h instead of errors.h.
22545 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
22546 ira.o, dbgcnt.o): Update dependencies.
22548 2010-05-22 Richard Guenther <rguenther@suse.de>
22550 * gimple.c (gimple_types_compatible_p): Check type qualifications
22551 before merging pointer to complete and pointer to incomplete type.
22552 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
22553 we use our own resolution algorithm. The gold linker plugin
22554 doesn't do the job we want it to do here.
22556 2010-05-22 Anatoly Sokolov <aesok@post.ru>
22558 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22559 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22560 (sparc_mode_dependent_address_p): New function.
22562 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22564 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
22566 * timevar.c: Do not include any core headers.
22567 (timevar_print): De-i18n-ize.
22568 (print_time): Likewise.
22569 * timevar.h (timevar_push, timevar_pop): Make inline functions.
22571 2010-05-21 Joseph Myers <joseph@codesourcery.com>
22573 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
22575 (diagnostic_initialize): Initialize x_data not last_function.
22576 (diagnostic_report_current_function): Move to tree-diagnostic.c.
22577 (default_diagnostic_starter): Call
22578 diagnostic_report_current_module not
22579 diagnostic_report_current_function.
22580 (diagnostic_report_diagnostic): Initialize x_data not
22582 (verbatim): Likewise.
22583 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
22585 (struct diagnostic_context): Change last_function to x_data.
22586 (diagnostic_auxiliary_data): Replace with
22587 diagnostic_context_auxiliary_data and
22588 diagnostic_info_auxiliary_data.
22589 (diagnostic_last_function_changed, diagnostic_set_last_function,
22590 diagnostic_report_current_function): Move to tree-diagnostic.h.
22591 (print_declaration, dump_generic_node, print_generic_stmt,
22592 print_generic_stmt_indented, print_generic_expr,
22593 print_generic_decl, debug_c_tree, dump_omp_clauses,
22594 print_call_name, debug_generic_expr, debug_generic_stmt,
22595 debug_tree_chain, default_tree_printer): Move to
22596 tree-pretty-print.h.
22597 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
22598 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
22599 gimple-pretty-print.h.
22600 * pretty-print.c: Don't include tree.h
22601 (pp_base_format): Don't handle %K here.
22602 (pp_base_tree_identifier): Move to tree-pretty-print.c.
22603 * pretty-print.h (text_info): Change abstract_origin to x_data.
22604 (pp_tree_identifier, pp_unsupported_tree,
22605 pp_base_tree_identifier): Move to tree-pretty-print.h.
22606 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
22607 tree-pretty-print.h: New files.
22608 * tree-pretty-print.c: Include tree-pretty-print.h.
22609 (percent_K_format): New. Moved from pretty-print.c.
22610 (pp_base_tree_identifier): Move from pretty-print.c.
22611 * c-objc-common.c: Include tree-pretty-print.h.
22612 (c_tree_printer): Handle %K here.
22613 * langhooks.c: Include tree-diagnostic.h.
22614 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
22615 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
22616 (default_tree_printer): Handle %K using percent_K_format.
22617 (general_init): Use default_tree_diagnostic_starter.
22618 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
22619 (free_lang_data): Use default_tree_diagnostic_starter.
22620 * c-pretty-print.c: Include tree-pretty-print.h.
22621 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22622 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22623 * dwarf2out.c: Include tree-pretty-print.h.
22624 * except.c: Include tree-pretty-print.h.
22625 * gimple-pretty-print.c: Include tree-pretty-print.h and
22626 gimple-pretty-print.h.
22627 * gimplify.c: Include tree-pretty-print.h.
22628 * graphite-poly.c: Include tree-pretty-print.h and
22629 gimple-pretty-print.h.
22630 * ipa-cp.c: Include tree-pretty-print.h.
22631 * ipa-inline.c: Include gimple-pretty-print.h.
22632 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22633 * ipa-pure-const.c: Include gimple-pretty-print.h.
22634 * ipa-struct-reorg.c: Include tree-pretty-print.h and
22635 gimple-pretty-print.h.
22636 * ipa-type-escape.c: Include tree-pretty-print.h.
22637 * print-rtl.c: Include tree-pretty-print.h.
22638 * print-tree.c: Include gimple-pretty-print.h.
22639 * sese.c: Include tree-pretty-print.h.
22640 * tree-affine.c: Include tree-pretty-print.h.
22641 * tree-browser.c: Include tree-pretty-print.h.
22642 * tree-call-cdce.c: Include gimple-pretty-print.h.
22643 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22644 * tree-chrec.c: Include tree-pretty-print.h.
22645 * tree-data-ref.c: Include tree-pretty-print.h and
22646 gimple-pretty-print.h.
22647 * tree-dfa.c: Include tree-pretty-print.h.
22648 * tree-if-conv.c: Include tree-pretty-print.h and
22649 gimple-pretty-print.h.
22650 * tree-inline.c: Include tree-pretty-print.h.
22651 * tree-into-ssa.c: Include tree-pretty-print.h and
22652 gimple-pretty-print.h.
22653 * tree-nrv.c: Include tree-pretty-print.h.
22654 * tree-object-size.c: Include tree-pretty-print.h and
22655 gimple-pretty-print.h.
22656 * tree-outof-ssa.c: Include tree-pretty-print.h and
22657 gimple-pretty-print.h.
22658 * tree-parloops.c: Include tree-pretty-print.h and
22659 gimple-pretty-print.h.
22660 * tree-predcom.c: Include tree-pretty-print.h and
22661 gimple-pretty-print.h.
22662 * tree-scalar-evolution.c: Include tree-pretty-print.h and
22663 gimple-pretty-print.h.
22664 * tree-sra.c: Include tree-pretty-print.h.
22665 * tree-ssa-address.c: Include tree-pretty-print.h.
22666 * tree-ssa-alias.c: Include tree-pretty-print.h.
22667 * tree-ssa-ccp.c: Include tree-pretty-print.h and
22668 gimple-pretty-print.h.
22669 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
22670 * tree-ssa-copy.c: Include tree-pretty-print.h and
22671 gimple-pretty-print.h.
22672 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
22673 * tree-ssa-dce.c: Include tree-pretty-print.h and
22674 gimple-pretty-print.h.
22675 * tree-ssa-dom.c: Include tree-pretty-print.h and
22676 gimple-pretty-print.h.
22677 * tree-ssa-dse.c: Include gimple-pretty-print.h.
22678 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
22679 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
22680 * tree-ssa-live.c: Include tree-pretty-print.h and
22681 gimple-pretty-print.h.
22682 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
22683 gimple-pretty-print.h.
22684 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
22685 gimple-pretty-print.h.
22686 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
22687 gimple-pretty-print.h.
22688 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
22689 gimple-pretty-print.h.
22690 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
22691 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
22692 * tree-ssa-operands.c: Include tree-pretty-print.h and
22693 gimple-pretty-print.h.
22694 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
22695 gimple-pretty-print.h.
22696 * tree-ssa-pre.c: Include tree-pretty-print.h and
22697 gimple-pretty-print.h.
22698 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
22699 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
22700 gimple-pretty-print.h.
22701 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
22702 gimple-pretty-print.h.
22703 * tree-ssa-sink.c: Include gimple-pretty-print.h.
22704 * tree-ssa-ter.c: Include tree-pretty-print.h and
22705 gimple-pretty-print.h.
22706 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
22707 * tree-ssa.c: Include tree-pretty-print.h and
22708 gimple-pretty-print.h.
22709 * tree-stdarg.c: Include gimple-pretty-print.h.
22710 * tree-switch-conversion.c: Include gimple-pretty-print.h.
22711 * tree-tailcall.c: Include tree-pretty-print.h and
22712 gimple-pretty-print.h.
22713 * tree-vect-data-refs.c: Include tree-pretty-print.h and
22714 gimple-pretty-print.h.
22715 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
22716 gimple-pretty-print.h.
22717 * tree-vect-loop.c: Include tree-pretty-print.h and
22718 gimple-pretty-print.h.
22719 * tree-vect-patterns.c: Include gimple-pretty-print.h.
22720 * tree-vect-slp.c: Include tree-pretty-print.h and
22721 gimple-pretty-print.h.
22722 * tree-vect-stmts.c: Include tree-pretty-print.h and
22723 gimple-pretty-print.h.
22724 * tree-vectorizer.c: Include tree-pretty-print.h.
22725 * tree-vrp.c: Include tree-pretty-print.h and
22726 gimple-pretty-print.h.
22727 * value-prof.c: Include tree-pretty-print.h and
22728 gimple-pretty-print.h.
22729 * var-tracking.c: Include tree-pretty-print.h.
22730 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
22731 (tree-diagnostic.o): New dependencies.
22732 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
22733 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
22734 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
22735 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
22736 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
22737 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
22738 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
22739 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
22740 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
22741 tree-ssa-address.o, tree-ssa-loop-niter.o,
22742 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
22743 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
22744 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
22745 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
22746 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
22747 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
22748 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
22749 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
22750 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
22751 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
22752 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
22753 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
22754 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
22755 tree-switch-conversion.o, var-tracking.o, value-prof.o,
22756 cfgexpand.o, pretty-print.o): Update dependencies.
22758 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
22760 * tree-ssa-structalias.c: Remove tm_p.h from include.
22762 2010-05-21 Jeff Law <law@redhat.com>
22764 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
22766 2010-05-21 Jason Merrill <jason@redhat.com>
22768 * tree-eh.c (cleanup_is_dead_in): New.
22769 (lower_try_finally): Don't generate a dead cleanup region.
22770 (lower_cleanup): Likewise.
22772 2010-05-21 Jakub Jelinek <jakub@redhat.com>
22775 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
22776 unchain each use from the cyclic next_regno_use chain first.
22778 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22780 * real: Do not include gmp.h, mpfr.h, and mpc.h.
22781 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
22782 (real_value_negate, real_value_abs): New prototypes.
22783 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
22784 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
22785 new include file for interface between MPFR and REAL_VALUE_TYPE.
22786 * real.c: Include realmpfr.h.
22787 (real_arithmetic2): Remove legacy function.
22788 (real_value_negate): New.
22789 (real_value_abs): New.
22790 (mfpr_from_real, real_from_mpfr): Move from here...
22791 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
22792 * builtins.c: Include realmpfr.h.
22793 * fold-const.c: Include realmpfr.h.
22794 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
22795 (fold_negate_const): Likewise.
22796 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
22797 * toplev.c: Include realmpfr.h.
22798 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
22799 and real_value_negate.
22800 * fixed-value.c (check_real_for_fixed_mode): Likewise.
22801 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
22802 (vfp3_const_double_index): Likewise.
22803 (arm_print_operand): Likewise.
22804 * Makefile.in: Update dependencies.
22806 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22808 * config/s390/s390.c (override_options): Increase the default
22809 of max-completely-peel-times.
22811 2010-05-21 Julian Brown <julian@codesourcery.com>
22812 Mark Mitchell <mark@codesourcery.com>
22814 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
22815 sibling calls for Thumb-1.
22816 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
22817 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
22819 (*call_insn, *call_value_insn): Don't use for Thumb-2.
22820 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
22822 (return): New expander.
22823 (*arm_return): New name for ARM return insn.
22824 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
22826 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
22828 * config.gcc (sparc64-*-rtems*): New target.
22830 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
22832 * tree.c (build_function_decl_skip_args): Fix grammar.
22833 (build_function_type_list_1): Fix typos, adjust formatting.
22835 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22837 * tree.h: Include real.h and fixed-value.h as basic datatypes.
22838 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
22839 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
22840 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
22841 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
22842 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
22843 tree-pretty-print.c, tree-loop-distribution.c,
22844 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
22845 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
22846 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
22847 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
22848 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
22849 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
22850 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
22851 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
22852 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
22853 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
22854 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
22855 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
22856 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
22857 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
22858 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
22859 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
22860 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
22861 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
22862 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
22863 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
22864 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
22865 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
22866 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
22867 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
22868 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
22869 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
22870 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
22871 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
22872 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
22873 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
22874 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
22875 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
22876 config/score/score7.c, config/score/score.c, config/arm/arm.c,
22877 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
22878 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
22879 config/bfin/bfin.c: Clean up redundant includes.
22880 * Makefile.in: Update accordingly.
22882 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
22884 PR middle-end/44204
22885 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
22886 statement has no arguments.
22888 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
22891 * varasm.c (emutls_decl): Merge attributes to new decl.
22893 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
22895 PR middle-end/44101
22896 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
22897 around the uniquized constructor if its type requires a conversion.
22899 2010-05-21 Jakub Jelinek <jakub@redhat.com>
22902 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
22903 at -O0 goto_locus of any of the incoming edges differs from
22904 goto_locus of outgoing edge, or gimple_location of any of the
22907 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
22909 * ira.c (ira_non_ordered_class_hard_regs): Define.
22910 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
22911 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
22912 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
22913 cost of unaligned hard regs when allocating multi-reg pseudos.
22915 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
22917 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
22918 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
22919 for TARGET_NO_FLOAT.
22920 * config/mips/mips.c (mips_file_start): Expand conditional expression
22921 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
22922 (mips_override_options): Move -mno-float override -msoft-float and
22924 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
22925 Condition(TARGET_SUPPORTS_NO_FLOAT).
22926 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
22927 __mips_no_float here.
22928 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
22929 (TARGET_SUPPORTS_NO_FLOAT): Define.
22930 * config/mips/sdemtk.opt: Delete.
22932 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
22934 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
22936 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
22939 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
22940 * configure: Regenerate.
22941 * config.in: Regenerate.
22942 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
22943 instead of sahf only for 64bit targets.
22945 2010-05-20 Jakub Jelinek <jakub@redhat.com>
22948 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
22949 setup_ref_regs for DEBUG_INSNs.
22951 2010-05-20 Jan Hubicka <jh@suse.cz>
22953 PR middle-end/44197
22954 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
22956 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
22959 * df-scan.c (df_ref_compare): Stabilize sort.
22961 2010-05-20 Jakub Jelinek <jakub@redhat.com>
22963 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
22964 argument. Don't use DW_OP_piece if offset is non-zero,
22965 put offset into second DW_OP_bit_piece argument.
22966 (dw_sra_loc_expr): Adjust callers. For memory expressions
22969 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
22972 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
22973 settings for 16-bit-constant "addo" alternative.
22975 2010-05-19 James E. Wilson <wilson@codesourcery.com>
22977 * config/mips/mips-dsp.md (add<DSPV:mode>3,
22978 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
22981 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
22982 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
22985 2010-05-19 Joseph Myers <joseph@codesourcery.com>
22987 * diagnostic.c (FLOAT, FFS): Don't undefine.
22988 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
22989 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
22992 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
22994 * combine.c (propagate_for_debug): Call make_compound_operation
22995 on the source value.
22996 (try_combine): When implementing a split chosen by find_split_point,
22997 either copy i2src or set it to null. Assert that i2src is not null
22998 before substituting into CALL_INSN_FUNCTION_USAGE.
23000 2010-05-19 Anatoly Sokolov <aesok@post.ru>
23002 * double-int.h (double_int_ior): New function.
23003 * tree.h (build_int_cst_wide_type): Remove.
23004 * tree.c (build_int_cst_wide_type): Remove.
23005 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
23006 of build_int_cst_wide_type.
23007 * stor-layout.c (set_sizetype): (Ditto.).
23008 * dojump.c (do_jump): Use build_int_cstu instead of
23009 build_int_cst_wide_type.
23011 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
23013 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
23014 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
23015 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
23016 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
23017 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
23018 propagate the 'data' argument to copy_tree_r.
23019 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
23020 Propagate 'data' argument to walk_tree.
23021 (copy_if_shared): New function.
23022 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
23023 (unmark_visited): New function.
23024 (unshare_body): Call copy_if_shared instead of doing it manually.
23025 (unvisit_body): Call unmark_visited instead of doing it manually.
23027 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
23029 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
23030 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
23031 * hooks.c: Likewise.
23032 * target-def.h (TARGET_FOLD_BUILTIN): Define to
23033 hook_tree_tree_int_treep_bool_null.
23034 * target.h (struct gcc_target): Update signature of fold_builtin
23036 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
23037 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
23038 instead of the call expression.
23039 (fold_builtin_call_array): Pass n and argarray directly.
23040 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
23042 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
23043 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
23044 `i' and use it in place of `arity'.
23045 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
23046 Dereference `args' directly.
23047 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
23049 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23051 * doc/sourcebuild.texi (Effective-Target Keywords): Document
23053 (Directives): Document optional dg-require-effective-target
23056 2010-05-19 Richard Guenther <rguenther@suse.de>
23059 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
23061 2010-05-19 Richard Guenther <rguenther@suse.de>
23063 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
23064 * common.opt (fwhopr=): New.
23065 * opts.c (common_handle_option): Handle OPT_fwhopr.
23066 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
23067 * collect2.c (main): Match -fwhopr*.
23068 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
23069 Execute ltrans stage in parallel when jobs is bigger than 1.
23071 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23073 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
23074 pentiumpro on Solaris 8/x86 with Sun as.
23075 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
23077 (gcc_cv_as_ix86_quad): Check for .quad directive.
23078 * configure: Regenerate.
23079 * config.in: Regenerate.
23080 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
23082 2010-05-19 Martin Jambor <mjambor@suse.cz>
23084 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
23085 also for indirect edges. Actual printing moved...
23086 (ipa_print_node_jump_functions_for_edge): ...here.
23087 (ipa_compute_jump_functions): Renamed to
23088 ipa_compute_jump_functions_for_edge and made static.
23089 (ipa_compute_jump_functions): New function.
23090 (make_edge_direct_to_target): Check if the number of arguments on
23091 the newly direct edge is the same as the number of parametrs of
23093 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
23094 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
23095 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
23096 analysis functions unconditionally, call the new
23097 ipa_analyze_params_uses on the node instead of every edge.
23099 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
23101 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
23103 (dump_mem_ref): Adopt debug code to handle a tree as step. This
23104 also checks for a constant int vs. non-constant but
23105 loop-invariant steps.
23106 (find_or_create_group): Change the sort algorithm to only consider
23107 steps that are constant ints.
23108 (idx_analyze_ref): Adopt code to handle a tree instead of a
23109 HOST_WIDE_INT for step.
23110 (gather_memory_references_ref): Handle tree instead of int and be
23111 prepared to see a NULL_TREE.
23112 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
23113 prefetches if the step cannot be calculated at compile time.
23114 (issue_prefetch_ref): Issue prefetches for non-constant but
23115 loop-invariant steps.
23117 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23120 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23122 * tree.h (build_call_list): Remove.
23123 * tree.c (build_call_list): Remove.
23125 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23127 * tree.h (build_call_list): Remove.
23128 * tree.c (build_call_list): Remove.
23130 2010-05-18 Jan Hubicka <jh@suse.cz>
23132 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
23134 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
23136 PR rtl-optimization/43332
23137 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
23139 2010-05-18 Anatoly Sokolov <aesok@post.ru>
23141 * tree.h (build_int_cstu): Implement as static inline.
23142 * tree.c (build_int_cstu): Remove function.
23143 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
23146 2010-05-18 Richard Guenther <rguenther@suse.de>
23149 * lto-wrapper.c (verbose): New variable. Initialize from -v.
23150 (debug): Initialize from -save-temps.
23151 (collect_execute): Print command-line when verbose.
23152 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
23153 for ltrans invocation. Produce -dumpbase flag again.
23154 (process_args): Remove.
23156 * collect2.c (maybe_run_lto_and_relink): Only pass object
23157 files to lto-wrapper.
23158 * gcc.c (LINK_COMMAND_SPEC): Likewise.
23160 2010-05-18 Jan Hubicka <jh@suse.cz>
23162 * opts.c (decode_options): Do not disable whopr at ipa_cp.
23163 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
23165 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
23168 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
23170 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
23173 2010-05-18 Jakub Jelinek <jakub@redhat.com>
23176 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
23177 rtx_equal_p inline.
23179 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
23181 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
23182 lto-macho as lto_binary_reader.
23184 * darwin.c (darwin_asm_named_section): Do not add assembler comment
23185 after .section directive; just print it before the directive instead.
23187 2010-05-17 Jan Hubicka <jh@suse.cz>
23189 * cgraph.c (cgraph_create_virtual_clone): Only check
23190 versionable_function_p when not in wpa and checking is enabled.
23191 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
23192 there are no more functions to materialize.
23194 2010-05-17 Jan Hubicka <jh@suse.cz>
23196 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
23197 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
23199 (output_cgraph): Call output_cgraph_opt_summary.
23200 (input_cgrpah): Call input_cgraph_opt_summary.
23201 (output_cgraph_opt_summary_p, output_node_opt_summary,
23202 input_node_opt_summary, input_cgraph_opt_section): New functions.
23203 * lto-section-in.c (lto_section_name): Add cgraphopt.
23204 * tree-inline.c (tree_function_versioning): Handle parm_num.
23205 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
23206 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
23208 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
23210 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
23211 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
23212 the insn to prefetch ratio heuristic to loops with known trip count.
23214 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
23216 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
23217 (schedule_prefetches): Do not generate a prefetch if the unroll factor
23218 is far from what is required by the prefetch.
23220 2010-05-17 Jan Hubicka <jh@suse.cz>
23222 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
23223 (ipcp_estimate_growth): Likewise.
23224 (ipcp_const_param_count): Likewise.
23225 (ipcp_insert_stage): Likewise.
23226 * ipa-prop.c (visit_load_for_mod_analysis): New function.
23227 (visit_store_addr_for_mod_analysis): Set used flag.
23228 (ipa_detect_param_modifications): Set used flag for SSE params;
23229 update use of walk_stmt_load_store_addr_ops.
23230 (ipa_print_node_params): Print used flag.
23231 (ipa_write_node_info): Stream used flag.
23232 (ipa_read_node_info): Likewise.
23233 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
23234 (ipa_is_param_used): New function.
23235 (lto_ipa_fixup_call_notes): Remove unused declaration.
23237 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23240 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
23241 * configure: Regenerate.
23242 * config.in: Regenerate.
23243 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
23244 !HAVE_AS_IX86_REP_LOCK_PREFIX.
23245 Don't emit whitespace.
23246 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
23247 (*rep_movsi): Likewise.
23248 (*rep_movsi_rex64): Likewise.
23249 (*rep_movqi): Likewise.
23250 (*rep_movqi_rex64): Likewise.
23251 (*rep_stosdi_rex64): Likewise.
23252 (*rep_stossi): Likewise.
23253 (*rep_stossi_rex64): Likewise.
23254 (*rep_stosqi): Likewise.
23255 (*rep_stosqi_rex64): Likewise.
23256 (*cmpstrnqi_nz_1): Use {%;} after repz.
23257 (*cmpstrnqi_nz_rex_1): Likewise.
23258 (*cmpstrnqi_1): Likewise.
23259 (*cmpstrnqi_rex_1): Likewise.
23260 (*strlenqi_1): Use {%;} after repnz.
23261 (*strlenqi_rex_1): Likewise.
23262 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
23263 (*sync_compare_and_swap<mode>): Likewise.
23264 (sync_double_compare_and_swap<mode>): Likewise.
23265 (*sync_double_compare_and_swapdi_pic): Likewise.
23266 (sync_old_add<mode>): Likewise.
23267 (sync_add<mode>): Likewise.
23268 (sync_sub<mode>): Likewise.
23269 (sync_<code><mode>): Likewise.
23271 2010-05-17 Martin Jambor <mjambor@suse.cz>
23273 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
23274 otr_token and polymorphic.
23275 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
23276 (cgraph_clone_edge): Copy the above fields.
23277 * tree.c (get_binfo_at_offset): New function.
23278 * tree.h (get_binfo_at_offset): Declare.
23279 * ipa-prop.h (enum jump_func_type): Added known_type jump function
23280 type, reordered items, updated comments.
23281 (union jump_func_value): Added base_type field, reordered fields.
23282 (enum ipa_lattice_type): Moved down in the file.
23283 (struct ipa_param_descriptor): New field polymorphic.
23284 (ipa_is_param_polymorphic): New function.
23285 * ipa-prop.c: Include gimple.h and gimple-fold.h.
23286 (ipa_print_node_jump_functions): Print known type jump functions.
23287 (compute_complex_pass_through): Renamed to...
23288 (compute_complex_assign_jump_func): this.
23289 (compute_complex_ancestor_jump_func): New function.
23290 (compute_known_type_jump_func): Likewise.
23291 (compute_scalar_jump_functions): Create known type and complex ancestor
23293 (ipa_note_param_call): New parameter polymorphic, set the corresponding
23294 flag in the call note accordingly.
23295 (ipa_analyze_call_uses): Renamed to...
23296 (ipa_analyze_indirect_call_uses): this. New parameter target, define
23297 variable var only in the block where it is used.
23298 (ipa_analyze_virtual_call_uses): New function.
23299 (ipa_analyze_call_uses): Likewise.
23300 (combine_known_type_and_ancestor_jfs): Likewise.
23301 (update_jump_functions_after_inlining): Implemented handling of a
23302 number of new jump function types combination.
23303 (print_edge_addition_message): Removed.
23304 (make_edge_direct_to_target): New function.
23305 (try_make_edge_direct_simple_call): Likewise.
23306 (try_make_edge_direct_virtual_call): Likewise.
23307 (update_call_notes_after_inlining): Renamed to...
23308 (update_indirect_edges_after_inlining): this. Moved edge creation for
23309 indirect calls to try_make_edge_direct_simple_call, also calls
23310 try_make_edge_direct_virtual_call for virtual calls.
23311 (ipa_print_node_params): Changed the header message.
23312 (ipa_write_jump_function): Stream also known type jump functions.
23313 (ipa_read_jump_function): Likewise.
23314 (ipa_write_indirect_edge_info): Stream new fields in
23315 cgraph_indirect_call_info.
23316 (ipa_read_indirect_edge_info): Likewise.
23317 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
23320 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23322 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
23324 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
23326 * tree.h (CALL_EXPR_ARGS): Delete.
23327 (call_expr_arglist): Delete.
23328 * tree.c (call_expr_arglist): Delete.
23329 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
23330 targetm.fold_builtin.
23331 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
23332 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
23333 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
23334 arglist parameter. Use CALL_EXPR_ARG.
23335 (picochip_expand_builtin_3op): Likewise.
23336 (picochip_expand_builtin_2opvoid): Likewise.
23337 (picochip_expand_array_get): Likewise.
23338 (picochip_expand_array_put): Likewise.
23339 (picochip_expand_array_testport): Likewise.
23340 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
23341 rather than arglist.
23342 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
23344 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
23345 than TREE_VALUE and TREE_CHAIN.
23346 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
23347 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
23350 2010-05-17 Jakub Jelinek <jakub@redhat.com>
23353 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
23354 to have no fallthru edge.
23356 PR middle-end/44102
23357 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
23358 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
23359 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
23360 add BARRIER after previous bb if needed.
23362 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
23364 * tree.c (build_function_type_list_1): Remove bogus assert condition.
23366 2010-05-17 Alan Modra <amodra@gmail.com>
23368 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
23369 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
23370 with copy_reg rtx param.
23371 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
23372 Correct cases where code for ABI_V4 did not initialise the reg
23373 used to access frame. Also leave frame_reg_rtx as sp for large
23374 frames that save no regs.
23376 2010-05-17 Martin Jambor <mjambor@suse.cz>
23378 PR middle-end/44133
23379 * tree-sra.c (create_access_replacement): New parameter rename, mark
23380 the replaement for renaming only when it is true.
23381 (get_access_replacement): Pass true in the rename parameter of
23382 create_access_replacement.
23383 (get_unrenamed_access_replacement): New function.
23384 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
23385 replacement declaration from it.
23387 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
23389 * function.c (try_fit_stack_local, add_frame_space): New static
23391 (assign_stack_local_1): Use them. Look for opportunities to use
23392 space previously wasted on alignment.
23393 * function.h (struct frame_space): New.
23394 (struct rtl_data): Add FRAME_SPACE_LIST member.
23395 * reload1.c (something_was_spilled): New static variable.
23396 (alter_reg): Set it.
23397 (reload): Test it in addition to testing if the frame size changed.
23399 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
23401 * config/s390/s390.c: Define sane prefetch settings and activate
23402 flag_prefetch_loop_arrays on -O3.
23403 * config/s390/s390.h: Declare that read can use write prefetch.
23405 2010-05-17 Jakub Jelinek <jakub@redhat.com>
23407 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
23410 2010-05-16 Jan Hubicka <jh@suse.cz>
23412 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
23413 function body; do not check stdarg field of struct function.
23415 2010-05-16 Jan Hubicka <jh@suse.cz>
23417 * cgraph.c (dump_cgraph_node): Dump versionable flag.
23418 * cgraph.h (cgraph_local_info): Add versionable flag.
23419 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
23420 (ipcp_versionable_function_p): Use it.
23421 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
23424 2010-05-16 Jan Hubicka <jh@suse.cz>
23426 * cgraph.c (cgraph_clone_node): Take decl argument and insert
23427 clone into hash when it is different from orig.
23428 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
23429 * cgraph.h (cgraph_clone_node): Update prototype.
23430 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
23431 (lto_cgraph_encoder_delete): Delete body map.
23432 (lto_cgraph_encoder_size): Move to header.
23433 (lto_cgraph_encoder_encode_body_p,
23434 lto_set_cgraph_encoder_encode_body): New.
23435 (lto_output_node): Do not take written_decls argument; output clone_of
23437 (add_node_to): Add include_body_argument; call
23438 lto_set_cgraph_encoder_encode_body on master of the clone.
23439 (add_references): Update use of add_node_to.
23440 (compute_ltrans_boundary): Likewise.
23441 (output_cgraph): Do not create written_decls bitmap.
23442 (input_node): Take nodes argument; stream in clone_of correctly.
23443 (input_cgraph_1): Update use of input_node.
23444 * lto-streamer-out.c (lto_output): Use encoder info to decide
23445 what bodies to output.
23446 * ipa-inline.c (cgraph_clone_inlined_nodes,
23447 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
23448 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
23449 (lto_cgraph_encoder_size): Define here.
23450 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
23453 2010-05-16 Richard Guenther <rguenther@suse.de>
23455 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
23457 * ipa-type-escape.c (gate_type_escape_vars): Run when
23458 -fipa-struct-reorg runs.
23459 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
23460 * common.opt (fipa-type-escape): Remove.
23462 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
23464 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
23465 (decode_options): Likewise.
23466 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
23468 2010-05-16 Jan Hubicka <jh@suse.cz>
23470 * ipa.c (function_and_variable_visibility): Also bring local all
23473 2010-05-16 Richard Guenther <rguenther@suse.de>
23475 * alias.c (nonoverlapping_memrefs_p): Remove use of
23476 IPA type-escape information.
23478 2010-05-16 Joseph Myers <joseph@codesourcery.com>
23480 * c-common.c (c_common_reswords): Add _Static_assert for C.
23481 * c-parser.c (c_token_starts_declaration,
23482 c_parser_next_token_starts_declaration,
23483 c_parser_static_assert_declaration_no_semi,
23484 c_parser_static_assert_declaration): New.
23485 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
23486 Handle static assertions if static_assert_ok.
23487 (c_parser_external_declaration, c_parser_declaration_or_fndef,
23488 c_parser_compound_statement_nostart, c_parser_label,
23489 c_parser_for_statement, c_parser_objc_methodprotolist,
23490 c_parser_omp_for_loop): All callers of
23491 c_parser_declaration_or_fndef changed.
23492 (c_parser_struct_declaration): Handle static assertions.
23493 (c_parser_compound_statement_nostart): Use
23494 c_parser_next_token_starts_declaration and
23495 c_token_starts_declaration to detect start of declarations.
23496 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
23499 2010-05-16 Anatoly Sokolov <aesok@post.ru>
23501 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23502 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23503 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23504 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23505 (mmix_function_outgoing_value): Rename to...
23506 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
23507 (mmix_function_value_regno_p): Make static.
23508 (mmix_libcall_value): New function.
23509 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
23510 mmix_function_value_regno_p): Remove declaration.
23512 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
23514 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
23515 BUILT_IN_ALLOCA if stack checking is enabled.
23517 2010-05-16 Richard Guenther <rguenther@suse.de>
23519 * var-tracking.c (vars_copy_1): Inline ...
23520 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
23521 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
23522 (variable_merge_over_cur): Adjust. Merge asserts.
23523 (variable_merge_over_src): Likewise.
23524 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
23525 (variable_post_merge_new_vals): Merge asserts.
23526 (variable_post_merge_perm_vals): Likewise.
23527 (find_mem_expr_in_1pdv): Likewise.
23528 (dataflow_set_different_value): Remove.
23529 (onepart_variable_different_p): Merge asserts.
23530 (variable_different_p): Likewise.
23531 (dataflow_set_different_1): Inline ...
23532 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
23533 (emit_notes_for_differences_1): Merge asserts.
23535 2010-05-16 Richard Guenther <rguenther@suse.de>
23537 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
23538 * optabs.c (libfunc_decl_hash): Likewise.
23539 * varasm.c (emutls_decl): Likewise.
23541 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
23543 * c-decl.c: Don't include gimple.h.
23544 (merge_decls): Do not copy gimple_body.
23546 2010-05-15 Jason Merrill <jason@redhat.com>
23548 * c.opt: Add -fnothrow-opt.
23550 2010-05-15 Jan Hubicka <jh@suse.cz>
23552 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
23554 * passes.c (ipa_write_summaries): Write all analyzed nodes.
23556 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
23558 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
23559 * Makefile.in: Add it.
23560 Fix all other Makefile dependencies for changes below.
23561 * tree.h: Include it instead of defining VEC primitives here.
23562 * gimple.h: Likewise.
23564 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
23565 * except.h: Include vecir.h, break dependence on tree.h.
23567 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
23569 * tree-iterator.c: ...to here.
23570 * tree-iterator.h: Fix file introduction comment. Add extern markers.
23572 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
23574 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
23575 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
23576 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
23577 tree-mudflap.h, and target.h.
23578 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
23579 predict.h, tree-inline.h, gimple.h, and langhooks.h.
23580 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
23581 Add FIXME for why gimple.h is still included (should be unnecessary
23582 since GCC 4.5 gimplification unit-at-a-time).
23583 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
23584 * c-pragma.c: Add FIXME for why function.h needs to be included just
23585 for cfun, at front-end level.
23586 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
23587 Do not include ggc.h, but include vecprim.h for VEC(char).
23588 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
23589 Explain why target.h is included.
23590 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
23591 Explain why gimple.h is included.
23592 * c-ppoutput.c: Do not include tm.h.
23593 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
23594 * c-parses.c: Explain why rtl.h is included, and that this (and only
23595 this) is also why tm.h must be included.
23596 Do not include except.h.
23597 * c-lang.c: Do not include ggc.h.
23599 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
23601 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
23603 2010-05-15 Joseph Myers <joseph@codesourcery.com>
23605 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
23606 unions by default if those structs and unions have no tags. Do
23607 not condition anonymous struct and unions handling on flag_iso.
23608 Allow anonymous structs and unions for C1X.
23609 (finish_struct): Do not diagnose lack of named fields when
23610 anonymous structs and unions present for C1X. Accept flexible
23611 array members in structure with anonymous structs or unions but no
23612 directly named fields.
23613 * doc/extend.texi (Unnamed Fields): Update.
23615 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
23617 * gimple.h (compare_field_offset): Rename into...
23618 (gimple_compare_field_offset): ...this.
23619 * gimple.c (compare_field_offset): Rename into...
23620 (gimple_compare_field_offset): ...this. Compare the full access if
23621 the offset is self-referential.
23622 (gimple_types_compatible_p): Adjust for above renaming.
23623 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
23624 DECL_NONADDRESSABLE_P flag of fields before merging them.
23626 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
23628 * tree.h (ctor_to_list): Delete.
23629 * tree.c (ctor_to_list): Delete.
23631 2010-05-15 Jan Hubicka <jh@suse.cz>
23633 * ipa-reference.c: Include toplev.h
23634 (is_proper_for_analysis): Only add to all_module_statics
23635 if it is allocated.
23636 (write_node_summary_p, stream_out_bitmap,
23637 ipa_reference_write_optimization_summary,
23638 ipa_reference_read_optimization_summary): New.
23639 (struct ipa_opt_pass_d pass_ipa_reference): Add
23640 optimization summary streaming.
23641 * lto-cgraph.c (referenced_from_this_partition_p,
23642 reachable_from_this_partition_p): New functions.
23643 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
23644 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
23645 * opts.c (decode_options): Enable ipa_reference.
23646 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
23647 * lto-streamer.h (referenced_from_this_partition_p,
23648 reachable_from_this_partition_p): Declare.
23650 2010-05-15 Richard Guenther <rguenther@suse.de>
23652 PR tree-optimization/44038
23653 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
23654 taking the address of a V_C_E of a constant.
23656 2010-05-14 Jan Hubicka <jh@suse.cz>
23658 * tree.h (memory_identifier_string): Remove.
23659 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
23660 (ipa_reference_global_vars_info_d): Remove statics_not_read and
23661 statics_not_written.
23662 (ipa_reference_optimization_summary_d): New structure.
23663 (ipa_reference_optimization_summary_t): New type and vector.
23664 (ipa_reference_vars_info_d): Embedd structures instead of using
23666 (reference_vars_to_consider): Remove out of GGC space.
23667 (module_statics_escape): Remove.
23668 (global_info_obstack): Rename to ...
23669 (optimization_summary_obstack): ... this one.
23670 (initialization_status_t): Remove.
23671 (memory_identifier_string): Remove.
23672 (get_reference_vars_info): Fix indenting.
23673 (set_reference_vars_info): Likewise.
23674 (get_reference_optimization_summary): New.
23675 (set_reference_optimization_summary): New.
23676 (get_global_reference_vars_info): Remove.
23677 (ipa_reference_get_read_global): Remove.
23678 (ipa_reference_get_written_global): Remove.
23679 (ipa_reference_get_not_read_global): Update.
23680 (ipa_reference_get_not_written_global): Update.
23681 (is_proper_for_analysis): Outlaw addressable.
23682 (propagate_bits): Update for new datastructures.
23683 (analyze_variable): Remove.
23684 (init_function_info): Update for new datastructures.
23685 (clean_function_local_data): Remove.
23686 (clean_function): Remove.
23687 (copy_global_bitmap): Use optimizations_summary_obstack.
23688 (duplicate_node_data): Duplicate optimization summary only.
23689 (remove_node_data): Remove optimization summary only.
23690 (generate_summary): Do not analyze variables; do not compute
23691 module_statics_escape; do not prune solutions by it.
23692 (read_write_all_from_decl): Fix typos in comments.
23693 (propagate): Doscover readonly and nonaddressable first;
23694 update for new datastructures; share global bitmaps.
23695 * ipa-reference.h (ipa_reference_get_read_global,
23696 ipa_reference_get_written_global): Remove.
23697 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
23698 * Makefile.in: Remove ipa-refereference from GT files.
23700 2010-05-14 Jakub Jelinek <jakub@redhat.com>
23703 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
23704 for all SYMBOL_REF_DECLs.
23706 2010-05-14 Jan Hubicka <jh@suse.cz>
23708 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
23709 (varpool_all_refs_explicit_p): New inline function.
23710 * ipa-reference.c: Update comment.
23711 (module_statics_written): Remove.
23712 (get_static_decl): Remove.
23713 (ipa_init): Do not initialize module_statics_written.
23714 (analyze_function): Likewise.
23715 (generate_summary): Likewise; do not compute module_statics_readonly
23716 and do not update variable flags.
23717 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
23718 * ipa.c: Inlucde flags.h
23719 (cgraph_local_node_p): New.
23720 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
23721 promote functions to local.
23722 (ipa_discover_readonly_nonaddressable_vars): New function.
23723 (function_and_variable_visibility): Use cgraph_local_node_p.
23724 * varpool.c (varpool_finalize_decl): Set force_output for
23725 DECL_PRESERVE_P vars.
23727 2010-05-14 Jan Hubicka <jh@suse.cz>
23729 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
23731 2010-05-14 Richard Guenther <rguenther@suse.de>
23733 PR tree-optimization/44119
23734 * tree-ssa-pre.c (eliminate): Properly mark replacement of
23735 a PHI node necessary.
23737 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
23739 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
23741 2010-05-14 Jason Merrill <jason@redhat.com>
23744 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
23745 (gimple_call_set_nothrow): New.
23746 * gimple.c (gimple_build_call_from_tree): Call it.
23747 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
23750 * gimplify.c (gimplify_seq_add_stmt): No longer static.
23751 * gimple.h: Declare it.
23752 * gimple.c (gimple_build_eh_filter): No ops.
23754 2010-05-14 Jan Hubicka <jh@suse.cz>
23756 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
23757 nodes already in queue.
23758 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
23759 re-enqueueing node.
23761 2010-05-14 Jakub Jelinek <jakub@redhat.com>
23764 * cfgexpand.c (expand_debug_expr): If non-memory op0
23765 has BLKmode, return NULL.
23767 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
23769 * config.gcc: Add support for --with-cpu option for bdver1.
23770 * config/i386/i386.h (TARGET_BDVER1): New macro.
23771 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
23772 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
23773 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
23774 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
23775 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
23776 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
23777 (processor_type): Add PROCESSOR_BDVER1.
23778 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
23779 processor_type in config/i386/i386.h.
23780 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
23781 movaps <reg, reg> instead of movapd <reg, reg> when replacing
23782 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
23783 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
23784 to emit packed xor instead of packed double/packed integer
23785 xor for SSE and AVX when moving a zero value.
23786 * config/i386/sse.md: Add check for
23787 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
23788 movapd/movdqa for SSE and AVX.
23789 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
23790 single logical operations i.e and, or and xor instead of packed double
23791 logical operations for SSE and AVX.
23792 * config/i386/i386-c.c (ix86_target_macros_internal):
23793 Add PROCESSOR_BDVER1.
23794 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
23795 (has_fma4, has_xop): New.
23796 * config/i386/i386.c (bdver1_cost): New variable.
23797 (m_BDVER1): New macro.
23798 (m_AMD_MULTIPLE): Add m_BDVER1.
23799 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
23800 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
23801 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
23802 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
23803 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
23804 x86_tune_sse_partial_reg_dependency,
23805 x86_tune_sse_unaligned_load_optimal,
23806 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
23807 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
23808 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
23809 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
23810 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
23811 Enable/disable for bdver1.
23812 (processor_target_table): Add bdver1_cost.
23813 (cpu_names): Add bdver1.
23814 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
23815 processor_alias_table.
23816 (ix86_expand_vector_move_misalign): Change.
23817 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
23818 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
23819 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
23820 of movupd/movdqu for SSE and AVX.
23821 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
23822 (ix86_tune_adjust_cost): Add code for bdver1.
23823 (standard_sse_constant_opcode): Add check for
23824 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
23825 of packed double xor for SSE and AVX.
23827 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
23829 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
23830 result to unsigned.
23832 2010-05-14 Tristan Gingold <gingold@adacore.com>
23834 * toplev.c (default_debug_hooks): Remove this variable.
23835 (process_options): Remove assignments to default_debug_hooks.
23837 2010-05-14 Martin Jambor <mjambor@suse.cz>
23839 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
23840 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
23841 * langhooks.h (struct lang_hooks_for_decls): Removed field
23843 * tree.c (free_lang_data): Remove assignment to
23844 lang_hooks.fold_obj_type_ref.
23845 * tree.def (OBJ_TYPE_REF): Update comment.
23847 2010-05-14 Richard Guenther <rguenther@suse.de>
23849 PR tree-optimization/44124
23850 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
23852 2010-05-14 Alan Modra <amodra@gmail.com>
23855 * config/rs6000/rs6000.c (struct machine_function): Reorder
23856 fields for better packing. Add lr_save_state.
23857 (rs6000_ra_ever_killed): Return lr_save_state if set.
23858 (rs6000_emit_eh_reg_restore): Set lr_save_state.
23860 2010-05-13 Jan Hubicka <jh@suse.cz>
23862 * varpool.c (decide_is_variable_needed): Drop code checking
23863 TREE_SYMBOL_REFERENCED.
23865 2010-05-13 Jan Hubicka <jh@suse.cz>
23867 * final.c (output_addr_const): Do not call mark_decl_referenced.
23868 * cgraphunit.c (process_function_and_variable_attributes): Use
23869 mark_needed_node dirrectly.
23870 (assemble_thunk): Do not call mark_decl_referenced.
23872 2010-05-13 Anatoly Sokolov <aesok@post.ru>
23874 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
23876 2010-05-13 Jeff Law <law@redhat.com>
23878 * ira-conflicts.c (print_allocno_conflicts): New function broken out
23880 (print_conflicts): Call print_allocno_conflicts.
23882 2010-05-13 Jakub Jelinek <jakub@redhat.com>
23885 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
23888 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
23890 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
23891 t-mingw-w64 or t-mingw-w32 for multilib configuration.
23892 * config/i386/t-mingw-w32: New.
23893 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
23895 2010-05-13 Martin Jambor <mjambor@suse.cz>
23897 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
23899 * gimple-fold.c (get_base_binfo_for_type): New function.
23900 (gimple_get_relevant_ref_binfo): Likewise.
23901 (gimple_fold_obj_type_ref_known_binfo): Likewise.
23902 (gimple_fold_obj_type_ref): Likewise.
23903 (fold_gimple_call): Simplify condition for folding virtual calls
23904 and call gimple_fold_obj_type_ref.
23905 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
23906 (gimple_fold_obj_type_ref_known_binfo): Likewise.
23908 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
23910 * config/rs6000/rs6000-protos.h
23911 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
23912 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
23913 (rs6000_debug_mode_dependent_address)
23914 (rs6000_mode_dependent_address_ptr): Likewise.
23916 2010-05-13 Jakub Jelinek <jakub@redhat.com>
23919 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
23921 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
23922 * tree-sra.c (create_access_replacement): Call unshare_expr before
23923 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
23924 * dwarf2out.c: Include tree-flow.h.
23925 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
23926 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
23927 Handle DW_OP_bit_piece.
23928 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
23929 construct_piece_list, adjust_piece_list): New functions.
23930 (add_var_loc_to_decl): Handle SRA optimized variables.
23931 Adjust for var_loc_note to loc field renaming.
23932 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
23933 in VAR_LOCATION note.
23934 (new_loc_descr_op_bit_piece): New function.
23935 (dw_sra_loc_expr): New function.
23936 (dw_loc_list): Use it. Don't handle the last range after the
23937 loop, handle it inside of the loop. Adjust for var_loc_note
23938 to loc field renaming.
23939 (add_location_or_const_value_attribute): Only special case
23940 single entry loc lists if loc is NOTE_P. Adjust for
23941 var_loc_note to loc field renaming.
23942 (dwarf2out_var_location): Don't set newloc->var_loc_note
23943 and newloc->next here.
23945 2010-05-12 Jan Hubicka <jh@suse.cz>
23947 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
23949 * cgraph.h (cgraph_only_called_directly_p,
23950 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
23951 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
23952 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
23954 * ipa.c (cgraph_remove_unreachable_nodes): Use
23955 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
23957 * tree-inline.c (copy_bb): Check address_taken flag.
23958 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
23959 externally_visible flag.
23961 2010-05-12 Jason Merrill <jason@redhat.com>
23965 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
23966 * sdbout.c (plain_type_1): Likewise.
23967 * dwarf2out.c (is_base_type): Likewise.
23968 (gen_type_die_with_usage): Likewise. Generate
23969 DW_TAG_unspecified_type for any LANG_TYPE.
23971 2010-05-12 Jan Hubicka <jh@suse.cz>
23973 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
23975 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
23976 (cgraph_clone_edge): Update.
23977 (cgraph_node_remove_callees): Remove indirect calls too.
23978 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
23979 (cgraph_create_indirect_edge): Update prototype.
23980 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
23981 is_proper_for_analysis.
23982 (add_new_function, visited_nodes, function_insertion_hook_holder,
23983 get_local_reference_vars_info, mark_address_taken, mark_address,
23984 mark_load, mark_store, check_asm_memory_clobber, check_call,
23985 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
23986 (ipa_init): Do not initialize visited_nodes;
23987 function_insertion_hook_holder.
23988 (analyze_variable): Rewrite.
23989 (analyze_function): Rewrite.
23990 (copy_local_bitmap): Remove.
23991 (duplicate_node_dat): Do not duplicate local info.
23992 (generate_summary): Simplify to only walk cgraph.
23993 (write_node_summary_p, ipa_reference_write_summary,
23994 ipa_reference_read_summary): Remove.
23995 (propagate): Do not remove function insertion;
23997 (pass_ipa_reference): NULLify summary handling fields.
23998 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
23999 (input_edge): Input ecf_flags.
24000 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
24001 (update_indirect_edges_after_inlining): Ignore edges with unknown
24004 2010-05-12 Sriraman Tallam <tmsriram@google.com>
24006 * implicit-zee.c: New file.
24007 * tree-pass.h (pass_implicit_zee): Declare.
24008 * passes.c (init_optimization_passes): Add zee pass.
24009 * common.opt (fzee): New flag.
24010 * timevar.def (TV_ZEE): Define.
24011 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
24013 * Makefile.in (implicit-zee.o): Add new build file.
24015 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24016 Nathan Froyd <froydnj@codesourcery.com>
24018 * c-common.c (sync_resolve_params): Remove write-only variable.
24020 2010-05-12 Anatoly Sokolov <aesok@post.ru>
24022 * target.h (struct gcc_target): Add mode_dependent_address_p field.
24023 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24024 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
24025 * targhooks.c (default_mode_dependent_address_p): New function.
24026 * targhooks.h (default_mode_dependent_address_p): Declare function.
24027 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24028 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
24029 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
24030 target hook. Change return type to bool.
24031 * recog.h (mode_dependent_address_p): Change return type to bool.
24033 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24034 Nathan Froyd <froydnj@codesourcery.com>
24036 * tree-mudflap.c (build_function_type_0, build_function_type_1,
24037 build_function_type_2, build_function_type_3): Remove.
24038 (mudflap_init): Use build_function_type_list.
24040 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24041 Nathan Froyd <froydnj@codesourcery.com>
24043 * coverage.c (build_fn_info_value): Call build_constructor instead of
24044 build_constructor_from_list.
24045 (build_ctr_info_value): Likewise.
24046 (build_gcov_info): Likewise.
24048 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
24050 * tree.c (build_constructor): Compute TREE_CONSTANT for the
24051 resultant constructor.
24052 (build_constructor_single): Don't set TREE_CONSTANT.
24053 (build_constructor_from_list): Don't compute TREE_CONSTANT.
24055 2010-05-12 Jan Hubicka <jh@suse.cz>
24057 * cgraph.h (struct varpool_node): Add aux.
24058 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
24059 * varpool.c (varpool_remove_node): Do not remove initializer.
24060 (varpool_reset_queue): Export.
24061 (varpool_finalize_decl): Volatile vars are forced to be output.
24062 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
24064 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
24065 process_references, varpool_can_remove_if_no_refs): New functions.
24066 (cgraph_remove_unreachable_nodes): Handle variables too.
24068 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
24071 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
24073 2010-05-12 Jakub Jelinek <jakub@redhat.com>
24075 PR middle-end/44085
24076 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
24077 change value of ORT_TASK.
24078 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
24079 (omp_notice_threadprivate_variable): New function.
24080 (omp_notice_variable): Call it for threadprivate variables.
24081 If enclosing ctx is a task, print enclosing task rather than
24082 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
24083 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
24084 if task has untied clause.
24087 * dwarf2out.c (base_type_die): Don't add name attribute here.
24088 (modified_type_die): Instead of sizetype use
24089 its underlying original type. If a DW_TAG_base_type doesn't
24090 have name added, add __unknown__.
24091 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
24092 always call force_type_die instead.
24094 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
24096 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
24097 for __stack_chk_guard.
24099 2010-05-11 Jakub Jelinek <jakub@redhat.com>
24101 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
24102 don't call start_source_file debug hook here...
24103 (finish_options): ... but here, after outputting predefined and
24104 command line defines and undefs.
24106 PR middle-end/44071
24107 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
24109 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
24110 optimizing away empty bb with no successors, move over its
24111 footer chain to fallthru predecessor.
24112 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
24113 (rtl_split_edge): For asm goto call patch_jump_insn even if
24114 splitting fallthru edge.
24117 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
24118 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
24119 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
24120 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
24124 * c-parser.c (c_parser_expression): Mark LHS of a comma
24125 expression as read if it is a decl, handled component or
24126 COMPOUND_EXPR with that on the RHS.
24127 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
24128 if it is a decl or handled component.
24130 2010-05-11 Jan Hubicka <jh@suse.cz>
24132 * lto-symtab.c (lto_symtab_free): New function.
24133 * lto-streamer.h (lto_symtab_free): Declare.
24135 2010-05-11 Jan Hubicka <jh@suse.cz>
24137 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
24138 that if function is needed it is reachable.
24139 (lto_output_node): See if it the function is reachable or referenced.
24140 (output_cgraph): Update call of lto_output_node.
24141 * lto-streamer.h (reachable_from_other_partition_p): Declare.
24143 2010-05-11 Jan Hubicka <jh@suse.cz>
24145 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
24148 2010-05-11 Jan Hubicka <jh@suse.cz>
24150 PR tree-optimize/44063
24151 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
24153 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
24155 (estimate_function_body_sizes): Compute sizes even when disregarding.
24157 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
24159 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
24161 2010-05-11 Jan Hubicka <jh@suse.cz>
24163 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
24164 into every boundary.
24166 2010-05-11 Jan Hubicka <jh@suse.cz>
24168 * matrix-reorg.c (matrix_reorg): Rebuild edges.
24170 2010-05-11 Jan Hubicka <jh@suse.cz>
24172 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
24173 lto_streamer_cache_delete): Put nodes into heap.
24174 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
24177 2010-05-11 Jan Hubicka <jh@suse.cz>
24179 * cgraphbuild.c (cgraph_rebuild_references): New.
24180 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
24181 out extern inlines.
24182 * cgraph.h (cgraph_rebuild_references): Declare.
24183 * tree-inline.c (tree_function_versioning): Use it.
24184 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
24186 2010-05-11 Jan Hubicka <jh@suse.cz>
24188 * cgraph.c: Include ipa-utils.h
24189 (cgraph_create_virtual_clone): Update references.
24190 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
24192 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
24194 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
24195 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
24198 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
24200 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
24202 2010-05-11 Jakub Jelinek <jakub@redhat.com>
24204 * gcc.c (execute): For -### don't quote arguments that
24205 contain just alphanumerics and _/-. characters.
24206 * doc/invoke.texi: Document that change for -###.
24209 * df-problems.c (struct dead_debug): Add to_rescan field.
24210 (dead_debug_init): Clear to_rescan field.
24211 (dead_debug_finish): Rescan all debug insns in to_rescan
24212 bitmap and free the bitmap.
24213 (dead_debug_insert_before): Instead of rescanning debug insns
24214 immediately queue their rescanning until dead_debug_finish.
24215 (df_note_bb_compute): After dead_debug_add do continue instead
24218 2010-05-10 Jakub Jelinek <jakub@redhat.com>
24221 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
24222 clear also INSN_REG_USE_LIST.
24224 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24226 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
24228 2010-05-10 Jan Hubicka <jh@suse.cz>
24230 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
24233 2010-05-10 Jan Hubicka <jh@suse.cz>
24235 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
24237 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
24238 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
24239 (lto_streamer_cache_create): Init alloc pool.
24240 (lto_streamer_cache_delete): Free alloc pool.
24241 * lto-streamer.h: Include alloc pool.
24242 (lto_streamer_cache_d): Use alloc pool.
24243 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
24245 2010-05-10 Jan Hubicka <jh@suse.cz>
24247 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
24248 * cgraphbuild.c: Include except.h
24249 (record_type_list, record_eh_tables): New function.
24250 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
24252 2010-05-10 Jan Hubicka <jh@suse.cz>
24254 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
24255 __frame_dummy_init_array_entry, force_to_data): Attribute as used
24256 rather than unused.
24258 2010-05-10 Michael Matz <matz@suse.de>
24260 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
24261 (can_reassociate_p): Use FLOAT_TYPE_P.
24262 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
24263 (vect_force_simple_reduction): ... this.
24264 * tree-parloops.c (gather_scalar_reductions): Use
24265 vect_force_simple_reduction.
24266 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
24267 vect_is_simple_reduction, add modify argument, if true rewrite
24268 "a-b" into "a+(-b)".
24269 (vect_is_simple_reduction, vect_force_simple_reduction): New
24271 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
24273 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
24274 Vladimir Makarov <vmakarov@redhat.com>
24276 PR rtl-optimization/44012
24277 * ira-build.c (remove_unnecessary_allocnos): Nullify
24278 regno_allocno_map of the removed allocno.
24280 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24282 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
24284 * configure: Regenerate.
24286 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24288 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
24290 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
24291 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
24293 * configure: Regenerate.
24295 2010-05-10 Richard Guenther <rguenther@suse.de>
24297 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
24298 marked if the entry identifier is marked.
24300 2010-05-10 Richard Guenther <rguenther@suse.de>
24302 * c-common.c (struct c_common_attributes): Add fnspec attribute.
24303 (handle_fnspec_attribute): New function.
24304 * gimple.h (gimple_call_return_flags): Declare.
24305 (gimple_call_arg_flags): Likewise.
24306 * gimple.c (gimple_call_arg_flags): New function.
24307 (gimple_call_return_flags): Likewise.
24308 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
24309 New argument flags.
24310 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
24311 return value flags.
24312 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
24313 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
24315 (make_heapvar_for): ... this new function.
24316 (handle_rhs_call): Handle fnspec attribute argument specifiers.
24317 (handle_lhs_call): Likewise.
24318 (find_func_aliases): Adjust.
24320 2010-05-10 Richard Guenther <rguenther@suse.de>
24322 PR tree-optimization/44050
24323 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
24325 2010-05-10 Wei Guozhi <carrot@google.com>
24328 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
24330 2010-05-09 Joseph Myers <joseph@codesourcery.com>
24333 * c-typeck.c (lookup_field): Take a type directly. Update
24335 (build_component_ref): Update call to lookup_field.
24336 (set_init_label): Use lookup_field to find initialized field.
24337 Handle returned list of fields like a sequence of designators.
24339 2010-05-09 Richard Guenther <rguenther@suse.de>
24341 PR middle-end/44024
24342 * fold-const.c (tree_single_nonzero_warnv_p): Properly
24343 handle &FUNCTION_DECL.
24345 2010-05-09 Joseph Myers <joseph@codesourcery.com>
24348 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
24349 structures and unions recursively.
24350 (detect_field_duplicates): Move duplicate detection with a hash to
24351 detect_field_duplicates_hash. Always use a hash if anonymous
24352 structures or unions are present.
24353 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
24356 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
24359 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
24360 detect Atom, Core 2 and Core i7.
24362 2010-05-09 Richard Guenther <rguenther@suse.de>
24364 * gcc.c (store_arg): Handle temporary file deletion for
24367 2010-05-09 Richard Guenther <rguenther@suse.de>
24369 PR middle-end/44043
24370 * ipa-inline.c (estimate_function_body_sizes): Return after
24371 disregarding inline limits.
24373 2010-05-09 Richard Guenther <rguenther@suse.de>
24375 * gcc.c (store_arg): Revert last change.
24377 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
24379 PR middle-end/28685
24380 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
24381 (optimize_ops_list): Call it.
24383 2010-05-08 Richard Guenther <rguenther@suse.de>
24385 PR tree-optimization/44030
24386 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
24387 NECESSARY flag if we propagate from a inserted expression.
24389 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
24391 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
24392 domain types as equal if they are both PLACEHOLDER_EXPRs.
24394 2010-05-08 Richard Guenther <rguenther@suse.de>
24396 * lto-wrapper.c (run_gcc): Remove linker output from
24397 command line for LTRANS invocation.
24399 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
24401 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
24402 lto-macho as lto_binary_reader.
24403 * target.h (struct gcc_target): New hooks lto_start and lto_end.
24404 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
24405 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
24406 in lto_start and lto_end calls.
24407 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
24409 (scan_prog_file): Update is_elf_or_coff call.
24410 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
24412 * collect2.c (main): Fix enum comparison.
24414 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
24416 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
24417 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
24418 and TARGET_ASM_LTO_END.
24419 * darwin.c: Include obstack.h and lto-streamer.h.
24420 (lto_section_names_offset, lto_section_names_obstack,
24421 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
24423 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
24424 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
24425 to a temporary file.
24426 (darwin_asm_lto_end): New function. Restore asm_out_file.
24427 (darwin_asm_named_section): For LTO sections, replace the name with
24428 the offset of the section name in a string table, and build this
24430 (darwin_file_start): Initialize global vars for LTO support.
24431 (darwin_file_end): If output to asm_out_file was redirected, append it
24432 to the proper asm_out_file here. Add the section names section.
24434 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
24436 * c-pragma.c (pending_weak_d, pending_weak): New.
24437 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
24438 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
24439 handle_pragma_weak): Update the uses of pending_weaks.
24441 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24443 PR documentation/44016
24444 * doc/standards.texi (Standards): Link to unversioned
24445 cxx0x_status.html page.
24447 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
24450 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
24451 in addition to TREE_USED, to avoid "set but unused" warnings.
24453 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24455 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
24456 (is_loop_prefetching_profitable): Do not insert prefetches
24457 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
24458 times the prefetch ahead distance.
24460 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24462 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
24463 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
24464 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
24467 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
24469 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
24470 a diagnostic info when the insn-to-mem ratio is too small.
24472 2010-05-07 Richard Guenther <rguenther@suse.de>
24474 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
24476 (store_arg): Queue temp_filename for deletion instead of
24477 the whole argument.
24479 2010-05-07 Richard Guenther <rguenther@suse.de>
24481 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
24482 (run_gcc): Handle LTRANS phase invocation.
24483 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
24485 2010-05-07 Jakub Jelinek <jakub@redhat.com>
24487 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
24488 this is also meaningful on PARM_DECLs and RESULT_DECLs.
24490 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24492 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
24494 2010-05-07 Richard Guenther <rguenther@suse.de>
24496 PR tree-optimization/44020
24497 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
24498 code when PRE is not yet initialized.
24500 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24502 * config/mips/dbxmdebug.h: Remove.
24503 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
24505 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
24507 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
24508 with null pointer and also warn about ordered comparison of zero with
24509 pointer if -Wextra.
24511 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
24513 * graphite-blocking.c
24514 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
24515 * graphite-clast-to-gimple.c
24516 (clast_to_gcc_expression): Same.
24517 (precision_for_value): Same.
24518 (precision_for_interval): Same.
24519 (gcc_type_for_interval): Same.
24520 (graphite_create_new_guard): Same.
24521 (compute_bounds_for_level): Same.
24522 (graphite_create_new_loop_guard): Same.
24523 * graphite-interchange.c
24524 (build_linearized_memory_access): Same.
24525 (pdr_stride_in_loop): Same.
24526 (memory_strides_in_loop_1): Same.
24527 (memory_strides_in_loop): Same.
24528 (extend_scattering): Same.
24529 (psct_scattering_dim_for_loop_depth): Same.
24530 (pbb_number_of_iterations): Same.
24532 (debug_iteration_domains): Same.
24534 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
24535 (ppl_set_inhomogeneous_gmp): Same.
24536 (ppl_strip_loop): Same.
24537 (ppl_lexico_compare_linear_expressions): Same.
24538 (ppl_read_polyhedron_matrix): Same.
24539 (ppl_max_for_le_pointset): Same.
24541 (ppl_read_polyhedron_matrix): Same.
24542 (tree_int_to_gmp): Same.
24543 (gmp_cst_to_tree): Same.
24544 (ppl_set_inhomogeneous): Same.
24545 (ppl_set_inhomogeneous_tree): Same.
24546 (ppl_set_coef): Same.
24547 (ppl_set_coef_tree): Same.
24548 * graphite-sese-to-poly.c
24549 (build_pbb_scattering_polyhedrons): Same.
24550 (build_scop_scattering): Same.
24551 (scan_tree_for_params_right_scev): Same.
24552 (scan_tree_for_params): Same.
24553 (find_params_in_bb): Same.
24554 (find_scop_parameters): Same.
24555 (add_upper_bounds_from_estimated_nit): Same.
24556 (build_loop_iteration_domains): Same.
24557 (add_condition_to_domain): Same.
24558 (pdr_add_memory_accesses): Same.
24560 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
24562 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
24563 CLooG's value_* macros to their respective mpz_* counterparts.
24564 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
24565 (graphite_create_new_loop_guard): Same.
24566 * graphite-interchange.c (build_linearized_memory_access): Same.
24567 (pdr_stride_in_loop): Same.
24568 (memory_strides_in_loop_1): Same.
24569 (1st_interchange_profitable_p): Same.
24570 * graphite-poly.c (extend_scattering): Same.
24571 (psct_scattering_dim_for_loop_depth): Same.
24572 (pbb_number_of_iterations): Same.
24573 (pbb_number_of_iterations_at_time): Same.
24574 * graphite-poly.h (new_1st_loop): Same.
24575 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
24576 (oppose_constraint): Same.
24577 (insert_constraint_into_matrix): Same.
24578 (ppl_set_inhomogeneous_gmp): Same.
24579 (ppl_set_coef_gmp): Same.
24580 (ppl_strip_loop): Same.
24581 (ppl_lexico_compare_linear_expressions): Same.
24582 (ppl_max_for_le_pointset): Same.
24583 (ppl_min_for_le_pointset): Same.
24584 (ppl_build_realtion): Same.
24585 * graphite-ppl.h (gmp_cst_to_tree): Same.
24586 (ppl_set_inhomogeneous): Same.
24587 (ppl_set_inhomogeneous_tree): Same.
24588 (ppl_set_coef): Same.
24589 (ppl_set_coef_tree): Same.
24590 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
24591 (build_scop_scattering): Same.
24592 (add_value_to_dim): Same.
24593 (scan_tree_for_params_right_scev): Same.
24594 (scan_tree_for_params_int): Same.
24595 (scan_tree_for_params): Same.
24596 (find_params_in_bb): Same.
24597 (find_scop_parameters): Same.
24598 (add_upper_bounds_from_estimated_nit): Same.
24599 (build_loop_iteration_domains): Same.
24600 (create_linear_expr_from_tree): Same.
24601 (add_condition_to_domain): Same.
24602 (pdr_add_memory_accesses): Same.
24604 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
24605 Jason Merrill <jason@redhat.com>
24607 * c-common.c (c_common_reswords): Add nullptr.
24608 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
24609 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
24610 (gen_type_die_with_usage): Likewise.
24611 * dbxout.c (dbxout_type): Likewise.
24612 * sdbout.c (plain_type_1): Likewise.
24614 2010-05-06 Jason Merrill <jason@redhat.com>
24616 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
24617 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
24619 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
24621 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
24622 stripping WITH_SIZE_EXPR.
24623 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
24626 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24628 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
24629 list of obsolete configurations.
24630 Disabled check for obsolete configurations.
24631 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
24632 Removed support for previous versions.
24633 * config/mips/iris.h: Removed.
24634 * config/mips/iris5.h: Removed.
24635 * config/mips/iris6.h: Merged old iris.h contents.
24636 (TARGET_IRIX): Removed.
24637 (DRIVER_SELF_SPECS): Removed mabi=32.
24638 (IDENT_ASM_OP): Removed undef.
24639 (STARTFILE_SPEC): Removed mabi=32.
24640 (ENDFILE_SPEC): Likewise.
24641 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
24642 (MACHINE_TYPE): Update for IRIX 6.5.
24643 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
24644 TARGET_IRIX by TARGET_IRIX6.
24645 (mips_file_start): Likewise.
24646 (mips_output_external): Remove IRIX 5/6 O32 support.
24647 (mips_output_function_prologue): Likewise.
24648 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
24650 (TARGET_CPU_CPP_BUILTINS): Likewise.
24651 (TARGET_IRIX): Removed.
24652 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
24653 (MULTILIB_DIRNAMES): Removed 32.
24654 (MULTILIB_OSDIRNAMES): Removed ../lib.
24655 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
24656 (Specific, mips-sgi-irix5): Document removal.
24657 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
24658 Remove references to older IRIX 6 releases and the O32 ABI.
24660 2010-05-06 Jakub Jelinek <jakub@redhat.com>
24663 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
24664 instead of DF_REF_REAL_REG.
24666 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
24669 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
24670 handling to still return true for x64 targets.
24672 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
24674 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
24676 2010-05-06 Jan Hubicka <jh@suse.cz>
24678 PR tree-optimization/43791
24679 * ipa-inline.c (update_caller_keys): Remove bogus
24680 disregard_inline_limits check.
24682 2010-05-06 Michael Matz <matz@suse.de>
24684 PR tree-optimization/43984
24685 * tree-ssa-pre.c (inserted_phi_names): Remove.
24686 (inserted_exprs): Change to bitmap.
24687 (create_expression_by_pieces): Set bits, don't append to vector.
24688 (insert_into_preds_of_block): Don't handle inserted_phi_names.
24689 (eliminate): Don't look at inserted_phi_names, remove deleted
24690 insns from inserted_exprs.
24691 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
24692 (init_pre, fini_pre): Allocate and free bitmaps.
24693 (execute_pre): Insert insns on edges before elimination.
24695 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
24697 * tree.c (initializer_zerop): Handle STRING_CST.
24699 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
24702 * doc/invoke.texi (Wimplicit): Document as C only.
24703 * opts.c (common_handle_option): Add argument kind.
24704 (handle_option): Rename as read_cmdline_option. Factor out code to...
24705 (handle_option): ... here. New.
24706 (handle_options): Rename as read_cmdline_options.
24707 (decode_options): Update call.
24708 (set_option): Use option index instead of option pointer. Classify
24709 diagnostics correctly.
24710 (enable_warning_as_error): Call handle_option.
24711 * opts.h (set_option): Update declaration.
24712 (handle_option): Declare.
24713 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
24714 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
24715 * c-opts.c (set_Wimplicit): Delete.
24716 (c_family_lang_mask): New static constant.
24717 (c_common_handle_option): Add argument kind. Use handle_option
24718 instead of set_Wimplicit.
24719 (c_common_post_options): warn_implicit and warn_implicit_int
24720 are disabled by default.
24721 * c-common.c (warn_implicit): Do not define here.
24722 * c-common.h (warn_implicit): Do not declare here.
24723 (c_common_handle_option): Update declaration.
24724 * lto-opts.c (lto_reissue_options): Update call to set_option.
24726 2010-05-06 Richard Guenther <rguenther@suse.de>
24728 PR tree-optimization/43571
24729 * domwalk.c (walk_dominator_tree): Walk the dominator
24730 sons in more optimal order.
24732 2010-05-06 Richard Guenther <rguenther@suse.de>
24734 PR tree-optimization/43934
24735 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
24736 (stmt_cost): Likewise.
24737 (extract_true_false_args_from_phi): New helper.
24738 (determine_max_movement): For PHI nodes verify we can hoist them
24739 and compute their cost.
24740 (determine_invariantness_stmt): Handle PHI nodes.
24741 (move_computations_stmt): Likewise. Hoist PHI nodes in
24742 if-converted form using COND_EXPRs.
24743 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
24744 (tree_ssa_lim): Likewise.
24745 * tree-flow.h (tree_ssa_lim): Adjust prototype.
24746 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
24748 2010-05-06 Richard Guenther <rguenther@suse.de>
24750 PR tree-optimization/43987
24751 * tree-ssa-structalias.c (could_have_pointers): For possibly
24752 address-taken variables force pointers to be recorded.
24753 (create_variable_info_for_1): Likewise.
24754 (push_fields_onto_fieldstack): Pass in wheter all fields
24755 must have pointers.
24756 (find_func_aliases): Query types instead of vars whether
24757 they contain pointers where appropriate.
24759 2010-05-06 Jan Hubicka <jh@suse.cz>
24761 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
24762 (record_reference, mark_address, mark_load, mark_store): Record
24764 (record_references_in_initializer): Update call of record_references.
24765 (rebuild_cgraph_edges): Remove all references before rebuiding.
24766 * cgraph.c (cgraph_create_node): Clear ref list.
24767 (cgraph_remove_node): Remove references.
24768 (dump_cgraph_node): Dump references.
24769 (cgraph_clone_node): Clone references.
24770 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
24771 (struct cgraph_node, varpool_node): Add ref_lst.
24772 * ipa-ref.c: New file.
24773 * ipa-ref.h: New file.
24774 * ipa-ref-inline.h: New file.
24775 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
24776 (referenced_from_other_partition_p): New function.
24777 (lto_output_varpool_node): Take set arugment; call
24778 referenced_from_other_partition.
24779 (lto_output_ref): New.
24780 (add_references): New.
24781 (output_refs): New.
24782 (output_cgraph): Compute boundary based on references; output refs.
24783 (output_varpool): Accept cgraph_node_set argument.
24786 (input_cgraph): Call input_refs.
24787 * lto-section-in.c (lto_section_name): Add refs.
24788 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
24789 (ipa-ref.o): New file.
24790 * varpool.c (varpool_node): Clear ipa ref list.
24791 (varpool_remove_node): Remove references.
24792 (dump_varpool_node): Dump references.
24793 (varpool_assemble_decl): Only compile finalized ones.
24794 (varpool_extra_name_alias): Initialize ref list.
24795 * lto-streamer.c (lto-get_section_name): Add .refs section.
24796 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
24797 (referenced_from_other_partition_p): Declared.
24799 2010-05-06 Ira Rosen <irar@il.ibm.com>
24801 PR tree-optimization/43901
24802 * tree-vect-stmts.c (vectorizable_call): Assert that vector
24803 type is not NULL if it's transformation phase, and return
24804 FALSE if it's analysis.
24805 (vectorizable_conversion, vectorizable_operation,
24806 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
24808 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
24810 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
24812 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
24814 * config/mips/mips-protos.h
24815 (mips_small_register_classes_for_mode_p): Delete prototype.
24817 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
24819 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
24820 * config/arm/arm.c (multiple_operation_profitable_p,
24821 compute_offset_order): New static functions.
24822 (load_multiple_sequence, store_multiple_sequence): Use them.
24823 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
24824 memory offsets, not register numbers.
24825 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
24827 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
24829 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
24830 (get_pending_sizes, put_pending_size, put_pending_sizes):
24831 Update the uses of pending_sizes.
24832 * c-decl.c (store_parm_decls): Likewise.
24833 * c-tree.h (struct c_arg_info): Likewise.
24834 * tree.h: Update the prototype for get_pending_sizes and
24837 2010-05-05 Jason Merrill <jason@redhat.com>
24840 * c-common.c (handle_aligned_attribute): Respect
24841 ATTR_FLAG_TYPE_IN_PLACE.
24844 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
24845 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
24846 (TARGET_INITIALIZER): Use it.
24847 * c-common.c (attribute_takes_identifier_p): Call it.
24848 * c-common.h: Update prototype.
24849 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
24850 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
24852 2010-05-05 Jakub Jelinek <jakub@redhat.com>
24855 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
24856 DW_ID_down_case for Fortran compilation units.
24858 2010-05-05 Jan Hubicka <jh@suse.cz>
24860 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
24863 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
24865 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
24866 a variable-sized RESULT_DECL.
24868 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
24870 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
24872 2010-05-05 Jason Merrill <jason@redhat.com>
24875 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
24877 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
24879 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
24880 Jakub Jelinek <jakub@redhat.com>
24883 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
24884 (dead_debug_init, dead_debug_finish): New functions.
24885 (dead_debug_add, dead_debug_insert_before): Likewise.
24886 (df_note_bb_compute): Initialize a dead_debug object, add dead
24887 debug uses to it, insert debug bind insns before death insns,
24888 reset debug insns that refer to pending uses at the end.
24889 * rtl.h (make_debug_expr_from_rtl): New prototype.
24890 * varasm.c (make_debug_expr_from_rtl): New function.
24892 2010-05-05 Jan Hubicka <jh@suse.cz>
24894 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
24895 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
24896 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
24897 lto_varpool_encoder_deref, lto_varpool_encoder_size,
24898 lto_varpool_encoder_encode_initializer_p,
24899 lto_set_varpool_encoder_encode_initializer): New functions.
24900 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
24901 call output_varpool.
24902 (input_varpool_node): Do not always set analyzed.
24903 (input_cgraph_1): Return vector of cgraph nodes.
24904 (input_varpool_1): Return vector of varpools.
24905 (input_cgraph): Free the vectors.
24906 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24907 output only initializers needed.
24908 (lto_output): Only call output_cgraph.
24909 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
24910 * lto-section-out.c (lto_new_out_decl_state): Initialize
24911 state->varpool_node_encoder.
24912 * lto-streamer.h (lto_varpool_encoder_d): New.
24913 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
24914 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
24915 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
24916 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
24917 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
24919 (output_varpool, input_varpool): Remove declarations.
24921 2010-05-05 Jan Hubicka <jh@suse.cz>
24923 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
24924 with body can prevail.
24926 2010-05-05 Jan Hubicka <jh@suse.cz>
24928 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
24931 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24933 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
24935 * gengtype.h (erro_at_line): Constify pos argument.
24937 * gengtype.c: Include hashtab.h.
24938 (enum gc_used): Document GC_MAYBE_POINTED_TO.
24939 (error_at_line): Constify pos argument.
24940 (do_typedef): Initialize p->opt field.
24941 (get_file_gtfilename): Fix comment typo.
24942 (struct walk_type_data): Constify line field.
24943 (get_output_file_for_structure): New function.
24944 (write_local_func_for_structure): Constify orig_s argument.
24945 Use get_output_file_for_structure.
24946 (write_func_for_structure): Use get_output_file_for_structure.
24947 (INDENT): New define.
24948 (dump_pair, dump_type, dump_type_list, dump_typekind)
24949 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
24950 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
24952 (seen_types): New variable.
24953 (main): New variable do_dump. Process "-d" command line option.
24954 Call dump_everything if dump requested.
24956 2010-05-05 Jakub Jelinek <jakub@redhat.com>
24958 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
24959 in a temporary instead of invoking the macro multiple times.
24960 (track_expr_p): Likewise.
24962 2010-05-04 Neil Vachharajani <nvachhar@google.com>
24964 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
24966 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
24967 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
24968 conditions for printing notes.
24969 * common.opt (-Wcoverage-mismatch): Allow negative, default to
24970 true, update documentation.
24971 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
24973 2010-05-04 Jakub Jelinek <jakub@redhat.com>
24976 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
24979 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
24982 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
24983 (*sse_prologue_save_insn1): Likewise.
24984 (SSE prologue save splitter): Likewise.
24986 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
24988 * tree.c (free_lang_data_in_one_sizepos): New inline function.
24989 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
24990 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
24991 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
24992 all decls. Call it on DECL_FIELD_OFFSET of fields.
24993 (find_decls_types_r): Follow DECL_VALUE_EXPR.
24994 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
24996 2010-05-04 Martin Jambor <mjambor@suse.cz>
24998 * tree-sra.c (build_access_from_expr_1): The first parameter type
24999 changed to simple tree.
25000 (build_access_from_expr): Likewise, gsi parameter was eliminated.
25001 (scan_assign_result): Renamed to assignment_mod_result, enum elements
25003 (build_accesses_from_assign): Removed all parameters except for a
25004 simple gimple statement. Now returns a simple bool.
25005 (scan_function): All non-analysis parts moved to separate functions
25006 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
25007 parameters and updated both callers.
25008 (sra_modify_expr): Removed parameter data.
25009 (sra_modify_function_body): New function.
25010 (perform_intra_sra): Call sra_modify_function_body to modify the
25012 (replace_removed_params_ssa_names): Parameter data changed into
25013 adjustments vector.
25014 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
25015 changed the parameter dont_convert to convert with the opposite
25017 (sra_ipa_modify_assign): Parameter data changed into adjustments
25018 vector, return value changed to bool.
25019 (ipa_sra_modify_function_body): New function.
25020 (sra_ipa_reset_debug_stmts): Updated a comment.
25021 (modify_function): Use ipa_sra_modify_function_body to modify function
25024 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25026 PR middle-end/43671
25027 * alias.c (true_dependence): Handle the same VALUE in x and mem.
25028 (canon_true_dependence): Likewise.
25029 (write_dependence_p): Likewise.
25031 2010-05-04 Jan Hubicka <jh@suse.cz>
25033 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
25034 * cgraphbuild.c: Include ipa-utils.h
25035 (record_reference_ctx): New struct.
25036 (record_reference): Simplify to work on initializers; not statements.
25037 (mark_address, mark_load, mark_store): New.
25038 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25039 walk PHI nodes too.
25040 (record_references_in_initializer): Update use of record_reference.
25041 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25042 walk PHI nodes too.
25044 2010-05-04 Jan Hubicka <jh@suse.cz>
25046 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
25047 node will be removed anyway.
25048 (lto_varpool_replace_node): Allow also unanalyzed nodes;
25049 relink aliases of node into prevailing node.
25050 * varpool.c (varpool_remove_node): Remove aliases properly;
25051 when removing node, remove all its aliases too; remove DECL_INITIAL
25052 of removed node; ggc_free the varpool node.
25054 2010-05-04 Richard Guenther <rguenther@suse.de>
25056 PR tree-optimization/43879
25057 * tree-ssa-structalias.c (alias_get_name): Use
25058 DECL_ASSEMBLER_NAME if available.
25059 (create_function_info_for): Return the varinfo node.
25060 (ipa_pta_execute): Associate same-body aliases and extra names
25061 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
25063 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
25065 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
25067 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
25070 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
25071 only if HONOR_REG_ALLOC_ORDER is not defined.
25073 2010-05-04 Richard Guenther <rguenther@suse.de>
25075 PR tree-optimization/43949
25076 * tree-vrp.c (extract_range_from_binary_expr): Only handle
25079 2010-04-26 Jason Merrill <jason@redhat.com>
25081 * c.opt (-fstrict-enums): New.
25082 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
25084 2010-05-03 David Ung <davidu@mips.com>
25085 James E. Wilson <wilson@codesourcery.com>
25087 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
25088 emit the trap instruction before the divide for TUNE_74K.
25090 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
25092 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
25093 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
25094 based on the above, for new target hook.
25096 * hooks.c (hook_bool_mode_true): New generic hook.
25097 * hooks.h (hook_bool_mode_true): Add prototype.
25099 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
25101 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
25102 target hook, set to hook_bool_mode_false.
25103 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
25104 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
25105 with targetm.small_register_classes_for_mode_p.
25106 (find_reusable_reload): Likewise.
25107 (combine_reloads): Likewise.
25108 * reload1.c (reload_as_needed): Likewise.
25109 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
25110 * ifcvt.c (noce_process_if_block, check_cond_move_block,
25111 dead_or_predicable): Likewise.
25112 * regmove.c (optimize_reg_copy_1): Likewise.
25113 * calls.c (prepare_call_address): Likewise.
25114 (precompute_register_parameters): Likewise.
25116 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
25118 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
25119 implementation of the hook that considers all register classes
25120 small except for SH64.
25121 (sh_override_options): Use the new hook.
25122 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
25125 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
25127 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
25128 implementation of the hook that considers all register classes
25130 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
25133 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
25135 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
25136 implementation of the hook that considers all register classes
25138 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
25141 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
25143 * config/m32c/m32c.h: Likewise.
25144 * config/pdp11/pdp11.h: Likewise.
25145 * config/avr/avr.h: Likewise.
25146 * config/xtensa/xtensa.h: Likewise.
25147 * config/m68hc11/m68hc11.h: Likewise.
25148 * config/mn10300/mn10300.h: Likewise.
25149 * config/mcore/mcore.h: Likewise.
25150 * config/h8300/h8300.h: Likewise.
25151 * config/bfin/bfin.h: Likewise.
25153 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
25154 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
25156 2010-05-03 Anatoly Sokolov <aesok@post.ru>
25158 * double-int.h (tree_to_double_int): Remove macro.
25159 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
25160 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
25161 (tree_to_double_int): New function.
25162 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
25164 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
25166 2010-05-03 Richard Guenther <rguenther@suse.de>
25168 PR tree-optimization/43971
25169 * tree-ssa-structalias.c (get_constraint_for_1): Fix
25170 constraints in the !flag_delete_null_pointer_checks case.
25172 2010-05-03 Jakub Jelinek <jakub@redhat.com>
25175 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
25176 result mode matches original rtl mode.
25178 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
25181 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
25183 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25185 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
25186 when processing flag options.
25188 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25190 * gcov-iov.c (main): Change format string placeholder
25191 from %#08x to 0x%08x.
25192 * genchecksum.c (dosum): Change format string placeholder
25193 from %#02x to 0x%02x.
25195 2010-05-02 Richard Guenther <rguenther@suse.de>
25197 PR tree-optimization/43879
25198 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
25200 2010-05-02 Bruno Haible <bruno@clisp.org>
25202 * doc/extend.texi (Function Attributes): Fix a typo.
25204 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25207 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
25208 placeholder from 0x%x to %#x.
25209 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
25210 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
25211 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
25212 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
25213 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
25214 * config/i386/i386.c (ix86_target_string): Ditto.
25215 * config/i386/i386.c (output_pic_addr_const): Ditto.
25216 (print_operand): Ditto.
25218 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25220 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
25221 placeholder from 0x%x to %#x.
25222 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
25223 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
25224 (ASM_OUTPUT_DEBUG_DATA): Ditto.
25225 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
25226 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
25227 * optc-gen.awk: Ditto.
25228 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
25229 (HOST_WIDE_INT_PRINT_HEX): Ditto.
25230 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
25231 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
25233 2010-05-01 Anatoly Sokolov <aesok@post.ru>
25235 * target.h (struct calls): Add function_value_regno_p field.
25236 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
25237 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
25238 * targhooks.c (default_function_value_regno_p): New function.
25239 * targhooks.h (default_function_value_regno_p): Declare function.
25240 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
25241 * builtins.c. (apply_result_size): (Ditto.).
25242 * combine.c. (likely_spilled_retval_p): (Ditto.).
25243 * mode-switching.c. Include 'target.h'.
25244 (create_pre_exit): Use function_value_regno_p hook.
25245 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
25246 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
25247 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
25249 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
25250 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
25251 (ix86_function_value_regno_p): Declare as static, change argument
25252 type to const unsigned int.
25253 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
25255 2010-05-01 Richard Guenther <rguenther@suse.de>
25257 PR tree-optimization/43949
25258 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
25260 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
25262 2010-05-01 Anatoly Sokolov <aesok@post.ru>
25264 * rtl.h (CONST_DOUBLE_P): Define.
25265 (rtx_to_double_int): Declare.
25266 * emit-rtl.c (rtx_to_double_int): New function.
25267 * dwarf2out.c (insert_double): New function.
25268 (loc_descriptor, add_const_value_attribute): Clean up, use
25269 rtx_to_double_int and insert_double functions.
25271 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
25273 * doc/extend.texi (Inline): Add missing return keyword to examples.
25274 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
25277 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
25279 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
25280 the variable part of the offset as well. Use highest_pow2_factor for
25281 all alignment checks.
25283 2010-04-30 Richard Guenther <rguenther@suse.de>
25285 PR tree-optimization/43879
25286 * tree-ssa-structalias.c (type_could_have_pointers): Functions
25289 2010-04-30 Jan Hubicka <jh@suse.cz>
25291 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
25293 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
25295 2010-04-30 Jan Hubicka <jh@suse.cz>
25297 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
25299 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
25300 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
25301 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
25302 cgraph_node_set_needs_ltrans_p): Remove.
25304 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
25306 * sdbout.c: Include vec.h, do not include varray.h.
25307 (deferred_global_decls, sdbout_global_decl,
25308 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
25309 * toplev.c: Do not include varray.h.
25310 (dump_memory_report): Do not dump VARRAY statistics.
25311 * gengtype.c (open_base_file): Ignore varray.h.
25312 * Makefile.in: Update for abovementioned changes.
25313 Remove all traces of varray.c and varray.h.
25314 * varray.c: Remove file.
25315 * varray.h: Remove file.
25317 2010-04-30 Jan Hubicka <jh@suse.cz>
25319 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
25322 2010-04-30 Jan Hubicka <jh@suse.cz>
25324 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
25327 2010-04-30 Richard Guenther <rguenther@suse.de>
25329 * tree-ssa-structalias.c (get_constraint_for_1): Generate
25330 constraints for CONSTRUCTOR.
25332 2010-04-30 Richard Guenther <rguenther@suse.de>
25335 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
25336 first after all lowering passes.
25338 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
25340 * toplev.c: Include varray.h for statistics dumping.
25341 * tree.h: Do not declare varray_head_tag.
25342 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
25343 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
25344 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
25345 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
25346 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
25347 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
25348 c-common.c, c-common.h, reg-stack.c, basic-block.h,
25349 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
25351 * Makefile.in: Update for abovementioned changes.
25353 2010-04-30 Jakub Jelinek <jakub@redhat.com>
25356 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
25358 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
25360 * config/picochip/picochip.c (picochip_legitimize_address): Define.
25361 Use this function to do machine-specific conversion.
25362 (picochip_legitimize_reload_address): Likewise.
25363 (picochip_legitimate_address_p): Check valid base register only if
25365 (picochip_check_conditional_copy): Check for modw only if opnd is
25367 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
25368 to call the function in c.
25369 * config/picochip/picochip-protos.h
25370 (picochip_legitimize_reload_address): Define.
25371 * config/picochip/picochip.md (supported_compare1): Define.
25373 2010-04-30 Jan Hubicka <jh@suse.cz>
25375 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
25376 (cgraph_global_info): Remove inlined.
25377 (LTO_cgraph_tag_names): Remove.
25378 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
25379 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
25380 simplify cgraph tags and document.
25381 (lto_output_node): Use only LTO_cgraph_unavail_node and
25382 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
25383 for_functions_valid, global info, process and output flags.
25384 (input_overwrite_node): Initialize estimated stack size and
25385 estimated growth. Do not read flags we no longer store.
25386 (input_node): Likewise do not read info no longer stored.
25387 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
25390 2010-04-30 Richard Guenther <rguenther@suse.de>
25392 PR tree-optimization/43879
25393 * tree-ssa-structalias.c (get_constraint_for_1): Properly
25394 handle non-zero initializers.
25396 2010-04-30 Richard Guenther <rguenther@suse.de>
25398 * builtins.c (fold_builtin_1): Delete free (0).
25400 2010-04-29 Jan Hubicka <jh@suse.cz>
25402 * gengtype.c (open_base_files): Add lto-streamer.h
25403 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
25404 (pass_ipa_cp): GGC collect.
25405 * toplev. (compile_file): Do not output symbols.
25406 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
25407 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
25408 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
25409 * lto-section-in.c: Include ggc.h
25410 (lto_new_in_decl_state): Alloc in GGC.
25411 (lto_delete_in_decl_state): Likewise.
25412 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
25415 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
25418 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
25419 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
25420 (HONOR_REG_ALLOC_ORDER): Describe new macro.
25421 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
25422 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
25423 account only if HONOR_REG_ALLOC_ORDER is not defined.
25424 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
25425 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
25427 2010-04-29 Jon Grant <04@jguk.org>
25429 * collect2.c (vflag): Change type from int to bool.
25431 (helpflag): New global bool.
25432 (main): Set vflag and debug with boolean, not integer truth values.
25433 Accept new "--help" option and output usage text if found.
25434 * collect2.h (vflag): Update prototype.
25437 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
25440 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
25442 2010-04-29 Richard Guenther <rguenther@suse.de>
25445 * plugin.h (invoke_plugin_callbacks): Annotate arguments
25446 with ATTRIBUTE_UNUSED.
25448 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
25451 * config/i386/i386.c (get_some_local_dynamic_name): Replace
25452 INSN_P with NONDEBUG_INSN_P.
25453 (distance_non_agu_define): Likewise.
25454 (distance_agu_use): Likewise.
25456 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
25458 From Dominique d'Humieres <dominiq@lps.ens.fr>
25460 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
25463 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
25465 * plugin.h (invoke_plugin_callbacks): New inline function.
25466 * plugin.c (flag_plugin_added): New global flag.
25467 (add_new_plugin): Initialize above flag.
25468 (invoke_plugin_callbacks): Rename to ...
25469 (invoke_plugin_callbacks_full): ... this.
25471 2010-04-28 Jan Hubicka <jh@suse.cz>
25473 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
25474 (lto_varpool_replace_node): New.
25475 (lto_symtab_resolve_symbols): Resolve varpool nodes.
25476 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
25477 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
25478 * cgraph.h (varpool_node_ptr): New type.
25479 (varpool_node_ptr): New vector.
25480 (varpool_node_set_def): New structure.
25481 (varpool_node_set): New type.
25482 (varpool_node_set): New vector.
25483 (varpool_node_set_element_def): New structure.
25484 (varpool_node_set_element, const_varpool_node_set_element): New types.
25485 (varpool_node_set_iterator): New type.
25486 (varpool_node): Add prev pointers, add used_from_other_partition,
25487 in_other_partition.
25488 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
25489 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
25490 varpool_get_node, varpool_remove_node): Declare.
25491 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
25492 varpool_node_set_size): New inlines.
25493 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
25494 * tree-pass.h (varpool_node_set_def): Forward declare.
25495 (ipa_opt_pass_d): Summary writting takes vnode sets too.
25496 (ipa_write_optimization_summaries): Update prototype.
25497 * ipa-cp.c (ipcp_write_summary): Update.
25498 * ipa-reference.c (ipa_reference_write_summary): Update.
25499 * lto-cgraph.c (lto_output_varpool_node): New static function.
25500 (output_varpool): New function.
25501 (input_varpool_node): New static function.
25502 (input_varpool_1): New function.
25503 (input_cgraph): Input varpool.
25504 * ipa-pure-const.c (pure_const_write_summary): Update.
25505 * lto-streamer-out.c (lto_output): Update, output varpool too.
25506 (write_global_stream): Kill WPA hack.
25507 (produce_asm_for_decls): Update.
25508 (output_alias_pair_p): Handle variables.
25509 (output_unreferenced_globals): Output only needed partition of varpool.
25510 * ipa-inline.c (inline_write_summary): Update.
25511 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
25513 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
25514 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
25515 varpool_node_set_new, varpool_node_set_add,
25516 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
25517 debug_varpool_node_set): New functions.
25518 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
25519 (execute_one_pass): Process new decls too.
25520 (ipa_write_summaries_2): Pass around vsets.
25521 (ipa_write_summaries_1): Likewise.
25522 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
25524 (ipa_write_optimization_summaries_1): Pass around vsets.
25525 (ipa_write_optimization_summaries): Likewise.
25526 * varpool.c (varpool_get_node): New.
25527 (varpool_node): Update doubly linked lists.
25528 (varpool_remove_node): New.
25529 (dump_varpool_node): More dumping.
25530 (varpool_enqueue_needed_node): Update doubly linked lists.
25531 (decide_is_variable_needed): Kill ltrans hack.
25532 (varpool_finalize_decl): Kill lto hack.
25533 (varpool_assemble_decl): Skip decls in other partitions.
25534 (varpool_assemble_pending_decls): Update doubly linkes lists.
25535 (varpool_empty_needed_queue): Likewise.
25536 (varpool_extra_name_alias): Likewise.
25537 * lto-streamer.c (lto_get_section_name): Add vars section.
25538 * lto-streamer.h (lto_section_type): Update.
25539 (output_varpool, input_varpool): Declare.
25541 2010-04-28 Mike Stump <mikestump@comcast.net>
25543 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
25545 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25547 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
25548 record or union type with RECORD_OR_UNION_TYPE_P predicate.
25549 (lto_input_ts_type_tree_pointers): Likewise.
25550 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
25551 (lto_output_ts_type_tree_pointers): Likewise.
25553 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25555 Uniquization of constants at the Tree level
25556 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
25557 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
25559 (tree_output_constant_def): Declare.
25560 * gimplify.c (gimplify_init_constructor): When using block copy, first
25561 uniquize the constant constructor on the RHS.
25562 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
25563 DECL_IN_CONSTANT_POOL flag.
25564 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
25565 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
25567 (assemble_variable): Deal with symbols belonging to the tree constant
25569 (get_constant_section): Add ALIGN parameter and simplify.
25570 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
25571 (assemble_constant_contents): Use the expression of the VAR_DECL.
25572 (output_constant_def_contents): Use the alignment of the VAR_DECL.
25573 (tree_output_constant_def): New global function.
25574 (mark_constant): Use the expression of the VAR_DECL.
25575 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
25577 (output_object_block): Likewise and assemble the expression.
25579 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
25581 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
25582 hash_tree, eq_tree): New tree hash table.
25583 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
25584 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
25585 lto_orig_address_remove): Reimplement.
25587 2010-04-28 Xinliang David Li <davidxl@google.com>
25590 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
25591 (compute_uninit_opnds_pos): New function.
25592 (is_non_loop_exit_postdominating): New function.
25593 (compute_control_dep_chain): New function.
25594 (find_pdom): New function.
25595 (convert_control_dep_chain_into_preds): New function.
25596 (find_predicates): New function.
25597 (find_control_equiv_block): New function.
25598 (collect_phi_def_edges): New function.
25599 (find_def_preds): New function.
25600 (find_dom): New function.
25601 (dump_predicates): New function.
25602 (get_cmp_code): New function.
25603 (is_value_included_in): New function.
25604 (find_matching_predicate_in_rest_chains): New function.
25605 (use_pred_not_overlap_with_undef_path_pred): New function.
25606 (is_use_properly_guarded): New function.
25607 (normalize_cond_1): New function.
25608 (is_and_or_or): New function.
25609 (normalize_cond): New function.
25610 (is_gcond_subset_of): New function.
25611 (is_subset_of_any): New function.
25612 (is_or_set_subset_of): New function.
25613 (is_and_set_subset_of): New function.
25614 (is_norm_cond_subset_of): New function.
25615 (is_pred_expr_subset_of): New function.
25616 (is_pred_chain_subset_of): New function.
25617 (is_included_in): New function.
25618 (is_superset_of): New function.
25619 (find_uninit_use): New function.
25620 (warn_uninitialized_phi): New function.
25621 (compute_possibly_undefined_names): New function.
25622 (ssa_undefined_value_p): New function.
25623 (execute_late_warn_uninitialized): New function.
25624 * tree-ssa.c (ssa_undefined_value_p): Removed.
25625 (warn_uninit): Changed to extern.
25626 (warn_uninitialized_phi): Removed.
25627 (warn_uninitialized_vars): Changed to extern.
25628 (execute_late_warn_uninitialized): Removed
25629 * tree-flow.h: Add new prototypes.
25630 * timevar.def: Add new time variable.
25631 * Makefile.in: Add new build file.
25633 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
25635 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
25638 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25641 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
25643 2010-04-28 Martin Jambor <mjambor@suse.cz>
25645 * cgraph.h (struct cgraph_node): New field indirect_calls.
25646 (struct cgraph_indirect_call_info): New type.
25647 (struct cgraph_edge): Removed field indirect_call. New fields
25648 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
25649 (cgraph_create_indirect_edge): Declare.
25650 (cgraph_make_edge_direct): Likewise.
25651 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
25652 * ipa-prop.h (struct ipa_param_call_note): Removed.
25653 (struct ipa_node_params): Removed field param_calls.
25654 (ipa_create_all_structures_for_iinln): Declare.
25655 * cgraph.c: Described indirect edges and uids in initial comment.
25656 (cgraph_add_edge_to_call_site_hash): New function.
25657 (cgraph_edge): Search also among the indirect edges, use
25658 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
25659 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
25660 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
25662 (initialize_inline_failed): Assign a reason to indirect edges.
25663 (cgraph_create_edge_1): New function.
25664 (cgraph_create_edge): Moved some functionality to
25665 cgraph_create_edge_1.
25666 (cgraph_create_indirect_edge): New function.
25667 (cgraph_edge_remove_callee): Add an assert checking for
25669 (cgraph_edge_remove_caller): Special-case indirect edges.
25670 (cgraph_remove_edge): Likewise.
25671 (cgraph_set_edge_callee): New function.
25672 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
25673 (cgraph_make_edge_direct): New function.
25674 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
25675 the declaration of the call statement matches.
25676 (cgraph_node_remove_callees): Special-case indirect edges.
25677 (cgraph_clone_edge): Likewise.
25678 (cgraph_clone_node): Clone also the indirect edges.
25679 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
25680 indirect_call, dump count of indirect_calls edges.
25681 * ipa-prop.c (iinlining_processed_edges): New variable.
25682 (ipa_note_param_call): Create indirect edges instead of
25683 creating notes. New parameter node.
25684 (ipa_analyze_call_uses): New parameter node, pass it on to
25685 ipa_note_param_call.
25686 (ipa_analyze_stmt_uses): Likewise.
25687 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
25688 (print_edge_addition_message): Work on edges rather than on notes.
25689 (update_call_notes_after_inlining): Likewise, renamed to
25690 update_indirect_edges_after_inlining.
25691 (ipa_create_all_structures_for_iinln): New function.
25692 (ipa_free_node_params_substructures): Do not free notes.
25693 (ipa_edge_duplication_hook): Propagate bits within
25694 iinlining_processed_edges bitmap.
25695 (ipa_node_duplication_hook): Do not duplicate notes.
25696 (free_all_ipa_structures_after_ipa_cp): Renamed to
25697 ipa_free_all_structures_after_ipa_cp.
25698 (free_all_ipa_structures_after_iinln): Renamed to
25699 ipa_free_all_structures_after_iinln.
25700 (ipa_write_param_call_note): Removed.
25701 (ipa_read_param_call_note): Removed.
25702 (ipa_write_indirect_edge_info): New function.
25703 (ipa_read_indirect_edge_info): Likewise.
25704 (ipa_write_node_info): Do not stream notes, do stream information
25706 (ipa_read_node_info): Likewise.
25707 (lto_ipa_fixup_call_notes): Removed.
25708 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
25709 * ipa-inline.c (pass_ipa_inline): Likewise.
25710 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
25711 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
25712 * tree-inline.c (copy_bb): Removed an unnecessary double check for
25714 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
25716 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
25717 (output_cgraph): Stream also indirect edges.
25718 (lto_output_edge): Added capability to stream indirect edges.
25719 (input_edge): Likewise.
25720 (input_cgraph_1): Likewise.
25721 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
25724 2010-04-28 Richard Guenther <rguenther@suse.de>
25726 PR tree-optimization/43879
25727 PR tree-optimization/43909
25728 * tree-ssa-structalias.c (struct variable_info): Add
25729 only_restrict_pointers flag.
25730 (new_var_info): Initialize it. Increment stats.total_vars here.
25731 (create_function_info_for): Do not increment stats.total_vars here.
25732 (get_function_part_constraint): Fix build with C++.
25733 (insert_into_field_list): Remove.
25734 (push_fields_onto_fieldstack): Properly merge fields.
25735 (create_variable_info_for): Split and simplify.
25736 (create_variable_info_for_1): New piece.
25737 (intra_create_variable_infos): Properly make restrict constraints
25740 2010-04-28 Richard Guenther <rguenther@suse.de>
25743 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
25745 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
25746 Jan Hubicka <hubicka@ucw.cz>
25748 * doc/invoke.texi (-Wsuggest-attribute=const,
25749 -Wsuggest-attribute=pure): Document.
25750 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
25751 (function_always_visible_to_compiler_p,
25752 suggest_attribute, warn_function_pure, warn_function_const):
25754 (check_call): Improve debug info.
25755 (analyze_function): Do not check availability.
25756 (add_new_function): Check availability.
25757 (propagate): Output warnings.
25758 (skip_function_for_local_pure_const): New function.
25759 (local_pure_const): Use it; output warnings.
25760 * common.opt (Wsuggest-attribute=const,
25761 Wsuggest-attribute=pure): New.
25763 2010-04-27 Jakub Jelinek <jakub@redhat.com>
25765 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
25766 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
25767 or DW_CFA_def_cfa_offset{,_sf}.
25769 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
25771 * tree.h: Fix truncated long macros.
25773 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
25775 * collect2.c (TARGET_64BIT): Redefine to target's default.
25776 * tlink.c: Likewise.
25777 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
25778 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
25779 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
25780 for underscoring __USER_LABEL_PREFIX__.
25781 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
25782 (SUB_LINK_ENTRY32): New.
25783 (SUB_LINK_ENTRY64): New.
25784 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
25785 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
25786 (SUB_LINK_ENTRY64): New.
25787 (SUB_LINK_ENTRY): New.
25788 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
25789 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
25790 x64 target is choosen.
25791 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
25792 * configure: Regenerated.
25793 * configure.ac (leading-mingw64-underscores): Option added.
25795 2010-04-27 Jan Hubicka <jh@suse.cz>
25797 * doc/invoke.texi (-fipa-profile): Document.
25798 * opts.c (decode_options): Enable ipa-profile at -O1.
25799 * timevar.def (TV_IPA_PROFILE): Define.
25800 * common.opt (fipa-profile): Add.
25801 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
25803 (cgraph_propagate_frequency): Handle only local ones.
25804 * tree-pass.h (pass_ipa_profile): Declare.
25805 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
25806 (pass_ipa_profile): Use TV_IPA_PROFILE.
25807 * ipa.c (ipa_profile): New function.
25808 (gate_ipa_profile): Likewise.
25809 (pass_ipa_profile): New global variable.
25810 * passes.c (pass_ipa_profile): New.
25812 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
25814 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
25816 2010-04-27 Martin Jambor <mjambor@suse.cz>
25818 PR middle-end/43812
25819 * ipa.c (dissolve_same_comdat_group_list): New function.
25820 (function_and_variable_visibility): Call
25821 dissolve_same_comdat_group_list when comdat group contains external or
25823 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
25824 lists are circular and that they contain only DECL_ONE_ONLY nodes.
25826 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
25828 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
25829 (const_hash_1) <VECTOR_CST>: New case.
25830 (compare_constant) <VECTOR_CST>: Likewise.
25831 <ADDR_EXPR>: Deal with LABEL_REFs.
25832 (copy_constant) <VECTOR_CST>: New case.
25834 2010-04-27 Jan Hubicka <jh@suse.cz>
25836 * cgraph.c (cgraph_propagate_frequency): New function.
25837 * cgraph.h (cgraph_propagate_frequency): Declare.
25838 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
25839 cgraph_propagate_frequency.
25841 2010-04-27 Jakub Jelinek <jakub@redhat.com>
25843 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
25845 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
25848 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
25849 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
25850 here to determine which regs to push and how much stack to reserve.
25852 2010-04-27 Jie Zhang <jie@codesourcery.com>
25854 * doc/gimple.texi (gimple_statement_with_ops): Remove
25855 addresses_taken field.
25856 (gimple_statement_with_memory_ops): Likewise.
25858 2010-04-27 Jan Hubicka <jh@suse.cz>
25860 * tree-inline.c (eni_inlining_weights): Remove.
25861 (estimate_num_insns): Special case more builtins.
25863 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
25866 * c-typeck.c (build_binary_op): Move forward check for comparison
25867 pointer with null pointer constant and adjust the diagnostic message.
25869 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
25872 * configure.ac (gcc_cv_as_section_has_align): Set if installed
25873 binutils supports extended .section directive needed by LTO, or
25874 warn if older binutils found.
25875 (LTO_BINARY_READER): New AC_SUBST'd variable.
25876 (LTO_USE_LIBELF): Likewise.
25877 * config.gcc (lto_binary_reader): New target-specific configure
25879 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
25880 (LTO_USE_LIBELF): Likewise.
25881 * configure: Regenerate.
25883 * collect2.c (is_elf): Rename from this ...
25884 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
25885 object files in addition to ELF-formatted ones.
25886 (scan_prog_file): Caller updated. Also allow for LTO info marker
25887 symbol to be prefixed or not by an extra underscore.
25889 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
25890 * config/i386/winnt.c: Also #include lto-streamer.h
25891 (i386_pe_asm_named_section): Specify 1-byte section alignment for
25892 LTO named sections.
25893 (i386_pe_asm_output_aligned_decl_common): Add comment.
25894 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
25896 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
25899 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
25900 Add missing earlyclobber for second alternative.
25902 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
25904 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
25905 bits for artificial defs at the top of the block.
25906 * fwprop.c (single_def_use_enter_block): Don't call it.
25908 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
25911 * configure.ac: Use "$gcc_cv_nm -g" on darwin
25912 instead of "$gcc_cv_objdump -T".
25913 Use "-undefined dynamic_lookup" on darwin.
25914 * configure: Regenerate.
25916 2010-04-26 Jakub Jelinek <jakub@redhat.com>
25919 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
25921 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
25923 * c-parser.c (struct c_token): Move location field up.
25924 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
25925 (struct c_declspecs): Convert typespec_word, storage_class, and
25926 default_int_p into bitfields.
25927 (struct c_declarator): Move loc field up.
25929 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
25931 * cfgloop.h (struct loop): Move can_be_parallel field up.
25932 * ipa-prop.h (struct ip_node_params): Move bitfields up.
25933 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
25935 (struct iv_cand): Convert pos field into a bitfield.
25936 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
25938 (struct _stmt_vec_info): Shuffle fields for better packing.
25940 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
25942 * varasm.c (IN_NAMED_SECTION): Remove guard.
25943 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
25944 (IN_NAMED_SECTION_P): ...this.
25945 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
25946 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
25948 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
25950 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
25951 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
25952 of shadowing it. Fix comments.
25954 2010-04-26 Jan Hubicka <jh@suse.cz>
25956 * cgraph.c (cgraph_create_node): Set node frequency to normal.
25957 (cgraph_clone_node): Copy function frequency.
25958 * cgraph.h (node_frequency): New enum
25959 (struct cgraph_node): Add.
25960 * final.c (rest_of_clean_state): Update.
25961 * lto-cgraph.c (lto_output_node): Output node frequency.
25962 (input_overwrite_node): Input node frequency.
25963 * tre-ssa-loop-ivopts (computation_cost): Update.
25964 * lto-streamer-out.c (output_function): Do not output function
25966 * predict.c (maybe_hot_frequency_p): Update and handle functions
25968 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
25970 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
25971 (compute_function_frequency): Set noreturn functions to be executed
25973 (choose_function_section): Update.
25974 * lto-streamer-in.c (input_function): Do not input function frequency.
25975 * function.c (allocate_struct_function): Do not initialize function
25977 * function.h (function_frequency): Remove.
25978 (struct function): Remove function frequency.
25979 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
25980 (try_update): Update.
25981 * tree-inline.c (initialize_cfun): Do not update function frequency.
25982 * passes.c (pass_init_dump_file): Update.
25983 * i386.c (ix86_compute_frame_layout): Update.
25984 (ix86_pad_returns): Update.
25986 2010-04-26 Jie Zhang <jie@codesourcery.com>
25988 PR tree-optimization/43833
25989 * tree-vrp.c (range_int_cst_p): New.
25990 (range_int_cst_singleton_p): New.
25991 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
25992 when both operands are constants. Use range_int_cst_p in
25995 2010-04-26 Jan Hubicka <jh@suse.cz>
25997 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
25999 2010-04-26 Richard Guenther <rguenther@suse.de>
26002 * gimple.c (gimple_decl_printable_name): Deal gracefully
26003 with a NULL DECL_NAME.
26005 2010-04-26 Richard Guenther <rguenther@suse.de>
26008 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
26009 if emitting debug information and it is either a function
26010 or a namespace decl.
26012 2010-04-26 Ira Rosen <irar@il.ibm.com>
26014 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
26015 determine if the statement is vectorizable, and a macro to access it.
26016 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26017 Skip statements that can't be vectorized. If the analysis fails,
26018 mark the statement as unvectorizable if vectorizing basic block.
26019 (vect_compute_data_refs_alignment): Likewise.
26020 (vect_verify_datarefs_alignment): Skip statements marked as
26021 unvectorizable. Add print.
26022 (vect_analyze_group_access): Skip statements that can't be
26023 vectorized. If the analysis fails, mark the statement as
26024 unvectorizable if vectorizing basic block.
26025 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
26026 * tree-vect-stmts.c (vectorizable_store): Fix the number of
26027 generated stmts for SLP.
26028 (new_stmt_vec_info): Initialize the new field.
26029 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
26030 statements marked as unvectorizable.
26032 2010-04-25 Joseph Myers <joseph@codesourcery.com>
26034 * c-common.c (flag_isoc1x): New.
26035 (flag_isoc99): Update comment.
26036 * c-common.h (flag_isoc1x): New.
26037 (flag_isoc99): Update comment.
26038 * c-cppbuiltin.c (builtin_define_float_constants): Also define
26039 __<type>_DECIMAL_DIG__.
26040 * c-opts.c (set_std_c1x): New.
26041 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
26042 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
26043 * c.opt (-std=c1x, -std=gnu1x): New options.
26044 * doc/cpp.texi: Mention -std=c1x.
26045 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
26046 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
26047 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
26048 * doc/standards.texi: Mention C1X.
26049 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
26050 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
26051 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
26054 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
26056 * config/i386/gmon-sol2.c (_mcleanup): Change format string
26057 placeholder from 0x%x to %#x.
26058 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26059 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
26060 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
26061 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
26062 * config/i386/i386.c (ix86_target_string): Ditto.
26063 (output_pic_addr_const): Ditto.
26064 (print_operand): Ditto.
26066 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
26068 * combine.c (find_split_point): Add third argument. Use it
26069 to find nested multiply-accumulate instructions. Adjust calls.
26070 (try_combine): Adjust call to find_split_point.
26072 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
26074 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
26076 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
26078 PR tree-optimization/41442
26079 * fold-const.c (merge_truthop_with_opposite_arm): New function.
26080 (fold_binary_loc): Call it.
26082 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
26084 * toplev.c (general_init): Set default for fdiagnostics-show-option.
26085 * opts.c (common_handle_option): Allow disabling it.
26086 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
26088 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
26090 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
26091 between modes if both types are integral.
26093 2010-04-23 Richard Guenther <rguenther@suse.de>
26095 PR tree-optimization/43572
26096 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
26098 2010-04-23 Richard Guenther <rguenther@suse.de>
26101 * tree-inline.c (tree_can_inline_p): Also check compatibility
26104 2010-04-23 Martin Jambor <mjambor@suse.cz>
26106 PR tree-optimization/43846
26107 * tree-sra.c (struct access): New flag grp_assignment_read.
26108 (build_accesses_from_assign): Set grp_assignment_read.
26109 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
26110 (enum mark_read_status): New type.
26111 (analyze_access_subtree): Propagate grp_assignment_read, create
26112 accesses also if both direct_read and root->grp_assignment_read.
26114 2010-04-23 Martin Jambor <mjambor@suse.cz>
26116 PR middle-end/43835
26117 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
26118 function does not have type attributes.
26120 2010-04-23 Richard Guenther <rguenther@suse.de>
26123 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
26126 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26128 * sese.h (create_if_region_on_edge): Remove.
26130 * sese.c (create_if_region_on_edge): Make static.
26132 * tree-inline.c: Do not include ggc.h.
26134 * expr.c: Do not include ggc.h.
26136 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
26139 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
26142 * config/sh/sh.c (find_barrier): Don't emit a constant pool
26143 in the middle of insns for casesi_worker_2.
26145 2010-04-22 David Edelsohn <edelsohn@gnu.org>
26147 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
26149 2010-04-22 Ira Rosen <irar@il.ibm.com>
26151 PR tree-optimization/43842
26152 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
26153 loop unrolling in update of exit phis. Fix comment.
26154 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
26155 least two reduction statements in the loop before starting SLP
26158 2010-04-22 Nick Clifton <nickc@redhat.com>
26160 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
26162 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
26164 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
26165 to simplify a + ~a.
26167 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26169 * tree-parloops.c (loop_parallel_p): New argument
26170 parloop_obstack. Pass it down.
26171 (parallelize_loops): New variable parloop_obstack. Initialize it,
26172 pass it down, free it.
26174 * tree-loop-linear.c (linear_transform_loops): Pass down
26177 * tree-data-ref.h (lambda_compute_access_matrices): New argument
26178 of type struct obstack *.
26180 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
26181 scratch_obstack. Initialize it, pass down, free it.
26183 * lambda.h (lambda_loop_new): Remove.
26184 (lambda_matrix_new, lambda_matrix_inverse)
26185 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
26186 argument of type struct obstack *.
26188 * lambda-trans.c (lambda_trans_matrix_new): New argument
26189 lambda_obstack. Pass it down, use obstack allocation for ret.
26190 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
26193 * lambda-mat.c (lambda_matrix_get_column)
26194 (lambda_matrix_project_to_null): Remove.
26195 (lambda_matrix_new): New argument lambda_obstack. Use obstack
26196 allocation for mat.
26197 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
26200 * lambda-code.c (lambda_loop_new): New function.
26201 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
26202 (lambda_compute_auxillary_space, lambda_compute_target_space)
26203 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
26204 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
26205 (build_access_matrix): New argument lambda_obstack. Use obstack
26207 (lambda_compute_step_signs, lambda_compute_access_matrices): New
26208 argument lambda_obstack. Pass it down.
26210 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26212 * optabs.h (expand_widening_mult): Declare.
26214 2010-04-22 Richard Guenther <rguenther@suse.de>
26216 PR tree-optimization/43845
26217 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
26218 lookup the CALL_EXPR function and arguments.
26220 2010-04-22 Nick Clifton <nickc@redhat.com>
26222 * config/stormy16/stormy16.c
26223 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
26224 * config/stormy16/stormy16.h: Tidy up formatting.
26225 (DONT_USE_BUILTIN_SETJMP): Remove definition.
26226 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
26227 (ineqbranchsi): Delete pattern.
26228 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
26229 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
26230 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
26231 stormy16-lib2-ucmpsi2.c.
26233 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26235 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
26236 df_simulate_find_noclobber_defs as appropriate. Keep track of an
26237 extra set merge_set_noclobber, and use it to relax the final test
26239 * df.h (df_simulate_find_noclobber_defs): Declare.
26240 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
26242 (df_simulate_find_noclobber_defs): New function.
26244 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
26246 * config/i386/i386.md: Use {} around multi-line preparation statements.
26248 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26250 * c-tree.h (push_init_level, pop_init_level, set_init_index)
26251 (process_init_element): New argument of type struct obstack *.
26253 * c-typeck.c (push_init_level, pop_init_level, set_designator)
26254 (set_init_index, set_init_label, set_nonincremental_init)
26255 (set_nonincremental_init_from_string, find_init_member)
26256 (output_init_element, output_pending_init_elements)
26257 (process_init_element): New argument braced_init_obstack. Pass it
26259 (push_range_stack, add_pending_init): New argument
26260 braced_init_obstack. Use obstack allocation.
26262 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
26263 braced_init_obstack. Pass it down.
26264 (c_parser_braced_init): New variables ret, braced_init_obstack.
26265 Initialize obstack, pass it down and finally free it.
26267 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26269 PR middle-end/29274
26270 * tree-pass.h (pass_optimize_widening_mul): Declare.
26271 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
26272 gate_optimize_widening_mul): New static functions.
26273 (pass_optimize_widening_mul): New.
26274 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
26275 <case MULT_EXPR>: Remove support for widening multiplies.
26276 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
26277 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
26278 simplify_gen_unary rather than directly building extensions.
26279 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
26281 * expmed.c (expand_widening_mult): New function.
26282 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
26284 2010-04-21 Jan Hubicka <jh@suse.cz>
26286 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
26287 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
26288 * lto-wpa-fixup.c: Remove.
26289 * Makefile.in (lto-wpa-fixup.o): Remove.
26290 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
26291 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
26292 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
26294 2010-04-21 Jan Hubicka <jh@suse.cz>
26296 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
26297 add write_optimization_summary, read_optimization_summary.
26298 (ipa_write_summaries_of_cgraph_node_set): Remove.
26299 (ipa_write_optimization_summaries): Declare.
26300 (ipa_read_optimization_summaries): Declare.
26301 * ipa-cp.c (pass_ipa_cp): Update.
26302 * ipa-reference.c (pass_ipa_reference): Update.
26303 * ipa-pure-const.c (pass_ipa_pure_const): Update.
26304 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
26306 * ipa-inline.c (pass_ipa_inline): Update.
26307 * ipa.c (pass_ipa_whole_program): Update.
26308 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
26309 * passes.c (ipa_write_summaries_1): Do not test wpa.
26310 (ipa_write_optimization_summaries_1): New.
26311 (ipa_write_optimization_summaries): New.
26312 (ipa_read_summaries): Do not test ltrans.
26313 (ipa_read_optimization_summaries_1): New.
26314 (ipa_read_optimization_summaries): New.
26316 2010-04-21 Jan Hubicka <jh@suse.cz>
26318 * lto-cgraph.c (lto_output_node): Do not output comdat groups
26319 for boundary nodes.
26320 (output_cgraph): Do not arrange comdat groups for boundary nodes.
26322 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26325 * dwarf2out.c (add_name_and_src_coords_attributes): Add
26326 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
26328 2010-04-21 Jan Hubicka <jh@suse.cz>
26330 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
26332 2010-04-21 Jan Hubicka <jh@suse.cz>
26334 * varpool.c (decide_is_variable_needed): Variable is always needed
26337 2010-04-21 Jan Hubicka <jh@suse.cz>
26339 * opts.c (decode_options): Enable pure-const pass for whopr.
26341 2010-04-21 Jan Hubicka <jh@suse.cz>
26343 * cgraph.c (dump_cgraph_node): Dump also assembler name.
26344 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
26346 (cgraph_decide_inlining): Do not expect callee to be removed in all
26349 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
26351 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
26353 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
26355 * config/i386/i386.md (x86_shrd): Add athlon_decode and
26356 amdfam10_decode attributes.
26358 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26360 PR middle-end/43570
26361 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
26362 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
26363 (lower_copyprivate_clauses): Use private var in outer
26364 context instead of original var. Make sure the types
26365 are correct for VLAs.
26367 2010-04-21 Richard Guenther <rguenther@suse.de>
26369 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
26370 to non-pointer objects.
26372 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26374 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
26375 last chain entry if it starts with the still current label.
26376 (add_location_or_const_value_attribute): Check that
26377 loc_list->first->next is NULL instead of comparing ->first with ->last.
26378 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
26379 to add_var_loc_to_decl.
26381 * dwarf2out.c (output_call_frame_info): For dw_cie_version
26382 >= 4 add also address size and segment size fields into CIE header.
26384 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
26385 long as address size is the same as sizeof (void *) and
26387 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
26388 address size or segment size is unexpected, return DW_EH_PE_omit.
26389 (classify_object_over_fdes): If get_cie_encoding returned
26390 DW_EH_PE_omit, return -1.
26391 (init_object): If classify_object_over_fdes returned -1,
26392 pretend there were no FDEs at all.
26394 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
26396 * config/i386/i386.md (bswap<mode>2): Macroize expander from
26397 bswap{si,di}2 using SWI48 mode iterator.
26398 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
26399 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
26400 set modrm attribute of bswap insn to 0 and remove length attribute.
26401 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
26402 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
26403 set mode attribute to <MODE> and remove length attribute.
26405 2010-04-20 James E. Wilson <wilson@codesourcery.com>
26407 PR rtl-optimization/43520
26408 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
26409 zero available registers.
26411 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26413 * builtins.c (fold_builtin_cproj): Fold more cases.
26415 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26417 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
26418 (fold_builtin_1): Fold builtin cproj.
26419 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
26420 Use ATTR_CONST_NOTHROW_LIST.
26422 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
26424 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
26425 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
26426 ffsi2_no_cmove for !TARGET_CMOVE.
26427 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
26428 (ffssi2): Remove expander.
26429 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
26431 (ctz<mode>2): Ditto from ctz{si,di}2.
26432 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
26434 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
26437 2010-04-20 Jakub Jelinek <jakub@redhat.com>
26439 * dwarf2out.c (AT_linkage_name): Define.
26440 (clone_as_declaration): Handle DW_AT_linkage_name.
26441 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
26442 of DW_AT_MIPS_linkage_name.
26443 (move_linkage_attr): Likewise.
26444 (dwarf2out_finish): Likewise.
26446 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
26448 PR middle-end/41952
26449 * fold-const.c (fold_comparison): New folding rule.
26451 2010-04-20 Anatoly Sokolov <aesok@post.ru>
26453 * double-int.h (double_int_setbit): Declare.
26454 * double-int.c (double_int_setbit): New function.
26455 * rtl.h (immed_double_int_const): Declare.
26456 * emit-rtl.c (immed_double_int_const): New function.
26457 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
26458 and immed_double_int_const functions.
26459 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
26460 expand_copysign_bit): (Ditto.).
26461 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
26462 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
26463 * dojump.c (prefer_and_bit_test): (Ditto.).
26464 * expr.c (convert_modes, reduce_to_bit_field_precision,
26465 const_vector_from_tree): (Ditto.).
26466 * expmed.c (mask_rtx, lshift_value): (Ditto.).
26468 2010-04-20 Jan Hubicka <jh@suse.cz>
26470 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
26471 (dump_cgraph_node): Dump new flags.
26472 * cgraph.h (struct cgraph_node): Add flags
26473 reachable_from_other_partition and in_other_partition.
26474 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
26475 other partition can not be removed.
26476 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
26477 the other partition must be output; silence sanity checking on
26478 leaking functions bodies from other paritition.
26479 * lto-cgraph.c (reachable_from_other_partition_p): New function.
26480 (lto_output_node): Output new flags; do not sanity check that inline
26481 clones are output; drop lto_forced_extern_inline_p code; do not mock
26482 visibility flags at partition boundaries.
26483 (add_node_to): New function.
26484 (output_cgraph): Use it to sort functions so masters appear before
26486 (input_overwrite_node): Input new flags.
26487 * passes.c (ipa_write_summaries): Do not call
26488 lto_new_extern_inline_states.
26489 * lto-section-out.c (forced_extern_inline,
26490 lto_new_extern_inline_states lto_delete_extern_inline_states,
26491 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
26492 * lto-streamer.h (lto_new_extern_inline_states,
26493 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
26494 lto_forced_extern_inline_p): Kill.
26496 2010-04-20 Richard Guenther <rguenther@suse.de>
26498 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
26499 from vars that can have pointers.
26500 (process_constraint): Dump useless constraints.
26502 2010-04-20 Richard Guenther <rguenther@suse.de>
26504 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
26505 (dump_sa_points_to_info): Remove asserts.
26506 (init_base_vars): nothing_id isn't an escape point nor does it
26509 2010-04-20 Jakub Jelinek <jakub@redhat.com>
26511 * tree.h (TYPE_REF_IS_RVALUE): Define.
26512 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
26513 should_move_die_to_comdat, prune_unused_types_walk): Handle
26514 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
26515 (modified_type_die, gen_reference_type_die): Emit
26516 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
26517 if TYPE_REF_IS_RVALUE and -gdwarf-4.
26519 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26522 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
26523 calls for -fpic -m31 if they have been sibcall optimized.
26525 2010-04-19 James E. Wilson <wilson@codesourcery.com>
26527 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
26528 ar.lc fixed and call-used.
26530 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
26532 2010-04-19 Jan Hubicka <jh@suse.cz>
26534 * opts.c (decode_options): Disable whpr incompatible passes.
26535 * lto/lto.c (lto_1_to_1_map): Skip clones.
26536 (read_cgraph_and_symbols): Do not mark everything as needed.
26537 (do_whole_program_analysis): Do map only after optimizing;
26538 set proper cgraph_state; use passmanager.
26540 2010-04-19 DJ Delorie <dj@redhat.com>
26542 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
26543 POINTER_PLUS_EXPR and fix them.
26545 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
26547 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
26548 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
26549 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
26550 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
26551 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
26552 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
26553 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
26554 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
26555 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
26556 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
26557 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
26559 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
26561 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
26562 (check_cond_move_block): Likewise.
26563 (cond_move_process_if_block): Likewise.
26564 (noce_find_if_block): Improve formatting.
26565 (find_if_header): Pass 0 to memset and tweak conditions.
26566 (cond_exec_find_if_block): Fix long lines and tweak conditions.
26568 2010-04-19 Jakub Jelinek <jakub@redhat.com>
26570 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
26573 PR middle-end/43337
26574 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
26575 with non-local decl doesn't need chain.
26577 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
26579 * ira-color.c (allocno_reload_assign): Avoid accumulating
26580 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
26582 2010-04-19 Martin Jambor <mjambor@suse.cz>
26584 * gimple.h (create_tmp_reg): Declare.
26585 * gimplify.c (create_tmp_reg): New function.
26586 (gimplify_return_expr): Use create_tmp_reg.
26587 (gimplify_omp_atomic): Likewise.
26588 (gimple_regimplify_operands): Likewise.
26589 * tree-dfa.c (make_rename_temp): Likewise.
26590 * tree-predcom.c (predcom_tmp_var): Likewise.
26591 (reassociate_to_the_same_stmt): Likewise.
26592 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
26593 (get_replaced_param_substitute): Likewise.
26594 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
26595 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
26596 * tree-ssa-pre.c (get_representative_for): Likewise.
26597 (create_expression_by_pieces): Likewise.
26598 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
26599 (create_tailcall_accumulator): Likewise.
26601 2010-04-19 Martin Jambor <mjambor@suse.cz>
26603 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
26605 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
26607 2010-04-19 Richard Guenther <rguenther@suse.de>
26609 PR tree-optimization/43796
26610 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
26611 from SCEV in the lattice.
26612 (vrp_visit_phi_node): Dump change.
26614 2010-04-19 Richard Guenther <rguenther@suse.de>
26616 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
26617 * configure: Re-generated.
26619 2010-04-19 Richard Guenther <rguenther@suse.de>
26621 PR tree-optimization/43783
26622 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
26623 constant ARRAY_REF operands two and three if possible.
26625 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
26628 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
26630 2010-04-19 Jie Zhang <jie@codesourcery.com>
26633 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
26635 2010-04-19 Ira Rosen <irar@il.ibm.com>
26637 PR tree-optimization/37027
26638 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
26639 and macro to access it.
26640 (vectorizable_reduction): Add argument.
26641 (vect_get_slp_defs): Likewise.
26642 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
26643 statements for possible use in SLP.
26644 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
26645 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
26646 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
26648 (vectorizable_reduction): Likewise.
26649 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
26651 (vectorizable_type_demotion, vectorizable_type_promotion,
26652 vectorizable_store): Likewise.
26653 (vect_analyze_stmt): Update call to vectorizable_reduction.
26654 (vect_transform_stmt): Likewise.
26655 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
26656 (vect_build_slp_tree): Fix indentation. Check that there are no loads
26657 from different interleaving chains in same node.
26658 (vect_slp_rearrange_stmts): New function.
26659 (vect_supported_load_permutation_p): Allow load permutations for
26660 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
26661 inside SLP nodes if necessary.
26662 (vect_analyze_slp_instance): Handle reductions.
26663 (vect_analyze_slp): Try to build SLP instances originating from groups
26665 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
26666 (vect_get_constant_vectors): Create initial vectors for reductions
26667 according to reduction code. Add new argument.
26668 (vect_get_slp_defs): Add new argument, pass it to
26669 vect_get_constant_vectors.
26670 (vect_schedule_slp_instance): Remove SLP tree root statements.
26672 2010-04-19 Jakub Jelinek <jakub@redhat.com>
26674 * tree.h (ENUM_IS_SCOPED): Define.
26675 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
26676 for ENUM_IS_SCOPED enums.
26678 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
26680 * fold-const.c (fold_comparison): Use ssizetype.
26681 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
26682 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
26683 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
26684 * tree-object-size.c (compute_object_sizes): Use size_type_node.
26686 * tree.h (initialize_sizetypes): Remove parameter.
26687 (build_common_tree_nodes): Remove second parameter.
26688 * stor-layout.c (initialize_sizetypes): Remove parameter.
26689 Always create an unsigned type.
26690 (set_sizetype): Assert that the passed type is unsigned and simplify.
26691 * tree.c (build_common_tree_nodes): Remove second parameter.
26692 Adjust call to initialize_sizetypes.
26693 * c-decl.c (c_init_decl_processing): Remove second argument in call to
26694 build_common_tree_nodes.
26696 2010-04-18 Matthias Klose <doko@ubuntu.com>
26698 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
26700 2010-04-18 Ira Rosen <irar@il.ibm.com>
26702 PR tree-optimization/43771
26703 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
26704 load permutation doesn't have gaps.
26706 2010-04-18 Jan Hubicka <jh@suse.cz>
26708 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
26709 (sse_prologue_save_insn expander): Use new pattern.
26710 (sse_prologue_save_insn1): New pattern and splitter.
26711 (sse_prologue_save_insn): Update to deal also with 64bit aligned
26713 * i386.c (setup_incoming_varargs_64): Do not compute jump
26715 (ix86_gimplify_va_arg): Update alignment needed.
26716 (ix86_local_alignment): Do not align all local arrays to 128bit.
26718 2010-04-17 Jan Hubicka <jh@suse.cz>
26720 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
26722 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
26724 * arm.md (negdi2): Remove redundant code to force values into a
26727 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
26729 * arm/bpabi.S: Add EABI alignment attributes to objects.
26730 * arm/bpabi-v6m.S: Likewise.
26731 * arm/crti.asm: Likewise.
26732 * arm/crtn.asm: Likewise.
26733 * arm/lib1funcs.asm: Likewise.
26734 * arm/libunwind.S: Likewise.
26736 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
26738 * arm-protos.h (tune_params): New structure.
26739 * arm.c (current_tune): New variable.
26740 (arm_constant_limit): Delete.
26741 (struct processors): Add pointer to the tune parameters.
26742 (arm_slowmul_tune): New tuning option.
26743 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
26744 (all_cores): Adjust to pick up the tuning model.
26745 (arm_constant_limit): New function.
26746 (arm_override_options): Select the appropriate tuning model. Delete
26747 initialization of arm_const_limit.
26748 (arm_split_constant): Use the new constant-limit model.
26749 (arm_rtx_costs): Pick up the current tuning model.
26750 * arm.md (is_strongarm, is_xscale): Delete.
26751 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
26752 for Xscale variant architectures.
26753 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
26755 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26757 * config/arm/arm.c (arm_gen_constant): Remove unused variable
26759 (arm_rtx_costs_1): Remove unused variable extra_cost.
26760 (arm_unwind_emit_set): Use variable offset.
26761 (thumb1_output_casesi): Remove unused variable flags.
26763 2010-04-16 Jeff Law <law@redhat.com>
26765 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
26766 needing assignment rather than doing a two-phase assignment. Remove
26767 unused variable 'm'.
26769 2010-04-16 Jakub Jelinek <jakub@redhat.com>
26772 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
26774 2010-04-16 Doug Kwan <dougkwan@google.com>
26776 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
26777 (next_operand_entry_id): New static variable.
26778 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
26779 (add_to_ops_vec): Assigned unique ID to operand entry.
26780 (struct oecount_s): New field ID.
26781 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
26782 (undistribute_ops_list): Assign unique IDs to oecounts.
26783 (init_reassoc): reset next_operand_entry_id.
26785 2010-04-16 Doug Kwan <dougkwan@google.com>
26787 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
26788 missing left parenthesis.
26790 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
26792 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
26793 *btdi_rex64 using SWI48 mode iterator.
26794 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
26795 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
26796 *jcc_btdi_mask_rex64.
26798 2010-04-16 Anatoly Sokolov <aesok@post.ru>
26800 * double-int.h (tree_to_double_int): Convert to macro.
26801 * double-int.c (tree_to_double_int): Remove.
26803 2010-04-16 Jakub Jelinek <jakub@redhat.com>
26806 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
26807 with want_address 2 and in case a single element list might be
26808 possible, call it again with want_address 0.
26810 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26812 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
26813 case 'W' print operands for HI mode.
26814 * config/h8300/h8300.h (Y0, Y2) : New constraints.
26815 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
26816 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
26817 * config/h8300/predicate.md (bit_register_indirect_operand): New.
26819 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
26821 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
26822 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
26823 #xx:3 and #xx:4 mode.
26825 * config/h8300/h8300.md (inverted load with HImode dest): Add
26826 support for H8300SX.
26828 * config/h8300/predicate.md (bit_operand): Allow immediate values that
26829 satisfy 'U' constraint.
26831 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26833 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
26834 * configure: Regenerate.
26835 * config.in: Regenerate.
26836 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
26839 2010-04-16 Richard Guenther <rguenther@suse.de>
26841 * tree.h (struct tree_decl_minimal): Move pt_uid ...
26842 (struct tree_decl_common): ... here.
26843 (DECL_PT_UID): Adjust.
26844 (SET_DECL_PT_UID): Likewise.
26845 (DECL_PT_UID_SET_P): Likewise.
26847 2010-04-16 Richard Guenther <rguenther@suse.de>
26849 PR tree-optimization/43572
26850 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
26851 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
26852 * tree-flow.h (is_call_clobbered): Remove.
26853 * tree-flow-inline.h (is_call_clobbered): Likewise.
26854 * tree-dfa.c (dump_variable): Do not dump call clobber state.
26855 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
26856 (execute_return_slot_opt): Adjust.
26857 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
26858 check for call clobbered vars here.
26859 (find_tail_calls): Move tailcall verification to the
26862 2010-04-16 Diego Novillo <dnovillo@google.com>
26864 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
26866 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
26869 * config/arm/arm.md (cbranchqi4): New pattern.
26870 * config/arm/predicates.md (const0_operand,
26871 cbranchqi4_comparison_operator): New predicates.
26873 2010-04-16 Richard Guenther <rguenther@suse.de>
26875 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
26876 (dump_gimple_stmt): Likewise.
26878 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
26880 * recog.h (struct recog_data): New field is_operator.
26881 (struct insn_operand_data): New field is_operator.
26882 * recog.c (extract_insn): Set recog_data.is_operator.
26883 * genoutput.c (output_operand_data): Emit code to set the
26885 * reload.c (find_reloads): Use it rather than testing for an
26886 empty constraint string.
26889 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
26890 If the previous insn is a cbranchsi4_insn with the same arguments,
26891 omit the compare instruction.
26893 * config/arm/arm.md (addsi3_cbranch): If destination is a high
26894 register, inputs must be low registers and we need a low register
26895 scratch. Handle alternative 2 like alternative 3.
26897 2010-04-16 Jakub Jelinek <jakub@redhat.com>
26899 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
26900 don't call get_addr on both. If one expression is a VALUE and
26901 the other a REG, check VALUE's locs if the REG isn't among them.
26903 2010-04-16 Christian Bruel <christian.bruel@st.com>
26905 * config/sh/sh.h (sh_frame_pointer_required): New function.
26906 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
26907 (flag_omit_frame_pointer) Set.
26908 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
26909 (rounded_frame_size): Adjust size with outgoing_args_size.
26910 (sh_set_return_address): Must return from stack pointer.
26911 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
26912 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
26913 (ACCUMULATE_OUTGOING_ARGS): Define.
26914 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
26915 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
26917 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
26920 * config/sh/sh.c (sh_legitimize_reload_address): Use
26921 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
26922 Remove a unneeded check for offset_base.
26924 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
26926 * configure: Regenerated.
26928 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26930 * config/s390/s390.c (s390_call_save_register_used): Switch back
26931 to HARD_REGNO_NREGS.
26933 2010-04-15 Richard Guenther <rguenther@suse.de>
26935 * alias.c (alias_set_subset_of): Handle alias-set zero
26938 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
26939 Julian Brown <julian@codesourcery.com>
26941 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
26942 alternatives according to use of high and low regs.
26943 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
26944 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
26945 optimizing for size on Thumb-2.
26947 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
26949 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
26951 2010-04-15 Richard Guenther <rguenther@suse.de>
26953 * tree-ssa-structalias.c (struct variable_info): Add
26955 (new_var_info): Initialize it.
26956 (dump_constraints): Support printing last added constraints.
26957 (debug_constraints): Adjust.
26958 (dump_constraint_graph): Likewise.
26959 (make_heapvar_for): Check for NULL cfun.
26960 (get_function_part_constraint): New function.
26961 (get_fi_for_callee): Likewise.
26962 (find_func_aliases): Properly implement IPA PTA constraints.
26963 (process_ipa_clobber): New function.
26964 (find_func_clobbers): Likewise.
26965 (insert_into_field_list_sorted): Remove.
26966 (create_function_info_for): Properly allocate vars for IPA mode.
26967 Do not use insert_into_field_list_sorted.
26968 (create_variable_info_for): Properly generate constraints for
26969 global vars in IPA mode.
26970 (dump_solution_for_var): Always dump the solution.
26971 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
26972 (find_what_var_points_to): Adjust.
26973 (pt_solution_set): Change.
26974 (pt_solution_ior_into): New function.
26975 (pt_solution_empty_p): Export.
26976 (pt_solution_includes_global): Adjust.
26977 (pt_solution_includes_1): Likewise.
26978 (pt_solutions_intersect_1): Likewise.
26979 (dump_sa_points_to_info): Check some invariants.
26980 (solve_constraints): Move constraint dumping ...
26981 (compute_points_to_sets): ... here.
26982 (ipa_pta_execute): ... and here.
26983 (compute_may_aliases): Do not re-compute points-to info
26984 locally if IPA info is available.
26985 (ipa_escaped_pt): New global var.
26986 (ipa_pta_execute): Properly implement IPA PTA.
26987 * tree-into-ssa.c (dump_decl_set): Support dumping
26988 decls not in referenced-vars.
26989 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
26990 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
26991 (dump_points_to_solution): Likewise.
26992 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
26993 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
26994 (remap_gimple_stmt): Reset call clobber/use information if necessary.
26995 (copy_decl_to_var): Copy DECL_PT_UID.
26996 (copy_result_decl_to_var): Likewise.
26997 * tree.c (make_node_stat): Initialize DECL_PT_UID.
26998 (copy_node_stat): Copy it.
26999 * tree.h (DECL_PT_UID): New macro.
27000 (SET_DECL_PT_UID): Likewise.
27001 (DECL_PT_UID_SET_P): Likewise.
27002 (struct tree_decl_minimal): Add pt_uid member.
27003 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
27004 (pt_solution_empty_p): Declare.
27005 (pt_solution_set): Adjust.
27006 (ipa_escaped_pt): Declare.
27007 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
27008 * gimple-pretty-print.c (pp_points_to_solution): New function.
27009 (dump_gimple_call): Dump call clobber/use information.
27010 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
27011 * tree-pass.h (TDF_ALIAS): New dump option.
27012 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
27013 * doc/invoke.texi (-fipa-pta): Update documentation.
27015 2010-04-15 Richard Guenther <rguenther@suse.de>
27017 * Makefile.in (OBJS-common): Add gimple-fold.o.
27018 (gimple-fold.o): New rule.
27019 * tree.h (maybe_fold_offset_to_reference,
27020 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
27022 * gimple.h: ... here.
27023 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
27024 may_propagate_address_into_dereference): Move prototypes ...
27025 * gimple.h: ... here.
27026 * tree-ssa-ccp.c (get_symbol_constant_value,
27027 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
27028 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
27029 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
27030 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
27031 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
27032 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
27033 gimplify_and_update_call_from_tree): Move ...
27034 * gimple-fold.c: ... here. New file.
27035 (ccp_fold_builtin): Rename to ...
27036 (gimple_fold_builtin): ... this.
27037 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
27039 2010-04-15 Richard Guenther <rguenther@suse.de>
27041 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
27042 fit_double_type, force_fit_type_double, add_double_with_sign,
27043 neg_double, mul_double_with_sign, lshift_double, rshift_double,
27044 lrotate_double, rrotate_double, div_and_round_double): Move ...
27045 * double-int.c: ... here.
27046 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
27047 add_double, neg_double, mul_double_with_sign, mul_double,
27048 lshift_double, rshift_double, lrotate_double, rrotate_double,
27049 div_and_round_double): Move prototypes ...
27050 * double-int.h: ... here.
27052 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
27055 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
27056 matching constraints to ensure inputs match the output.
27058 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
27061 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
27062 in an input-only operand.
27064 2010-04-15 Anatoly Sokolov <aesok@post.ru>
27066 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
27067 (double_int_not, double_int_lshift, double_int_rshift): Declare.
27068 (double_int_negative_p): Convert to static inline function.
27069 * double-int.c (double_int_lshift, double_int_lshift): New functions.
27070 (double_int_negative_p): Remove.
27071 * tree.h (lshift_double, rshift_double):
27072 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
27073 * fold-const.c (fold_convert_const_int_from_real,
27074 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
27075 (lshift_double): Change type of arith argument to bool.
27076 (rshift_double): Change type of arith argument to bool. Correct
27078 * expmed.c (mask_rtx, lshift_value): (Ditto.).
27080 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
27083 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
27084 at the start and end of the then/else blocks, and omit them from the
27086 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
27087 argument; all callers changed. Pass zero to old_insns_match_p instead.
27088 (flow_find_head_matching_sequence): New function.
27089 (old_insns_match_p): Check REG_EH_REGION notes for calls.
27090 * basic-block.h (flow_find_cross_jump,
27091 flow_find_head_matching_sequence): Declare functions.
27093 2010-04-14 Jason Merrill <jason@redhat.com>
27096 * c-common.c (attribute_takes_identifier_p): New fn.
27097 * c-common.h: Declare it.
27099 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27101 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
27102 splitter condition.
27103 (*udivmod<mode>4): Ditto.
27105 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27107 * config/i386/i386.md (maxmin_int): Rename code attribute from
27108 maxminiprefix and update all users.
27109 (maxmin_float): Ditto from maxminfprefix.
27110 (logic): Ditto from logicprefix.
27111 (absneg_mnemonic): Ditto from absnegprefix.
27112 * config/i386/mmx.md: Update all users of maxminiprefix,
27113 maxminfprefix and logicprefix for rename.
27114 * config/i386/sse.md: Ditto.
27115 * config/i386/sync.md (sync_<code><mode>): Update for
27116 logicprefix rename.
27118 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
27121 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
27122 warnings converted to errors.
27124 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27126 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
27127 used insn_type variable.
27128 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
27129 to avoid set-but-not-used warning.
27131 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27133 * df-core.c (df_ref_debug): Change format string placeholder
27135 * dwarf2asm.c (dw2_asm_output_data_raw,
27136 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
27137 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
27138 * dwarf2out.c (output_cfi, output_cfi_directive,
27139 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
27140 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
27142 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
27143 * print-rtl.c (print_rtx): Ditto.
27145 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27147 PR middle-end/42694
27148 * builtins.c (expand_builtin_pow_root): New function to expand pow
27149 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
27150 series of sqrt and cbrt calls under -ffast-math.
27151 (expand_builtin_pow): Call it.
27153 2010-04-14 Michael Matz <matz@suse.de>
27155 PR tree-optimization/42963
27156 * tree-cfg.c (touched_switch_bbs): New static variable.
27157 (group_case_labels_stmt): New function broken out from ...
27158 (group_case_labels): ... here, use the above.
27159 (start_recording_case_labels): Allocate touched_switch_bbs.
27160 (end_recording_case_labels): Deallocate it, call
27161 group_case_labels_stmt.
27162 (gimple_redirect_edge_and_branch): Remember index of affected BB.
27164 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27166 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
27167 from insn template.
27169 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27171 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
27173 2010-04-13 Jan Hubicka <jh@suse.cz>
27175 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
27176 of optimized out static functions.
27177 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
27178 cost computation. Also sanity check for overflows.
27179 (update_caller_keys): Update cgraph_edge_badness call; properly
27180 update fibheap and sanity check that it is up to date.
27181 (add_new_edges_to_heap): Update cgraph_edge_badness.
27182 (cgraph_decide_inlining_of_small_function): Likewise;
27183 add sanity checking that badness in heap is up to date;
27184 improve dumping of reason; Update badness of calls to the
27185 offline copy of function currently inlined; dump badness
27186 of functions not inlined because of unit growth limits.
27188 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
27190 PR middle-end/32628
27191 * c-common.c (pointer_int_sum): Disregard overflow that occured only
27192 because of sign-extension change when converting to sizetype here...
27193 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
27195 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
27196 the folding to constants. Remove redundant final conversion.
27197 (fold_binary) <associate>: Do not associate if the re-association of
27198 constants alone overflows.
27199 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
27200 to the end of the list.
27201 (multiple_of_p) <COND_EXPR>: New case.
27203 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
27205 * opt-functions.awk (opt_sanitized_name): New.
27207 * optc-gen.awk: Use it
27208 * opth-gen.awk: Use it.
27210 2010-04-13 Martin Jambor <mjambor@suse.cz>
27212 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
27213 (sra_modify_assign): Delete stmts loading dead data even if racc has no
27214 children. Call replace_uses_with_default_def_ssa_name to handle
27217 2010-04-13 Michael Matz <matz@suse.de>
27219 PR middle-end/43730
27220 * builtins.c (expand_builtin_interclass_mathfn): Also create
27221 a register if the predicate doesn't match.
27223 2010-04-13 Diego Novillo <dnovillo@google.com>
27225 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
27226 * c-pch.c: Include timevar.h.
27227 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
27228 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
27229 * ggc-common.c: Include timevar.h.
27230 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
27231 * timevar.def (TV_PCH_SAVE): Define.
27232 (TV_PCH_CPP_SAVE): Define.
27233 (TV_PCH_PTR_REALLOC): Define.
27234 (TV_PCH_PTR_SORT): Define.
27235 (TV_PCH_RESTORE): Define.
27236 (TV_PCH_CPP_RESTORE): Define.
27238 2010-04-13 Michael Matz <matz@suse.de>
27240 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
27242 (can_reassociate_p): New function.
27243 (break_up_subtract_bb, reassociate_bb): Use it.
27245 2010-04-13 Richard Guenther <rguenther@suse.de>
27248 * builtins.c (c_readstr): Fix assert.
27250 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
27252 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
27253 when generating cltd insn.
27255 (*ashl<mode>3_1): Remove special handling for register operand 2.
27256 (*ashlsi3_1_zext): Ditto.
27257 (*ashlhi3_1): Ditto.
27258 (*ashlhi3_1_lea): Ditto.
27259 (*ashlqi3_1): Ditto.
27260 (*ashlqi3_1_lea): Ditto.
27261 (*<shiftrt_insn><mode>3_1): Ditto.
27262 (*<shiftrt_insn>si3_1_zext): Ditto.
27263 (*<shiftrt_insn>qi3_1_slp): Ditto.
27264 (*<rotate_insn><mode>3_1): Ditto.
27265 (*<rotate_insn>si3_1_zext): Ditto.
27266 (*<rotate_insn>qi3_1_slp): Ditto.
27268 2010-04-13 Richard Guenther <rguenther@suse.de>
27270 * tree-ssa-structalias.c (callused_id): Remove.
27271 (call_stmt_vars): New.
27272 (get_call_vi): Likewise.
27273 (lookup_call_use_vi): Likewise.
27274 (lookup_call_clobber_vi): Likewise.
27275 (get_call_use_vi): Likewise.
27276 (get_call_clobber_vi): Likewise.
27277 (make_transitive_closure_constraints): Likewise.
27278 (handle_const_call): Adjust to do per-call call-used handling.
27279 (handle_pure_call): Likewise.
27280 (find_what_var_points_to): Remove general callused handling.
27281 (init_base_vars): Likewise.
27282 (init_alias_vars): Initialize call_stmt_vars.
27283 (compute_points_to_sets): Process call-used and call-clobbered
27284 vars for call statements.
27285 (delete_points_to_sets): Free call_stmt_vars.
27287 2010-04-13 Richard Guenther <rguenther@suse.de>
27289 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27290 Only add RW dependence for dependence distance zero.
27291 Adjust maximal vectorization factor according to dependences.
27292 Move alignment handling ...
27293 (vect_find_same_alignment_drs): ... here. New function.
27294 (vect_analyze_data_ref_dependences): Adjust.
27295 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
27296 (vect_analyze_data_refs): Adjust minimal vectorization factor
27297 according to data references.
27298 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
27299 dependences before determining the vectorization factor.
27300 Analyze alignment after determining the vectorization factor.
27301 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
27302 dependences before alignment.
27303 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
27305 (vect_analyze_data_refs): Likewise.
27306 (MAX_VECTORIZATION_FACTOR): New define.
27308 2010-04-13 Duncan Sands <baldrick@free.fr>
27310 * except.h (lang_eh_type_covers): Remove.
27311 * except.c (lang_eh_type_covers): Likewise.
27313 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27314 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27316 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
27317 * config/s390/s390.c: Replace UNTIS_PER_WORD with
27318 UNITS_PER_LONG where it is ABI relevant.
27319 (s390_return_addr_rtx): Likewise.
27320 (s390_back_chain_rtx): Likewise.
27321 (s390_frame_area): Likewise.
27322 (s390_frame_info): Likewise.
27323 (s390_initial_elimination_offset): Likewise.
27324 (save_gprs): Likewise.
27325 (s390_emit_prologue): Likewise.
27326 (s390_emit_epilogue): Likewise.
27327 (s390_function_arg_advance): Likewise.
27328 (s390_function_arg): Likewise.
27329 (s390_va_start): Likewise.
27330 (s390_gimplify_va_arg): Likewise.
27331 (s390_function_profiler): Likewise.
27332 (s390_optimize_prologue): Likewise.
27333 (s390_rtx_costs): Likewise.
27334 (s390_secondary_reload): Likewise.
27335 (s390_promote_function_mode): Likewise.
27336 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
27337 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
27338 registers available.
27339 (s390_unwind_word_mode): New function.
27340 (s390_function_value): Split 64 bit values into register pair if
27341 used as return value.
27342 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
27343 function call parameters. Handle parallels.
27344 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
27345 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
27346 (DWARF_CIE_DATA_ALIGNMENT): New macro.
27347 (s390_expand_setmem): Remove unused variable src_addr.
27348 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
27349 deal with 64 bit registers.
27350 * config/s390/s390.h: Define __zarch__ predefined macro.
27351 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
27352 (UNITS_PER_LONG): New macro.
27353 * libjava/include/s390-signal.h: Define extended ucontext
27354 structure containing the upper halfs of the 64 bit registers.
27356 2010-04-13 Simon Baldwin <simonb@google.com>
27358 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
27360 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
27362 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
27363 rvalue on the RHS if the LHS is of a non-renamable type.
27364 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
27366 2010-04-13 Matthias Klose <doko@ubuntu.com>
27368 * gcc.c (cc1_options): Handle -iplugindir before processing
27369 the cc1 spec. Only add -iplugindir once.
27370 (cpp_unique_options): Add -iplugindir option if -fplugin* options
27372 * common.opt (iplugindir): Remove `Separate' property, initialize.
27373 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
27375 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
27376 (distclean): Remove plugin dir.
27377 * doc/invoke.texi: Document -iplugindir.
27379 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
27381 * doc/plugins.texi (Loading Plugins): Document short
27382 -fplugin=foo option.
27383 (Plugin API): Mention default_plugin_dir_name function.
27385 * gcc.c (find_file_spec_function): Add new declaration.
27386 (static_spec_func): Use it for "find-file".
27387 (find_file_spec_function): Add new function.
27388 (cc1_options): Add -iplugindir option if -fplugin* options found.
27390 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
27392 * plugin.c (add_new_plugin): Updated comment, and handle short
27394 (default_plugin_dir_name): Added new function.
27396 * common.opt (iplugindir): New option to set the plugin directory.
27398 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
27400 * config/i386/i386.md (any_rotate): New code iterator.
27401 (rotate_insn): New code attribute.
27403 (SWIM124): New mode iterator.
27404 (<rotate_insn>ti3): New expander.
27405 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
27406 any_rotate code iterator.
27407 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
27408 using any_rotate code iterator and SWIM124 mode iterator.
27409 (ix86_rotlti3): New insn_and_split pattern.
27410 (ix86_rotrti3): Ditto.
27411 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
27412 ix86_rotl{di,ti}3 patterns.
27413 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
27414 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
27415 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
27416 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
27417 code iterator and SWI mode iterator.
27418 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
27419 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
27421 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
27422 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
27423 (bswap rotatert splitter): Add splitter.
27424 (bswap splitter): Macroize splitter using any_rotate code iterator.
27425 Add insn predicate to split only for TARGET_USE_XCHGB or when
27426 optimizing function for size.
27428 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27430 * config/pa/pa.c (emit_move_sequence): Remove use of
27431 deleted variable flag_argument_noalias.
27433 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27435 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
27437 Add to unsupported targets list.
27438 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
27439 sparc*-sun-solaris2.[567]* from target lists.
27440 * configure: Regenerate.
27441 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
27443 Remove Solaris 7 patch references.
27444 (Specific, sparc-sun-solaris2.7): Removed.
27445 (sparc-sun-solaris2*): Update Solaris 7 example.
27446 (sparc64-*-solaris2*): Likewise.
27448 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27450 * config.build (alpha*-dec-osf4*): Remove.
27451 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
27452 of obsolete configurations.
27453 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
27455 * config/alpha/t-osf4: Renamed to ...
27456 * config/alpha/t-osf5: ... this.
27457 * config/alpha/osf.h: Renamed to ...
27458 * config/alpha/osf5.h: ... this.
27459 Merged old osf5.h contents.
27461 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
27462 (EXTRA_SPECS): Removed.
27463 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
27464 reflect removal of Tru64 UNIX V4.0/V5.0 support.
27467 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27469 * doc/contrib.texi (Contributors, Rainer Orth): Update.
27471 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
27474 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
27475 __thiscall convention.
27477 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27479 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
27481 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
27483 2010-04-12 Steve Ellcey <sje@cup.hp.com>
27485 * function.c (assign_parms_initialize_all): Add unused attribute
27488 2010-04-12 Richard Guenther <rguenther@suse.de>
27490 * gsstruct.def (GSS_CALL): New.
27491 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
27492 * gimple.h: Include tree-ssa-alias.h.
27493 (struct gimple_statement_call): New.
27494 (union gimple_statement_struct_d): Add gimple_call member.
27495 (gimple_call_reset_alias_info): Declare.
27496 (gimple_call_use_set): New function.
27497 (gimple_call_clobber_set): Likewise.
27498 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
27499 * gimple.c (gimple_call_reset_alias_info): New function.
27500 (gimple_build_call_1): Call it.
27501 * lto-streamer-in.c (input_gimple_stmt): Likewise.
27502 * tree-inline.c (remap_gimple_stmt): Likewise.
27503 (expand_call_inline): Remove callused handling.
27504 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
27505 * tree-dfa.c (dump_variable): Likewise.
27506 * tree-parloops.c (parallelize_loops): Likewise.
27507 * tree-ssa.c (init_tree_ssa): Likewise.
27508 (delete_tree_ssa): Likewise.
27509 * tree-flow-inline.h (is_call_used): Remove.
27510 * tree-flow.h (struct gimple_df): Remove callused member.
27511 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
27512 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
27513 (ref_maybe_used_by_call_p_1): Simplify.
27514 (call_may_clobber_ref_p_1): Likewise.
27515 * tree-ssa-structalias.c (compute_points_to_sets): Set
27516 the call stmt used and clobbered sets.
27517 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
27518 (find_tail_calls): Verify the tail call.
27520 2010-04-12 Richard Guenther <rguenther@suse.de>
27522 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
27523 single-iteration always-inline inlining.
27524 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
27525 (cgraph_decide_inlining): Do not handle always-inline specially.
27526 (try_inline): Remove always-inline cycle detection special case.
27527 Do not recurse on always-inlines.
27528 (cgraph_early_inlining): Do not iterate if not optimizing.
27529 (cgraph_gate_early_inlining): remove.
27530 (pass_early_inline): Run unconditionally.
27531 (gate_cgraph_decide_inlining): New function.
27532 (pass_ipa_inline): Use it. Do not run the IPA inliner if
27533 not inlining or optimizing.
27534 (cgraph_decide_inlining_of_small_functions): Also consider
27535 always-inline functions.
27536 (cgraph_default_inline_p): Return true for nodes which should
27537 disregard inline limits.
27538 (estimate_function_body_sizes): Assume zero size and time for
27539 nodes which are marked as disregarding inline limits.
27540 (cgraph_decide_recursive_inlining): Do not perform recursive
27541 inlining on always-inline nodes.
27543 2010-04-12 Jakub Jelinek <jakub@redhat.com>
27546 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
27547 for exprs satisfying handled_component_p.
27549 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
27551 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
27552 non-constant aggregate elements.
27554 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
27555 is a real initialization.
27557 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
27560 * c-decl.c (start_function): Move forward check for nested function.
27562 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
27564 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
27565 * config/sh/sh.c: Include reload.h.
27566 (sh_legitimize_reload_address): New.
27567 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
27568 sh_legitimize_reload_address.
27570 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27572 * config/sh/sh.md (*movqi_pop): New insn pattern.
27573 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
27575 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27577 * config/i386/i386.md (any_shiftrt): New code iterator.
27578 (shiftrt_insn): New code attribute.
27580 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
27581 using any_shiftrt code iterator.
27582 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
27583 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
27584 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
27585 pattern from corresponding peephole2 patterns.
27586 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
27587 using any_shiftrt code iterator.
27588 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
27589 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
27590 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
27591 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
27592 *{ashr,lshr}<mode>3_cmp_zext.
27593 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
27595 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27597 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
27599 (*lshr<mode>3_cconly): Ditto.
27601 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27603 * config/i386/i386.md (lshr<mode>3): Macroize expander from
27604 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
27605 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
27606 pattern from *lshr{di,ti}3_1 and corresponding splitters using
27608 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
27609 from corresponding peephole2 patterns.
27610 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
27611 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
27612 and *lshrdi3_1_rex64 using SWI mode iterator.
27613 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
27614 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
27615 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
27616 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
27617 and *lshrdi3_cmp_rex64 using SWI mode iterator.
27618 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
27619 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
27620 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
27621 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
27624 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
27626 * config/i386/i386.md (ashr<mode>3): Macroize expander from
27627 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
27628 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
27629 pattern from *ashr{di,ti}3_1 and corresponding splitters using
27631 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
27632 from corresponding peephole2 patterns.
27633 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
27634 (ashrsi3_cvt): Rename from ashrsi3_31.
27635 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
27636 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
27637 and x86_64_shift_adj_3 using SWI48 mode iterator.
27638 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
27639 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
27640 and *ashrdi3_1_rex64 using SWI mode iterator.
27641 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
27642 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
27643 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
27644 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
27645 and *ashrdi3_cmp_rex64 using SWI mode iterator.
27646 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
27647 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
27648 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
27649 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
27651 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
27652 * config/i386/i386.c (ix86_split_ashr): Update for renamed
27653 x86_shift<mode>_adj_3 expanders.
27655 2010-04-10 Wei Guozhi <carrot@google.com>
27658 * config/arm/arm.c (arm_pic_static_addr): New function.
27659 (legitimize_pic_address): Call arm_pic_static_addr when it detects
27661 (arm_output_addr_const_extra): Output expression for new pattern.
27662 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
27664 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
27666 * ira-costs.c (record_reg_classes): Ignore alternatives that are
27669 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
27670 * web.c: Include "insn-config.h" and "recog.h".
27671 (union_match_dups): New function.
27672 (web_main): Call it.
27673 (union_defs): Don't try to recognize match_dups.
27675 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
27676 if doing so would replace the entire pattern.
27678 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
27682 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
27683 and splitter pattern. Change splitter operand 1 predicate to
27686 2010-04-09 Martin Jambor <mjambor@suse.cz>
27688 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
27689 lattices are addresses of CONST_DECLs with the same initial value.
27690 (ipcp_print_all_lattices): Print values of CONST_DECLs.
27691 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
27693 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
27694 Bernd Schmidt <bernds@codesourcery.com>
27696 * loop-invariant.c (replace_uses): New static function.
27697 (move_invariant_reg): Use it to ensure we can replace the uses.
27699 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
27701 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
27703 (picochip_override_options): Enable section anchors only above -O1.
27704 (picochip_reorg): Fixed a couple of build warnings.
27706 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27708 * configure.ac (plugin -rdynamic test): Log result.
27709 * configure: Regenerate.
27710 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
27711 (RDYNAMIC_SPEC): Define.
27712 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
27714 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27716 * configure.ac: Determine Sun ld version numbers.
27717 (comdat_group): Restrict GNU ld version checks to gld.
27718 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
27719 (enable_comdat): Support --enable-comdat.
27720 * configure: Regenerate.
27721 * doc/install.texi (Configuration): Document --enable-comdat.
27723 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27725 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
27726 * config/sol2-gld.h: ... here.
27727 * config.gcc (sparc*-*-solaris2*): Reflect this.
27728 (i[34567]86-*-solaris2*): Use it.
27730 2010-04-09 Steve Ellcey <sje@cup.hp.com>
27732 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
27734 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
27736 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
27739 * diagnostic.c (diagnostic_initialize): Initialize
27740 some_warnings_are_errors.
27741 (diagnostic_finish): New.
27742 (diagnostic_action_after_output): Call it before exiting.
27743 (diagnostic_report_diagnostic): Do not print message here. Set
27744 some_warnings_are_errors.
27745 * diagnostic.h (diagnostic_context): Delete
27746 issue_warnings_are_errors_message. Add some_warnings_are_errors.
27747 (diagnostic_finish): Declare.
27748 * toplev.c (toplev_main): Call it before exit.
27750 2010-04-09 Jason Merrill <jason@redhat.com>
27753 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
27754 for incomplete type.
27757 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
27758 based on a warning flag.
27760 2010-04-09 Richard Guenther <rguenther@suse.de>
27762 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
27764 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
27767 * varasm.c (default_assemble_visibility): Wrap vars that are
27768 set, but unused, by targets without GAS.
27769 * config/rs6000/rs6000.c (paired_emit_vector_compare):
27770 Remove set, but unused, vars.
27771 (rs6000_legitimize_tls_address): Likewise.
27772 (altivec_expand_dst_builtin): Likewise.
27773 * config/darwin.c (machopic_classify_symbol): Likewise.
27774 (machopic_indirection_name): Likewise.
27776 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
27778 * config/i386/i386.md (DWI): New mode iterator.
27779 (S): New mode attribute.
27780 (shift_operand): Ditto.
27781 (shift_immediate_operand): Ditto.
27782 (ashl_input_operand): Ditto.
27783 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
27784 using SDWIM mode iterator.
27785 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
27786 pattern from *ashl{di,ti}3_1 and corresponding splitters using
27788 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
27789 from corresponding peephole2 patterns.
27790 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
27791 and x86_64_shift_adj_1 using SWI48 mode iterator.
27792 (x86_shift<mode>_adj_2): Ditto.
27793 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
27794 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
27795 using SWI48 mode iterator.
27796 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
27797 *ashldi3_cmp_rex64 using SWI mode iterator.
27798 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
27799 *ashldi3_cconly_rex64 using SWI mode iterator.
27800 * config/i386/i386.c (ix86_split_ashl): Update for renamed
27801 x86_shift<mode>_adj_{1,2}.
27802 (ix86_split_ashr): Ditto.
27803 (ix86_split_lshr): Ditto.
27805 2010-04-09 Richard Guenther <rguenther@suse.de>
27807 * target.h (builtin_conversion): Pass in input and output types.
27808 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
27809 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
27810 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
27811 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
27813 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
27815 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
27817 2010-04-09 Richard Guenther <rguenther@suse.de>
27820 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
27822 2010-04-09 Richard Guenther <rguenther@suse.de>
27824 * tree-vectorizer.h (struct _stmt_vec_info): Document
27825 that vectype is the type of the LHS.
27826 (supportable_widening_operation, supportable_narrowing_operation):
27827 Get both input and output vector types as arguments.
27828 (vect_is_simple_use_1): Declare.
27829 (get_same_sized_vectype): Likewise.
27830 * tree-vect-loop.c (vect_determine_vectorization_factor):
27831 Set STMT_VINFO_VECTYPE to the vector type of the def.
27832 (vectorizable_reduction): Adjust.
27833 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
27834 Adjust. Specify the output vector type.
27835 (vect_pattern_recog_1): Adjust.
27836 * tree-vect-stmts.c (get_same_sized_vectype): New function.
27837 (vectorizable_call): Adjust.
27838 (vectorizable_conversion): Likewise.
27839 (vectorizable_operation): Likewise.
27840 (vectorizable_type_demotion): Likewise.
27841 (vectorizable_type_promotion): Likewise.
27842 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
27844 (vect_is_simple_use_1): New function.
27845 (supportable_widening_operation): Get both input and output
27847 (supportable_narrowing_operation): Likewise.
27848 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
27850 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
27852 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
27853 __thiscall and _thiscall as predefined macros.
27854 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
27855 thiscall attribute handling.
27856 (ix86_comp_type_attributes): Likewise.
27857 (ix86_function_regparm): Likewise.
27858 (ix86_return_pops_args): Likewise.
27859 (init_cumulative_args): Likewise.
27860 (find_drap_reg): Likewise.
27861 (ix86_static_chain): Likewise.
27862 (x86_this_parameter): Likewise.
27863 (x86_output_mi_thunk): Likewise.
27864 (ix86_attribute_table): Add description for thiscall attribute.
27865 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
27866 * doc/extend.texi: Add documentation for thiscall.
27868 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
27871 * c.opt (Wint-to-pointer-cast): Available in C++.
27872 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
27874 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
27876 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
27877 * calls.c (expand_call): Pass the function type to aggregate_value_p.
27878 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
27879 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
27880 function type instead. Reorder and simplify checks.
27882 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
27884 2010-04-08 Jing Yu <jingyu@google.com>
27885 Zdenek Dvorak <ook@ucw.cz>
27887 PR tree-optimization/42720
27888 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
27889 loop unswitch conditions here from ...
27890 (tree_unswitch_single_loop): ... here.
27892 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
27894 * tree-if-conv.c: Fix comments and simplify logic.
27896 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
27898 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
27899 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
27900 (main_tree_if_conversion): Update call to tree_if_conversion.
27902 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
27905 * doc/invoke.texi (-b,-V): Delete.
27906 * doc/tm.texi: Do not mention -b.
27907 * gcc.c (display_help): Delete -b and -V.
27908 (process_command): Delete -b and -V.
27909 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
27911 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
27912 Wolfgang Gellerich <gellerich@de.ibm.com>
27914 Implement target hook for loop unrolling
27915 * target.h (loop_unroll_adjust): Add a new target hook function.
27916 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
27917 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
27918 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
27919 (s390_loop_unroll_adjust): Implement the new target hook for s390.
27920 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
27922 (decide_unroll_stupid): Likewise.
27924 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27927 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
27929 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27931 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
27932 (Specific, *-*-solaris2*): Likewise.
27933 Don't prefer Sun as over GNU as.
27935 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
27937 * config/s390/s390.c (override_options): Adjust the z10 defaults
27938 for max-unroll-times, max-completely-peeled-insns
27939 and max-completely-peel-times.
27941 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27943 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
27944 instructions for z10.
27945 (s390_expand_setmem): Likewise.
27946 (s390_expand_cmpmem): Likewise.
27948 2010-04-08 Richard Guenther <rguenther@suse.de>
27950 PR tree-optimization/43679
27951 * tree-ssa-pre.c (eliminate): Only propagate copies.
27953 2010-04-08 Jakub Jelinek <jakub@redhat.com>
27956 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
27957 set but not used variable warning.
27959 2010-04-08 Wei Guozhi <carrot@google.com>
27962 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
27963 (arm_size_rtx_costs): Call the new function when optimized for size.
27965 2010-04-08 Jakub Jelinek <jakub@redhat.com>
27968 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
27969 op0 is not a MEM, just return NULL instead of assertion
27971 (discover_nonconstant_array_refs): Don't walk debug stmts.
27973 2010-04-08 Doug Kwan <dougkwan@google.com>
27975 * configure.ac: Recognize gold and do not use its version number
27976 to test ld features.
27977 * configure: Regenerate.
27979 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
27981 PR middle-end/40815
27982 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
27983 (negate_value): Move code to push elements to broken_up_substracts ...
27984 (eliminate_plus_minus_pair): ... here. Push operands that have no
27985 negative pair to plus_negates.
27986 (repropagate_negates, init_reassoc, fini_reassoc): Update.
27988 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27990 * doc/install.texi (Configuration): Move description of
27991 --enable-lto, --with-libelf*, --enable-gold from Java section to
27994 * doc/generic.texi (Working with declarations)
27995 (Function Properties, C and C++ Trees): Fix typos.
27996 * doc/sourcebuild.texi (Top Level): Likewise.
27998 2010-04-07 Jakub Jelinek <jakub@redhat.com>
28001 * tree.h (DECL_READ_P): Define.
28002 (struct tree_decl_common): Add decl_read_flag.
28003 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
28004 a set but not used warning.
28005 (merge_decls): Merge DECL_READ_P flag.
28006 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
28007 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
28008 * c-common.c (handle_used_attribute, handle_unused_attribute):
28010 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
28012 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
28014 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
28015 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
28016 c_parser_binary_expression, c_parser_cast_expression,
28017 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
28018 Call default_function_array_read_conversion instead of
28019 default_function_array_conversion where needed.
28020 (c_parser_unary_expression, c_parser_conditional_expression,
28021 c_parser_postfix_expression_after_primary, c_parser_initelt):
28022 Likewise. Call mark_exp_read where needed.
28023 (c_parser_statement_after_labels, c_parser_asm_operands,
28024 c_parser_typeof_specifier, c_parser_sizeof_expression,
28025 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
28027 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
28029 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
28030 (warn_unused_but_set_parameter): Default to warn_unused
28032 * doc/invoke.texi: Document -Wunused-but-set-variable and
28033 -Wunused-but-set-parameter.
28035 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
28036 used count variable.
28037 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
28038 when operandN variables aren't used in the body of the expander
28040 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
28041 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
28042 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
28043 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
28044 FOR_EACH_IMM_USE_ON_STMT): Likewise.
28045 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
28046 * tree.c (PROCESS_ARG): Likewise.
28048 2010-04-07 Simon Baldwin <simonb@google.com>
28050 * diagnostic.h (diagnostic_override_option_index): New macro to
28051 set a diagnostic's option_index.
28052 * c-tree.h (c_cpp_error): Add warning reason argument.
28053 * opts.c (_warning_as_error_callback): New.
28054 (register_warning_as_error_callback): Store callback for
28055 warnings enabled via enable_warning_as_error.
28056 (enable_warning_as_error): Call callback, minor code tidy.
28057 * opts.h (register_warning_as_error_callback): Declare.
28058 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
28059 response to -Werror=.
28060 (c_common_init_options): Register warning_as_error_callback in opts.c.
28061 * common.opt: Add -Wno-cpp option.
28062 * c-common.c (struct reason_option_codes_t): Map cpp warning
28063 reason codes to gcc option indexes.
28064 * (c_option_controlling_cpp_error): New function, lookup the gcc
28065 option index for a cpp warning reason code.
28066 * (c_cpp_error): Add warning reason argument, call
28067 c_option_controlling_cpp_error for diagnostic_override_option_index.
28068 * doc/invoke.texi: Document -Wno-cpp.
28070 2010-04-07 Richard Guenther <rguenther@suse.de>
28072 * ipa-reference.c (mark_load): Use get_base_address.
28073 (mark_store): Likewise.
28075 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
28076 inserting GIMPLE_NOPs into the IL.
28077 * tree-ssa-structalias.c (get_constraint_for_component_ref):
28078 Explicitly strip handled components and indirect references.
28080 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
28081 folding address expressions.
28082 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
28083 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
28084 operand_equal_p to compare decls.
28085 (ptr_deref_may_alias_decl_p): Likewise.
28086 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
28087 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
28088 Handle reversed comparison ops.
28089 * tree-sra.c (asm_visit_addr): Use get_base_address.
28090 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
28091 * ipa-reference.c (mark_address): Use get_base_address.
28093 2010-04-07 Richard Guenther <rguenther@suse.de>
28095 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
28096 Propagate constants everywhere.
28098 2010-04-07 Jakub Jelinek <jakub@redhat.com>
28101 * tree.c (MAX_INT_CACHED_PREC): Define.
28102 (nonstandard_integer_type_cache): New array.
28103 (build_nonstandard_integer_type): Cache results for precision
28104 <= MAX_INT_CACHED_PREC.
28106 2010-04-07 Richard Guenther <rguenther@suse.de>
28108 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
28109 -fargument-noalias-global, -fargument-noalias-anything): Remove.
28110 * common.opt: Likewise.
28111 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
28112 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
28113 (nonoverlapping_memrefs_p): Likewise.
28114 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
28115 * opts.c (common_handle_option): Handle OPT_fargument_alias,
28116 OPT_fargument_noalias, OPT_fargument_noalias_anything and
28117 OPT_fargument_noalias_global for backward compatibility.
28119 2010-04-07 Richard Guenther <rguenther@suse.de>
28121 PR tree-optimization/43270
28122 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
28123 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
28124 * tree-ssa-pre.c (phi_translate_1): Adjust.
28125 (fully_constant_expression): Split out vn_reference handling to ...
28126 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
28127 Fold reads from constant strings.
28128 (vn_reference_lookup): Handle fully constant references.
28129 (vn_reference_lookup_pieces): Likewise.
28130 * Makefile.in (expmed.o-warn): Add -Wno-error.
28132 2010-04-07 Martin Jambor <mjambor@suse.cz>
28134 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
28136 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
28139 * gcc.c: Add -static-libstdc++ to list of recognized options.
28141 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28143 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
28145 2010-04-07 Richard Guenther <rguenther@suse.de>
28147 PR middle-end/42617
28148 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
28149 bases build simple mem attributes to retain points-to information.
28151 2010-04-07 Richard Guenther <rguenther@suse.de>
28153 PR middle-end/42617
28154 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
28155 preserve points-to related information.
28157 2010-04-07 Richard Guenther <rguenther@suse.de>
28159 PR middle-end/42617
28160 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
28161 discard plain indirect references.
28162 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
28163 * tree.c (tree_nop_conversion): Likewise.
28165 2010-04-07 Dodji Seketeli <dodji@redhat.com>
28168 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
28170 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
28172 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
28173 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
28175 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28177 * tree-if-conv.c: Fix indentation and comments.
28179 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28181 * tree-if-conv.c: Sort static functions in topological order.
28183 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28185 * tree-if-conv.c: Fix indentation and comments.
28187 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28189 PR middle-end/43519
28190 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
28191 lang_hooks.types.type_for_size instead of
28192 build_nonstandard_integer_type.
28193 When converting an unsigned type to signed, double its precision.
28194 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
28195 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
28196 (graphite_create_new_loop_guard): When ub + 1 wraps around,
28199 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28201 PR middle-end/43519
28202 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
28203 POINTER_PLUS_EXPR for pointer types.
28205 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28207 PR middle-end/43519
28208 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
28209 * graphite-clast-to-gimple.c: Include langhooks.h.
28210 (max_signed_precision_type): New.
28211 (max_precision_type): Takes two types as arguments.
28212 (precision_for_value): New.
28213 (precision_for_interval): New.
28214 (gcc_type_for_interval): New.
28215 (gcc_type_for_value): New.
28216 (gcc_type_for_clast_term): New.
28217 (gcc_type_for_clast_red): New.
28218 (gcc_type_for_clast_bin): New.
28219 (gcc_type_for_clast_expr): Split up into several functions.
28220 (gcc_type_for_clast_eq): Rewritten.
28221 (compute_bounds_for_level): New.
28222 (compute_type_for_level_1): New.
28223 (compute_type_for_level): New.
28224 (gcc_type_for_cloog_iv): Removed.
28225 (gcc_type_for_iv_of_clast_loop): Rewritten.
28226 (graphite_create_new_loop): Compute the lower and upper bound types
28227 with gcc_type_for_clast_expr.
28228 (graphite_create_new_loop_guard): Same.
28229 (find_cloog_iv_in_expr): Removed.
28230 (compute_cloog_iv_types_1): Removed.
28231 (compute_cloog_iv_types): Removed.
28232 (gloog): Do not call compute_cloog_iv_types.
28233 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
28234 GBB_CLOOG_IV_TYPES.
28235 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
28236 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
28237 (GBB_CLOOG_IV_TYPES): Removed.
28239 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28241 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
28242 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
28243 (detect_commutative_reduction): Same.
28245 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28247 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
28248 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
28250 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
28251 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
28252 (rewrite_commutative_reductions_out_of_ssa): Same.
28253 * passes.c (execute_function_todo): Call verify_ssa for every pass
28254 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
28255 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
28256 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
28257 with an extra argument.
28258 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
28259 verify_ssa only when the extra argument is true.
28260 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
28261 with an extra argument.
28262 (tree_transform_and_unroll_loop): Same.
28264 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28266 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
28267 for all the passes of the LNO having LOOP_CLOSED_SSA.
28268 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
28269 * tree-loop-distribution.c (pass_loop_distribution): Same.
28270 * tree-pass.h (TODO_verify_loops): Removed.
28271 * tree-ssa-loop.c (pass_tree_loop_init): Same.
28273 (pass_tree_unswitch): Same.
28274 (pass_predcom): Same.
28275 (pass_vectorize): Same.
28276 (pass_linear_transform): Same.
28277 (pass_graphite_transforms): Same.
28278 (pass_iv_canon): Same.
28279 (pass_complete_unroll): Same.
28280 (pass_complete_unrolli): Same.
28281 (pass_parallelize_loops): Same.
28282 (pass_loop_prefetch): Same.
28283 (pass_iv_optimize): Same.
28285 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
28287 PR middle-end/32824
28288 * passes.c (init_optimization_passes): Move pass_lim before
28289 pass_copy_prop and pass_dce_loop.
28291 2010-04-06 Jakub Jelinek <jakub@redhat.com>
28294 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
28295 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
28296 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
28297 MULTI_* defines for 4 argument vpermil2p* builtins.
28299 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
28301 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
28302 * config/i386/i386.c (x86_maybe_negate_const_int): New.
28303 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
28304 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
28305 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
28306 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
28307 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
28308 Use x86_maybe_negate_const_int to output insn mnemonic.
28309 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
28310 check from instruction predicate. Update comments.
28311 * config/i386/sync.md (sync_add<mode>): Use
28312 x86_maybe_negate_const_int to output insn mnemonic.
28314 2010-04-06 Jan Hubicka <jh@suse.cz>
28316 PR tree-optimization/42906
28317 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
28318 IGNORE_SELF argument. Set visited_control_parents for fully
28320 (find_obviously_necessary_stmts): Update call of
28321 mark_control_dependent_edges_necessary.
28322 (propagate_necessity): Likewise. Handle PHI edges more curefully.
28324 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
28326 * config/i386/i386.md: Remove comment about 'e' and 'E'
28329 2010-04-06 Richard Guenther <rguenther@suse.de>
28331 PR tree-optimization/43627
28332 * tree-vrp.c (extract_range_from_unary_expr): Widenings
28333 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
28336 2010-04-06 Jakub Jelinek <jakub@redhat.com>
28338 * BASE-VER: Change to 4.6.0.
28341 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
28344 2010-04-06 Richard Guenther <rguenther@suse.de>
28346 PR middle-end/43661
28347 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
28349 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28351 * doc/invoke.texi (Optimize Options): Document that LTO
28352 won't remove object access purely due to incompatible
28355 2010-04-04 Matthias Klose <doko@ubuntu.com>
28357 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
28358 Initialize variable.
28360 2010-04-03 Richard Guenther <rguenther@suse.de>
28362 PR middle-end/42509
28363 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
28364 require a non-NULL MEM_OFFSET.
28366 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
28368 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
28369 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
28370 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
28371 config/alpha/predicates.md, config/arm/arm.md,
28372 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
28373 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
28374 config/darwin9.h, config/darwin.c, config/darwin.h,
28375 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
28376 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
28377 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
28378 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
28379 config/mips/mips.md, config/mn10300/mn10300.c,
28380 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
28381 config/rs6000/aix.h, config/rs6000/dfp.md,
28382 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
28383 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
28384 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
28385 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
28386 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
28387 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
28388 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
28389 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
28390 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
28391 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
28392 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
28393 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
28394 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
28395 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
28396 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
28397 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
28398 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
28399 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
28400 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
28401 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
28402 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
28403 opt-functions.awk, opth-gen.awk, params.def, passes.c,
28404 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
28405 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
28406 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
28407 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
28408 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
28409 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
28410 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
28411 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
28412 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
28413 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
28414 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
28415 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
28416 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
28417 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
28419 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28422 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
28423 * aclocal.m4: Regenerate.
28425 2010-04-02 Richard Guenther <rguenther@suse.de>
28427 PR tree-optimization/43629
28428 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
28429 if we have seen a constant value.
28431 2010-04-02 Joseph Myers <joseph@codesourcery.com>
28433 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
28435 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
28438 * arm.c (legitimize_tls_address): Adjust call to
28439 gen_tls_load_dot_plus_four.
28440 (arm_note_pic_base): New function.
28441 (arm_cannot_copy_insn_p): Use it.
28442 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
28445 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28450 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28452 * Makefile.in ($(out_object_file)): Depend on
28453 gt-$(basename $(notdir $(out_file))).h.
28455 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
28457 * config.gcc (lm32-*-rtems*): Add t-lm32.
28459 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
28461 * config.gcc: Add lm32-*-rtems*.
28462 * config/lm32/rtems.h: New file.
28464 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
28467 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
28469 2010-04-01 Jakub Jelinek <jakub@redhat.com>
28471 * dwarf2out.c (output_compilation_unit_header): For
28472 -gdwarf-4 use version 4 instead of version 3.
28473 (output_line_info): For version 4 and above emit additional
28474 maximum ops per insn header field.
28475 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
28477 * dwarf2out.c (is_c_family, is_java): Remove.
28478 (lower_bound_default): New function.
28479 (add_bound_info, gen_descr_array_type_die): Use it.
28481 2010-04-01 Dodji Seketeli <dodji@redhat.com>
28484 * dwarf2out.c (gen_variable_die): Allow debug info for variable
28485 re-declaration when it happens in a function.
28487 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
28489 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
28490 (cgraph_remove_function_insertion_hook): Same.
28491 (cgraph_call_function_insertion_hooks): Same.
28493 2010-04-01 Richard Guenther <rguenther@suse.de>
28495 PR middle-end/43614
28496 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
28497 and TREE_THIS_VOLATILE.
28498 (copy_ref_info): Likewise.
28499 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
28500 * tree.c (build6_stat): Ignore side-effects of all but arg5
28501 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
28504 2010-04-01 Richard Guenther <rguenther@suse.de>
28506 PR tree-optimization/43607
28507 * ipa-type-escape.c (check_call): Do not access non-existing
28510 2010-04-01 Richard Guenther <rguenther@suse.de>
28512 PR middle-end/43602
28514 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
28515 Jack Howarth <howarth@bromo.med.uc.edu>
28517 * tree-profile.c (tree_init_ic_make_global_vars): Make static
28520 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28522 * doc/install.texi (Prerequisites): Document libelf usability on
28523 IRIX 5/6 and Solaris 2.
28524 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
28525 Update GNU as, GNU ld requirements.
28526 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
28527 Document Sun Studio compiler download.
28528 Update and simplify as, ld recommendations.
28529 (Specific, *-*-solaris2.7): Note obsoletion, removal.
28531 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28533 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
28534 with_tune_32 to pentium4.
28536 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
28538 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
28540 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28542 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
28543 obsoletion, removal.
28545 Document GNU as requirement.
28546 Update configure requirements.
28547 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
28548 Recomment IRIX 6.5.18+.
28549 Document IDF/IDL requirement.
28550 Document GNU as requirement.
28551 Document GNU ld bootstrap failure.
28552 Remove freeware.sgi.com reference.
28554 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28556 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
28557 UNIX V4.0, V5.0 obsoletion, removal.
28558 Remove --with-gc=simple reference.
28559 Update VM requirements during bootstrap.
28560 Remove -oldas bootstrap description.
28561 Update binutils reference.
28562 Remove comparison failure note.
28564 2010-03-31 Richard Guenther <rguenther@suse.de>
28565 Zdenek Dvorak <ook@ucw.cz>
28566 Sebastian Pop <sebastian.pop@amd.com>
28568 PR middle-end/43464
28569 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
28570 with multiple arguments.
28571 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
28573 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28575 * graphite-dependences.c (print_pddr): Call print_pdr with an
28577 * graphite-poly.c (debug_pdr): Add an extra argument for the
28580 (print_pbb_domain): Same.
28582 (print_scop_context): Same.
28583 (print_scop): Same.
28584 (print_cloog): Same.
28585 (debug_pbb_domain): Same.
28587 (print_pdrs): Same.
28588 (debug_pdrs): Same.
28589 (debug_scop_context): Same.
28590 (debug_scop): Same.
28591 (debug_cloog): Same.
28592 (print_scop_params): Same.
28593 (debug_scop_params): Same.
28594 (print_iteration_domain): Same.
28595 (print_iteration_domains): Same.
28596 (debug_iteration_domain): Same.
28597 (debug_iteration_domains): Same.
28598 (print_scattering_function): Same.
28599 (print_scattering_functions): Same.
28600 (debug_scattering_function): Same.
28601 (debug_scattering_functions): Same.
28602 * graphite-poly.h (debug_pdr): Update declaration.
28604 (print_pbb_domain): Same.
28606 (print_scop_context): Same.
28607 (print_scop): Same.
28608 (print_cloog): Same.
28609 (debug_pbb_domain): Same.
28611 (print_pdrs): Same.
28612 (debug_pdrs): Same.
28613 (debug_scop_context): Same.
28614 (debug_scop): Same.
28615 (debug_cloog): Same.
28616 (print_scop_params): Same.
28617 (debug_scop_params): Same.
28618 (print_iteration_domain): Same.
28619 (print_iteration_domains): Same.
28620 (debug_iteration_domain): Same.
28621 (debug_iteration_domains): Same.
28622 (print_scattering_function): Same.
28623 (print_scattering_functions): Same.
28624 (debug_scattering_function): Same.
28625 (debug_scattering_functions): Same.
28627 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28629 * graphite-poly.c (print_scattering_function_1): New.
28630 (print_scattering_function): Call it.
28631 (print_scop_params): Remove spaces at the end of lines.
28632 (print_cloog): New.
28633 (debug_cloog): New.
28634 * graphite-poly.h (print_cloog): Declared.
28635 (debug_cloog): Declared.
28637 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28639 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
28641 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
28642 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
28643 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
28644 to switch between adding the IV bump in loop->latch or in loop->header.
28646 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28648 * graphite-poly.c (print_scattering_function): Pretty print following
28649 the scoplib format.
28651 (print_pbb_domain): Same.
28652 (dump_gbb_cases): Same.
28653 (dump_gbb_conditions): Same.
28654 (print_pdrs): Same.
28656 (print_scop_params): Same.
28657 (print_scop_context): Same.
28658 (print_scop): Same.
28659 (print_pbb_body): New.
28660 (lst_indent_to): New.
28661 (print_lst): Start new lines with a #.
28662 * graphite-poly.h (pbb_bb): New.
28663 (pbb_index): Use pbb_bb.
28664 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
28666 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
28668 2010-03-31 Jakub Jelinek <jakub@redhat.com>
28670 * dwarf2out.c (size_of_die): For -gdwarf-4 use
28671 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
28672 and 0 instead of 1 for dw_val_class_flag.
28673 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
28674 dw_val_class_range_list, dw_val_class_loc_list,
28675 dw_val_class_lineptr and dw_val_class_macptr, use
28676 DW_FORM_flag_present for dw_val_class_flag and
28677 DW_FORM_exprloc for dw_val_class_loc.
28678 (output_die): For -gdwarf-4 print dw_val_class_loc
28679 size as uleb128 instead of 1 or 2 bytes and don't print
28680 anything for dw_val_class_flag.
28682 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
28683 instead of cselib_lookup following by tweaking locs->setting_insn.
28686 * cselib.c (cselib_process_insn): Clear cselib_current_insn
28687 even before returning from label, setjmp call or volatile asm
28690 2010-03-31 Richard Guenther <rguenther@suse.de>
28692 PR middle-end/43600
28693 * cgraphunit.c (cgraph_output_in_order): Do not allocate
28694 temporary data on stack.
28696 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28698 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
28699 (PUSHSECTION_ASM_OP): Remove.
28700 (POPSECTION_ASM_OP): Remove.
28701 (PUSHSECTION_FORMAT): Remove.
28702 * config/sol2.h (PUSHSECTION_FORMAT): Define.
28703 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
28704 * config/sol2.c (solaris_output_init_fini): Use it.
28706 2010-03-31 Jie Zhang <jie@codesourcery.com>
28709 * opt-functions.awk (var_type_struct): Use signed char type
28710 for simple variables.
28712 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28714 * config/sol2.c: Include output.h.
28715 (solaris_assemble_visibility): New function.
28716 * config/t-sol2 (sol2.o): Add output.h dependency.
28717 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
28718 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
28721 2010-03-31 Jakub Jelinek <jakub@redhat.com>
28724 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
28725 V2SImode or XFmode on PRE_DEC.
28728 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
28731 2010-03-31 Jie Zhang <jie@codesourcery.com>
28734 * reload.h (caller_save_initialized_p): Declare.
28735 * toplev.c (backend_init_target): Don't call
28736 init_caller_save but set caller_save_initialized_p to false.
28737 * caller-save.c (caller_save_initialized_p): Define.
28738 (init_caller_save): Check caller_save_initialized_p.
28739 * ira.c (ira): Call init_caller_save if flag_caller_saves.
28741 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28744 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
28745 and soft-fp/t-softfp to tmake_file.
28746 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
28747 (LIBGCC2_TF_CEXT): Define.
28750 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
28753 * cselib.c (n_useless_values): Document handling of debug locs.
28754 (n_useless_debug_values, n_debug_values): New variables.
28755 (new_elt_loc_list): Don't add to debug values, keep count.
28756 (promote_debug_loc): New.
28757 (cselib_reset_table): Zero new variables.
28758 (entry_and_rtx_equal_p): Promote debug locs.
28759 (discard_useless_locs): Increment n_useless_debug_values for
28761 (remove_useless_values): Adjust n_useless_values and n_debug_values
28762 with n_useless_debug_values.
28763 (add_mem_for_addr): Promote debug locs.
28764 (cselib_lookup_mem): Likewise.
28765 (cselib_lookup_addr): Renamed to...
28766 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
28767 (cselib_log_lookup): ... this. Turn into...
28768 (cselib_lookup_addr): ... new wrapper.
28769 (cselib_lookup_from_insn): New.
28770 (cselib_invalidate_regno): Increment n_useless_debug_values for
28772 (cselib_invalidate_mem): Likewise.
28773 (cselib_process_insn): Take n_deleted and n_debug_values into
28774 account to guard remove_useless_value call.
28775 (cselib_finish): Zero n_useless_debug_values.
28776 * cselib.h (cselib_lookup_from_insn): Declare.
28777 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
28778 (sched_analyze_2): Likewise.
28780 2010-03-30 Jakub Jelinek <jakub@redhat.com>
28782 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
28784 (adjust_mems): Replace narrowing SUBREG of expression containing
28785 just PLUS, MINUS, MULT and ASHIFT of registers and constants
28786 with operations in the narrower mode.
28789 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
28790 regs_invalidated_by_call instead all call_used_reg_set registers.
28792 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
28794 PR middle-end/43430
28795 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
28796 pointer comparisons with types_compatible_p.
28797 * tree-vect-stmts.c (vectorizable_call): Same.
28798 (vectorizable_condition): Same.
28800 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28802 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
28803 stack check if the mask would be zero.
28805 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
28806 Jack Howarth <howarth@bromo.med.uc.edu>
28808 * tree-profile.c (tree_init_ic_make_global_vars): Make static
28811 2010-03-30 Joseph Myers <joseph@codesourcery.com>
28814 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
28816 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
28817 Include ___unordxf2 and ___unordtf2.
28818 * config/i386/libgcc-glibc.ver: Do not define inheritance from
28821 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
28823 * config/lm32/t-lm32: New file.
28824 * config.gcc: Use the above file when targetting lm32.
28826 2010-03-28 Duncan Sands <baldrick@free.fr>
28828 * Makefile.in (PLUGIN_HEADERS): Add except.h.
28830 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
28832 PR middle-end/43431
28833 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
28834 Improve vectorization cost model diagnostic.
28836 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
28838 PR middle-end/43436
28839 * tree-vect-data-refs.c (vect_analyze_data_refs): When
28840 compute_data_dependences_for_loop returns false, early exit
28841 and output an extra diagnostic for the failed data reference
28844 2010-03-29 Richard Guenther <rguenther@suse.de>
28846 PR tree-optimization/43560
28847 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
28848 (can_sm_ref_p): Treat stores to readonly locations as trapping.
28850 2010-03-29 Jie Zhang <jie@codesourcery.com>
28853 * toplev.c (process_options): Set optimization_default_node
28854 and optimization_current_node.
28855 * opts.c (decode_options): Don't set optimization_default_node
28856 and optimization_current_node.
28858 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
28860 * config/rtems.h: Abandon -qrtems_debug.
28862 2010-03-28 Jan Hubicka <jh@suse.cz>
28864 PR tree-optimization/43505
28865 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
28866 map should not be copied.
28868 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28870 PR middle-end/41674
28871 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
28872 cdtors, set DECL_PRESERVE_P.
28873 * ipa.c (cgraph_externally_visible_p): Return true if declaration
28874 should be preseved.
28876 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
28878 PR tree-optimization/43528
28879 * stor-layout.c (place_field): Check that constant fits into
28880 unsigned HWI when skipping calculation of MS bitfield layout.
28882 2010-03-27 Jan Hubicka <jh@suse.cz>
28884 PR middle-end/43391
28885 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
28886 notice_global_symbol work.
28888 2010-03-27 Jakub Jelinek <jakub@redhat.com>
28890 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
28891 instead of dwarf2out_decl.
28892 (struct var_loc_node): Remove section_label field.
28893 (dwarf2out_function_decl): New function.
28894 (dwarf2out_var_location): Don't set section_label field.
28895 (dwarf2out_begin_function): Don't empty decl_loc_table here.
28897 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
28899 PR tree-optimization/43544
28900 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
28901 First argument for builtin vectorized function hook is now a
28902 tree to be able to distinguish between machine specific and
28904 * targhooks.c (default_builtin_vectorized_function): Ditto.
28905 * targhooks.h (default_builtin_vectorized_function): Ditto.
28906 * target.h (struct gcc_target): Ditto.
28907 * tree-vect-stmts.c (vectorizable_function): Ditto.
28908 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
28909 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
28912 2010-03-26 Joseph Myers <joseph@codesourcery.com>
28915 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
28916 nested binding iff it is a FUNCTION_DECL.
28917 (store_parm_decls_newstyle): Pass nested=true to bind for
28918 FUNCTION_DECLs amongst parameters.
28920 2010-03-26 Jakub Jelinek <jakub@redhat.com>
28922 * var-tracking.c (vt_expand_loc_callback): Don't run
28923 cselib_expand_value_rtx_cb in dummy mode if
28924 cselib_dummy_expand_value_rtx_cb returned false.
28926 * var-tracking.c (emit_note_insn_var_location): For one part
28927 notes with offset 0, don't add EXPR_LIST around the location.
28928 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
28929 add_location_or_const_value_attribute): Adjust for that change.
28932 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
28933 into first operand and location into second.
28934 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
28935 dw_cfi_oprnd_loc for DW_CFA_expression.
28936 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
28937 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
28938 assume first argument is regnum and second argument is location.
28940 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
28943 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
28944 of scratch register to DImode. Split to DImode comparison operator.
28945 Use SImode subreg of scratch register in the multiplication.
28946 (*cmp_sadd_sidi): Ditto.
28947 (*cmp_ssub_si): Ditto.
28948 (*cmp_ssub_sidi): Ditto.
28950 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
28953 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
28954 Remove invalid assert and wrong comment.
28956 2010-03-26 Jakub Jelinek <jakub@redhat.com>
28959 * flags.h (final_insns_dump_p): New extern.
28960 * final.c (final_insns_dump_p): New variable.
28961 (rest_of_clean_state): Set it before -fdump-final-insns=
28962 dumping, clear afterwards.
28963 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
28964 MEM_ALIAS_SET on MEMs.
28966 2010-03-26 David S. Miller <davem@davemloft.net>
28968 * configure.ac: Fix sparc GOTDATA_OP bug check.
28969 * configure: Rebuild.
28971 2010-03-26 Alan Modra <amodra@gmail.com>
28973 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
28975 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28977 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
28978 TLS_SECTION_ASM_FLAG.
28980 2010-03-25 Jakub Jelinek <jakub@redhat.com>
28983 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
28984 Clear first_function_block_is_cold.
28987 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
28988 argument if the argument is truth_value_p.
28990 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28992 * config/rs6000/constraints.md: Update copyright year for my changes.
28995 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
28996 used in reg+reg addressing, swap registers.
28998 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29001 * target.h (struct gcc_target): Add code_end hook.
29002 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
29003 if not yet defined.
29004 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
29005 * toplev.c (compile_file): Call targetm.asm_out.code_end
29006 hook before unwind info/debug info output.
29007 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
29008 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
29009 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29010 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
29011 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29012 * config/i386/i386.c (ix86_file_end): Renamed to...
29013 (ix86_code_end): ... this. Make static. Don't call
29014 file_end_indicate_exec_stack. Emit unwind info using
29015 final_start_function/final_end_function.
29016 (darwin_x86_file_end): Remove.
29017 (TARGET_ASM_CODE_END): Define.
29018 * config/i386/i386.h (TARGET_ASM_FILE_END,
29019 NEED_INDICATE_EXEC_STACK): Don't define.
29020 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
29021 (TARGET_ASM_FILE_END): Define to darwin_file_end.
29022 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
29023 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
29026 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
29027 at the beginning and final_end_function at the end.
29028 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
29030 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29032 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
29033 and Sun as TLS syntax.
29034 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
29035 * configure: Regenerate.
29036 * config.in: Regenerate.
29037 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
29038 (default_elf_asm_named_section): Use it.
29039 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
29040 (i386_output_dwarf_dtprel): Likewise.
29041 (output_addr_const_extra): Likewise.
29042 (output_pic_addr_const): Lowercase @GOTTPOFF.
29043 (output_addr_const_extra): Likewise.
29044 (output_pic_addr_const): Lowercase @GOTNTPOFF.
29045 (output_addr_const_extra): Likewise.
29046 (output_pic_addr_const): Lowercase @INDNTPOFF.
29047 (output_addr_const_extra): Likewise.
29048 (output_pic_addr_const): Lowercase @NTPOFF.
29049 (output_addr_const_extra): Likewise.
29050 (output_pic_addr_const): Lowercase @TPOFF.
29051 (output_addr_const_extra): Likewise.
29052 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
29053 (*tls_global_dynamic_64): Likewise.
29054 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
29055 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
29057 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
29058 (ASM_OUTPUT_TLS_COMMON): Use it.
29059 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
29062 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
29063 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
29064 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
29065 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
29066 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
29067 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
29069 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29071 * config/i386/i386.c (override_options): Don't accept
29072 -mtls-dialect=sun any longer.
29073 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
29074 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
29075 (*tls_local_dynamic_base_32_sun): Likewise.
29076 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
29078 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29081 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
29082 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
29085 * ira.c (adjust_cleared_regs): New function.
29086 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
29090 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
29092 * expr.c (expand_expr_real): Restore previous
29093 curr_insn_source_location and curr_insn_block after
29094 expand_expr_real_1 call.
29095 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
29096 instead of expand_expr_real_1.
29098 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
29100 PR rtl-optimization/43413
29101 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
29104 2010-03-22 James E. Wilson <wilson@codesourcery.com>
29107 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
29108 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
29110 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
29112 * config/i386/i386.c (ix86_target_string): Add -mfma.
29113 Fix a typo in comment.
29115 2010-03-22 Mike Stump <mikestump@comcast.net>
29118 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
29119 Don't overly align based upon packed packed fields.
29121 2010-03-22 Jason Merrill <jason@redhat.com>
29123 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
29124 Use () rather than [], and move before the element type.
29126 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29128 * doc/configfiles.texi (Configuration Files): Removed
29129 fixinc/Makefile*, intl/Makefile.*.
29130 * doc/makefile.texi: Fixed markup. Abstract from version
29131 control system used.
29132 (Makefile): Removed obsolete java/parse.y example.
29133 * doc/sourcebuild.texi: Likewise.
29134 (Top Level): Added config, gnattools, libdecnumber, libgcc,
29135 libgomp, libssp. Removed fastjar.
29136 (Miscellaneous Docs): Clarify location.
29137 Added COPYING3, COPYING3.LIB.
29138 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
29140 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29143 * config/i386/i386.c (x86_function_profiler)
29144 [!NO_PROFILE_COUNTERS]: Fix typo.
29145 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
29148 2010-03-22 Janis Johnson <janis187@us.ibm.com>
29149 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29151 * doc/sourcebuild.texi (Test Directives): Split into six
29152 subsections, with most of the current text in new subsections
29153 Directives, Selectors, and Final Actions.
29154 (Directives): Split list of test directives into multiple
29156 (Selectors): Describe use and syntax of selectors.
29157 (Effective-Target Keywords): Describe all existing keywords.
29158 (Add Options): Describe features for dg-add-options.
29159 (Require Support): Describe variants of dg-require-support.
29160 (Final Actions): Describe commands to use in dg-final.
29162 2010-03-22 Michael Matz <matz@suse.de>
29164 PR middle-end/43475
29165 * recog.c (validate_replace_rtx_group): Replace also in
29166 REG_EQUAL and REG_EQUIV notes.
29168 2010-03-22 Richard Guenther <rguenther@suse.de>
29170 PR tree-optimization/43390
29171 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
29172 sure vector extracts are type correct.
29174 2010-03-22 Richard Guenther <rguenther@suse.de>
29176 PR middle-end/40106
29177 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
29178 x * sqrt (x) even when optimizing for size if the target
29179 has native support for sqrt.
29181 2010-03-22 Jakub Jelinek <jakub@redhat.com>
29183 * varasm.c (make_decl_rtl_for_debug): Also clear
29184 flag_mudflap for the duration of make_decl_rtl call.
29187 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
29188 locs from preserved VALUEs.
29190 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29192 PR middle-end/42718
29193 * pa.md (movmemsi): Set align to one if zero.
29194 (movmemdi): Likewise.
29196 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
29199 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
29200 with their corresponding prologue pushes.
29202 2010-03-20 Andrew Pinski <pinskia@gmail.com>
29205 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
29206 at the begining or end.
29207 (spu_expand_epilogue): Likewise.
29209 2010-03-20 Richard Guenther <rguenther@suse.de>
29211 PR rtl-optimization/43438
29212 * combine.c (make_extraction): Properly zero-/sign-extend an
29213 extraction of the low part of a CONST_INT. Also handle
29216 2010-03-19 Mike Stump <mikestump@comcast.net>
29218 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
29219 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
29220 (override_options): Use SUBTARGET32_DEFAULT_CPU.
29222 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
29225 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
29228 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
29230 PR rtl-optimization/42258
29231 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
29232 use that may match DEF.
29235 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
29236 the cost of loading the constant rather than assuming
29238 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
29239 outer code is AND, do the same tests as the andsi3 expander and
29240 return COSTS_N_INSNS (1) if and is cheap.
29242 * optabs.c (avoid_expensive_constant): Fix formatting.
29244 2010-03-19 Michael Matz <matz@suse.de>
29247 * attribs.c (decl_attributes): When rebuilding a function pointer
29248 type use the same qualifiers as the original pointer type.
29250 2010-03-19 Martin Jambor <mjambor@suse.cz>
29252 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
29253 and is_gimple_ip_invariant_address.
29255 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29258 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29260 * config/arm/arm.c (arm_override_options): Turn off
29261 flag_dwarf2_cfi_asm for AAPCS variants.
29263 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29266 * config/arm/arm.c (emit_multi_reg_push): Update comments.
29267 Use PRE_MODIFY instead of PRE_DEC.
29268 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
29269 (vfp_emit_fstmd): Likewise.
29271 2010-03-19 Michael Matz <matz@suse.de>
29274 * builtins.c (expand_builtin_interclass_mathfn,
29275 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
29278 2010-03-19 Richard Guenther <rguenther@suse.de>
29280 PR tree-optimization/43415
29281 * tree-ssa-pre.c (phi_translate): Split out worker to ...
29282 (phi_translate_1): ... this.
29283 (phi_translate): Move all caching here. Cache all NARY
29284 and REFERENCE translations.
29286 2010-03-19 David S. Miller <davem@davemloft.net>
29288 With help from Eric Botcazou.
29289 * config/sparc/sparc.c: Include dwarf2out.h.
29290 (emit_pic_helper): Delete.
29291 (pic_helper_symbol_name): Delete.
29292 (pic_helper_emitted_p): Delete.
29293 (pic_helper_needed): New.
29294 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
29295 (get_pc_thunk_name): New.
29296 (load_pic_register): Remove 'delay_pic_helper' arg. Use
29297 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
29298 Set pic_helper_needed to true. Don't call emit_pic_helper.
29299 (sparc_expand_prologue): Update load_pic_register call.
29300 (sparc_output_mi_thunk): Likewise.
29301 (sparc_file_end): Emit a hidden comdat symbol for the PIC
29302 thunk if possible. Output CFI information as needed.
29304 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
29305 Jack Howarth <howarth@bromo.med.uc.edu>
29308 * config/i386/i386.h: Fix ABI on darwin x86-32.
29310 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
29312 * tree.h: Declare make_decl_rtl_for_debug.
29313 * varasm.c (make_decl_rtl_for_debug): New.
29314 * dwarf2out.c (rtl_for_decl_location): Call it.
29315 * cfgexpand.c (expand_debug_expr): Call it.
29317 2010-03-18 Jakub Jelinek <jakub@redhat.com>
29320 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
29324 * var-tracking.c (vt_init_cfa_base): Do nothing if
29325 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
29327 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
29330 * var-tracking.c (canonicalize_vars_star): New.
29331 (dataflow_post_merge_adjust): Use it.
29333 2010-03-18 Jakub Jelinek <jakub@redhat.com>
29336 * var-tracking.c (non_suitable_const): New function.
29337 (add_uses): For DEBUG_INSNs with constants, don't record any
29338 value, instead just the constant value itself.
29339 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
29340 is not VAR_LOC_UNKNOWN_P, set var to the constant.
29341 (emit_notes_in_bb): Likewise.
29342 (emit_note_insn_var_location): For onepart variables if
29343 cur_loc is a VOIDmode constant, use DECL_MODE.
29345 2010-03-18 Martin Jambor <mjambor@suse.cz>
29347 PR middle-end/42450
29348 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
29349 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
29350 all non-clones. Moved call redirection...
29351 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
29352 (cgraph_materialize_all_clones): Dispose of all
29353 combined_args_to_skip bitmaps.
29354 (verify_cgraph_node): Do not check for edges pointing to wrong
29355 nodes in inline clones.
29356 * tree-inline.c (copy_bb): Call
29357 cgraph_redirect_edge_call_stmt_to_callee.
29358 * ipa.c (cgraph_remove_unreachable_nodes): Call
29359 cgraph_node_remove_callees even when there are used clones.
29361 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
29363 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
29365 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
29368 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
29371 2010-03-18 Michael Matz <matz@suse.de>
29373 PR middle-end/43419
29374 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
29375 into sqrt(x) if we need to preserve signed zeros.
29377 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
29378 Eric Botcazou <ebotcazou@adacore.com>
29380 PR rtl-optimization/43360
29381 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
29382 note if we don't know its invariant status.
29384 2010-03-18 Michael Matz <matz@suse.de>
29386 PR tree-optimization/43402
29387 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
29388 PHI chains of ssa names registered for update.
29390 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
29393 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
29394 non-offsettable and pre_modify update addressing.
29395 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
29396 and "2" alternatives "#".
29397 (*movdd_softfloat32): Make all alternatives "#";
29398 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
29399 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
29400 (*movdf_softfloat32): Make all alternatives "#";
29401 (movdi): Use the new DIFD mode iterator to create a common splitter
29402 for movdi, movdf and movdd patterns.
29404 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
29406 * common.opt (dumpdir): Remove redundant tab.
29408 2010-03-17 Martin Jambor <mjambor@suse.cz>
29410 PR tree-optimization/43347
29411 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
29412 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
29414 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
29416 PR rtl-optimization/42216
29417 * regrename.c (create_new_chain): New function, broken out from...
29418 (scan_rtx_reg): ... here. Call it. Handle the case where we are
29419 appending a use to an empty chain.
29420 (build_def_use): Remove previous changes that convert OP_INOUT to
29421 OP_OUT operands; instead detect the case where an OP_INOUT operand
29422 uses a previously untracked register and create an empty chain for it.
29424 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29426 * doc/extend.texi (Function Attributes): Rewrite unfinished
29427 sentence in ms_abi documentation.
29429 2010-03-17 Alan Modra <amodra@gmail.com>
29431 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
29432 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
29433 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
29434 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
29436 2010-03-16 Richard Henderson <rth@redhat.com>
29438 PR middle-end/43365
29439 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
29440 (lower_try_finally): Save and restore eh_seq around the expansion
29441 of the try-finally.
29443 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
29445 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
29446 statements before splitting block.
29448 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29450 * doc/sourcebuild.texi (Testsuites): Fix markup.
29451 Use pathnames relative to gcc/testsuite.
29452 (Test Directives): Move description of how timeout is determined.
29453 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
29454 (C Tests): Correct gcc.misc-tests directory.
29455 Framework tests now live in gcc.test-framework.
29457 2010-03-16 Richard Guenther <rguenther@suse.de>
29459 PR middle-end/43379
29460 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
29461 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
29463 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
29464 Alexandre Oliva <aoliva@redhat.com>
29466 PR tree-optimization/42917
29467 * lambda-code.c (remove_iv): Skip debug statements.
29468 (lambda_loopnest_to_gcc_loopnest): Likewise.
29469 (not_interesting_stmt): Debug statements are not interesting.
29471 2010-03-16 Jakub Jelinek <jakub@redhat.com>
29475 * cselib.c (cselib_preserve_constants,
29476 cfa_base_preserved_val): New static variables.
29477 (preserve_only_constants): New function.
29478 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
29479 clear its REG_VALUES. If cselib_preserve_constants, don't
29480 empty the whole hash table, but preserve there VALUEs with constants,
29481 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
29482 (cselib_preserve_cfa_base_value): New function.
29483 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
29484 (cselib_init): Change argument to int bitfield. Set
29485 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
29487 (cselib_finish): Clear cselib_preserve_constants and
29488 cfa_base_preserved_val.
29489 * cselib.h (enum cselib_record_what): New enum.
29490 (cselib_init): Change argument to int.
29491 (cselib_preserve_cfa_base_value): New prototype.
29492 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
29493 * dse.c (dse_step1): Likewise.
29494 * cfgcleanup.c (thread_jump): Likewise.
29495 * sched-deps.c (sched_analyze): Likewise.
29496 * gcse.c (local_cprop_pass): Likewise.
29497 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
29498 If FN is non-NULL, call the callback always and whenever it returns
29499 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
29500 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
29501 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
29502 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
29503 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
29504 * var-tracking.c: Include recog.h.
29505 (bb_stack_adjust_offset): Remove.
29506 (vt_stack_adjustments): Don't call it, instead just gather the
29507 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
29508 (adjust_stack_reference): Remove.
29509 (compute_cfa_pointer): New function.
29510 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
29511 (struct adjust_mem_data): New type.
29512 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
29514 (get_address_mode): New function.
29515 (replace_expr_with_values): Use it.
29516 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
29517 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
29518 (adjust_sets): Remove.
29519 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
29520 Use get_address_mode.
29521 (get_adjusted_src): Remove.
29522 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
29523 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
29524 (add_with_sets): Don't call adjust_sets.
29525 (fp_setter, vt_init_cfa_base): New functions.
29526 (vt_initialize): Change return type to bool. Move most of pool etc.
29527 initialization to the beginning of the function from end. Pass
29528 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
29529 If !frame_pointer_needed, call vt_stack_adjustment before mos
29530 vector is filled, call vt_init_cfa_base if argp/framep has been
29531 eliminated to sp. If frame_pointer_needed and argp/framep has
29532 been eliminated to hard frame pointer, set
29533 hard_frame_pointer_adjustment and call vt_init_cfa_base after
29534 encountering fp setter in the prologue. For MO_ADJUST, call
29535 log_op_type before pusing the op into mos vector, not afterwards.
29536 Call adjust_insn before cselib_process_insn/add_with_sets,
29537 call cancel_changes (0) afterwards.
29538 (variable_tracking_main_1): Adjust for vt_initialize calling
29539 vt_stack_adjustments and returning whether it succeeded or not.
29541 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
29543 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
29546 2010-03-15 Jakub Jelinek <jakub@redhat.com>
29548 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
29550 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
29551 drap_reg has not been set.
29553 2010-03-15 Michael Matz <matz@suse.de>
29555 PR middle-end/43300
29556 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
29557 use it to expand block copies.
29558 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
29559 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
29560 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
29562 2010-03-15 Richard Guenther <rguenther@suse.de>
29564 PR tree-optimization/43367
29565 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
29568 2010-03-15 Richard Guenther <rguenther@suse.de>
29570 PR tree-optimization/43317
29571 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
29573 2010-03-15 Martin Jambor <mjambor@suse.cz>
29575 PR tree-optimization/43141
29576 * tree-sra.c (create_abstract_origin): New function.
29577 (modify_function): Call create_abstract_origin.
29579 2010-03-15 Chris Demetriou <cgd@google.com>
29581 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
29584 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29586 PR middle-end/43354
29587 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
29588 call insert_out_of_ssa_copy for default definitions.
29590 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29592 * graphite-clast-to-gimple.c (my_long_long): Defined.
29593 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
29594 * graphite-sese-to-poly.c (my_long_long): Defined.
29595 (scop_ivs_can_be_represented): Use it.
29597 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29599 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
29600 graphite-max-bbs-per-function, and loop-block-tile-size.
29601 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
29603 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
29605 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29607 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
29608 forward declaration.
29609 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
29610 (add_upper_bounds_from_estimated_nit): New.
29611 (build_loop_iteration_domains): Use it.
29613 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29615 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
29617 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29619 PR middle-end/43306
29620 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
29621 should be an INTEGER_CST. Also handle CASE_CONVERT.
29623 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29625 * graphite.c (graphite_initialize): To bound the number of bbs per
29626 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
29627 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
29628 * doc/invoke.texi: Document it.
29630 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29632 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
29633 * graphite-sese-to-poly.h (build_poly_scop): Same.
29635 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29637 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
29638 the number of parameters in the scop. Use as an upper bound
29639 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
29640 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
29641 * doc/invoke.texi: Document it.
29643 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
29645 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
29646 * doc/c-tree.texi: Remove.
29647 * doc/generic.texi: Merge c-tree.texi here.
29648 * doc/gccint.texi (Trees): Remove menu entry.
29649 (c-tree.texi): Remove @include.
29650 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
29651 * doc/languages.texi (Reading RTL): Ditto.
29653 2010-03-12 Steve Ellcey <sje@cup.hp.com>
29656 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
29658 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
29660 PR middle-end/42431
29661 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
29662 code added to work around reload clobbering CONST insns.
29664 2010-03-12 Jakub Jelinek <jakub@redhat.com>
29666 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
29667 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
29668 (cselib_preserve_only_values): Remove retain argument, don't
29669 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
29670 * cselib.h (cselib_preserve_only_values): Remove retain argument.
29671 * var-tracking.c (micro_operation): Move insn field before union.
29672 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
29673 (struct variable_tracking_info_def): Remove n_mos field, change
29674 mos into a vector of micro_operations.
29675 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
29676 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
29677 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
29678 changing into a vector.
29679 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
29680 come before all other uops generated by add_stores.
29681 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
29683 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
29684 a vector. Run just one pass over the bbs instead of separate counting
29685 and computation phase.
29686 (vt_finalize): Free VTI (bb)->mos vector instead of array.
29689 * tree-inline.c (remap_decls): Put old_var rather than origin_var
29690 into *nonlocalized_list vector.
29691 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
29692 even if origin is non-NULL.
29693 (gen_variable_die): Likewise.
29694 (process_scope_var): Don't change origin.
29695 (gen_decl_die): Likewise.
29696 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
29697 before adding new edges instead of after it, fix moving over
29700 2010-03-11 David S. Miller <davem@davemloft.net>
29702 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
29704 * configure: Rebuild.
29706 2010-03-11 Martin Jambor <mjambor@suse.cz>
29708 PR tree-optimization/43257
29709 * tree.c (assign_assembler_name_if_neeeded): New function.
29710 (free_lang_data_in_cgraph): Assembler name assignment moved to the
29711 above new function.
29712 * tree.h (assign_assembler_name_if_neeeded): Declare.
29713 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
29714 the function if needed.
29716 2010-03-11 Chris Demetriou <cgd@google.com>
29718 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
29719 include/stdint-gcc.h, and include/stdint.h world-readable.
29721 2010-03-11 Richard Guenther <rguenther@suse.de>
29723 PR tree-optimization/43255
29724 * tree-vrp.c (process_assert_insertions_for): Do not insert
29725 asserts for trivial conditions.
29727 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29729 PR tree-optimization/43280
29730 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
29731 generation. Move calculation of size out of the if branch.
29732 (find_bswap): Modify compare number generation.
29734 2010-03-11 Richard Guenther <rguenther@suse.de>
29737 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
29738 (input_gimple_stmt): Fixup handled component types during
29739 operand read. Also fix up decls in ADDR_EXPRs.
29741 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
29743 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
29744 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
29746 2010-03-10 Jan Hubicka <jh@suse.cz>
29749 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
29750 * varasm.c (get_variable_section): Don't do that here...
29751 (make_decl_rtl): ... and here.
29752 (do_assemble_alias): Produce decl RTL.
29753 (assemble_alias): Likewise.
29755 2010-03-10 Jakub Jelinek <jakub@redhat.com>
29758 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
29759 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
29761 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
29762 (based_loc_descr): Only express drap or vdrap regno based expressions
29763 using DW_OP_fbreg when not optimizing.
29764 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
29765 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
29766 REG_CFA_SET_VDRAP note.
29768 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
29770 PR tree-optimization/43236
29771 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
29772 error in calculation of base address in reverse iteration case.
29773 (generate_builtin): Take number of latch executions if the statement
29776 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
29778 PR middle-end/42859
29779 * tree-eh.c: Include pointer-set.h.
29780 (lower_eh_dispatch): Filter out duplicate case labels and
29781 remove the unneeded edge when the label is unused. Return
29782 true when some edges are removed.
29783 (execute_lower_eh_dispatch): When any lowering resulted in
29784 removing an edge, also delete unreachable blocks.
29786 2010-03-10 Jakub Jelinek <jakub@redhat.com>
29789 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
29790 UNSPEC_MACHOPIC_OFFSET.
29792 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
29795 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
29796 (m68k_delegitimize_address): New function.
29798 2010-03-09 Jakub Jelinek <jakub@redhat.com>
29801 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
29804 * var-tracking.c (adjust_sets): New function.
29805 (count_with_sets, add_with_sets): Use it.
29806 (get_adjusted_src): New inline function.
29807 (add_stores): Use it.
29810 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
29811 call cselib_dummy_expand_value_rtx_cb instead of
29812 cselib_expand_value_rtx_cb.
29815 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
29816 * config/i386/i386.c: Include debug.h and dwarf2out.h.
29817 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
29818 and .cfi_endproc around the pic thunks.
29819 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
29820 all queued unwind info register saves are saved before the call.
29821 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
29822 considered as sp-=4 for unwind info and the pop as sp+=4 which
29823 also clobbers dest, but doesn't actually restore it.
29826 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
29827 RTX_FRAME_RELATED_P.
29829 2010-03-09 Jie Zhang <jie@codesourcery.com>
29831 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
29832 whitespaces in output template.
29834 2010-03-09 Jie Zhang <jie@codesourcery.com>
29836 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
29837 out array boundary.
29839 2010-03-08 Jakub Jelinek <jakub@redhat.com>
29841 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
29842 builtins.exp in a separate job.
29844 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29846 * graphite-sese-to-poly.c (add_param_constraints): Use
29847 lower_bound_in_type and upper_bound_in_type.
29849 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29851 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
29852 instead of unsigned_type_node.
29854 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29855 Reza Yazdani <reza.yazdani@amd.com>
29857 PR middle-end/43065
29858 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
29859 on pointer type parameters.
29861 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
29863 PR middle-end/42644
29864 PR middle-end/42130
29865 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
29866 handle conversions from pointer to integers.
29867 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
29868 induction variable, to be able to work with code generated by CLooG.
29869 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
29870 (build_poly_scop): Bail out if we cannot codegen a loop.
29872 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
29874 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
29875 code generation with gloog_error.
29877 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29879 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
29880 Call fold_convert on all the returned values.
29881 (expand_scalar_variables_expr): Pass to
29882 expand_scalar_variables_ssa_name the type of the resulting expression.
29884 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29886 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
29887 ppl_min_for_le_pointset.
29888 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
29889 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
29891 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29893 * graphite-dependences.c (map_into_dep_poly): Removed.
29894 (dependence_polyhedron_1): Use combine_context_id_scat.
29896 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29898 * graphite-poly.h (struct poly_scattering): Add layout documentation.
29899 (struct poly_bb): Same.
29900 (combine_context_id_scat): New.
29902 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29904 PR middle-end/42326
29905 * sese.c (name_defined_in_loop_p): Return false for default
29908 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29910 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
29911 and clean up the logic.
29913 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29915 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
29918 2010-03-08 Jakub Jelinek <jakub@redhat.com>
29920 * var-tracking.c (remove_cselib_value_chains): Define only for
29922 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
29923 delete_slot_part, emit_notes_for_differences_1): Don't call
29924 remove_cselib_value_chains here.
29925 (set_slot_part, emit_notes_for_differences_2): Don't call
29926 add_cselib_value_chains here.
29927 (preserved_values): New vector.
29928 (preserve_value): New function.
29929 (add_uses, add_stores, vt_add_function_parameters): Use it
29930 instead of cselib_preserve_value.
29931 (changed_values_stack): New vector.
29932 (check_changed_vars_0): New function.
29933 (check_changed_vars_1, check_changed_vars_2): Use it.
29934 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
29935 changed_values_stack VALUEs.
29936 (vt_emit_notes): For all preserved_values call
29937 add_cselib_value_chains. If ENABLE_CHECKING call
29938 remove_cselib_value_chains before verifying value_chains is empty.
29939 Initialize and free changed_values_stack.
29940 (vt_initialize): Initialize preserved_values.
29941 (vt_finalize): Free preserved_values.
29943 2010-03-08 Richard Guenther <rguenther@suse.de>
29945 PR tree-optimization/43269
29946 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
29949 2010-03-08 Martin Jambor <mjambor@suse.cz>
29951 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
29952 (ipa_is_param_called): Removed.
29953 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
29954 (ipa_print_node_params): Do not print the called flag.
29955 (ipa_write_node_info): Do not stream the called flag.
29956 (ipa_read_node_info): Likewise.
29958 2010-03-07 Jakub Jelinek <jakub@redhat.com>
29961 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
29962 * cselib.c (struct expand_value_data): Add dummy field.
29963 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
29965 (cselib_dummy_expand_value_rtx_cb): New function.
29966 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
29968 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
29969 * var-tracking.c: Include pointer-set.h.
29970 (variable): Change n_var_parts to char from int. Add
29971 cur_loc_changed and in_changed_variables fields.
29972 (variable_canonicalize): Remove.
29973 (shared_var_p): New inline function.
29974 (unshare_variable): Maintain cur_loc_changed and
29975 in_changed_variables fields. If var was in changed_variables,
29976 replace it there with new_var. Just copy cur_loc instead of
29977 resetting it to something else.
29978 (variable_union): Don't recompute cur_loc. Use shared_var_p.
29979 (dataflow_set_union): Don't call variable_canonicalize.
29980 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
29981 of their DEBUG_EXPR_TREE_DECLs.
29982 (canonicalize_loc_order_check): Verify that cur_loc is NULL
29983 and in_changed_variables and cur_loc_changed is false.
29984 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
29985 and cur_loc_changed. Don't update cur_loc here.
29986 (variable_merge_over_src): Don't call variable_canonicalize.
29987 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
29988 removing loc that is equal to cur_loc, clear cur_loc,
29989 set cur_loc_changed and ensure variable_was_changed is called.
29990 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
29991 compare pointers in cur_loc check, if it is equal to loc,
29992 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
29993 (variable_different_p): Remove compare_current_location argument,
29994 don't compare cur_loc.
29995 (dataflow_set_different_1): Adjust variable_different_p caller.
29996 (variable_was_changed): If dv had some var in changed_variables
29997 already, reset in_changed_variables flag for it and propagate
29998 cur_loc_changed over to the new variable. On empty var
29999 always set cur_loc_changed. Set in_changed_variables on whatever
30000 var is added to changed_variables.
30001 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
30002 Use shared_var_p. When removing loc that is equal to cur_loc,
30003 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
30004 end, don't set it to something else, just call variable_was_changed.
30005 (delete_slot_part): Use shared_var_p. When cur_loc equals to
30006 loc being removed, clear cur_loc and set cur_loc_changed.
30007 Set cur_loc_changed if all locations have been removed.
30008 (struct expand_loc_callback_data): New type.
30009 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
30010 allocated. Always create SUBREGs if simplify_subreg failed.
30011 Prefer to use cur_loc, when that fails and still in
30012 changed_variables (and seen first time) recompute it. Set
30013 cur_loc_changed of variables which had to change cur_loc and
30014 compute elcd->cur_loc_changed if any of the subexpressions used
30015 had to change cur_loc.
30016 (vt_expand_loc): Adjust to pass arguments in
30017 expand_loc_callback_data structure.
30018 (vt_expand_loc_dummy): New function.
30019 (emitted_notes): New variable.
30020 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
30021 that weren't used for any other decl in current
30022 emit_notes_for_changes call call vt_expand_loc_dummy to update
30023 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
30024 first loc_chain location if NULL before. Always use just
30025 cur_loc instead of first loc_chain location. When cur_loc_changed
30026 is false, when not --enable-checking=rtl just don't emit any note.
30027 When rtl checking, compute the note and assert it is the same
30028 as previous note. Clear cur_loc_changed and in_changed_variables
30029 at the end before removing from changed_variables.
30030 (check_changed_vars_3): New function.
30031 (emit_notes_for_changes): Traverse changed_vars to call
30032 check_changed_vars_3 on each changed var.
30033 (emit_notes_for_differences_1): Clear cur_loc_changed and
30034 in_changed_variables. Recompute cur_loc of new_var.
30035 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
30036 (vt_emit_notes): Initialize and destroy emitted_notes.
30038 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
30040 PR rtl-optimization/42220
30041 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
30042 Use verify_reg_tracked to determine if we should use OP_OUT rather
30044 (build_def_use): If we see an in-out operand for a register that we
30045 know nothing about, treat is an output if possible, fail the block if
30048 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30051 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
30054 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30057 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
30058 uses of relevant DEFs that are dead outside the loop too.
30060 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30062 * var-tracking.c (dataflow_set_merge): Swap src and src2.
30064 2010-01-13 Jakub Jelinek <jakub@redhat.com>
30066 * var-tracking.c (values_to_unmark): New variable.
30067 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
30068 values_to_unmark vector. Moved body to...
30069 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
30070 instead queue it into values_to_unmark vector.
30071 (vt_find_locations): Free values_to_unmark vector.
30073 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
30075 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
30076 (site.exp): Export them when plugins are enabled.
30078 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
30080 PR middle-end/42326
30081 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
30082 that contain scevs.
30083 (chrec_fold_multiply): Same.
30085 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
30088 * c-decl.c (build_compound_literal): Return early if init is
30089 an error_mark_node.
30091 2010-03-04 Martin Jambor <mjambor@suse.cz>
30093 PR tree-optimization/43164
30094 PR tree-optimization/43191
30095 * tree-sra.c (type_consists_of_records_p): Reject records with
30096 zero-size bit-fields at the end.
30098 2010-03-04 Mike Stump <mikestump@comcast.net>
30100 * Makefile.in (TAGS): Remove *.y.
30102 2010-03-04 Richard Guenther <rguenther@suse.de>
30104 PR tree-optimization/40761
30105 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
30107 (my_rev_post_order_compute): New function.
30108 (init_pre): Call it.
30110 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
30112 PR middle-end/43209
30113 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
30114 decrease the cost of an IV candidate when the cost is infinite.
30116 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30118 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
30119 Use '3DNow!' for the extension of that name, ensure normal space
30121 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
30123 2010-03-03 Jeff Law <law@redhat.com>
30125 * PR middle-end/32693
30126 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
30127 than gen_rtx_SUBREG.
30128 (extract_bit_field_1): Likewise.
30130 2010-03-03 Janis Johnson <janis187@us.ibm.com>
30132 * doc/sourcebuild.texi (Test directives): Document that arguments
30133 include-opts and exclude-opts are now optional for dg-skip-if,
30134 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
30136 2010-03-03 Jason Merrill <jason@redhat.com>
30139 * cgraph.h (varpool_node): Add extra_name field.
30140 * varpool.c (varpool_extra_name_alias): New.
30141 (varpool_assemble_decl): Emit extra name aliases.
30142 (varpool_mark_needed_node): Look past an extra name alias.
30143 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
30144 * lto-streamer-in.c (lto_input_tree): Read it.
30145 * lto-streamer-out.c (output_unreferenced_globals): Write it.
30147 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
30149 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
30150 (sparc*-*-solaris2*): ...this.
30152 2010-03-03 Jakub Jelinek <jakub@redhat.com>
30155 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
30156 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
30157 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
30158 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
30161 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
30162 fallthrough to default handling, just with want_address 0 instead of 2.
30163 For single element lists, add_AT_loc directly, otherwise create an
30164 artificial variable DIE and stick location list to it.
30167 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
30168 (VAL_EXPR_HAS_REVERSE): Define.
30169 (reverse_op): New function.
30170 (add_stores): For reversible operations add an extra MO_VAL_USE.
30172 2010-03-02 Jason Merrill <jason@redhat.com>
30174 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
30176 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
30178 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
30179 (sparc64-*-linux*): Likewise.
30180 (sparc64-*-solaris2*): Include assembler files before linker ones.
30181 (sparc-*-solaris2*): Simplify and reorder to match previous case.
30182 * config/sparc/gas.h: Delete.
30183 * config/sparc/sol2-64.h: Add copyright notice.
30184 * config/sparc/sol2-gas-bi.h: Likewise.
30185 * config/sparc/sol2-gld.h: Likewise.
30186 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
30187 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
30188 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
30189 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
30190 (sparc_elf_asm_named_section): Rename into...
30191 (sparc_solaris_elf_asm_named_section): ...this. Always define.
30193 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
30195 * config/alpha/alpha.c (override_options): Fix -mtune error message.
30197 2010-03-02 Jeff Law <law@redhat.com>
30199 PR middle-end/42431
30200 * reload1.c (rtx_p, substitute_stack): Declare.
30201 (substitute): Record addresses of changed rtxs.
30202 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
30203 Restore the original rtx when complete.
30204 (reload): Free subsitute_stack when complete.
30206 2010-03-02 Janis Johnson <janis187@us.ibm.com>
30208 * doc/gccint.texi (menu): Add Testsuites as a chapter.
30209 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
30211 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
30212 LTO Testing, gcov Testing, profopt Testing, compat Testing,
30213 Torture Tests): Change from subsection to section.
30215 2010-03-02 Jakub Jelinek <jakub@redhat.com>
30216 Steven Bosscher <steven@gcc.gnu.org>
30218 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
30221 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
30223 PR middle-end/42640
30224 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
30225 the assignment from the new induction variable to the assignment
30226 of the value from the original loop PHI function.
30228 2010-03-01 Janis Johnson <janis187@us.ibm.com>
30229 Daniel Jacobowitz <dan@codesourcery.com>
30231 * doc/sourcebuild.texi (Test directives): Clarify options to
30234 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30236 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
30237 Disable cfi directives unless GCC and gas agree on using read-only
30238 .eh_frame sections for 64-bit.
30239 * configure: Regenerate.
30241 2010-03-01 Richard Guenther <rguenther@suse.de>
30243 PR tree-optimization/43220
30244 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
30245 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
30247 2010-03-01 Richard Guenther <rguenther@suse.de>
30248 Martin Jambor <mjambor@suse.cz>
30250 PR middle-end/41250
30251 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
30252 gimplified parameters.
30254 2010-03-01 Christian Bruel <christian.bruel@st.com>
30256 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
30258 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
30260 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
30262 2010-03-01 Richard Guenther <rguenther@suse.de>
30264 PR middle-end/43213
30265 * expr.c (expand_assignment): Use the alias-oracle to tell
30266 if the rhs aliases the result decl.
30268 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30271 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
30272 to sol_gt_pch_get_address.
30273 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
30274 64-bit, SPARC and x86.
30275 (sol_gt_pch_get_address): New function.
30277 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
30279 * toplev.h (inform_n, error_n): Declare.
30280 * diagnostic.c (inform_n, error_n): New function.
30282 2010-03-01 Jakub Jelinek <jakub@redhat.com>
30284 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
30285 has no rtl yet when processing local_decls, queue it and recheck
30286 if deferred stack allocation hasn't assigned it rtl.
30288 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
30290 * config/sh/sh.c (unspec_bbr_uid): New.
30291 (gen_block_redirect): Use it instead of INSN_UID.
30292 (gen_far_branch): Likewise.
30294 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
30296 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
30297 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
30299 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30301 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
30302 (Warning Options): -Wno-conversion-null is valid for
30303 Objective-C++ as well.
30304 * doc/tm.texi (Named Address Spaces): Likewise.
30305 * doc/plugins.texi (Plugins): Replace TABs with spaces.
30306 * doc/tree-ssa.texi (Tree SSA): Likewise.
30308 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30311 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
30312 by default. Don't set the default arch for
30313 i[34567]86-*-darwin*|x86_64-*-darwin*.
30315 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30318 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
30319 default. Set the default 32bit/64bit archs with $with_arch
30320 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
30322 2010-02-27 Richard Guenther <rguenther@suse.de>
30324 PR tree-optimization/43186
30325 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
30326 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
30327 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
30328 unroller iterations.
30330 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30332 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
30333 required and i[34567]86-*-* targets don't support 64bit ISA.
30335 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
30338 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
30339 the same alias set.
30341 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
30343 * config.gcc: Set the default arch at least to Prescott for
30344 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
30345 if SSE math is enabled.
30347 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30349 * diagnostic.c (diagnostic_initialize): Update.
30350 (diagnostic_report_diagnostic): Test inhibit_notes_p for
30352 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
30353 (diagnostic_inhibit_notes): New.
30354 * toplev.c (process_options): inhibit notes with -fcompare-debug.
30356 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30359 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
30360 * doc/standards.texi: Likewise.
30361 * doc/extend.texi: Likewise.
30362 * doc/trouble.texi: Likewise.
30363 * doc/cppopts.texi: Likewise.
30364 * doc/install.texi: Likewise.
30365 * c.opt (std=c90,std=gnu90): New options.
30366 * c-opts.c (c_common_handle_option): Handle them.
30368 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30371 * c-decl.c (undeclared_variable): Use an informative note.
30373 2010-02-26 Richard Guenther <rguenther@suse.de>
30375 PR tree-optimization/43186
30376 * gimple.h (gimple_fold): Remove.
30377 * gimple.c (gimple_fold): Remove. Inline into single user ...
30378 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
30379 Try harder for conditions.
30381 2010-02-26 Jakub Jelinek <jakub@redhat.com>
30384 * function.c (used_types_insert): Don't skip through named pointer
30385 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
30386 and it is different from the main variant's type.
30388 2010-02-26 Nick Clifton <nickc@redhat.com>
30390 * config/rx/rx.md (sminsi3): Remove bogus alternative.
30392 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
30394 * config.gcc: Support --with-fpmath=sse for x86.
30396 * config/i386/ssemath.h: New.
30398 * doc/install.texi (--with-fpmath=sse): Documented.
30400 2010-02-26 Richard Guenther <rguenther@suse.de>
30402 PR tree-optimization/43188
30403 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
30404 vector types of over-aligned element type.
30406 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
30409 * config/i386/i386.c (expand_vec_perm_blend): Use correct
30410 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
30412 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
30414 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
30416 2010-02-26 Jakub Jelinek <jakub@redhat.com>
30418 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
30419 * var-tracking.c: Include diagnostic.h.
30420 (debug_dv): New function.
30421 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
30424 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
30425 (add_value_chain, add_value_chains, remove_value_chain,
30426 remove_value_chains): Handle DEBUG_EXPRs.
30427 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
30430 * regcprop.c (struct queued_debug_insn_change): New type.
30431 (struct value_data_entry): Add debug_insn_changes field.
30432 (struct value_data): Add n_debug_insn_changes field.
30433 (debug_insn_changes_pool): New variable.
30434 (free_debug_insn_changes, apply_debug_insn_changes,
30435 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
30436 (kill_value_one_regno): Call free_debug_insn_changes if needed.
30437 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
30439 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
30441 (copyprop_hardreg_forward_1): Don't call apply_change_group for
30442 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
30443 changes, call cprop_find_used_regs via note_stores.
30444 (copyprop_hardreg_forward): When copying vd from predecessor
30445 which has any queued DEBUG_INSN changes, make sure the pointers are
30446 cleared. At the end call df_analyze and then if there are any
30447 DEBUG_INSN changes queued at the end of some basic block for still
30448 live registers, apply them.
30449 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
30451 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
30453 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
30456 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
30458 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
30459 targets. Set the default with_cpu/with_arch from arch/cpu.
30460 Allow x86-64 and native for with_cpu/with_arch.
30462 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
30464 * ebitmap.c: Change calls to verify_popcount with calls to
30465 sbitmap_verify_popcount.
30466 (ebitmap_clear_bit): Fixed map->cacheindex test and
30467 map>cache update when bit clearing results in an empty
30470 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
30473 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
30474 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
30475 and support both V2DF and V2DI modes.
30476 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
30477 support both V2DF and V2DI modes.
30478 (general): Delete trailing whitespace from a few patterns.
30480 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30481 V2DF/V2DI interleave high/low builtins.
30483 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
30486 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
30487 interleave high/low functions.
30489 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
30491 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
30492 #pragma extern_prefix.
30494 2010-02-25 Jakub Jelinek <jakub@redhat.com>
30497 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
30498 BLKmode, assert op0 is a MEM and just adjust its mode.
30501 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
30502 if bitpos isn't multiple of mode's bitsize.
30504 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
30506 * c.opt (-ftemplate-depth=): New.
30507 (-ftemplate-depth-): Deprecate.
30508 * optc-gen.awk: Handle -ftemplate-depth=.
30509 * opth-gen.awk: Likewise.
30510 * c-opts.c (c_common_handle_option): Likewise.
30511 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
30513 2010-02-24 Jason Merrill <jason@redhat.com>
30515 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
30517 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30519 * cfg.c (alloc_aux_for_block): Remove inline.
30520 (alloc_aux_for_edge): Likewise.
30522 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30524 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
30526 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30528 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
30529 * config/i386/sol2-gas.h: New file.
30530 * config.gcc (i[34567]86-*-solaris2*): Use it.
30532 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
30535 * c-typeck.c (ep_convert_and_check): New.
30536 (build_conditional_expr): Use it.
30537 (build_binary_op): Likewise.
30539 2010-02-24 Jakub Jelinek <jakub@redhat.com>
30541 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
30544 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
30545 bounds even for -O+.
30546 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
30547 expr needs to have DECL_NAME set.
30549 2010-02-24 Nick Clifton <nickc@redhat.com>
30551 * config/mep/mep.c: Include gimple.h.
30552 (mep_function_uses_sp): Delete unused function.
30553 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
30554 parameters. Use unsigned integers to count args. Return a
30555 NULL_RTX instead of an error_mark_node. Toidy up formatting.
30557 2010-02-23 Jakub Jelinek <jakub@redhat.com>
30560 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
30561 greater or equal to nelt instead of 2 * nelt.
30562 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
30565 2010-02-23 Jason Merrill <jason@redhat.com>
30568 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
30569 in cfun->local_decls even if they have register types.
30572 * stor-layout.c (place_field): Don't warn about unnecessary
30573 DECL_PACKED if the type is packed.
30575 2010-02-23 Jakub Jelinek <jakub@redhat.com>
30578 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
30579 GOTOFF relocs, even when the base reg isn't pic pointer.
30581 2010-02-23 Michael Matz <matz@suse.de>
30584 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
30585 (expand_gimple_basic_block): Generate and use debug temps if there
30586 are debug uses left after the last real use of TERed ssa names.
30587 Unlink debug immediate uses when they are expanded.
30589 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
30592 * config/i386/i386.c (override_options): Reorganise to provide
30593 better error messages.
30595 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30597 PR middle-end/43083
30598 * graphite-scop-detection.c (create_single_exit_edge): Move
30599 the call to find_single_exit_edge to....
30600 (create_sese_edges): ...here. Don't handle multiple edges
30601 exiting the function.
30602 (build_graphite_scops): Don't handle multiple edges
30603 exiting the function.
30605 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30607 PR middle-end/43097
30608 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
30609 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
30611 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30613 PR middle-end/43026
30614 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
30616 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
30619 * c-typeck.c (convert_arguments): Print declaration location.
30620 * c-common.c (validate_nargs): Rename as
30621 builtin_function_validate_nargs.
30622 (check_builtin_function_arguments): Update.
30624 2010-02-22 Richard Guenther <rguenther@suse.de>
30627 * tree-inline.c (declare_return_variable): Use the type of
30628 the call stmt lhs if available.
30630 2010-02-22 Duncan Sands <baldrick@free.fr>
30632 * passes.c (register_pass): Always consider all pass lists when
30633 ref_pass_instance_number is zero.
30635 2010-02-22 Richard Guenther <rguenther@suse.de>
30637 PR tree-optimization/42749
30638 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
30639 parameter. Do arithmetic in the original type.
30640 (update_accumulator_with_ops): Likewise.
30641 (adjust_accumulator_values): Adjust.
30643 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30645 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
30646 (QI to BLKmode splitter): New splitter.
30648 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
30650 * config/i386/i386.c (initial_ix86_tune_features): Turn on
30651 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
30653 2010-02-22 Richard Guenther <rguenther@suse.de>
30655 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
30657 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
30659 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
30660 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
30661 ($(T)crti.o, $(T)crtn.o): Remove rules.
30663 2010-02-21 Tobias Burnus <burnus@net-b.de>
30666 * doc/invoke.texi (-fassociative-math): Document that this
30667 option is automatically enabled for Fortran.
30669 2010-02-20 David S. Miller <davem@davemloft.net>
30671 * configure.ac: Test if linker and assembler properly support
30672 GOTDATA_OP relocations.
30673 * configure: Rebuild.
30674 * config.in: Likewise.
30675 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
30676 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
30677 (movsi_high_pic): Likewise.
30678 (movdi_lo_sum_pic): Likewise.
30679 (movdi_high_pic): Likewise.
30680 (movsi_pic_gotdata_op): New pattern.
30681 (movdi_pic_gotdata_op): Likewise.
30682 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
30683 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
30685 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
30688 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
30689 attribute to ssemul.
30690 (xop_mulv2div2di3_high): Ditto.
30692 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
30695 * c.opt (Wconversion-null): New option.
30696 * doc/invoke.texi (Wconversion-null): Document.
30698 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
30700 * common.opt (Wlarger-than-): Add Undocumented.
30702 2010-02-19 Mike Stump <mikestump@comcast.net>
30704 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
30706 2010-02-19 Jason Merrill <jason@redhat.com>
30709 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
30710 * configure: Likewise.
30712 2010-02-20 Alan Modra <amodra@gmail.com>
30714 PR middle-end/42344
30715 * cgraph.h (cgraph_make_decl_local): Declare.
30716 * cgraph.c (cgraph_make_decl_local): New function.
30717 (cgraph_make_node_local): Use it.
30718 * cgraphunit.c (cgraph_function_versioning): Likewise.
30719 * ipa.c (function_and_variable_visibility): Likewise.
30721 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30724 * except.c (sjlj_emit_function_enter): Don't call
30725 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
30727 * rtl.h (add_reg_br_prob_note): Remove prototype.
30729 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
30732 * c-common.c (conversion_warning): Remove widening conversions
30733 before checking the conversion of integers to reals.
30735 2010-02-19 Mike Stump <mikestump@comcast.net>
30737 PR middle-end/43125
30738 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
30741 * cgraphunit.c (process_function_and_variable_attributes): Check
30742 DECL_PRESERVE_P instead of looking up attribute "used".
30743 * ipa-pure-const.c (check_decl): Likewise.
30744 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
30745 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
30746 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
30747 instead of attribute "used".
30748 * config/sol2-c.c (solaris_pragma_init): Likewise.
30749 (solaris_pragma_fini): Likewise.
30751 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30753 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
30754 Use XCNEW instead of xcalloc.
30755 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
30756 XNEW instead of xmalloc.
30757 (get_fields): Use XNEWVEC instead of xmalloc.
30760 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
30761 populate vars array.
30762 (create_new_general_access): For debug stmts just reset value.
30763 (get_stmt_accesses): For accesses within debug stmts just record them
30764 using add_access_to_acc_sites instead of preventing the peeling or
30765 counting them as accesses.
30767 PR middle-end/42233
30768 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
30770 2010-02-19 Richard Guenther <rguenther@suse.de>
30772 PR tree-optimization/42916
30773 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
30776 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
30778 * configure.ac: Replace all uses of changequote in macro arguments
30779 with proper quoting.
30781 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30783 PR middle-end/42233
30784 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
30786 2010-02-19 Richard Guenther <rguenther@suse.de>
30788 PR tree-optimization/42944
30789 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
30790 test for aliasing with errno.
30792 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30794 PR middle-end/42233
30795 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
30796 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
30797 * dojump.c: Include output.h.
30798 (inv): New inline function.
30799 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
30800 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
30801 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
30802 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
30803 argument, pass it down to other calls.
30804 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
30805 add REG_BR_PROB note to the conditional jump.
30806 * cfgexpand.c (add_reg_br_prob_note): Removed.
30807 (expand_gimple_cond): Don't call it, add the probability
30808 as last argument to jumpif_1/jumpifnot_1.
30809 * Makefile.in (dojump.o): Depend on output.h.
30810 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
30812 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
30813 * stmt.c (do_jump_if_equal): Likewise.
30814 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
30815 * loop-unswitch.c (compare_and_jump_seq): Likewise.
30816 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
30818 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
30819 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
30820 jumpifnot_1 callers.
30821 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
30823 (store_expr): Adjust jumpifnot caller.
30824 (store_constructor): Adjust jumpif caller.
30826 PR middle-end/42233
30827 * gimplify.c (gimple_boolify): For __builtin_expect call
30828 gimple_boolify also on its first argument.
30830 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
30832 * configure.ac (gnu-unique-object): Wrap regexps using [] in
30834 (__stack_chk_fail): Ditto. Remove quadrigraphs.
30835 * configure: Regenerated.
30837 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30839 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
30840 lang_hooks.types_compatible_p instead of comptypes.
30842 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
30844 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
30845 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
30846 if __prefer_thumb__ is defined.
30848 2010-02-18 Martin Jambor <mjambor@suse.cz>
30850 PR tree-optimization/43066
30851 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
30852 array with zero-sized element type.
30854 2010-02-18 Jakub Jelinek <jakub@redhat.com>
30856 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
30857 rtx, allocate struct var_loc_node here and return it to the
30858 caller, and only if it is actually needed.
30859 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
30860 move it earlier and return immediately if it returns NULL.
30862 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
30864 * config/sparc/gas.h: New file. Restore
30865 TARGET_ASM_NAMED_SECTION to its ELF default.
30866 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
30867 check !HAVE_GNU_AS.
30868 * config/sparc/sparc.c (sparc_elf_asm_named_section):
30869 Likewise. Add ATTRIBUTE_UNUSED to prototype.
30870 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
30871 after sparc/sysv4.h.
30873 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
30875 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
30877 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
30879 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
30880 patterns from predicated pattern.
30882 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
30885 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
30886 for insn mnemonic suffix.
30888 2010-02-17 Richard Guenther <rguenther@suse.de>
30890 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
30893 2010-02-17 Jakub Jelinek <jakub@redhat.com>
30896 * caller-save.c (save_call_clobbered_regs): If BB ends with
30897 a DEBUG_INSN, move any notes in between last real insn and the last
30898 DEBUG_INSN after the last DEBUG_INSN.
30900 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
30902 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
30903 Fix return type. Fix argument type. Explain meaning of return value.
30905 2010-02-16 Richard Guenther <rguenther@suse.de>
30907 PR tree-optimization/41043
30908 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
30909 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
30911 (vrp_visit_phi_node): ... but only for loop PHI nodes.
30913 2010-02-16 Ira Rosen <irar@il.ibm.com>
30915 PR tree-optimization/43074
30916 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
30917 * tree-vect-loop.c (vect_analyze_loop_operations): Add
30918 vectorizable cycles in hybrid SLP check.
30919 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
30921 2010-02-16 Richard Guenther <rguenther@suse.de>
30923 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
30924 (true_dependence): If memrefs_conflict_p computes must-alias
30925 trust it. Move TBAA check after offset-based disambiguation.
30926 (canon_true_dependence): Likewise.
30928 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
30930 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
30931 * doc/invoke.texi: Document it.
30932 * var-tracking.c: Include toplev.h and params.h.
30933 (vt_find_locations): Return bool indicating success. Compute
30934 hash sizes unconditionally. Check new parameter, report.
30935 (variable_tracking_main_1): Check vt_find_locations results and
30936 retry. Renamed from...
30937 (variable_tracking_main): ... this. New wrapper to preserve
30938 flag_var_tracking_assignments.
30939 * Makefile.in (var-tracking.o): Adjust dependencies.
30941 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
30942 Jakub Jelinek <jakub@redhat.com>
30945 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
30946 if weak_import attribute is present.
30947 * config/darwin.c (machopic_select_section): Likewise.
30949 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
30951 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
30952 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
30953 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
30954 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
30956 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
30959 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
30960 Fix argument types.
30962 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
30963 Rewrite text to refer to the names.
30965 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
30967 * config/i386/i386-builtin-types.def
30968 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
30969 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
30970 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
30971 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
30972 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
30973 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
30974 IX86_BUILTIN_VPERMIL2PS256.
30975 (MULTI_ARG_4_DF2_DI_I): Defined.
30976 (MULTI_ARG_4_DF2_DI_I1): Defined.
30977 (MULTI_ARG_4_SF2_SI_I): Defined.
30978 (MULTI_ARG_4_SF2_SI_I1): Defined.
30979 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
30980 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
30981 __builtin_ia32_vpermil2ps256.
30982 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
30983 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
30984 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
30985 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
30986 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
30987 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
30988 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
30989 CODE_FOR_xop_vpermil2v8sf3.
30990 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
30991 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
30992 * config/i386/xopintrin.h (_mm_permute2_pd): New.
30993 (_mm256_permute2_pd): New.
30994 (_mm_permute2_ps): New.
30995 (_mm256_permute2_ps): New.
30997 2010-02-15 Nick Clifton <nickc@redhat.com>
30999 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
31000 boolean parameters. Use emit_jump_insn when emitting a pop
31001 instruction containing a return insn.
31002 (push): Use 'true' rather than '1' as second parameter to F.
31003 (h8300_expand_prologue): Likewise.
31004 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
31005 (h8300_expand_epilogue): Likewise.
31007 2010-02-15 Richard Guenther <rguenther@suse.de>
31009 PR middle-end/43068
31010 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
31013 2010-02-15 Nick Clifton <nickc@redhat.com>
31015 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
31018 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
31020 * intl.c (fake_ngettext): New function.
31021 * intl.h (fake_ngettext): Declare.
31022 (ngettext): Define macro.
31023 * collect2.c (notice_translated): New function.
31024 (main): Use notice_translated and ngettext.
31025 * collect2.h (notice_translated): Declare.
31027 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
31029 * reorg.c (delete_computation): Comment fixes.
31030 * caller-save.c (setup_save_areas): Idem.
31031 * sel-sched-dump.c (dump_lv_set): Idem.
31034 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31036 * config/s390/s390.c (s390_sched_init): New function.
31037 (TARGET_SCHED_INIT): Target hook defined.
31039 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
31040 Jack Howarth <howarth@bromo.med.uc.edu>
31041 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
31044 Partial revert of unintended change in fix for PR41605.
31045 * config/darwin.h: Fix typo.
31046 * config/darwin9.h: Same.
31048 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31050 * c-pch.c (pch_init): Clear v.
31052 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31054 PR middle-end/42930
31055 * graphite-scop-detection.c (graphite_can_represent_scev): Call
31056 graphite_can_represent_init for MULT_EXPR.
31058 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31060 PR middle-end/42914
31061 PR middle-end/42530
31062 * graphite-sese-to-poly.c (remove_phi): New.
31063 (translate_scalar_reduction_to_array): Call remove_phi.
31065 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31067 PR middle-end/42771
31068 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
31069 * graphite-clast-to-gimple.h (gloog): Update declaration.
31070 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
31071 * graphite-poly.h (struct poly_bb): Add missing comments.
31072 (struct scop): Add poly_scop_p field.
31073 (POLY_SCOP_P): New.
31074 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
31075 * graphite.c (graphite_transform_loops): Build the polyhedral
31076 representation for each scop before code generation.
31077 * sese.c (rename_variables_in_operand): Removed.
31078 (rename_variables_in_expr): Return the renamed expression.
31079 (rename_sese_parameters): New.
31080 * sese.h (rename_sese_parameters): Declared.
31082 2010-02-11 Richard Guenther <rguenther@suse.de>
31084 PR tree-optimization/42998
31085 * tree-ssa-pre.c (create_expression_by_pieces): Treat
31086 POINTER_PLUS_EXPR properly.
31088 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31089 Changpeng Fang <changpeng.fang@amd.com>
31091 PR middle-end/40886
31092 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
31093 the cost of an IV candidate when the IV is used in a test against zero.
31095 * gcc.dg/tree-ssa/ivopts-3.c: New.
31097 2010-02-11 Richard Guenther <rguenther@suse.de>
31100 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
31101 pointer-vs-decl case by swapping refs. Handle some cases
31102 of pointer-vs-decl disambiguations more conservatively.
31103 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
31104 to false after expanding.
31106 2010-02-11 Richard Guenther <rguenther@suse.de>
31109 * gcc.c (process_command): Handle LTO file@offset case more
31112 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31114 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
31115 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
31117 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
31119 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
31120 if MEM's mode size isn't DWARF2_ADDR_SIZE.
31121 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
31122 Optimize eq/ne comparisons when both arguments are known to be
31124 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
31125 Don't mask operands unnecessarily if they are known to be already
31128 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
31130 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
31133 2010-02-10 Richard Guenther <rguenther@suse.de>
31135 PR tree-optimization/43017
31136 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
31137 for wrapping signed arithmetic.
31139 2010-02-10 Jakub Jelinek <jakub@redhat.com>
31142 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
31143 if no debug info should be emitted for it.
31145 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
31147 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
31148 note when flag_exceptions is set.
31150 2010-02-10 Duncan Sands <baldrick@free.fr>
31152 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
31154 2010-02-10 Richard Guenther <rguenther@suse.de>
31157 * tree.c (get_unwidened): Handle constants.
31158 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
31160 2010-02-10 Martin Jambor <mjambor@suse.cz>
31163 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
31164 check for variable argument counts independently.
31166 2010-02-10 Christian Bruel <christian.bruel@st.com>
31169 * config/sh/sh.c (find_barrier): Increase length for non delayed
31170 conditional branches.
31172 2010-02-10 Christian Bruel <christian.bruel@st.com>
31174 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
31176 2010-02-10 Jakub Jelinek <jakub@redhat.com>
31178 * builtins.c (set_builtin_user_assembler_name): Also handle
31179 ffs if int is smaller than word.
31181 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
31183 PR middle-end/42973
31184 * ira-conflicts.c (get_dup): Remove.
31185 (process_reg_shuffles): Add new parameter. Use it as an
31186 additional guard for copy generation.
31187 (add_insn_allocno_copies): Rewrite.
31189 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
31191 * common.opt (fsched2-use-traces): Preserved for backward
31193 * doc/invoke.texi: Remove the documentation about option
31194 -fsched2-use-traces.
31195 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
31196 flag_sched2_use_traces.
31197 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
31198 the backward compatibility flag section.
31200 2010-02-09 Richard Guenther <rguenther@suse.de>
31202 PR tree-optimization/43008
31203 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
31204 make HEAP variables initialized from global memory if they
31205 are not known builtin functions.
31206 (find_func_aliases): Adjust.
31208 2010-02-09 Richard Guenther <rguenther@suse.de>
31210 PR tree-optimization/43000
31211 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
31212 arithmetic manually.
31214 2010-02-08 Jakub Jelinek <jakub@redhat.com>
31216 PR tree-optimization/42931
31217 * tree-loop-linear.c (try_interchange_loops): Don't call
31218 double_int_mul if estimated_loop_iterations failed.
31220 2010-02-08 Martin Jambor <mjambor@suse.cz>
31222 PR middle-end/42898
31223 * tree-sra.c (build_accesses_from_assign): Do not mark in
31224 should_scalarize_away_bitmap if stmt has volatile ops.
31225 (sra_modify_assign): Do not process assigns piecemeal if if stmt
31228 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
31230 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
31232 2010-02-07 Adam Nemet <adambnmet@gmail.com>
31234 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
31235 before the pattern.
31237 2010-02-07 Andrew Pinski <pinskia@gmail.com>
31239 PR middle-end/42946
31240 * df-core.c (df_finish_pass): Change type of saved_flags to int.
31242 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
31244 PR middle-end/42988
31245 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
31246 to unknown_dependence.
31247 (graphite_legal_transform_dr): Handle the unknown_dependence.
31248 (graphite_carried_dependence_level_k): Same.
31250 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
31252 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
31254 2010-02-07 Richard Guenther <rguenther@suse.de>
31256 PR middle-end/42991
31257 * expr.c (get_inner_reference): Always initialize *pbitsize.
31259 2010-02-07 Richard Guenther <rguenther@suse.de>
31261 PR middle-end/42956
31262 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
31263 new ARRAY_REFs on variable size element or minimal index arrays.
31265 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
31266 gimple_fold_indirect_ref.
31268 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
31271 * arm.c (arm_override_options): Just return if the user has specified
31272 an invalid fpu name.
31274 2010-02-03 Jason Merrill <jason@redhat.com>
31277 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
31278 i386_pe_maybe_record_exported_symbol.
31280 2010-02-05 Steve Ellcey <sje@cup.hp.com>
31283 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
31284 (pa_delegitimize_address): New function.
31286 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
31288 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
31289 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
31291 2010-02-05 Richard Guenther <rguenther@suse.de>
31294 * lto-streamer-in.c (get_resolution): Deal with references
31295 to undefined functions.
31297 2010-02-05 Richard Guenther <rguenther@suse.de>
31299 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
31300 (fold_const_aggregate_ref): Likewise.
31301 (ccp_fold_stmt): Substitute loads.
31302 (maybe_fold_reference): Verify types before substituting.
31304 (fold_gimple_assign): Unshare properly.
31305 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
31307 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
31309 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
31310 for rs6000_gen_cell_microcode.
31312 2010-02-04 Richard Guenther <rguenther@suse.de>
31314 PR rtl-optimization/42952
31315 * dse.c (const_or_frame_p): Remove MEM handling.
31317 2010-02-04 Nick Clifton <nickc@redhat.com>
31319 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
31320 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31321 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
31322 (mn10300_asm_output_mi_thunk): New function.
31323 (mn10300_can_output_mu_thunk): New function.
31324 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
31325 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
31326 (FUNCTION_ARG): Delete incorrect comment.
31328 2010-02-03 Jason Merrill <jason@redhat.com>
31331 * fold-const.c (operand_equal_p): Handle erroneous types.
31333 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
31335 * config/h8300/h8300.md (can_delay): Fix attibute condition.
31337 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
31339 PR rtl-optimization/42941
31340 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
31343 2010-02-03 Jason Merrill <jason@redhat.com>
31346 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
31348 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
31351 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
31352 (cselib_reset_table): Renamed from...
31353 (cselib_reset_table_with_next_value): ... this.
31354 (cselib_get_next_uid): Renamed from...
31355 (cselib_get_next_unknown_value): ... this.
31356 * cselib.c (next_uid): Renamed from...
31357 (next_unknown_value): ... this.
31358 (cselib_clear_table): Adjust.
31359 (cselib_reset_table): Adjust. Renamed from...
31360 (cselib_reset_table_with_next_value): ... this.
31361 (cselib_get_next_uid): Adjust. Renamed from...
31362 (cselib_get_next_unknown_value): ... this.
31363 (get_value_hash): Use hash.
31364 (cselib_hash_rtx): Likewise.
31365 (new_cselib_val): Adjust. Set and dump uid.
31366 (cselib_lookup_mem): Pass next_uid as hash.
31367 (cselib_subst_to_values): Likewise.
31368 (cselib_log_lookup): Dump uid.
31369 (cselib_lookup): Pass next_uid as hash. Adjust.
31370 (cselib_process_insn): Adjust.
31371 (cselib_init): Initialize next_uid.
31372 (cselib_finish): Adjust.
31373 (dump_cselib_table): Likewise.
31374 * dse.c (canon_address): Dump value uid.
31375 * print-rtl.c (print_rtx): Print value uid.
31376 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
31378 (dv_uid): New function, sort of renamed from...
31379 (dv_htab_hash): ... this, reimplemented in terms of it and...
31380 (dv_uid2hash): ... this. New.
31381 (variable_htab_eq): Drop excess assertions.
31382 (tie_break_pointers): Removed.
31383 (canon_value_cmp): Compare uids.
31384 (variable_post_merge_New_vals): Print uids.
31385 (vt_add_function_parameters): Adjust.
31386 (vt_initialize): Reset table. Adjust.
31388 2010-02-03 Richard Guenther <rguenther@suse.de>
31390 PR tree-optimization/42944
31391 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
31392 (call_may_clobber_ref_p_1): Likewise. Properly handle
31393 malloc and calloc clobbering errno.
31395 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
31397 * doc/invoke.texi: Fix name of sched1 dump.
31399 * opts.c (decode_options): Set flag_tree_switch_conversion
31400 only conditionally on optimize >= 2.
31402 * gcse.c: Assorted comment fixes in pass description.
31404 2010-02-03 Anthony Green <green@moxielogic.com>
31406 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
31407 nop padding in order to maintain alignment of storage location of
31408 target function address.
31409 (moxie_trampoline_init): Store target function address at newly
31411 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
31413 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
31415 2010-02-03 Richard Guenther <rguenther@suse.de>
31417 PR middle-end/42927
31418 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
31420 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31422 * config.gcc: Reenable check for obsolete targets.
31423 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
31424 mips-sgi-irix6.[0-4]*.
31426 2010-02-02 Nick Clifton <nickc@redhat.com>
31428 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
31429 constant size of 4 as being the same as 0.
31430 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
31431 can take values in the range 0..4.
31433 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
31436 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
31437 as _darwin10_Unwind_FindEnclosingFunction().
31438 * libgcc-libsystem.ver: New.
31440 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
31443 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
31444 implicitly set registers.
31446 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
31448 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
31449 (arm_override_options): Allow automatic selection of the thread
31450 pointer register if thumb2.
31451 (legitimize_pic_address): Improve code sequences for Thumb2.
31452 (arm_call_tls_get_addr): Likewise.
31453 (legitimize_tls_address): Likewise.
31454 * arm.md (pic_load_addr_arm): Delete. Replace with ...
31455 (pic_load_addr_32bit): ... this. New named pattern.
31456 * thumb2.md (pic_load_addr_thumb2): Delete.
31457 (pic_load_dot_plus_four): Delete.
31458 (tls_load_dot_plus_four): New named pattern.
31460 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31463 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
31464 Document fix for TLS bug.
31466 2010-01-31 Richard Guenther <rguenther@suse.de>
31468 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
31469 conservatively correct.
31471 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31475 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31477 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
31479 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31481 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
31483 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
31485 * config.gcc: Adjust order of makefile fragments for mingw targets.
31487 2010-01-31 Richard Guenther <rguenther@suse.de>
31489 PR middle-end/42898
31490 * gimplify.c (gimplify_init_constructor): For volatile LHS
31491 initialize a temporary.
31493 2010-01-31 Matthias Klose <doko@ubuntu.com>
31495 * configure.ac: Fix __stack_chk_fail check for cross builds configured
31497 * configure: Regenerate.
31499 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
31501 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
31502 the same alias set and their sizes different constantness.
31503 (aliasing_component_refs_p): Revert 2009-10-24 change.
31505 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31507 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
31510 2010-01-29 Richard Guenther <rguenther@suse.de>
31512 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
31513 Assert we successfully updated the call.
31515 2010-01-29 Jakub Jelinek <jakub@redhat.com>
31517 PR rtl-optimization/42889
31518 * df.h (df_set_bb_dirty_nonlr): New prototype.
31519 * df-core.c (df_set_bb_dirty_nonlr): New function.
31520 * df-scan.c (df_insn_rescan): Call it instead of
31521 df_set_bb_dirty for DEBUG_INSNs.
31523 2010-01-29 Richard Guenther <rguenther@suse.de>
31525 PR middle-end/37448
31526 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
31527 quadratic behavior in most cases.
31529 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
31532 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
31533 in the call to gen_x86_movsicc_0_m1.
31535 2010-01-28 Richard Guenther <rguenther@suse.de>
31537 PR tree-optimization/42871
31538 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
31540 2010-01-28 Richard Guenther <rguenther@suse.de>
31542 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
31543 into call arguments.
31545 2010-01-28 Richard Guenther <rguenther@suse.de>
31547 PR middle-end/42883
31548 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
31549 the forwarder if the destination is an EH landing pad.
31551 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
31553 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
31554 block list passed to gimple_duplicate_sese_tail.
31555 (parallelize_loops): Avoid parallelization when the function
31556 has_nonlocal_label.
31557 Avoid parallelization when the preheader is IRREDUCIBLE.
31558 Try to optimize when estimated_loop_iterations_int is unresolved.
31559 Add the loop's location to the dump file.
31560 * tree-cfg.c (add_phi_args_after_redirect): Remove.
31561 (gimple_duplicate_sese_tail): Remove the check for the latch.
31562 Redirect nexits to the exit block.
31563 Remove handling of the incoming edges to the latch.
31564 Redirect the backedge from the copied latch to the exit bb.
31566 2010-01-28 Michael Matz <matz@suse.de>
31569 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
31570 Wrap force_reg into a sequence, emit it before user.
31572 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
31574 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
31576 (arm_legacy_rev): Likewise.
31577 (thumb_legacy_rev): Likewise.
31579 2010-01-27 Jakub Jelinek <jakub@redhat.com>
31581 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
31582 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
31583 on MEM's address failed, try avoid_constant_pool_reference and
31584 recurse if it returned something different.
31585 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
31586 address, try avoid_constant_pool_reference and recurse if it
31587 returned something different.
31588 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
31589 address and avoid_constant_pool_reference returned something
31590 different, don't set have_address.
31592 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
31595 * var-tracking.c (val_store): Add modified argument, obey it.
31597 (count_uses): Move down logging of main.
31598 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
31599 don't need resolution.
31600 (emit_notes_in_bb): Likewise.
31602 2010-01-27 Richard Guenther <rguenther@suse.de>
31604 PR middle-end/42878
31605 * tree-inline.c (remap_decl): Delay remapping of SSA name
31606 default definitions until we need them.
31608 2010-01-27 Jakub Jelinek <jakub@redhat.com>
31610 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
31611 (rs6000_delegitimize_address): New function.
31613 * config/s390/s390.c (s390_delegitimize_address): Call
31614 delegitimize_mem_from_attrs.
31616 PR middle-end/42874
31617 * tree-inline.c (cannot_copy_type_1): Removed.
31618 (copy_forbidden): Don't forbid copying of functions containing
31619 records/unions with variable length fields.
31621 2010-01-27 Christian Bruel <christian.bruel@st.com>
31625 * config/sh/sh.c (find_barrier): Increase length for non delayed
31626 conditional branches.
31628 2010-01-27 Matthias Klose <doko@ubuntu.com>
31630 * configure.ac (gnu-unique-object): Fix ldd version check.
31631 * configure: Regenerate.
31633 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31635 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
31637 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
31638 Test for HAVE_GNU_AS value.
31640 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31642 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
31643 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
31644 INT64_TYPE): Define.
31645 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
31646 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
31647 INT_LEAST64_TYPE): Define.
31648 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
31649 UINT_LEAST64_TYPE): Define.
31650 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
31651 INT_FAST64_TYPE): Define.
31652 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
31653 UINT_FAST64_TYPE): Define.
31654 (INTMAX_TYPE, UINTMAX_TYPE): Define.
31655 (INTPTR_TYPE, UINTPTR_TYPE): Define.
31656 (SIG_ATOMIC_TYPE): Define.
31658 2010-01-26 Richard Guenther <rguenther@suse.de>
31660 * df-scan.c (df_scan_set_bb_info): Remove assert.
31661 (df_insn_rescan_debug_internal): Merge asserts.
31662 (df_install_ref): Likewise.
31663 (df_mark_reg): Use bitmap_set_range.
31664 (df_hard_reg_used_p): Remove assert.
31665 (df_hard_reg_used_count): Likewise.
31667 2010-01-26 Richard Guenther <rguenther@suse.de>
31669 PR rtl-optimization/42685
31670 * web.c (web_main): Ignore DEBUG_INSNs.
31672 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
31674 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
31676 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
31677 Fix types of fndecl and arglist parameters.
31679 2010-01-26 Richard Guenther <rguenther@suse.de>
31681 PR middle-end/42806
31682 * tree-eh.c (unsplit_eh): Skip debug insns.
31684 2010-01-26 Richard Guenther <rguenther@suse.de>
31686 PR tree-optimization/42250
31687 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
31689 2010-01-26 Jakub Jelinek <jakub@redhat.com>
31692 * omp-low.c (expand_omp_sections): Only use single_pred if
31693 l2_bb is single_pred_p.
31695 2010-01-25 Christian Bruel <christian.bruel@st.com>
31698 * config/sh/sh.c (find_barrier): Increase length for non delayed
31699 conditional branches.
31700 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
31702 2010-01-24 David S. Miller <davem@davemloft.net>
31704 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
31705 define if not using GAS.
31706 * config/sparc/sparc.c (sparc_elf_asm_named_section):
31707 Likewise. Delete SECTION_MERGE code, which is only applicable
31710 2010-01-24 Mark Mitchell <mark@codesourcery.com>
31713 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
31714 mangling of va_list in system headers.
31716 2010-01-23 Toon Moene <toon@moene.org>
31718 * tree-predcom.c (combine_chains): Return NULL, not false.
31720 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
31722 * tree-loop-distribution.c (distribute_loop): Fix declaration and
31723 initialization of variable res to agree with return type.
31725 2010-01-22 Steve Ellcey <sje@cup.hp.com>
31727 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
31728 * tree-sra.c: Add include of expr.h.
31730 2010-01-22 Jakub Jelinek <jakub@redhat.com>
31732 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
31733 insert the debug stmt on the single non-EH edge from the stmt.
31735 2010-01-22 Richard Henderson <rth@redhat.com>
31738 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
31739 the RHS until after generate_subtree_copies has insertted its
31740 code before the current statement.
31742 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
31744 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
31746 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
31748 2010-01-21 Martin Jambor <mjambor@suse.cz>
31750 PR tree-optimization/42585
31751 * tree-sra.c (struct access): New field grp_total_scalarization.
31752 (dump_access): Dump the new field.
31753 (should_scalarize_away_bitmap): New variable.
31754 (cannot_scalarize_away_bitmap): Likewise.
31755 (sra_initialize): Allocate new bitmaps.
31756 (sra_deinitialize): Free new bitmaps.
31757 (create_access_1): New function.
31758 (create_access): Parts moved to create_access_1.
31759 (type_consists_of_records_p): New function.
31760 (completely_scalarize_record): Likewise.
31761 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
31762 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
31763 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
31765 (analyze_all_variable_accesses): Completely scalarize small eligible
31768 2010-01-21 Martin Jambor <mjambor@suse.cz>
31770 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
31772 2010-01-21 Andrew Haley <aph@redhat.com>
31774 * gcc.c (process_command): Move lang_specific_driver before
31775 setting cc_libexec_prefix.
31777 2010-01-21 Richard Guenther <rguenther@suse.de>
31779 PR middle-end/19988
31780 * fold-const.c (negate_expr_p): Pretend only negative
31781 real constants are easily negatable.
31783 2010-01-20 Janis Johnson <janis187@us.ibm.com>
31784 Jason Merrill <jason@redhat.com>
31786 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
31787 (TYPE_TRANSPARENT_AGGR): this, for union and record.
31788 * calls.c (initialize argument_information): Handle it.
31789 * c-common.c (handle_transparent_union_attribute): Use new name.
31790 * c-decl.c (finish_struct): Ditto.
31791 * c-typeck.c (type_lists_compatible_p): Ditto.
31792 (convert_for_assignment): Use new name and also handle record.
31793 * function.c (aggregate_value_p): Handle it.
31794 (pass_by_reference): Ditto.
31795 (assign_parm_data_types): Ditto.
31796 * print-tree.c (print_node): Ditto.
31797 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
31798 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
31799 * tree.c (first_field): New fn.
31801 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
31804 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
31805 even when linking statically, for now.
31807 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
31810 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
31811 without a cselib val.
31812 (count_uses): Accept MO_VAL_SET with no val on stores.
31813 (add_stores): Likewise.
31815 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31817 * var-tracking.c (check_value_val): Add a compile time assertion.
31818 (dv_is_decl_p): Simplify.
31819 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
31820 gcc_assert if ENABLE_CHECKING.
31822 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
31825 * var-tracking.c: Include tree-flow.h.
31826 (mem_dies_at_call): New.
31827 (dataflow_set_preserve_mem_locs): Use it.
31828 (dataflow_set_remove_mem_locs): Likewise.
31829 (dump_var): Renamed from dump_variable. Adjust all callers.
31830 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
31831 * Makefile.in (var-tracking.o): Adjust deps.
31833 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
31835 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
31837 2010-01-20 Richard Guenther <rguenther@suse.de>
31839 PR tree-optimization/42717
31840 * tree-ssa-dce.c (get_live_post_dom): Remove.
31841 (forward_edge_to_pdom): Take an arbitrary edge to copy
31842 degenerate PHI args from.
31843 (remove_dead_stmt): Use the first post-dominator even if it
31844 does not contain live statements as redirection destination.
31846 2010-01-20 Richard Guenther <rguenther@suse.de>
31848 * tree-inline.c (estimate_num_insns): Handle EH builtins.
31850 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31852 * sel-sched.c (create_speculation_check): Remove set but not used
31854 (try_transformation_cache): Remove set but not used variable ds.
31855 (calculate_privileged_insns): Remove set but not used variables
31856 cur_insn and min_spec_insn.
31857 (find_best_expr): Remove set but not used variable avail_n.
31858 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
31860 * cgraphunit.c (assemble_thunk): Remove set but not used variable
31862 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
31863 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
31864 new_scop_exit_edge.
31866 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
31869 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
31870 cpu types. Add support for *-sse3 cpu types.
31871 (x86_64-*-*): Ditto.
31873 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31875 PR middle-end/42803
31876 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
31877 argument, call initializer_constant_valid_p_1 instead of
31878 initializer_constant_valid_p, pass CACHE to it, return NULL
31879 immediately if first call returns NULL.
31880 (initializer_constant_valid_p_1): New function.
31881 (initializer_constant_valid_p): Use it.
31883 2010-01-20 Thomas Quinot <quinot@adacore.com>
31885 * tree.def (PLACEHOLDER_EXPR): Fix comment.
31887 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31889 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
31890 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
31891 (loc_list_from_tree): Don't handle unsigned division. Handle
31892 signed modulo using DW_OP_{over,over,div,mul,minus}.
31893 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
31894 modulo instead of signed.
31896 2010-01-20 DJ Delorie <dj@redhat.com>
31898 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
31900 (h8300_emit_stack_adjustment): Propogate it.
31902 (h8300_expand_prologue): Likewise.
31903 (h8300_expand_epilogue): Likewise.
31905 2010-01-19 Michael Matz <matz@suse.de>
31907 PR tree-optimization/41783
31908 * tree-data-ref.c (toplevel): Include flags.h.
31909 (dump_data_dependence_relation): Also dump the inputs if the
31910 result will be unknown.
31911 (split_constant_offset_1): Look through some conversions.
31912 * tree-predcom.c (determine_roots_comp): Restart a new chain if
31913 the offset from last element is too large.
31914 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
31915 (reassociate_to_the_same_stmt): Handle vector registers.
31916 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
31917 (e.g. conversions).
31918 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
31919 wide_prolog_niters argument, emit widening instructions.
31920 (vect_do_peeling_for_alignment): Adjust caller, use widened
31921 variant of the iteration cound.
31922 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
31924 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31927 * config/arm/neon-testgen.m (emit_automatics): New parameter
31928 features. Adjust for Fixed_return_reg feature.
31929 (test_intrinsic): Call emit_automatics with new feature.
31930 * config/arm/neon.ml: Update copyright years.
31931 (features): New Fixed_return_reg feature.
31932 (ops): Update feature for Vget_low.
31934 2010-01-19 Jakub Jelinek <jakub@redhat.com>
31936 PR tree-optimization/42719
31937 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
31941 * fwprop.c (all_uses_available_at): Return false if def_set dest
31942 is a REG that is used in def_insn.
31944 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
31946 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
31948 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
31949 Add argument names.
31951 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
31953 * target.h (struct gcc_target) <secondary_reload>: Change type
31954 of last argument to secondary_reload_info *.
31956 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
31959 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
31960 memory references with unaligned offsets. Remove CQImode handling.
31961 (unaligned_memory_operand): Return 1 for memory references with
31962 unaligned offsets. Remove CQImode handling.
31964 2010-01-18 Richard Guenther <rguenther@suse.de>
31966 PR middle-end/39954
31967 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
31970 2010-01-18 Richard Guenther <rguenther@suse.de>
31972 PR tree-optimization/42781
31973 * tree-ssa-structalias.c (find_what_var_points_to): Skip
31974 restrict processing only if the original variable was artificial.
31976 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
31978 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
31979 find number of popped argument bytes.
31981 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
31982 Fix the text that describes the return value for invalid insns.
31984 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
31986 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
31987 Clarify what 'cost of the -dependence' is. Fix quoting.
31989 * toplev.c (default_get_pch_validity): Rename argument to "sz".
31990 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
31992 2010-01-17 Jakub Jelinek <jakub@redhat.com>
31994 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
31995 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
31997 2010-01-17 Richard Guenther <rguenther@suse.de>
31999 PR middle-end/42248
32000 * function.c (split_complex_args): Take a VEC to modify.
32001 (assign_parms_augmented_arg_list): Build a VEC instead of
32002 a chain of PARM_DECLs.
32003 (assign_parms_unsplit_complex): Take a VEC of arguments.
32004 Do not fixup unmodified parms.
32005 (assign_parms): Deal with the VEC.
32006 (gimplify_parameters): Likewise.
32008 2010-01-17 Richard Guenther <rguenther@suse.de>
32010 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
32011 node existence check.
32012 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
32013 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
32014 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
32015 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
32016 (gimple_execute_on_growing_pred): Likewise.
32018 2010-01-17 Richard Guenther <rguenther@suse.de>
32020 PR tree-optimization/42773
32021 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
32022 (compute_antic_aux): Likewise.
32023 (compute_partial_antic_aux): Likewise.
32025 2010-01-17 Jie Zhang <jie.zhang@analog.com>
32028 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
32031 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
32033 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
32036 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
32037 Fix markup for strict argument.
32039 (TARGET_SCHED_REORDER2): Fix argument types.
32041 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
32042 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
32044 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
32045 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
32047 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
32050 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
32051 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
32052 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
32053 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
32054 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
32056 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
32058 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
32060 (TARGET_ASM_RELOC_RW_MASK): Add return type.
32061 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
32063 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
32065 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
32068 (TARGET_ASM_NAMED_SECTION): Fix argument list.
32070 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
32071 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
32073 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
32075 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
32077 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
32078 referring to it. Fix language.
32080 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
32082 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
32084 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
32086 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
32088 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
32089 '@var{stream}. Remove stray 'and'.
32091 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
32093 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
32095 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
32097 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
32098 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
32100 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
32101 Fix description of return value.
32102 Rename argument "sz" to "len."
32104 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
32105 Clarify meaning of 'true' return value.
32107 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
32109 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
32110 rep_mode versus mode_rep.
32112 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
32114 (TARGET_BUILTIN_DECL): Fix name.
32116 (TARGET_COMMUTATIVE_P): Fix type of first argument.
32118 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
32120 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
32122 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
32124 (TARGET_RELAXED_ORDERING): Use @deftypevr.
32126 (TARGET_GET_DRAP_RTX): Note that this is a hook.
32129 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
32130 Rename argument tm_fn to md_fn.
32132 (TARGET_OPTION_PRINT): Fix argument list.
32134 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
32137 * config/i386/i386.c (ix86_fixup_binary_operands):
32138 Revert FMA4 fixup of operands.
32140 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32143 * Makefile.in (write_entries_to_file, install-plugin):
32144 Use \012 instead of \n with tr.
32146 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
32148 * configure.ac (HAVE_AS_REF): New C macro.
32149 * configure: Regenerate.
32150 * config.in: Likewise.
32151 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
32153 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
32156 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
32158 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
32160 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
32162 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
32164 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
32166 (TARGET_IN_SMALL_DATA_P): Fix argument type.
32168 (TARGET_BINDS_LOCAL_P): Fix argument type.
32170 (TARGET_ASM_FILE_END): Use prototype.
32172 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
32174 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
32176 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
32178 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
32180 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
32181 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
32183 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
32184 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
32186 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
32187 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
32188 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
32189 (TARGET_ADDR_SPACE_CONVERT): Likewise.
32191 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
32193 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
32195 (TARGET_INIT_BUILTINS): Use prototype.
32197 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
32198 Put 'const char *' in braces. Fix parameter types.
32199 (TARGET_INVALID_CONVERSION): Fix parameter types.
32200 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
32201 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
32203 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
32206 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
32208 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
32210 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
32212 * doc/tm.texi (TARGET_HELP): Fix return type.
32214 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
32215 in braces. Fix argument types.
32217 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
32219 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
32221 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
32223 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
32224 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
32226 (TARGET_MANGLE_TYPE): Fix argument types.
32228 (TARGET_IRA_COVER_CLASSES): Use prototype.
32230 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
32232 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
32234 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
32236 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
32238 (TARGET_CALLEE_COPIES): Fix argument types.
32240 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
32242 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
32244 (TARGET_FUNCTION_VALUE): Fix argument types.
32246 (TARGET_RETURN_IN_MSB): Fix argument type.
32248 (TARGET_RETURN_IN_MEMORY): Fix argument types.
32250 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
32252 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
32254 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
32255 agree with return type.
32257 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
32259 2010-01-15 Jing Yu <jingyu@google.com>
32261 PR rtl-optimization/42691
32262 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
32263 a pseudo to a constant and are merged, and adjust comments.
32265 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
32267 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
32269 2010-01-15 Richard Guenther <rguenther@suse.de>
32271 PR middle-end/42739
32272 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
32273 labels of computed or non-local gotos to the destination.
32274 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
32275 landing pad label is the first label.
32277 2010-01-15 Richard Guenther <rguenther@suse.de>
32279 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
32281 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
32284 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
32285 to allow generation of the xssqrtdp instruction on power7.
32286 (sqrtdf2_fpr): Ditto.
32288 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32290 PR middle-end/42674
32291 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
32292 functions with noreturn attribute.
32295 * varasm.c (declare_weak): Add weak attribute to decl if it
32296 doesn't have one already.
32297 (assemble_external): Only add decls to weak_decls if they also
32298 have weak attribute.
32300 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
32302 * var-tracking.c (var_reg_delete): Don't delete the association
32303 between REGs and values or one-part variables if the register
32306 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32309 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
32310 because its first operand is a non-localized variable.
32312 2010-01-14 Martin Jambor <mjambor@suse.cz>
32314 PR tree-optimization/42706
32315 * tree-sra.c (encountered_recursive_call): New variable.
32316 (encountered_unchangable_recursive_call): Likewise.
32317 (sra_initialize): Initialize both new variables.
32318 (callsite_has_enough_arguments_p): New function.
32319 (scan_function): Call decl and flags check only for IPA-SRA, check
32320 whether there is a recursive call and whether it has enough arguments.
32321 (all_callers_have_enough_arguments_p): New function.
32322 (convert_callers): Look for recursive calls only when
32323 encountered_recursive_call is set.
32324 (ipa_early_sra): Bail out either if
32325 !all_callers_have_enough_arguments_p or
32326 encountered_unchangable_recursive_call.
32328 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32330 * sel-sched.c: Add 2010 to copyright years.
32331 * sel-sched-ir.c: Likewise.
32332 * sel-sched-ir.h: Likewise.
32334 2010-01-14 Martin Jambor <mjambor@suse.cz>
32336 PR tree-optimization/42714
32337 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
32338 constructors specially.
32340 2010-01-14 Andi Kleen <ak@linux.intel.com>
32342 * config/i386/drivers-i386.c (detect_caches_intel):
32343 Add l2sizekb parameter and fill in.
32344 (host_detect_local_cpu): Add l2sizekb, fill in.
32345 Add Atom small cache heuristic.
32347 2010-01-14 Andi Kleen <ak@linux.intel.com>
32349 * config/i386/drivers-i386.c (detect_caches_cpuid4):
32350 Add level3 parameter and fill in.
32351 (detect_caches_intel): Handle level3 cache.
32353 2010-01-14 Andi Kleen <ak@linux.intel.com>
32355 * config/i386/drivers-i386.c (host_detect_local_cpu):
32356 Fix core duo detection.
32358 2010-01-14 Andi Kleen <ak@linux.intel.com>
32360 * config/i386/drivers-i386.c (host_detect_local_cpu):
32361 Fix Atom detection.
32363 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32365 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
32366 (rs6000_variable_issue_1): this. Use...
32367 (rs6000_variable_issue): here. Reimplement. Print debug info.
32369 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32371 * sel-sched-ir.c (sel_restore_other_notes): Rename to
32372 sel_restore_notes. Update all callers. Call reemit_notes
32375 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32377 PR rtl-optimization/42246
32378 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
32381 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32383 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
32384 all successors is the same as number of successors in current region.
32386 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32388 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
32389 to rename is not separable. Otherwise check that its LHS is not NULL.
32391 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32393 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
32395 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32397 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
32398 available registers when failed to discover LHS register class.
32399 Fix indentation. Update comment.
32401 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32402 Alexander Monakov <amonakov@ispras.ru>
32404 PR rtl-optimization/42389
32405 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
32407 (advance_state_on_fence): Likewise.
32408 (sel_target_adjust_priority): Print debug output only when
32409 sched_verbose >= 4, not 2.
32410 (get_expr_cost): Do not issue all unique insns on the next cycle.
32411 (fill_insns): Initialize can_issue_more from the value saved
32413 * sel-sched-ir.c (flist_add): New parameter issue_more.
32414 Init FENCE_ISSUE_MORE with it.
32415 (merge_fences): Likewise.
32416 (init_fences): Update call to flist_add.
32417 (add_to_fences, add_clean_fence_to_fences)
32418 (add_dirty_fence_to_fences): Likewise.
32419 (move_fence_to_fences): Update call to merge_fences.
32420 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
32422 * sel-sched-ir.h (struct _fence): New field issue_more.
32423 (FENCE_ISSUE_MORE): New accessor macro.
32425 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32427 PR rtl-optimization/42388
32428 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
32429 that have no predecessors nor successors. Do not call move_bb_info
32430 for empty blocks outside of current region.
32432 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32434 PR rtl-optimization/42294
32435 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
32436 * sel-sched.c (move_exprs_to_boundary): Transitively add all
32437 originators' originators.
32439 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32441 PR rtl-optimization/39453
32442 PR rtl-optimization/42246
32443 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
32445 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
32447 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32448 Alexander Monakov <amonakov@ispras.ru>
32450 PR middle-end/42245
32451 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
32452 (maybe_tidy_empty_bb): ... here. Make static. Add new
32453 argument. Update all callers.
32454 (tidy_control_flow): ... and here. Recompute topological order
32455 of basic blocks in region if necessary.
32456 (sel_redirect_edge_and_branch): Change return type. Return true
32457 if topological order might have been invalidated.
32458 (purge_empty_blocks): Export and move from...
32459 * sel-sched.c (purge_empty_blocks): ... here.
32460 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
32461 (maybe_tidy_empty_bb): Delete prototype.
32462 (purge_empty_blocks): Declare.
32464 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32466 PR rtl-optimization/42249
32467 * sel-sched.c (try_replace_dest_reg): When chosen register
32468 and original register is the same, do not bail out early, but
32469 still check all original insns for validity of replacing destination
32470 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
32473 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32476 Port from no-undefined-overflow branch:
32477 2009-03-09 Richard Guenther <rguenther@suse.de>
32479 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
32481 2010-01-14 Richard Guenther <rguenther@suse.de>
32484 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
32486 2010-01-14 Ira Rosen <irar@il.ibm.com>
32488 PR tree-optimization/42709
32489 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
32490 as scalar type in creation of constant vector operand.
32492 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32495 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
32496 (check-parallel-%): Match `testsuite' directory component only
32499 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
32501 PR translation/39521
32502 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
32505 2010-01-13 Richard Guenther <rguenther@suse.de>
32507 PR tree-optimization/42730
32508 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
32511 2010-01-13 Steve Ellcey <sje@cup.hp.com>
32514 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
32515 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
32518 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
32520 * config/bfin/libgcc-bfin.ver: Regenerate based on current
32521 libgcc-std.ver. Add entries for ___smulsi3_highpart and
32522 ___umulsi3_highpart.
32524 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
32525 rather than schedule_insns if the pass is enabled.
32527 2010-01-13 Martin Jambor <mjambor@suse.cz>
32529 PR tree-optimization/42704
32530 * tree-sra.c (sra_modify_assign): Do not delete assignments to
32533 2010-01-13 Martin Jambor <mjambor@suse.cz>
32535 PR tree-optimization/42703
32536 * tree-sra.c (analyze_access_subtree): Check that we can build a
32537 reference to the original data within the aggregate.
32539 2010-01-13 Richard Guenther <rguenther@suse.de>
32541 PR tree-optimization/42705
32542 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
32544 2010-01-13 Richard Guenther <rguenther@suse.de>
32546 PR middle-end/42716
32547 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
32549 2010-01-13 Jakub Jelinek <jakub@redhat.com>
32552 * var-tracking.c (values_to_unmark): New variable.
32553 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
32554 values_to_unmark vector. Moved body to...
32555 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
32556 instead queue it into values_to_unmark vector.
32557 (vt_find_locations): Free values_to_unmark vector.
32559 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
32561 * config/s390/s390.c (override_options): Set
32562 default of max-pending-list-length to 256
32564 2010-01-13 Richard Guenther <rguenther@suse.de>
32567 * tree-pass.h (PROP_gimple_lcx): New.
32568 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
32569 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
32570 before the final cleanup_eh.
32571 (dump_properties): Dump PROP_gimple_lcx.
32572 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
32573 (tree_lower_complex_O0): Remove.
32574 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
32575 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
32576 tree_lower_complex, schedule TODO_update_ssa.
32577 * lto-streamer-out.c (output_function): Stream the functions
32579 * lto-streamer-in.c (input_function): Likewise.
32580 (lto_read_body): Do not override them here.
32582 2010-01-12 Joseph Myers <joseph@codesourcery.com>
32585 * c-typeck.c (build_c_cast): Fold value cast to union type before
32586 wrapping it in a CONSTRUCTOR.
32588 2010-01-12 Jakub Jelinek <jakub@redhat.com>
32590 PR rtl-optimization/42699
32591 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
32594 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32596 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
32597 SUBTARGET_WARN_UNUSED_SPEC): Move ...
32598 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
32599 SUBTARGET_WARN_UNUSED_SPEC): ... here
32600 * config/mips/iris5.h (LIBGCC_SPEC): Define.
32602 2010-01-12 Julian Brown <julian@codesourcery.com>
32604 * config/arm/neon-schedgen.ml (Utils): Don't try to
32605 open missing module.
32606 (find_with_result): New.
32608 2010-01-12 Jakub Jelinek <jakub@redhat.com>
32611 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
32612 sharing when canonicalizing ({lt,ge}u (plus a b) b).
32614 PR tree-optimization/42645
32615 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
32616 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
32617 decl_map, set processing_debug_stmt to -1 and return name without
32620 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
32622 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
32623 binutils version, and reword target configuration description.
32625 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
32627 * config/avr/avr.h (LINKER_NAME): Remove.
32629 2010-01-11 Janis Johnson <janis187@us.ibm.com>
32632 * config/rs6000/rs6000.c (rs6000_override_options): On targets
32633 that support VSX, warn for -mno-altivec if vsx is not disabled,
32636 2010-01-11 Joseph Myers <joseph@codesourcery.com>
32637 Shujing Zhao <pearly.zhao@oracle.com>
32639 PR translation/42469
32640 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
32641 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
32642 character between option name and help text.
32643 * c.opt (imultilib): Likewise.
32645 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
32647 * lto-streamer-out.c (output_unreferenced_globals): Output static
32650 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
32652 PR rtl-optimization/42621
32653 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
32654 optimizing for size.
32655 (duplicate_computed_gotos): Remove now-redundant check.
32657 2010-01-10 Steve Ellcey <sje@cup.hp.com>
32660 * configure.ac: Save and restore LDFLAGS and LIBS
32661 * configure: Regenerate.
32663 2010-01-10 Richard Guenther <rguenther@suse.de>
32665 PR middle-end/42667
32666 * builtins.c (fold_builtin_strlen): Add type argument and
32667 convert the resulting length to it.
32668 (fold_builtin_1): Adjust.
32670 2010-01-09 Jakub Jelinek <jakub@redhat.com>
32672 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
32673 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
32675 (num_insns_constant_wide): Adjust for that change.
32677 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32680 * web.c (union_defs): Add used argument, to combine uses of
32681 uninitialized regs.
32682 (entry_register): Adjust type and tests of used argument.
32683 (web_main): Widen used for new use. Pass it to union_defs.
32684 * df.h (union_defs): Adjust prototype.
32686 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32689 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
32690 uses in new incoming argument. Free body.
32691 (reset_debug_uses_in_loop): New.
32692 (analyze_insn_to_expand_var): Call the latter if the former found
32693 anything. Fix whitespace. Reject invalid dest overlaps before
32694 going through all insns in the loop.
32696 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32699 * haifa-sched.c (dying_use_p): Debug insns don't count.
32701 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32703 PR middle-end/42363
32704 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
32705 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
32706 (verify_gimple_call): Reject LHS in noreturn calls.
32708 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32712 * tree-vect-loop-manip.c (adjust_info): New type.
32713 (adjust_vec): New pointer to vector.
32714 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
32715 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
32716 (slpeel_update_phis_for_duplicate_loop): Use them.
32717 (slpeel_update_phi_nodes_for_guard1): Likewise.
32718 (slpeel_update_phi_nodes_for_guard2): Likewise.
32719 (slpeel_tree_peel_loop_to_edge): Likewise.
32720 (vect_update_ivs_after_vectorizer): Likewise.
32722 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32724 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
32725 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
32727 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32729 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
32730 bogus uninitialized warning.
32732 2010-01-09 Richard Guenther <rguenther@suse.de>
32734 PR middle-end/42512
32735 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
32736 the evolution is compatible with the initial condition.
32738 2010-01-09 Jakub Jelinek <jakub@redhat.com>
32740 * gcc.c (process_command): Update copyright notice dates.
32741 * gcov.c (print_version): Likewise.
32742 * gcov-dump.c (print_version): Likewise.
32743 * mips-tfile.c (main): Likewise.
32744 * mips-tdump.c (main): Likewise.
32746 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
32749 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
32751 (rotlhi3_8): Delete.
32753 (rotlsi3_8): Delete.
32754 (rotlsi3_16): Delete.
32755 (rotlsi3_24): Delete.
32756 (rotl<mode>3): New.
32757 (*rotw<mode>3): New.
32758 (*rotb<mode>3): New.
32759 * config/avr/avr.c (avr_rotate_bytes): New function.
32760 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
32762 2010-01-08 Steve Ellcey <sje@cup.hp.com>
32765 * configure.ac: Modify -rdynamic check.
32766 * configure: Regenerate.
32768 2010-01-08 DJ Delorie <dj@redhat.com>
32770 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
32771 register popping order.
32773 2010-01-08 Richard Guenther <rguenther@suse.de>
32776 * c.opt (fsigned-char): Also let LTO handle this option.
32777 (funsigned-char): Likewise.
32779 2010-01-07 Richard Guenther <rguenther@suse.de>
32781 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
32782 (gimple_op): Likewise.
32783 (gimple_op_ptr): Likewise.
32784 (gimple_assign_set_lhs): Remove gcc_assert.
32785 (gimple_assign_set_rhs1): Likewise.
32786 (gimple_assign_set_rhs2): Likewise.
32787 (gimple_call_set_lhs): Likewise.
32788 (gimple_call_set_fn): Likewise.
32789 (gimple_call_set_fndecl): Likewise.
32790 (gimple_call_fndecl): Likewise.
32791 (gimple_call_return_type): Likewise.
32792 (gimple_call_set_chain): Likewise.
32793 (gimple_call_num_args): Likewise.
32794 (gimple_call_set_arg): Likewise.
32795 (gimple_cond_set_code): Likewise.
32796 (gimple_cond_set_lhs): Likewise.
32797 (gimple_cond_set_rhs): Likewise.
32798 (gimple_cond_set_true_label): Likewise.
32799 (gimple_cond_set_false_label): Likewise.
32800 (gimple_label_set_label): Likewise.
32801 (gimple_goto_set_dest): Likewise.
32802 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
32803 (gimple_debug_bind_get_value): Likewise.
32804 (gimple_debug_bind_get_value_ptr): Likewise.
32805 (gimple_debug_bind_set_var): Likewise.
32806 (gimple_debug_bind_set_value): Likewise.
32807 (gimple_debug_bind_reset_value): Likewise.
32808 (gimple_debug_bind_has_value_p): Likewise.
32809 (gimple_return_retval_ptr): Remove gcc_assert.
32810 (gimple_return_retval): Likewise.
32811 (gimple_return_set_retval): Likewise.
32812 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
32813 (safe_referenced_var_iterator): Remove.
32814 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
32815 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
32816 (fill_referenced_var_vec): Remove.
32817 (first_readonly_imm_use): Remove redundant gcc_assert.
32818 (phi_arg_index_from_use): Combine gcc_asserts.
32819 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
32820 (first_imm_use_stmt): Remove redundant gcc_assert.
32821 * tree-cfg.c (verify_gimple_call): Verify function and chain
32822 operands. Verify arguments.
32823 (verify_types_in_gimple_stmt): Verify condition code and labels.
32825 2010-01-07 Richard Guenther <rguenther@suse.de>
32827 PR tree-optimization/42641
32828 * sese.c (rename_map_elt_info): Use the SSA name version, do
32831 2010-01-07 Jakub Jelinek <jakub@redhat.com>
32833 PR tree-optimization/42625
32834 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
32835 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
32837 2010-01-07 Duncan Sands <baldrick@free.fr>
32839 * Makefile.in (PLUGIN_HEADERS): Add version.h.
32841 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
32844 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
32845 note itself is not function_invariant_p.
32847 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
32849 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
32850 Do not add the DF_NOTE problem.
32851 * store-motion.c (execute_rtl_store_motion): Likewise.
32853 2010-01-07 Martin Jambor <mjambor@suse.cz>
32855 PR tree-optimization/42157
32856 * tree-sra.c (compare_access_positions): Stabilize sort if both
32857 accesses have integer types, return zero immediately if they are the
32860 2010-01-06 Richard Henderson <rth@redhat.com>
32862 PR middle-end/41883
32863 * haifa-sched.c (add_to_note_list): Merge into ...
32864 (concat_note_lists): ... here, and ...
32865 (unlink_other_notes, rm_other_notes): Merge into...
32866 (remove_notes): ... here. Create REG_SAVE_NOTEs for
32867 NOTE_INSN_EPILOGUE_BEG.
32869 2010-01-06 Richard Guenther <rguenther@suse.de>
32871 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
32872 not inline regular functions into always-inline functions.
32874 2010-01-06 Nick Clifton <nickc@redhat.com>
32876 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
32877 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
32879 (OVERRIDE_OPTIONS): Delete.
32880 (OPTIMIZATION_OPTIONS): Define.
32881 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
32882 * config/rx/rx.c (rx_handle_option): Issue an error message if
32883 -mcpu=rx200 and -fpu are used together.
32884 (rx_set_optimization_options): New function. Issue an error
32885 message if an optimization attribute attempts to reset the FPU/
32886 math optimization pairing.
32887 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
32888 * config/rx/rx.opt: Set the default to 32-bit doubles.
32889 * config/rx/t-rx: Add multilibs for -nofpu option.
32890 * doc/invoke.texi: Update documentation of RX options.
32892 2010-01-06 Richard Guenther <rguenther@suse.de>
32894 * tree-ssa-pre.c (name_to_id): New global.
32895 (alloc_expression_id): Simplify SSA name handling.
32896 (lookup_expression_id): Likewise.
32897 (init_pre): Zero name_to_id.
32898 (fini_pre): Free it.
32900 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
32902 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
32904 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
32907 * config/i386/sse.md (smaxv2di3): New.
32908 (umaxv2di3): Likewise.
32909 (sminv2di3): Likewise.
32910 (uminv2di3): Likewise.
32912 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
32915 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
32916 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
32917 (legitimize_tls_address): Likewise.
32918 (sparc_tls_referenced_p): Likewise.
32919 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
32920 and adjust calls to legitimize_pic_address.
32921 (legitimate_constant_p) Use sparc_tls_referenced_p.
32922 (legitimate_pic_operand_p): Likewise.
32923 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
32924 (sparc_tls_symbol_ref_1): Delete.
32925 (sparc_tls_referenced_p): Make static, recognize specific patterns.
32926 (legitimize_tls_address): Make static, handle CONST patterns.
32927 (legitimize_pic_address): Make static, remove unused parameter and
32928 adjust recursive calls.
32929 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
32930 and adjust call to legitimize_pic_address.
32931 (sparc_output_mi_thunk): Likewise.
32933 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
32934 H.J. Lu <hongjiu.lu@intel.com>
32937 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
32938 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
32939 operands to make them signed.
32942 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
32945 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
32946 GTU to GT for V4SI and V2DI.
32948 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
32949 (umin<mode>3): Removed.
32951 (uminv4si3): Likewise.
32953 2010-01-05 Martin Jambor <mjambor@suse.cz>
32955 PR tree-optimization/42462
32956 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
32957 current_function_decl to helper functions and macros.
32959 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32962 * flags.h: Don't include real.h.
32963 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
32964 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
32965 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
32966 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
32967 * dominance.c: Update copyright.
32968 * gimple.c (walk_gimple_op): Remove inline.
32969 * tree-ssa-reassoc.c: Include real.h.
32970 * Makefile.in (FLAGS_H): Remove $(REAL_H).
32971 (tree-ssa-reassoc.o): Depend on $(REAL_H).
32973 2010-01-05 Nick Clifton <nickc@redhat.com>
32975 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
32976 register to push into the stack frame when the accumulator has to
32977 be saved during interrupts.
32979 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
32981 * doc/invoke.texi: Remove the documentation about option
32982 -Wunreachable-code.
32983 * common.opt (Wunreachable-code): Preserved for backward
32985 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
32986 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
32987 the backward compatibility flag section.
32989 2010-01-05 Richard Guenther <rguenther@suse.de>
32991 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
32993 2010-01-05 Jakub Jelinek <jakub@redhat.com>
32996 * cfgexpand.c (expand_one_var): Diagnose too large variables.
32998 PR tree-optimization/42508
32999 * tree-sra.c (convert_callers): Check for recursive call
33000 by comparing cgraph nodes instead of decls.
33001 (modify_function): Call ipa_modify_formal_parameters also
33002 on all same_body aliases.
33004 * cgraphunit.c (cgraph_materialize_all_clones): Compare
33005 cgraph nodes when checking for same_body aliases.
33007 2010-01-05 Richard Guenther <rguenther@suse.de>
33009 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
33010 allocation and lookup.
33011 (get_or_alloc_expr_for_constant): Likewise.
33012 (phi_translate): Sink allocation.
33014 2010-01-04 Richard Guenther <rguenther@suse.de>
33016 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
33017 a new entry only if needed.
33018 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
33019 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
33021 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
33023 (phi_translate): Handle CONSTANTs early.
33025 2010-01-04 Martin Jambor <mjambor@suse.cz>
33027 PR tree-optimization/42398
33028 * tree-sra.c (struct access): Removed flag grp_different_types.
33029 (dump_access): Do not dump the removed flag.
33030 (sort_and_splice_var_accesses): Do not set the removed flag.
33031 (sra_modify_expr): Check for type compatibility directly.
33033 2010-01-04 Martin Jambor <mjambor@suse.cz>
33035 PR tree-optimization/42366
33036 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
33037 edges with variable number of parameters.
33038 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
33039 flag instead of asserting it.
33040 (ipa_read_node_info): Read uses_analysis_done flag.
33042 2010-01-04 Richard Guenther <rguenther@suse.de>
33044 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
33045 iterative_hash_* as intended.
33046 (vn_reference_compute_hash): Likewise. Simplify hashing
33048 (vn_reference_lookup_2): Likewise.
33049 (vn_nary_op_compute_hash): Likewise.
33050 (vn_phi_compute_hash): Likewise.
33051 (expressions_equal_p): Remove strange code.
33052 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
33053 (pre_expr_hash): Likewise. Simplify hashing SSA names.
33054 (bitmap_insert_into_set_1): Take value-id as parameter.
33055 (add_to_value): Pass it.
33056 (bitmap_insert_into_set): Likewise.
33057 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
33059 2010-01-04 Jakub Jelinek <jakub@redhat.com>
33062 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
33063 (do_self_spec): For switches with SWITCH_IGNORE set set also
33064 SWITCH_IGNORE_PERMANENTLY.
33065 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
33068 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
33070 * lto-streamer-out.c (output_unreferenced_globals): Output the full
33071 tree of an unreferenced global var.
33073 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33076 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33077 GTU to GT for V4SI and V2DI.
33079 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33080 (umin<mode>3): Removed.
33082 (uminv4si3): Likewise.
33084 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33087 * collect2.c (main): Turn on trace in collect2 if -v is passed
33090 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
33092 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
33093 description of expression operand.
33095 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
33097 * configure.ac: Add install-html to target_list for Make-hooks.
33098 * configure: Regenerate.
33099 * fortran/Make-lang.in (F95_HTMLFILES): New.
33100 (fortran.html): Use it.
33101 (fortran.install-html): New.
33102 * Makefile.in (install-html): Add lang.install-html.
33103 * java/Make-lang.in (JAVA_HTMLFILES): New.
33104 (java.html): Use it.
33105 (java.install-html): New.
33106 * objc/Make-lang.in (objc.install-html): New.
33107 * objcp/Make-lang.in (obj-c++.install-html): New.
33108 * cp/Make-lang.in (c++.install-html): New.
33109 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
33110 * lto/Make-lang.in (lto.install-html): New.
33112 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
33115 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
33117 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
33119 PR rtl-optimization/41862
33120 * store-motion.c (store_killed_in_insn, compute_store_table,
33121 remove_reachable_equiv_notes, replace_store_insn,
33122 build_store_vectors): Ignore all DEBUG_INSNs.
33124 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
33127 * common.opt: Add dumpdir.
33129 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
33131 (option_map): Add --dumpdir.
33133 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
33135 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
33137 * opts.c (decode_options): Try dump_dir_name first if
33138 dump_base_name isn't an absolute path.
33139 (common_handle_option): Handle OPT_dumpdir.
33141 * toplev.c (dump_dir_name): New.
33142 (print_switch_values): Also ignore -dumpdir.
33144 * toplev.h (dump_dir_name): New.
33146 2010-01-03 Richard Guenther <rguenther@suse.de>
33148 PR tree-optimization/42589
33149 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
33150 double-word expansion of bswap32.
33152 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
33154 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
33155 with BLOCK_FOR_INSN.
33156 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
33157 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
33158 noce_process_if_block): Likewise.
33159 * gcse.c (compute_local_properties, insert_expr_in_table,
33160 insert_set_in_table, canon_list_insert, find_avail_set,
33161 pre_insert_copy_insn): Likewise.
33163 * basic-block.h (BLOCK_NUM): Move from here...
33164 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
33166 2010-01-03 Richard Guenther <rguenther@suse.de>
33168 PR tree-optimization/42438
33169 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
33170 contains_may_not_return_call flag.
33171 (BB_MAY_NOTRETURN): New.
33172 (valid_in_sets): Trapping nary operations are not valid
33173 in blocks that may not return.
33174 (insert_into_preds_of_block): Remove check for trapping expressions.
33175 (compute_avail): Compute also BB_MAY_NOTRETURN.
33177 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
33179 * doc/invoke.texi: Add 2010 to copyright years.
33181 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
33183 * config/sparc/sparc.c: Fix formatting nits.
33185 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
33186 Alexander Monakov <amonakov@ispras.ru>
33188 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
33190 2010-01-02 Richard Guenther <rguenther@suse.de>
33192 PR middle-end/42577
33193 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
33194 (simplify_switch_using_ranges): Mark to be removed edges
33197 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33199 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
33201 * collect2.c (scan_libraries): Add missing argument in call to
33204 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
33207 * config/alpha/predicates.md (aligned_memory_operand): Return false
33209 (unaligned_memory_operand): Return true for CQImode.
33210 * config/alpha/alpha.c (get_aligned_mem): Assert that location
33211 doesn not cross aligned SImode word boundary.
33213 2010-01-02 Anatoly Sokolov <aesok@post.ru>
33215 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
33217 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
33218 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
33220 2010-01-02 Richard Guenther <rguenther@suse.de>
33223 * toplev.c (compile_file): Emit LTO marker properly. Change
33224 it to __gnu_lto_v1.
33225 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
33227 2010-01-01 Richard Guenther <rguenther@suse.de>
33230 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
33232 2010-01-01 Richard Guenther <rguenther@suse.de>
33235 * c-decl.c (grokdeclarator): For zero-size arrays force
33236 structural equality checks as layout_type does.
33238 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
33240 * builtins.c: Update copyright to 2010.
33242 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
33245 * lto-streamer-out.c (produce_asm): Revert the last change.
33246 (copy_function): Likewise.
33248 * lto-streamer.c (lto_get_section_name): Skip any leading
33251 2010-01-01 Richard Guenther <rguenther@suse.de>
33253 PR middle-end/42559
33254 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
33258 Copyright (C) 2010 Free Software Foundation, Inc.
33260 Copying and distribution of this file, with or without modification,
33261 are permitted in any medium without royalty provided the copyright
33262 notice and this notice are preserved.